:root {
    --primary-blue: #22A0E5;
    --dark-blue: #233B53;
    --text-dark: #1A1A1A;
    --text-light: #4A4A4A;
    --line-gray: #D1D5DB;
    --bg-color: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Lenis Smooth Scroll Recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.spacer {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7f9;
    color: #888;
    font-size: 1.2rem;
}

.timeline-section {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-container {
    display: flex;
    gap: 60px;
    position: relative;
    align-items: stretch; /* crucial so the center track matches right column height */
}

/* LEFT COLUMN */
.timeline-left {
    flex: 1;
    max-width: 450px;
}

.sticky-content {
    position: sticky;
    top: 150px;
}

.timeline-left .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.35;
    margin-bottom: 24px;
}

.timeline-left .description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* CENTER LINE */
.timeline-center {
    width: 20px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.line-track {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--line-gray);
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    width: 14px;
    height: 14px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.top-dot {
    top: -7px;
}

.bottom-dot {
    bottom: -7px;
}

.line-indicator {
    position: absolute;
    width: 4px;
    background-color: var(--primary-blue);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    top: 0;
    height: 0;
}

/* RIGHT COLUMN */
.timeline-right {
    flex: 1;
    padding-bottom: 40px; /* Gives the track a little extra tail below the last item */
}

.timeline-item {
    margin-bottom: 80px;
    opacity: 0.15;
    transform: translateY(20px); /* Future state by default */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.upcoming {
    opacity: 0.15;
    transform: translateY(0);
}

.timeline-item.past {
    opacity: 0.15;
    transform: translateY(-20px);
}

.timeline-item.future {
    opacity: 0.15;
    transform: translateY(20px);
}

.timeline-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.timeline-item p {
    font-size: 1rem;
    color: var(--text-light);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .timeline-container {
        display: grid;
        grid-template-columns: 20px 1fr;
        grid-template-areas: 
            "left left"
            "center right";
        gap: 0px 30px; /* No vertical gap here, use margins. Horizontal gap is 30px */
    }

    .timeline-left {
        grid-area: left;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .timeline-left .title {
        font-size: 22px;
        line-height: 32px;;
    }

    .sticky-content {
        position: static;
    }

    .timeline-center {
        grid-area: center;
        display: flex; /* Re-enable center timeline for mobile */
    }

    .timeline-right {
        grid-area: right;
        padding-left: 0;
        padding-bottom: 40px;
    }

    .timeline-item {
        margin-bottom: 35px;
    }
}
