/* ═══════════════════════════════════════════════════════════
   MODERN ANIMATED HORIZONTAL ROADMAP
   ═══════════════════════════════════════════════════════════ */

.timeline-section {
  padding: var(--space-20) 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

/* Background subtle glow */
.timeline-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(200, 164, 92, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.modern-roadmap-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: var(--space-16) auto var(--space-10);
  z-index: 1;
}

/* The Background Track */
.modern-roadmap-track {
  position: absolute;
  top: 11px; /* Align with center of the 24px marker */
  left: 8.33%; /* Start at center of first node (1/12th) */
  right: 8.33%; /* End at center of last node */
  height: 2px;
  background: rgba(200, 164, 92, 0.15);
  border-radius: 2px;
  z-index: 1;
}

/* The Animated Glowing Particle Line */
.modern-roadmap-progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 4px;
  width: 100px; /* Particle width */
  background: var(--gold-primary);
  box-shadow: 0 0 15px 2px var(--gold-primary), 0 0 30px var(--gold-light);
  border-radius: 4px;
  animation: roadParticle 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes roadParticle {
  0% { left: 0%; opacity: 0; width: 0; }
  10% { left: 5%; opacity: 1; width: 50px; }
  50% { opacity: 1; width: 150px; }
  85% { left: calc(100% - 150px); opacity: 1; width: 150px; }
  100% { left: 100%; opacity: 0; width: 0; }
}

/* Steps Container */
.modern-roadmap-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

/* Individual Step */
.m-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  text-align: center;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.m-step:hover {
  transform: translateY(-8px);
}

/* Marker */
.m-step-marker {
  position: relative;
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-step-dot {
  width: 10px;
  height: 10px;
  background: var(--gold-light);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px var(--gold-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.m-step:hover .m-step-dot {
  transform: scale(1.6);
  background: #ffffff;
  box-shadow: 0 0 15px var(--gold-light), 0 0 30px var(--gold-primary);
}

.m-step-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(200, 164, 92, 0.5);
  border-radius: 50%;
  z-index: 1;
  animation: pulseAnim 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger pulse animations */
.m-step:nth-child(2) .m-step-pulse { animation-delay: 0.3s; }
.m-step:nth-child(3) .m-step-pulse { animation-delay: 0.6s; }
.m-step:nth-child(4) .m-step-pulse { animation-delay: 0.9s; }
.m-step:nth-child(5) .m-step-pulse { animation-delay: 1.2s; }
.m-step:nth-child(6) .m-step-pulse { animation-delay: 1.5s; }

@keyframes pulseAnim {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* Content */
.m-step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.m-step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-primary);
  font-family: 'Playfair Display', serif;
  opacity: 0.7;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.m-step:hover .m-step-number {
  opacity: 1;
  transform: scale(1.1);
}

.m-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
  max-width: 140px;
  transition: color 0.3s ease;
}

.m-step:hover .m-step-title {
  color: var(--gold-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .timeline-section::before {
    display: none;
  }
  .modern-roadmap-wrapper {
    overflow: visible;
    padding-bottom: var(--space-4);
  }
  .modern-roadmap-steps {
    flex-direction: column;
    min-width: auto;
    padding: var(--space-4) 0;
    padding-left: var(--space-8);
    gap: 45px;
  }
  .modern-roadmap-track {
    width: 2px;
    height: calc(100% - 60px);
    top: 30px;
    left: calc(var(--space-8) + 11px);
    right: auto;
  }
  .modern-roadmap-progress {
    width: 4px;
    height: 100px;
    top: 0;
    left: -1px;
    animation: roadParticleVertical 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  }
  .m-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
  }
  .m-step:hover {
    transform: translateX(10px);
  }
  .m-step-marker {
    margin-bottom: 0;
    margin-right: 25px;
    flex-shrink: 0;
  }
  .m-step-content {
    align-items: flex-start;
  }
  .m-step-title {
    max-width: none;
  }
}

@keyframes roadParticleVertical {
  0% { top: 0%; opacity: 0; height: 0; }
  10% { top: 5%; opacity: 1; height: 50px; }
  50% { opacity: 1; height: 150px; }
  85% { top: calc(100% - 150px); opacity: 1; height: 150px; }
  100% { top: 100%; opacity: 0; height: 0; }
}
