/* ==========================================================================
   Roadmap Scroll Component Styles
   ========================================================================== */
.roadmap-section {
    background-color: var(--bg-dark-charcoal);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.roadmap-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 80px;
}

.roadmap-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.roadmap-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

/* Timeline Layout Engine */
.roadmap-timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

/* Background Track Bar */
.timeline-progress-line {
    position: absolute;
    top: 0;
    left: 31px; /* Perfectly aligns line center inside indicator circle space */
    width: 2px;
    height: 100%;
    background-color: rgba(110, 114, 120, 0.15); /* Subdued gray */
    z-index: 1;
}

/* Illuminated dynamic line track fill on scroll */
.timeline-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Adjusted via JS dynamically */
    background: linear-gradient(to bottom, var(--chrome-dark), var(--chrome-light));
    box-shadow: 0 0 8px rgba(245, 246, 247, 0.4);
    transition: height 0.1s linear;
}

/* Milestone Steps Layout */
.roadmap-step {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    z-index: 2;
    opacity: 0.25; /* Dim until explicitly scrolled into viewport context boundary */
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

/* Activated State via Scroll */
.roadmap-step.active-milestone {
    opacity: 1;
    transform: translateY(0);
}

/* Circular Bullet Indicator nodes */
.step-indicator {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background-color: #16181a;
    border: 2px solid rgba(110, 114, 120, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    background-color: var(--chrome-dark);
    border-radius: 50%;
    transition: all 0.4s ease;
}

/* Active Indicator Glowing State */
.roadmap-step.active-milestone .step-indicator {
    border-color: var(--chrome-light);
    box-shadow: 0 0 15px rgba(245, 246, 247, 0.2), inset 0 0 8px rgba(255,255,255,0.05);
}

.roadmap-step.active-milestone .indicator-dot {
    background-color: var(--chrome-light);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--chrome-light);
}

/* Content block text layout */
.step-content {
    padding-top: 14px;
}

.step-meta {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.step-content h3 {
    color: var(--chrome-light);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
}

/* Special styling override for Phase 1 highlight initial focus */
.roadmap-step.current-step {
    opacity: 0.6;
}

/* Responsive adjustment scaling to prevent breaking on narrow width devices */
@media (max-width: 600px) {
    .timeline-progress-line {
        left: 21px;
    }
    .step-indicator {
        width: 44px;
        height: 44px;
    }
    .roadmap-step {
        gap: 20px;
    }
    .step-content h3 {
        font-size: 1.1rem;
    }
}