.xp-section {
    width: 100%;
    padding: 120px 0;
    color: #eafff4;
}

.xp-title {
    text-align: center;
    font-size: 44px;
    margin-bottom: 60px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* TIMELINE CONTAINER */
.xp-timeline {
    position: relative;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* CANVAS LINES */
#xp-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 300px;
    z-index: 1;
}

/* ENTRIES */
.xp-entries {
    position: relative;
    z-index: 3;
    margin-top: 260px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.xp-entry {
    background: rgba(0,255,153,0.06);
    border: 1px solid rgba(0,255,153,0.25);
    backdrop-filter: blur(8px);
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,255,153,0.25);
}

.xp-entry h2 {
    margin: 0 0 8px 0;
    letter-spacing: 0.1em;
}

.xp-date {
    font-size: 12px;
    opacity: 0.75;
}

.xp-entry p {
    margin-top: 12px;
    line-height: 1.55;
    opacity: 0.9;
}


.experience-page {
    background: #010c09;
    color: #e8fff0;
    overflow-x: hidden;
}

/* background matrix waves */
.xp-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
}

/* title */
.xp-title {
    text-align: center;
    font-size: 42px;
    letter-spacing: 0.16em;
    margin-top: 140px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* timeline container */
.xp-timeline {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 200px auto;
    position: relative;
}

/* distortion canvas */
#xp-lines {
    width: 100%;
    height: 220px;
    position: absolute;
    top: 0;
    z-index: 2;
}

/* entries container */
.xp-entries {
    margin-top: 240px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    z-index: 5;
    position: relative;
}

/* individual entry */
.xp-entry {
    background: rgba(0,255,153,0.05);
    border: 1px solid rgba(0,255,153,0.25);
    box-shadow: 0 0 25px rgba(0,255,153,0.2);
    padding: 30px 40px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}
.xp-entry h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.12em;
}
.xp-entry .xp-date {
    display: block;
    margin-top: 8px;
    opacity: 0.75;
    font-size: 12px;
    letter-spacing: 0.08em;
}
.xp-entry p {
    margin-top: 14px;
    line-height: 1.55;
    font-size: 15px;
    opacity: 0.9;
}

/* tags for volunteer/internship/research */
.exp-item-tag {
    display: inline-block;
    margin-left: 12px;
    padding: 2px 12px;
    border-radius: 16px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid;
    opacity: 0.85;
}

.exp-item-tag.volunteer {
    color: #00ff9d;
    border-color: #00ff9d55;
    background: rgba(0,255,153,0.08);
}

.exp-item-tag.internship {
    color: #7acbff;
    border-color: #7acbff55;
    background: rgba(122,203,255,0.08);
}

.exp-item-tag.research {
    color: #ffc868;
    border-color: #ffc86855;
    background: rgba(255,200,104,0.08);
}

.exp-tick {
    position:absolute;
    top: calc(100% - 4px);
    width:2px;
    height:22px;
    background: rgba(0,255,154,0.45);
}

.exp-node {
    animation: pulse 2.4s infinite ease-in-out;
}
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: .5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: .5; }
}

#expNodeLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.exp-node {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: #00ff9a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px #00ff9a;
}

.exp-item::before {
  content: "";
  position: absolute;
  top: -60px;
  left: var(--node-x);
  width: 2px;
  height: 60px;
  background: radial-gradient(circle, #00ff9a 0%, transparent 70%);
  transform: translateX(-50%);
  opacity: 0.9;
}


/* sacred timeline nodes */
.sacred-node {
    width: 14px;
    height: 14px;
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #00ff9a;
    box-shadow: 0 0 12px #00ff9a, 0 0 24px #00ff9a66;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.sacred-node:hover {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 20px #00ffb7, 0 0 40px #00ffb744;
}

/* card highlight on hover */
.exp-item.exp-hover {
    box-shadow: 0 0 20px #00ffb744, inset 0 0 12px #00ffaa22;
    border-color: #00ffbb;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* make nodes actually hover-able */
.exp-node,
.sacred-node {
    pointer-events: auto;
    z-index: 5;
}