/* ===================================================================
   NAMRATA SHARMA — CV PORTFOLIO
   File: experience.css  (Experience / The Voyage)
   Theme: Deep Navy — Midnight Blue, Rope Gold & Parchment
   =================================================================== */

:root {
  --bg:          #0a0f1c;
  --bg-2:        #131a2c;
  --gold:        #d4af37;
  --gold-light:  #f2dfa0;
  --gold-deep:   #8a6a1f;
  --parchment:   #e8dcc0;
  --muted:       #7c86a3;
  --ink:         #050810;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 0%, #16203a 0%, transparent 55%),
    var(--bg);
  color: var(--parchment);
  font-family: 'Karla', sans-serif; font-weight: 400;
  min-height: 100vh; overflow-x: hidden;
}

/* ---- left rail nav ---- */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: 84px; z-index: 20;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #0d1424, #080c17);
  border-right: 1px solid rgba(212,175,55,.28);
  padding: 1.6rem 0;
  gap: .4rem;
}
.rail-mark {
  color: var(--gold-light); text-decoration: none; font-family: 'Libre Baskerville', serif;
  font-weight: 700; font-size: 1rem; margin-bottom: 2.2rem; letter-spacing: .04em;
}
.rail-link {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--muted); padding: .9rem .3rem;
  border-left: 2px solid transparent; width: 100%;
  transition: color .3s, border-color .3s, background .3s;
}
.rail-link i    { font-size: 1.05rem; }
.rail-link span { writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.rail-link:hover { color: var(--gold-light); background: rgba(212,175,55,.06); }
.rail-link.is-active { color: var(--gold-light); border-left-color: var(--gold); background: rgba(212,175,55,.09); }

/* ---- main content ---- */
.voyage { margin-left: 84px; position: relative; z-index: 2; }

.voyage-hero {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(3rem,8vw,5.5rem) 6vw 2rem;
}
.eyebrow {
  font-family: 'Karla', sans-serif; font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.voyage-hero h1 {
  font-family: 'Libre Baskerville', serif; font-weight: 700;
  font-size: clamp(2.1rem,5.5vw,3.2rem); margin: 0 0 1rem; color: var(--parchment);
}
.intro { color: var(--muted); font-size: 1.02rem; line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* ---- timeline ---- */
.timeline { position: relative; max-width: 920px; margin: 0 auto; padding: 3rem 6vw 5rem; }

.spine {
  position: absolute; left: 50%; top: 0; bottom: 40px; width: 4px; transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  background: repeating-linear-gradient(180deg, var(--gold) 0 9px, var(--gold-deep) 9px 18px);
  border-radius: 3px; box-shadow: 0 0 12px rgba(212,175,55,.3);
  transition: transform 1.4s ease-out;
}
.timeline.in-view .spine { transform: translateX(-50%) scaleY(1); }
.spine-anchor {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  color: var(--gold-light); font-size: 1.3rem; background: var(--bg);
  padding: .3rem;
}

.port {
  position: relative; width: 50%; margin-bottom: 3.4rem;
  opacity: 0; transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--n) * 90ms);
}
.port.in-view { opacity: 1; }

.port:nth-of-type(odd)  { left: 0; padding-right: 3.6rem; text-align: right; transform: translateX(-24px); }
.port:nth-of-type(even) { left: 50%; padding-left: 3.6rem; text-align: left; transform: translateX(24px); }
.port.in-view:nth-of-type(odd), .port.in-view:nth-of-type(even) { transform: translateX(0); }

.port-marker {
  position: absolute; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--gold);
  color: var(--gold-light); font-size: .9rem;
  box-shadow: 0 0 0 5px var(--bg), 0 0 14px rgba(212,175,55,.35);
  transition: transform .3s, box-shadow .3s;
}
.port:hover .port-marker {
  transform: scale(1.12);
  box-shadow: 0 0 0 5px var(--bg), 0 0 24px rgba(212,175,55,.6);
}
.port:nth-of-type(odd) .port-marker  { right: -22px; }
.port:nth-of-type(even) .port-marker { left: -22px; }

.port-card {
  display: inline-block; text-align: left; width: 100%; max-width: 380px;
  background: var(--bg-2); border: 1px solid rgba(212,175,55,.28); border-radius: 6px;
  padding: 1.4rem 1.6rem;
  transition: border-color .3s, box-shadow .3s;
}
.port:hover .port-card { border-color: var(--gold); box-shadow: 0 0 30px rgba(212,175,55,.12); }
.port:nth-of-type(odd) .port-card { text-align: right; }

.port-duration {
  display: inline-block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: .25rem .6rem; border-radius: 20px;
  margin-bottom: .6rem;
}
.port-card h3   { font-family: 'Libre Baskerville', serif; font-size: 1.25rem; margin: .1rem 0 .2rem; color: var(--parchment); }
.port-org       { font-style: italic; color: var(--gold-light); margin: 0 0 .7rem; font-size: .92rem; }
.port-desc      { margin: 0; font-size: .9rem; line-height: 1.65; color: #b7bfd4; }

.port-anchor .port-card { border-color: var(--gold-light); box-shadow: 0 0 26px rgba(212,175,55,.14); }

/* ---- CTA ---- */
.next-cta { text-align: center; padding: 0 6vw 6rem; }
.next-cta p   { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.next-cta a {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  color: var(--ink); background: var(--gold); padding: .85rem 1.7rem; border-radius: 2px;
  font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: .88rem;
  transition: background .3s, transform .3s;
}
.next-cta a:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ---- responsive ---- */
@media (max-width: 720px) {
  .rail {
    flex-direction: row; left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 64px;
    border-right: none; border-top: 1px solid rgba(212,175,55,.28);
    justify-content: space-around; padding: .4rem 0;
  }
  .rail-mark { display: none; }
  .rail-link { flex-direction: row; gap: .4rem; border-left: none; border-top: 2px solid transparent; }
  .rail-link.is-active { border-left-color: transparent; border-top-color: var(--gold); }
  .rail-link span { writing-mode: horizontal-tb; font-size: .6rem; display: none; }
  .voyage { margin-left: 0; padding-bottom: 70px; }

  .spine { left: 20px; transform: scaleY(0); }
  .timeline.in-view .spine { transform: scaleY(1); }
  .spine-anchor { left: 20px; }
  .port, .port:nth-of-type(odd), .port:nth-of-type(even) {
    width: 100%; left: 0; text-align: left; padding: 0 0 0 3.2rem; transform: translateX(0);
  }
  .port-card, .port:nth-of-type(odd) .port-card { text-align: left; max-width: none; }
  .port-marker, .port:nth-of-type(odd) .port-marker, .port:nth-of-type(even) .port-marker { left: -1px; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .spine, .port { transition: none; opacity: 1; transform: none; }
  .timeline .spine { transform: translateX(-50%) scaleY(1); }
}
