/* ================================================
   ROADMAP PAGE STYLES
   ================================================ */

/* Smooth scroll behavior for entire page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 0; /* Remove conflicting global scroll padding */
}

/* Responsive scroll padding */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 0; /* Remove conflicting global scroll padding */
    }
}

@media (max-width: 576px) {
    html {
        scroll-padding-top: 0; /* Remove conflicting global scroll padding */
    }
}

/* Ensure smooth scrolling works on all browsers */
* {
    scroll-behavior: smooth;
}

/* Disable smooth scrolling on devices that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html, * {
        scroll-behavior: auto;
    }
}

/* Hero Section */
.roadmap-hero {
    position: relative;
    height: 507px;
    max-height: 507px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.roadmap-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.00) 72.76%, rgba(0, 0, 0, 0.37) 100%), 
                linear-gradient(180deg, rgba(0, 0, 0, 0.00) 62.13%, rgba(0, 0, 0, 0.40) 100%), 
                linear-gradient(0deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.34) 100%), 
                url('../images/about_sec1_bg.png') lightgray 50% / cover no-repeat;
    z-index: 1;
}

.roadmap-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.roadmap-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.roadmap-hero h1 {
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #F6C945;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.roadmap-hero p {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

/* Roadmap Container */
.roadmap-container {
    position: relative;
    background: white;
}

/* Sticky Timeline - Right Side */
.sticky-timeline {
    position: fixed;
    right: 30px;
    top: 50%;
    z-index: 1000;
    background: transparent;
    border-radius: 20px;
    padding: 15px 10px;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    /* Initially hidden but will show when JS loads */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(60px);
    /* CSS custom properties for better transform management */
    --translate-y: -50%;
    --translate-x: 60px;
    --scale: 1;
}

/* Fallback: Show timeline if no JS class is detected */
.no-js .sticky-timeline {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Emergency fallback: Timeline shows if JS doesn't work within 3 seconds */
.sticky-timeline:not(.show):not(.js-controlled) {
    animation: emergencyShow 0.5s ease 3s forwards;
}

@keyframes emergencyShow {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) translateX(60px);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
}

/* Timeline visibility with enhanced animation */
.sticky-timeline.show {
    opacity: 1;
    visibility: visible;
    --translate-x: 0px;
    transform: translateY(var(--translate-y)) translateX(var(--translate-x)) scale(var(--scale));
    animation: slideInTimeline 0.6s ease-out forwards;
}

@keyframes slideInTimeline {
    0% {
        opacity: 0;
        visibility: hidden;
        --translate-x: 60px;
        --scale: 0.8;
        transform: translateY(var(--translate-y)) translateX(var(--translate-x)) scale(var(--scale));
    }
    100% {
        opacity: 1;
        visibility: visible;
        --translate-x: 0px;
        --scale: 1;
        transform: translateY(var(--translate-y)) translateX(var(--translate-x)) scale(var(--scale));
    }
}

.sticky-timeline:hover {
    --translate-x: -2px;
    transform: translateY(var(--translate-y)) translateX(var(--translate-x)) scale(var(--scale));
}

.sticky-timeline.show:hover {
    --translate-x: -2px;
    --scale: 1.02;
    transform: translateY(var(--translate-y)) translateX(var(--translate-x)) scale(var(--scale));
}

/* Timeline Container */
.timeline-container {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Timeline Connecting Line */
.timeline-line {
    width: 0.536px;
    height: calc(100% - 24px); /* Dynamic height: full container minus first dot offset */
    position: absolute;
    background: #D9D9D9;
    left: 44px; /* Position at center of dots column */
    top: 12px; /* Start from center of first dot (24px/2) */
    z-index: 1;
}

/* Timeline Years Column */
.timeline-years {
    display: flex;
    width: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
}

.timeline-year {
    display: flex;
    height: 24px;
    padding: 3px;
    justify-content: center;
    align-items: center;
    gap: 3px;
    align-self: stretch;
    color: #D9D9D9;
    text-align: center;
    font-family: "Fz Poppins", "Poppins", sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    border: none;
    background: none;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.timeline-year:hover {
    color: #F6C945;
    background: rgba(246, 201, 69, 0.1);
    transform: scale(1.05);
}

/* Hover sync effect between year and corresponding dot */
.timeline-year:hover {
    transition: all 0.3s ease;
}

.timeline-year[data-section="section-2023"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2023"],
.timeline-year[data-section="section-2022"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2022"],
.timeline-year[data-section="section-2021"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2021"],
.timeline-year[data-section="section-2020"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2020"],
.timeline-year[data-section="section-2019"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2019"],
.timeline-year[data-section="section-2018"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2018"],
.timeline-year[data-section="section-2017"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2017"],
.timeline-year[data-section="section-2016"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2016"],
.timeline-year[data-section="section-2015"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2015"],
.timeline-year[data-section="section-2014"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2014"],
.timeline-year[data-section="section-2013"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2013"],
.timeline-year[data-section="section-2012"]:hover ~ .timeline-dots .timeline-dot[data-section="section-2012"] {
    transform: scale(1.1);
    opacity: 0.8;
}

a.timeline-year.active,
.timeline-year.active {
    color: #F6C945 !important;
    background: rgba(246, 201, 69, 0.25) !important;
    transform: scale(1.1) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(246, 201, 69, 0.4) !important;
    border: 1px solid rgba(246, 201, 69, 0.6) !important;
}

/* Timeline Active States - Enhanced with smooth transitions */
[data-section].active,
.timeline-year.active,
.timeline-dot.active {
    /* This ensures active states are applied regardless of element type */
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced active state indicators */
.timeline-year.active,
.timeline-dot.active {
    position: relative;
}

/* Visual connection between active year and dot */
.timeline-container[data-active-section] .timeline-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(180deg, #F6C945 0%, #e6b83d 100%);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 0 8px rgba(246, 201, 69, 0.5);
}

.timeline-container.has-active .timeline-line::after {
    opacity: 1;
}

/* Active state glow effect for better visibility */
.timeline-year.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #F6C945, #e6b83d);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
    animation: activeGlow 2s ease-in-out infinite alternate;
}

/* Dot active glow effect */
.timeline-dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: radial-gradient(circle, rgba(246, 201, 69, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes activeGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.02); }
}

@keyframes dotPulse {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
    100% { opacity: 0.4; transform: scale(1); }
}

/* Enhanced active state sync between year and dot */
.timeline-year.active ~ .timeline-dots .timeline-dot.active,
.timeline-dot.active ~ .timeline-years .timeline-year.active {
    animation-delay: 0.1s;
}

/* Connection line animation for active items */
@keyframes connectionPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; box-shadow: 0 0 12px rgba(246, 201, 69, 0.8); }
    100% { opacity: 0.6; }
}

/* Timeline Dots Column */
.timeline-dots {
    display: flex;
    width: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
}

.timeline-dot {
    display: flex;
    padding: 3px;
    justify-content: center;
    align-items: center;
    gap: 3px;
    align-self: stretch;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
    border: none;
    background: none;
}

.timeline-dot svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.timeline-dot:hover svg circle:first-child {
    fill: #F6C945;
}

.timeline-dot:hover svg circle:last-child {
    stroke: #F6C945;
}

/* Reverse hover sync - when hovering dot, highlight corresponding year */
.timeline-dot[data-section="section-2023"]:hover,
.timeline-dot[data-section="section-2022"]:hover,
.timeline-dot[data-section="section-2021"]:hover,
.timeline-dot[data-section="section-2020"]:hover,
.timeline-dot[data-section="section-2019"]:hover,
.timeline-dot[data-section="section-2018"]:hover,
.timeline-dot[data-section="section-2017"]:hover,
.timeline-dot[data-section="section-2016"]:hover,
.timeline-dot[data-section="section-2015"]:hover,
.timeline-dot[data-section="section-2014"]:hover,
.timeline-dot[data-section="section-2013"]:hover,
.timeline-dot[data-section="section-2012"]:hover {
    transform: scale(1.15);
}

a.timeline-dot.active svg circle:first-child,
.timeline-dot.active svg circle:first-child {
    fill: #F6C945 !important;
}

a.timeline-dot.active svg circle:last-child,
.timeline-dot.active svg circle:last-child {
    stroke: #F6C945 !important;
    stroke-width: 2px !important;
}

a.timeline-dot.active,
.timeline-dot.active {
    transform: scale(1.1) !important;
}

/* Hover paired effect for timeline sync */
.timeline-year.hover-paired {
    color: #F6C945;
    background: rgba(246, 201, 69, 0.15);
    transform: scale(1.03);
    transition: all 0.2s ease;
}

.timeline-dot.hover-paired {
    transform: scale(1.08);
    transition: all 0.2s ease;
}

.timeline-dot.hover-paired svg circle:first-child {
    fill: rgba(246, 201, 69, 0.7);
}

.timeline-dot.hover-paired svg circle:last-child {
    stroke: rgba(246, 201, 69, 0.7);
    stroke-width: 1.5px;
}

/* Roadmap Sections - Optimized for Content */
.roadmap-section {
    min-height: 70vh; /* Reduced from 100vh for better navigation */
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0; /* Increased padding for better spacing */
    transition: all 0.5s ease;
    /* Remove scroll-margin-top to prevent conflicts */
}

.roadmap-section:nth-child(even) {
    background: #f8f9fa;
}

.roadmap-section:nth-child(odd) {
    background: white;
}

.roadmap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23f1f5f9" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Section Content - Optimized Layout */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 50px; /* Increased gap for better spacing */
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 400px; /* Ensure consistent content height */
}

.section-text {
    padding-right: 40px;
}

/* Vertical Year Display - Optimized */
.section-year-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #F6C945;
    font-family: "Poppins", sans-serif;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    height: 350px; /* Reduced to match section-image height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #F6C945 0%, #e6b83d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(246, 201, 69, 0.3);
}

/* Section Points List */
.section-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #64748b;
    line-height: 1.6;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.section-points li::before {
    content: '•';
    color: #F6C945;
    font-weight: 700;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.section-image {
    width: 100%;
    height: 350px; /* Slightly reduced from 400px for better proportion */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

.section-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #F6C945;
}

/* Placeholder styling for sections without images */
.section-image:not(:has(img))::before {
    content: '📷';
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    filter: grayscale(0.5);
}

.section-image:not(:has(img)) {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px dashed #cbd5e1;
}

.section-image span {
    font-family: "Poppins", sans-serif;
    text-align: center;
    line-height: 1.4;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* Section Typography */
.section-year {
    color: #F6C945;
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-year::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F6C945;
    border-radius: 1px;
}

.section-title {
    color: #362921;
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F6C945 0%, #362921 100%);
    border-radius: 2px;
}

.section-description {
    color: #64748b;
    line-height: 1.8;
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.section-highlight {
    background: linear-gradient(135deg, #F6C945 0%, #f4c430 100%);
    color: #362921;
    padding: 20px 25px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    border-left: 4px solid #362921;
    box-shadow: 0 5px 20px rgba(246, 201, 69, 0.2);
    transition: all 0.3s ease;
}

.section-highlight:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(246, 201, 69, 0.3);
}

/* Animations */
.roadmap-section.in-view .section-content {
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stats Section */
.roadmap-stats {
    background: linear-gradient(135deg, #362921 0%, #2c1e17 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.roadmap-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23F6C945" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.stat-item {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    padding: 30px;
    background: rgba(246, 201, 69, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(246, 201, 69, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(246, 201, 69, 0.15);
    box-shadow: 0 10px 30px rgba(246, 201, 69, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    color: #F6C945;
    font-family: "Poppins", sans-serif;
    text-shadow: 0 0 20px rgba(246, 201, 69, 0.5);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 992px) {
    .roadmap-hero h1 {
        font-size: 2rem;
    }
    
    .roadmap-hero p {
        font-size: 1rem;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 30px;
    }
    
    .section-text {
        padding-right: 0;
        order: 2;
    }
    
    .section-year-vertical {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 3rem;
        height: auto;
        order: 1;
        text-align: center;
        padding: 20px 0;
    }
    
    .section-image {
        height: 300px;
        order: 1;
    }
    
    .section-image img {
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sticky-timeline {
        right: 20px;
        padding: 12px 8px;
    }
    
    .sticky-timeline.show {
        transform: translateY(-50%) translateX(0);
    }
    
    .timeline-years {
        width: 28px;
        gap: 30px;
    }
    
    .timeline-year {
        font-size: 9px;
        height: 20px;
        padding: 2px;
        border-radius: 5px;
    }
    
    .timeline-year:hover {
        transform: scale(1.04);
    }
    
    .timeline-year.active {
        transform: scale(1.08);
        box-shadow: 0 1px 6px rgba(246, 201, 69, 0.25);
        background: rgba(246, 201, 69, 0.18);
        border: 1px solid rgba(246, 201, 69, 0.4);
    }
    
    .timeline-dots {
        width: 20px;
        gap: 30px;
    }
    
    .timeline-dot {
        padding: 2px;
    }
    
    .timeline-dot svg {
        width: 16px;
        height: 16px;
    }
    
    .timeline-line {
        left: 36px; /* Adjust for tablet */
        height: calc(100% - 20px); /* Dynamic height for tablet: full container minus first dot offset */
        top: 10px; /* Start from center of first dot (20px/2) */
    }
}

/* Medium screens (between tablet and mobile) */
@media (max-width: 992px) and (min-width: 769px) {
    .roadmap-section {
        min-height: 65vh; /* Intermediate size for medium screens */
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .roadmap-hero {
        height: 400px;
    }
    
    .roadmap-hero h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .roadmap-hero p {
        font-size: 0.95rem;
    }
    
    .sticky-timeline {
        right: 15px;
        padding: 10px 6px;
        border-radius: 15px;
    }
    
    .sticky-timeline.show {
        transform: translateY(-50%) translateX(0);
    }
    
    .timeline-years {
        width: 24px;
        gap: 25px;
    }
    
    .timeline-year {
        font-size: 8px;
        height: 18px;
        padding: 2px;
        border-radius: 4px;
    }
    
    .timeline-year:hover {
        transform: scale(1.03);
    }
    
    a.timeline-year.active,
    .timeline-year.active {
        color: #F6C945 !important;
        transform: scale(1.06) !important;
        box-shadow: 0 1px 4px rgba(246, 201, 69, 0.4) !important;
        background: rgba(246, 201, 69, 0.25) !important;
        border: 1px solid rgba(246, 201, 69, 0.6) !important;
        font-weight: 700 !important;
    }
    
    .timeline-dots {
        width: 18px;
        gap: 25px;
    }
    
    .timeline-dot {
        padding: 2px;
    }
    
    .timeline-dot svg {
        width: 14px;
        height: 14px;
    }
    
    .timeline-line {
        left: 30px; /* Adjust for mobile */
        height: calc(100% - 18px); /* Dynamic height for mobile: full container minus first dot offset */
        top: 9px; /* Start from center of first dot (18px/2) */
    }
    
    .roadmap-section {
        padding: 60px 0; /* Optimized padding for tablet */
        min-height: 60vh; /* Reduced from 80vh for better mobile experience */
        /* Remove scroll-margin-top to prevent conflicts */
    }
    
    .section-content {
        padding: 0 20px;
        gap: 25px;
        grid-template-columns: 1fr;
    }
    
    .section-year-vertical {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 2.5rem;
        height: auto;
        order: 1;
        text-align: center;
        padding: 15px 0;
    }
    
    .section-text {
        order: 2;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 3px;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .section-image {
        height: 250px;
    }
    
    .section-image img {
        border-radius: 10px;
    }
    
    .section-highlight {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .roadmap-hero {
        height: 350px;
    }
    
    .roadmap-hero h1 {
        font-size: 1.5rem;
    }
    
    .roadmap-hero p {
        font-size: 0.9rem;
    }
    
    .roadmap-section {
        padding: 40px 0; /* Optimized padding for small mobile */
        min-height: 50vh; /* Add minimum height for small screens */
        /* Remove scroll-margin-top to prevent conflicts */
    }
    
    .section-content {
        padding: 0 15px;
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .section-year-vertical {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 2rem;
        height: auto;
        order: 1;
        text-align: center;
        padding: 10px 0;
    }
    
    .section-text {
        order: 2;
    }
    
    .section-points li {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .section-image {
        height: 200px;
    }
    
    .section-image img {
        border-radius: 8px;
    }
    
    .section-image::before {
        font-size: 2rem;
    }
    
    .section-highlight {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .sticky-timeline {
        right: 10px;
        padding: 8px 5px;
        --translate-x: 30px;
        --scale: 0.8;
        transform: translateY(-50%) translateX(var(--translate-x)) scale(var(--scale));
    }
    
    .sticky-timeline.show {
        --translate-x: 0px;
        --scale: 0.8;
        transform: translateY(-50%) translateX(var(--translate-x)) scale(var(--scale));
    }

    .sticky-timeline.show:hover {
        --translate-x: -1px;
        --scale: 0.82;
        transform: translateY(-50%) translateX(var(--translate-x)) scale(var(--scale));
    }
    
    .timeline-years {
        width: 20px;
        gap: 20px;
    }
    
    .timeline-year {
        font-size: 7px;
        height: 16px;
        padding: 1px;
        border-radius: 3px;
    }
    
    .timeline-year:hover {
        transform: scale(1.02);
    }
    
    a.timeline-year.active,
    .timeline-year.active {
        color: #F6C945 !important;
        transform: scale(1.04) !important;
        box-shadow: 0 1px 3px rgba(246, 201, 69, 0.4) !important;
        background: rgba(246, 201, 69, 0.25) !important;
        border: 1px solid rgba(246, 201, 69, 0.6) !important;
        font-weight: 700 !important;
    }
    
    .timeline-dots {
        width: 16px;
        gap: 20px;
    }
    
    .timeline-dot {
        padding: 1px;
    }
    
    .timeline-dot svg {
        width: 12px;
        height: 12px;
    }
    
    .timeline-line {
        left: 26px; /* Adjust for small mobile */
        height: calc(100% - 16px); /* Dynamic height for mobile: full container minus first dot offset */
        top: 8px; /* Start from center of first dot (16px/2) */
    }
    
    .roadmap-stats {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* ================================================
   ACCESSIBILITY & PRINT
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .timeline-dot,
    .timeline-year,
    .section-image,
    .section-highlight,
    .stat-item {
        transition: none !important;
    }
    
    .timeline-year:hover,
    .timeline-dot:hover {
        transform: none !important;
    }
    
    .roadmap-section.in-view .section-content {
        animation: none;
    }
    
    .roadmap-stats::before {
        animation: none;
    }
}

@media print {
    .sticky-timeline {
        display: none;
    }
    
    .roadmap-section {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .section-content {
        grid-template-columns: 1fr;
    }
}
