/* Timeline Comparison Section Styles */
.timeline-comparison-section {
  padding: 6rem 0;
  background: rgb(15, 23, 42);
  /* Match body background */
  /* Cosmic dark background */
  position: relative;
  z-index: 10;
}

.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

/* Timeline Track Styles */
.timeline-track {
  background: rgba(30, 41, 59, 0.4);
  /* Semi-transparent dark blue */
  border-radius: 24px;
  padding: 3rem 2.5rem;
  /* Increased top padding for label */
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.2);
  /* Indigo border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.timeline-track:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.track-label {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 5;
}

.track-label.competitor {
  color: #f87171;
  /* Soft red */
}

.track-label.you {
  color: #818cf8;
  /* Indigo-400 */
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 2rem;
  z-index: 1;
}

/* Connecting Line */
.steps-container::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 2;
  /* Ensure step content is above the line */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 30%;
  opacity: 1 !important;
  /* Force visibility */
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0f172a;
  /* Solid dark background to hide line */
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
  /* Ensure icon is above the line */
}

.step-time {
  font-size: 0.875rem;
  color: #94a3b8;
  /* Slate-400 */
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.step-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
  /* Slate-100 */
}

.step-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  /* Slate-300 */
  line-height: 1.5;
}

/* Competitor Track Specifics */
.competitor-track .steps-container::before {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(248, 113, 113, 0.3), rgba(255, 255, 255, 0.1));
}

.competitor-track .timeline-step:nth-child(2) .icon-box {
  border-color: #f87171;
  color: #f87171;
  background: #0f172a;
  /* Solid background */
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.2);
}

/* Winner Track Specifics */
.winner-track {
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 70%), rgba(30, 41, 59, 0.6);
}

.winner-track .steps-container::before {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), #818cf8, #818cf8);
}

.winner-track .icon-box {
  border-color: #818cf8;
  color: #818cf8;
  background: #0f172a;
  /* Solid background to hide line */
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.winner-track .timeline-step:last-child .icon-box {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
  background: #6366f1;
  /* Indigo-500 */
  color: #fff;
  border-color: #6366f1;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-track {
    padding: 2rem 1.5rem;
    /* Reduce padding for mobile */
  }

  .steps-container {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    /* Remove left padding to align with edge */
    margin-top: 1.5rem;
  }

  .steps-container::before {
    width: 2px;
    height: 100%;
    left: 25px;
    /* Center of the 50px icon */
    top: 0;
  }

  .timeline-step {
    width: 100%;
    flex-direction: row;
    text-align: left;
    margin-bottom: 2rem;
    align-items: flex-start;
    /* Align top for better text flow */
    z-index: 2;
    /* Ensure content is above line */
  }

  .icon-box {
    margin-right: 1.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-content {
    padding-top: 0.5rem;
    /* Align text with icon */
    flex: 1;
    /* Allow text to take remaining space */
  }
}