/* ===== CSS Variables ===== */
:root {
  --color-background: hsl(40, 33%, 98%);
  --color-foreground: hsl(222, 47%, 18%);
  --color-card: hsl(0, 0%, 100%);
  --color-muted: hsl(220, 15%, 55%);
  --color-border: hsl(220, 20%, 88%);
  --color-gold: hsl(38, 65%, 50%);
  --color-gold-dark: hsl(35, 70%, 35%);
  --color-gold-light: hsl(42, 70%, 60%);
  
  --shadow-soft: 0 4px 20px -4px hsla(222, 47%, 18%, 0.08);
  --shadow-elevated: 0 12px 40px -8px hsla(222, 47%, 18%, 0.15);
  --shadow-gold: 0 8px 24px -6px hsla(38, 65%, 50%, 0.4);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
 
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Timeline Section ===== */
.timeline-section {
  padding: 4rem 1rem;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Header ===== */
.timeline-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeUp 0.6s ease-out;
}

.timeline-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: hsla(38, 65%, 50%, 0.1);
  color: var(--color-gold-dark);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.timeline-title {
 
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

/*.text-gradient {*/
/*  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);*/
/*  -webkit-background-clip: text;*/
/*  -webkit-text-fill-color: transparent;*/
/*  background-clip: text;*/
/*}*/

.timeline-subtitle {
  font-size: 1.125rem;
  /*color: var(--color-muted);*/
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Timeline Structure ===== */
.timeline {
  position: relative;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* ===== Timeline Node ===== */
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.node-circle {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffbe00;
  color: white;

  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
  z-index: 10;
  animation: scaleIn 0.4s ease-out backwards;
}

.timeline-step:nth-child(1) .node-circle { animation-delay: 0.1s; }
.timeline-step:nth-child(2) .node-circle { animation-delay: 0.3s; }
.timeline-step:nth-child(3) .node-circle { animation-delay: 0.5s; }
.timeline-step:nth-child(4) .node-circle { animation-delay: 0.7s; }
.timeline-step:nth-child(5) .node-circle { animation-delay: 0.9s; }

.node-circle:hover {
  transform: scale(1.1);
}

.node-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulseGold 2s infinite;
}

.node-line {
  width: 2px;
  height: 80px;
  margin: 1rem 0;
 background: linear-gradient(to bottom, #ffbe00, #ffbe00);

  border-radius: 1px;
}

.timeline-step.last .node-line {
  display: none;
}

/* ===== Timeline Content ===== */
.timeline-content {
  flex: 1;
  padding-bottom: 2rem;
}

.timeline-content.empty {
  display: none;
}

.timeline-card {
  background:#f3f3f3;
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  animation: fadeUp 0.5s ease-out backwards;
}

.timeline-step:nth-child(1) .timeline-card { animation-delay: 0.2s; }
.timeline-step:nth-child(2) .timeline-card { animation-delay: 0.4s; }
.timeline-step:nth-child(3) .timeline-card { animation-delay: 0.6s; }
.timeline-step:nth-child(4) .timeline-card { animation-delay: 0.8s; }
.timeline-step:nth-child(5) .timeline-card { animation-delay: 1s; }

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.timeline-card h3 {

  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  /*color: var(--color-muted);*/
  line-height: 1.6;
}

/* ===== Desktop: Left-Right Alternating ===== */
@media (min-width: 768px) {
  .timeline-step {
    gap: 2.5rem;
  }

  .timeline-content.empty {
    display: block;
  }

  .timeline-content.left {
    text-align: right;
  }

  .timeline-content.right {
    text-align: left;
  }

  .node-circle {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
}

/* ===== Mobile: Single Column ===== */
@media (max-width: 767px) {
  .timeline-content.left.empty,
  .timeline-content.right.empty {
    display: none;
  }

  .timeline-content.left,
  .timeline-content.right {
    text-align: left;
  }

  .timeline-step {
    flex-direction: row;
  }

  .timeline-node {
    order: -1;
  }
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 hsla(38, 65%, 50%, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px hsla(38, 65%, 50%, 0);
  }
}
