/* Timeline styles extracted for clarity */
:root {
  --timeline-surface: rgba(17, 23, 28, 0.9);
  --timeline-border: rgba(255, 255, 255, 0.08);
  --timeline-glow: rgba(0, 255, 136, 0.4);
  --timeline-accent: linear-gradient(135deg, #00ff88, #00d4ff);
}

.timeline-section {
  position: relative;
  display: block; /* override base section flex row to stack content */
  background: radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.12), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(0, 212, 255, 0.12), transparent 35%),
    #050607;
  padding: 120px 60px;
  overflow: hidden;
}

.timeline-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(0, 255, 136, 0.1), transparent 45%);
  pointer-events: none;
}

.timeline-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.timeline-header h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: -1px;
  margin: 10px 0;
  background: var(--timeline-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.timeline .eyebrow {
  font-size: 0.7rem;
}

.timeline .subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.timeline {
  position: relative;
  --timeline-gap: 72px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: block;
  z-index: 2;
}

#timeline-items {
  display: grid;
  gap: var(--timeline-gap);
}

.timeline-card {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  background: var(--timeline-surface);
  border: 1px solid var(--timeline-border);
  border-radius: 20px;
  padding: 30px 24px 32px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 16px; /* start at the center of the first node */
  bottom: 16px; /* end at the center of the last node */
  width: 3px;
  background: linear-gradient(180deg, #00ff88 0%, rgba(0, 212, 255, 0.85) 50%, rgba(255, 255, 255, 0.35) 100%);
  opacity: 0.9;
  z-index: 4; /* keep the spine above card backgrounds */
  pointer-events: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  padding: 6px 12px;
  border-radius: 12px;
  z-index: 5;
}

.timeline-item h2 {
  margin: 8px 0 6px 0;
  font-size: 1.4rem;
  color: #e8fef5;
}

.timeline-item p {
  margin: 0;
  color: rgba(235, 244, 247, 0.8);
  line-height: 1.6;
}

.timeline-list {
  margin: 10px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: rgba(235, 244, 247, 0.9);
}

.timeline-list li {
  line-height: 1.6;
}

.timeline-node {
  position: relative;
  width: 56px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 6;
}

.timeline-node::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--timeline-accent);
  box-shadow: 0 0 0 10px rgba(0, 255, 136, 0.08), 0 8px 20px var(--timeline-glow);
  z-index: 7;
}

@media (max-width: 900px) {
  .timeline-section {
    padding: 100px 28px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .timeline {
    gap: 18px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 50px 1fr;
    padding: 18px;
  }

  .timeline-item h2 {
    font-size: 1.2rem;
  }
}
