/* Experience Page Styles - Full Dark Theme + Horizontal Timeline */

:root {
  --site-max-width: 1100px;
  --site-padding: 5%;
  --accent: #A08C7C;
  --accent-light: #C5BCB6;
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --text: #F8F7F5;
  --text-muted: #a0a0a5;
  --text-dim: #666;
}

.section-inner {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-padding);
  box-sizing: border-box;
  display: block;
  position: relative;
}

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HERO ── */
.exp-hero {
  padding: 18rem 0 8rem;
  background: var(--bg);
  position: relative;
  z-index: 20;
}

.exp-hero-content {
  text-align: center;
}

.exp-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-top: 1.5rem;
  background: linear-gradient(to bottom, #ffffff 60%, #a0a0a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── SECTIONS ── */
.exp-section {
  padding: 8rem 0;
  background: var(--bg);
  position: relative;
  z-index: 20;
}

.exp-section.research-section {
  background: var(--bg-alt);
}

.small-caps {
  font-size: 0.75rem;
  letter-spacing: 6px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 6px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* ── HORIZONTAL TIMELINE ── */
.timeline-viewport {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
  cursor: default;
}

/* Scroll zone borders — vertical lines at 25% from each edge */
.timeline-viewport::before,
.timeline-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 50;
  pointer-events: none;
  transition: background 0.4s ease;
}

.timeline-viewport::before {
  left: 25%;
  background: rgba(160, 140, 124, 0);
}

.timeline-viewport::after {
  right: 25%;
  background: rgba(160, 140, 124, 0);
}

.timeline-viewport.zone-left-active::before {
  background: rgba(160, 140, 124, 0.2);
}

.timeline-viewport.zone-right-active::after {
  background: rgba(160, 140, 124, 0.2);
}

/* Scroll zone glow overlays */
.timeline-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-zone-left {
  left: 0;
  background: linear-gradient(to right, rgba(160, 140, 124, 0.04) 0%, transparent 100%);
}

.timeline-zone-right {
  right: 0;
  background: linear-gradient(to left, rgba(160, 140, 124, 0.04) 0%, transparent 100%);
}

.timeline-viewport.zone-left-active .timeline-zone-left,
.timeline-viewport.zone-right-active .timeline-zone-right {
  opacity: 1;
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-width: max-content;
  padding-left: var(--timeline-left, 5vw);
  padding-right: var(--timeline-right, 5vw);
}

/* The horizontal timeline line — aligned to research grid edges */
.timeline-line {
  position: absolute;
  top: 8px;
  left: var(--timeline-left, 5vw);
  right: var(--timeline-right, 5vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(160, 140, 124, 0.4) 0%, rgba(160, 140, 124, 0.3) 85%, transparent 100%);
  z-index: 0;
}

/* ── TIMELINE NODE ── */
.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 320px;
  max-width: var(--content-width, 990px);
  padding: 0 3rem 0 0;
  z-index: 1;
}

/* Node marker on the line */
.node-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(160, 140, 124, 0.4);
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.node-marker::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(160, 140, 124, 0);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-node.is-active .node-marker {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(160, 140, 124, 0.4);
  transform: scale(1.3);
}

.timeline-node.is-active .node-marker::after {
  border-color: rgba(160, 140, 124, 0.3);
}

/* Year stamp — large, accent colored */
.node-year {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
  transition: opacity 0.4s ease;
  margin-bottom: 0.75rem;
}

.timeline-node.is-active .node-year {
  opacity: 1;
}

/* Clickable heading — LARGE, the main text */
.node-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid rgba(160, 140, 124, 0.15);
  border-radius: 0;
  padding: 0.75rem 0 0.75rem 1.25rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.node-label:hover {
  border-left-color: rgba(160, 140, 124, 0.4);
}

.timeline-node.is-active .node-label {
  border-left-color: var(--accent);
}

.node-role {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 0.35rem;
  transition: color 0.3s ease;
}

.timeline-node.is-active .node-role {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.node-org {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.node-period {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.node-chevron {
  display: none;
}

/* Hover on the label area auto-expands the detail panel */
.timeline-node .node-label {
  cursor: default;
}

.timeline-node:hover .node-detail {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
  border-left-color: rgba(160, 140, 124, 0.15);
}

/* Hover states for node elements */
.timeline-node:hover .node-marker {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(160, 140, 124, 0.4);
  transform: scale(1.3);
}

.timeline-node:hover .node-year {
  opacity: 1;
}

.timeline-node:hover .node-role {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-node:hover .node-label {
  border-left-color: var(--accent);
}

/* ── DETAIL PANEL ── */
.node-detail {
  width: 100%;
  max-width: var(--content-width, 990px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 1.25rem;
  border-left: 2px solid transparent;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    margin-top 0.4s ease,
    border-left-color 0.4s ease;
}

.timeline-node.is-active .node-detail,
.timeline-node:hover .node-detail {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
  border-left-color: rgba(160, 140, 124, 0.15);
}

.node-details-list {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.node-details-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.65rem;
  padding-left: 1rem;
  position: relative;
}

.node-details-list li:last-child {
  margin-bottom: 0;
}

.node-details-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.node-details-list strong {
  color: #ffffff;
  font-weight: 600;
}

/* ── PROGRESS BAR ── */
.timeline-progress {
  width: 90vw;
  margin: 2rem auto 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 1px;
  transition: width 0.12s ease-out;
}

/* ── SCROLL HINT ── */
.timeline-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.timeline-hint svg {
  color: var(--accent);
  opacity: 0.6;
  animation: hintPulse 2s ease-in-out infinite;
}

.timeline-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes hintPulse {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }

  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}

/* ── RESEARCH GRID ── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.research-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Color inversion on hover - white background with dark text */
.research-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.research-card:hover .research-title {
  color: #1d1d1f;
}

.research-card:hover .research-desc {
  color: #555555;
}

.research-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── CTA SECTION ── */
.exp-cta {
  padding: 10rem 0;
  background: var(--bg);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 2.5rem;
  letter-spacing: -1px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ── BUTTONS ── */
/* Use standardized button classes from home-overrides.css */
/* No special overrides needed - buttons inherit from home-overrides.css */


/* ── NAVBAR ── */
.navbar {
  color: var(--text) !important;
}

.navbar.scrolled {
  background-color: rgba(128, 128, 128, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.nav-logo,
.nav-links a {
  color: var(--text) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .research-grid {
    grid-template-columns: 1fr;
  }

  .timeline-node {
    min-width: 250px;
  }

  .node-year {
    font-size: 3rem;
  }

  .node-role {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .exp-title {
    font-size: 2rem;
  }

  .exp-hero {
    padding: 12rem 0 4rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .timeline-viewport {
    width: 100%;
    margin-left: 0;
    overflow-x: visible;
  }

  .timeline-viewport::before,
  .timeline-viewport::after {
    display: none;
  }

  .timeline-track {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 var(--site-padding);
    min-width: 0;
  }

  .timeline-line {
    left: 6px;
    right: auto;
    width: 1px;
    top: 0;
    bottom: 0;
    height: auto;
    background: linear-gradient(180deg, rgba(160, 140, 124, 0.4) 0%, rgba(160, 140, 124, 0.3) 85%, transparent 100%);
  }

  .timeline-node {
    min-width: 0;
    max-width: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0 0 2rem;
    width: 100%;
  }

  .node-marker {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .node-year {
    display: none;
  }

  .timeline-node> :not(.node-marker) {
    flex: 1;
    min-width: 0;
  }

  .node-label {
    text-align: left;
    align-items: flex-start;
  }

  .node-detail {
    margin-top: 0.5rem;
  }

  .timeline-progress,
  .timeline-hint,
  .timeline-zone {
    display: none;
  }
}