html, body {
    scroll-behavior: smooth;
}
.timeline-container.compact {
    max-height: 300px;
    overflow-y: auto;
}
@media (max-width: 400px) {
    .timeline-container.compact {
        min-width: 0;
        width: 100vw;
        padding-left: 0;
        padding-right: 0;
    }
    .timeline {
        min-width: 0;
        width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .timeline-item {
        min-width: 0;
        width: 98vw;
        max-width: 99vw;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        justify-content: center;
    }
    .timeline-content.compact {
        width: 98vw;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .railway-track {
        left: 18px;
    }
}
/* Scrollable Timeline for Mobile */
@media (max-width: 900px) {
    .timeline-container.compact {
        overflow-x: auto;
        padding-bottom: 10px;
        position: relative;
        min-width: 400px;
    }
    .timeline {
        min-width: 600px;
        width: max-content;
        display: block;
    }
    .timeline-item {
        min-width: 320px;
        width: 90vw;
        max-width: 98vw;
        margin-left: 10px;
        margin-right: 10px;
    }
    .timeline-content.compact {
        width: 95%;
        min-width: 0;
    }
    .railway-track {
        left: 30px;
        transform: none;
    }
}
@media (max-width: 600px) {
    .timeline-container.compact {
        min-width: 320px;
    }
    .timeline {
        min-width: 400px;
    }
    .timeline-item {
        min-width: 260px;
        width: 96vw;
    }
}
/* Compact Timeline Modifiers */
.timeline-container.compact {
    padding: 0 0 10px 0;
    min-height: 0;
}
.timeline-content.compact {
    @media (max-width: 900px) {
        .timeline-container.compact {
            overflow-x: auto;
            padding-bottom: 10px;
            position: relative;
            min-width: 0;
            width: 100vw;
        }
        .timeline {
            display: flex;
            flex-direction: row;
            min-width: 600px;
            width: max-content;
            align-items: stretch;
            gap: 0;
        }
        .timeline-item {
            min-width: 260px;
            width: 80vw;
            max-width: 95vw;
            margin-left: 8px;
            margin-right: 8px;
            flex-shrink: 0;
            display: flex;
            justify-content: flex-start;
        }
        .timeline-content.compact {
            width: 98%;
            min-width: 0;
        }
        .railway-track {
            left: 30px;
            transform: none;
        }
    }
    @media (max-width: 600px) {
        .timeline {
            min-width: 400px;
        }
        .timeline-item {
            min-width: 210px;
            width: 92vw;
        }
    }
    @media (max-width: 400px) {
        .timeline-container.compact {
            min-width: 0;
            width: 100vw;
            padding-left: 0;
            padding-right: 0;
        }
        .timeline {
            min-width: 0;
            width: 100vw;
            display: flex;
            flex-direction: row;
            align-items: stretch;
        }
        .timeline-item {
            min-width: 170px;
            width: 98vw;
            max-width: 99vw;
            margin-left: 0;
            margin-right: 8px;
            flex-shrink: 0;
            display: flex;
            justify-content: flex-start;
        }
        .timeline-content.compact {
            width: 98vw;
            min-width: 0;
            margin-left: 0;
            margin-right: 0;
        }
        .railway-track {
            left: 18px;
        }
    }
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .timeline-horizontal {
            display: flex;
            gap: 30px;
            justify-content: flex-start;
            align-items: stretch;
            min-width: 700px;
            padding: 10px 0 20px 0;
        }

        .timeline-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 18px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.08);
            min-width: 220px;
            max-width: 260px;
            flex: 1 0 220px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 22px 18px 18px 18px;
            position: relative;
            transition: box-shadow 0.2s, transform 0.2s;
            border-top: 4px solid var(--accent, #2A2D72);
        }
        .timeline-card:hover {
            box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.10);
            transform: translateY(-6px) scale(1.03);
            border-top: 4px solid var(--primary, #84cc16);
        }
        .timeline-card-icon {
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: linear-gradient(135deg, #1e293b 60%, #84cc16 100%);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        }
        .timeline-card-date {
            font-size: 1.05rem;
            color: #2A2D72;
            font-weight: 600;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }
        .timeline-card-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: #222;
            margin-bottom: 7px;
            text-align: center;
        }
        .timeline-card-desc {
            font-size: 0.98rem;
            color: #444;
            text-align: center;
            line-height: 1.5;
        }
        @media (max-width: 900px) {
            .timeline-horizontal {
                min-width: 600px;
                gap: 18px;
            }
            .timeline-card {
                min-width: 180px;
                max-width: 210px;
                padding: 16px 10px 14px 10px;
            }
        }
        @media (max-width: 600px) {
            .timeline-horizontal-container {
                padding-left: 0;
                padding-right: 0;
            }
            .timeline-horizontal {
                min-width: 480px;
                gap: 10px;
            }
            .timeline-card {
                min-width: 150px;
                max-width: 170px;
                padding: 10px 6px 10px 6px;
                font-size: 0.92rem;
            }
            .timeline-card-title {
                font-size: 1rem;
            }
            .timeline-card-date {
                font-size: 0.95rem;
            }
        }

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Theme Toggle Button - Mobile First */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Mobile performance overrides */
@media (max-width: 768px), (pointer: coarse) {
  .theme-toggle {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}


/* Mobile-first responsive breakpoints */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .theme-toggle {
        top: 2rem;
        right: 2rem;
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 0rem;
    }

}

/* Hero Section with Video Background - Mobile First */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 65px); /* Fit viewport minus fixed header on mobile */
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--merwin) 100%);
    top:0;
    left: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Tablet and up: adjust for header height */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        height: calc(100vh - 70px);
        min-height: calc(100vh - 70px);
    }
}

/* Utility helpers added by automated fix */
.hero-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

 .logo-img {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--accent));
    display: block;
    object-fit: contain;
    border-radius: 8px;
 }

/* Utility classes used by About section and small helpers */
.flex-row { display: flex; }
.align-center { align-items: center; }
.gap-15 { gap: 15px; }

.box-accent {
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0,212,255,0.03), rgba(255,77,121,0.03));
    border: 1px solid rgba(0,0,0,0.03);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* small utility to remove underline and preserve color */
.no-underline { text-decoration: none !important; color: inherit !important; }


/* Desktop */
@media (min-width: 769px) {
    .hero {
        height: calc(100vh - 80px);
        min-height: calc(100vh - 80px);
    }
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #84cc16 100%);
}

/* Debug: Add subtle border to video container */
.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 10;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full video without cropping */
    object-position: center center;
    opacity: 1.0; /* Maximum visibility */
    filter: brightness(0.85) contrast(1.25) saturate(1.3);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Fallback background for when video fails to load */
.hero-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(76, 29, 149, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--secondary) 0%, var(--merwin) 100%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background:
            radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(132, 204, 22, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #8b5cf6 0%, #84cc16 100%);
    }
    50% {
        background:
            radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(132, 204, 22, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #84cc16 0%, #8b5cf6 100%);
    }
}

/* Show play button only when video is not playing */
.hero-video:not([src]):not([src=""]) ~ .video-play-btn,
.hero-video[readyState="0"] ~ .video-play-btn {
    opacity: 1;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.25) 0%,
        rgba(52, 73, 94, 0.15) 50%,
        rgba(44, 62, 80, 0.35) 100%
    );
    /* Remove blur to keep background video sharp */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    z-index: 2;
    pointer-events: none; /* Allow interactions with buttons/content above the video */
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 5;
    opacity: 0.8;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-play-btn i {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.2rem;
}

.video-play-btn span {
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Hide play button when video is playing */
.hero-video-container.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Video error state styling */
.hero-video-container.video-error .hero-video {
    display: none;
}

.hero-video-container.video-error::before {
    opacity: 1;
    z-index: 1;
}

/* Enhanced video play button */
.video-play-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.9);
    animation: pulse 2s infinite;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent);
    animation: none;
}

/* Video styling */
.hero-video {
    transform: translateZ(0); /* Hardware acceleration */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: rgb(245, 5, 5);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 0;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Enhanced Countdown Timer */
.countdown {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 2rem 0;
    letter-spacing: 1px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.countdown-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(248, 250, 252, 0.15));
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    min-width: 100px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 16px 16px 0 0;
}

.countdown-item:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(59, 130, 246, 0.5);
}

.countdown-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    display: block;
    line-height: 1;
    position: relative;
    animation: richPulse 2s ease-in-out infinite alternate;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
}

/* Countdown ended state */
.countdown-ended {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem !important;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: countdownEndedPulse 2s infinite;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow:
        0 0 20px rgba(220, 53, 69, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

@keyframes countdownEndedPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(168, 160, 160, 0.5),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
    50% {
        box-shadow:
            0 0 30px rgba(155, 130, 132, 0.8),
            inset 0 1px 0 rgba(167, 163, 163, 0.3);
    }
}

@keyframes richPulse {
    0% {
        transform: scale(1) translateZ(0);
    }
    100% {
        transform: scale(1.02) translateZ(0);
    }
}

/* Countdown error state */
.countdown-error {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem !important;
    color: #212529;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    border: 2px solid rgba(0,0,0,0.1);
}

/* Section Styles - Mobile First */
section {
    padding: 3rem 0;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Responsive section padding */
@media (min-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 5rem 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Responsive section title margin */
@media (min-width: 768px) {
    .section-title {
        margin-bottom: 3rem;
    }
}

.section-title h2 {
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
    font-size: 2.2rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 2px;
}

.section-title i {
    margin-right: 10px;
    color: var(--secondary);
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .about-content {
        flex-direction: row;
        align-items: stretch;
        gap: 3rem;
        justify-content: center;
        min-height: 500px;
    }

    .about-text {
        flex: 1;
        max-width: 40%;
        margin: 0;
        padding: 2rem;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .about-gallery {
        flex: 1;
        max-width: 55%;
        margin: 0;
        padding: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }
}

/* Desktop layout: text left, gallery right */
@media (min-width: 1024px) {
    .about-content {
        flex-direction: row;
        align-items: stretch;
        gap: 4rem;
        justify-content: center;
        min-height: 600px;
    }

    .about-text {
        flex: 1;
        max-width: 45%;
        margin: 0;
        padding: 2rem;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .about-gallery {
        flex: 1;
        max-width: 50%;
        margin: 0;
        padding: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }
}

.about-text {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 3rem 2rem;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow:
        0 8px 25px rgba(0,0,0,0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    position: relative;
    text-align: justify;
    align-self: flex-start;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.about-text p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Desktop text styling for side-by-side layout */
@media (min-width: 1024px) {
    .about-text {
        padding: 2rem;
        text-align: justify;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .about-text p {
        text-align: justify;
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .about-text p:last-child {
        text-align: center;
        margin-top: auto;
        margin-bottom: 0;
    }
}

.about-image:hover {
    transform: scale(1.03);
}

/* Premium Timeline Section with Enhanced Styling */
.timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}


.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.timeline-item {
    position: relative;
}

.timeline-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.1),
        0 0 0 2px rgba(52, 152, 219, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 16px 16px 0 0;
}

.timeline-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.15),
        0 0 0 3px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Phase-specific color schemes */
.phase-registration {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
}

.phase-registration::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.phase-orientation {
    border-left: 5px solid #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
}

.phase-orientation::before {
    background: linear-gradient(90deg, #17a2b8, #6f42c1);
}

.phase-workshop {
    border-left: 5px solid #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffcf0 100%);
}

.phase-workshop::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.phase-submission {
    border-left: 5px solid #fd7e14;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
}

.phase-submission::before {
    background: linear-gradient(90deg, #fd7e14, #dc3545);
}

.phase-showcase {
    border-left: 5px solid #e83e8c;
    background: linear-gradient(135deg, #ffffff 0%, #fef0f5 100%);
}

.phase-showcase::before {
    background: linear-gradient(90deg, #e83e8c, #6f42c1);
}

.phase-prize {
    border-left: 5px solid #ffd700;
    background: linear-gradient(135deg, #ffffff 0%, #fffef0 100%);
}

.phase-prize::before {
    background: linear-gradient(90deg, #ffd700, #ffc107);
}

.timeline-date {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-content p {
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Enhanced SVG Icons */
.timeline-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Phase-specific hover effects */
.phase-registration:hover {
    border-left-color: #28a745;
}

.phase-orientation:hover {
    border-left-color: #17a2b8;
}

.phase-workshop:hover {
    border-left-color: #ffc107;
}

.phase-submission:hover {
    border-left-color: #fd7e14;
}

.phase-showcase:hover {
    border-left-color: #e83e8c;
}

.phase-prize:hover {
    border-left-color: #ffd700;
}

/* Cards - Mobile First with Theme Support */
.card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

/* Responsive card styling */
@media (min-width: 768px) {
    .card {
        border-radius: 15px;
        box-shadow: 0 6px 20px var(--shadow-color);
    }
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-body {
    padding: 1.5rem;
}

.card-body ul {
    list-style-type: none;
}

.card-body ul li {
    padding: 0.5rem 0 0.5rem 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    position: relative;
}

.card-body ul li:before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: 15px;
    display: inline-block;
    min-width: 20px;
}

.card-body ul li:last-child {
    border-bottom: none;
}

/* Project Status */
.project-status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Themes Section */
.themes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.theme-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.1),
        0 0 0 2px rgba(52, 152, 219, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.theme-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.15),
        0 0 0 3px rgba(59, 130, 246, 0.3);
}

.theme-card-header {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.theme-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(237, 137, 54, 0.15) 0%, transparent 50%);
}

.theme-card-header h4 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.theme-card-body {
    padding: 1.8rem;
    position: relative;
}

.theme-card-body h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-left: 5px solid var(--secondary);
    padding-left: 12px;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.08), rgba(237, 137, 54, 0.05));
    padding: 0.5rem 0 0.5rem 12px;
    border-radius: 0 8px 8px 0;
}

.theme-card-body p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Marking Section */
.marking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.marking-table th, .marking-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.marking-table th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.marking-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.marking-table tr:hover {
    background-color: #f1f1f1;
}

/* Mobile table responsive fixes */
@media (max-width: 798px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Grid container fixes for small screens */
    .themes-container,
    .project-status-cards,
    .prizes-container,
    .resources-grid,
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Individual card fixes */
    .theme-card,
    .prize-card,
    .resource-card,
    .award-item,
    .card {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    /* Prize modal responsive */
    .prize-modal {
        width: 95vw;
        max-height: 90vh;
        margin: 0 auto;
    }
    
    .prize-modal-body {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .marking-table {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .marking-table th,
    .marking-table td {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .marking-table th:first-child,
    .marking-table td:first-child {
        min-width: 140px;
    }
    
    /* Additional mobile optimizations */
    .hero {
        min-height: calc(100vh - 70px);
        height: calc(100vh - 70px);
    }
    
    .hero h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .marking-table th,
    .marking-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .marking-table th:first-child,
    .marking-table td:first-child {
        min-width: 120px;
    }
}

/* Extra small screens - ensure no overflow */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    /* Force single column for all grid containers */
    .themes-container,
    .project-status-cards,
    .prizes-container,
    .resources-grid,
    .awards-grid,
    .timeline {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 0 0.25rem !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    /* Ensure all cards fit properly */
    .theme-card,
    .prize-card,
    .resource-card,
    .award-item,
    .card,
    .timeline-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    /* Adjust card padding for very small screens */
    .theme-card-body,
    .prize-card,
    .resource-card,
    .card-body {
        padding: 1rem 0.75rem !important;
    }
    
    /* Fix hero section for very small screens */
    .hero h2 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    /* Prize modal adjustments */
    .prize-modal {
        width: 98vw !important;
        max-height: 95vh !important;
        margin: 0 !important;
    }
    
    .prize-modal-tabs {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .prize-tab {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Prizes Section */
.prizes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.prize-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    padding: 2.5rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.prize-card.gold::before {
    background: linear-gradient(to right, var(--accent), #f6ad55);
}

.prize-card.silver::before {
    background: linear-gradient(to right, var(--silver), #cbd5e0);
}

.prize-card.bronze::before {
    background: linear-gradient(to right, #dd6b20, var(--accent));
}

.prize-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.gold .prize-icon {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(237, 137, 54, 0.5);
}

.silver .prize-icon {
    color: var(--secondary);
    text-shadow: 0 0 12px rgba(49, 130, 206, 0.4);
}

.bronze .prize-icon {
    color: #dd6b20;
    text-shadow: 0 0 12px rgba(221, 107, 32, 0.4);
}

.prize-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.prize-card .prize-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin: 1.5rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Prize Modal (Multi-category) */
.prize-overview {
    text-align: center;
    margin: 1rem 0 2rem;
}

/* Prize section overview card layout */
.prize-overview .card {
    max-width: 720px;
    margin: 0.75rem auto 1rem;
    text-align: left;
}
.prize-overview .card-header h3 {
    margin: 0;
}
.prize-overview .card-body ul {
    margin: 0;
}

.prize-modal-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 8px 20px rgba(59,130,246,0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prize-modal-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59,130,246,0.35);
}

/* Eye-catch 3D icons in Prizes section */
.prize-eye-catch {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1rem;
}

.eye-catch-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.eye-catch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.eye-catch-label {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Black background for eye-catch icons container within prizes section */
.prize-eye-catch .eye-catch-icons {
    background: #000;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

/* Ensure labels remain readable on black background */
.prize-eye-catch .eye-catch-label {
    color: #fff;
}

/* Reuse colorful orb backgrounds for standalone icons */
.icon-gold { background: radial-gradient(circle at 30% 30%, #fff 0%, #fff7e6 35%, #fde68a 60%, #f59e0b 100%) !important; }
.icon-silver { background: radial-gradient(circle at 30% 30%, #fff 0%, #eef2f7 35%, #d1d5db 60%, #9ca3af 100%) !important; }
.icon-bronze { background: radial-gradient(circle at 30% 30%, #fff 0%, #ffe8d9 35%, #f7b692 60%, #d97706 100%) !important; }

/* Size tuning for eye-catch icons */
.prize-eye-catch .prize-3d-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

@media (max-width: 420px) {
    .prize-eye-catch .prize-3d-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    .eye-catch-label { font-size: 0.85rem; }
}

@media (min-width: 769px) {
    .prize-eye-catch .prize-3d-icon {
        width: 72px;
        height: 72px;
        font-size: 1.7rem;
    }
}

.prize-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.prize-modal-overlay.show {
    display: flex;
}

.prize-modal {
    width: min(1000px, 92vw);
    max-height: 85vh;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e0 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 10000; /* keep modal content above overlay backdrop */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.prize-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.prize-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.prize-modal-close {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.prize-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.prize-modal-tabs {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e0 100%);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.prize-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #475569;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prize-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
}

.prize-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.prize-modal-body {
    padding: 1rem 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.prize-category-panel { display: none; }
.prize-category-panel.active { display: block; }

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Resources showcase for the specific HTML structure */
.resources-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.resource-card.elegant {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-sizing: border-box;
    width: 100%;
}

.resource-card.elegant:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.resource-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resource-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.resource-action i {
    transition: transform 0.3s ease;
}

.resource-card.elegant:hover .resource-action i {
    transform: translateX(5px);
}

.resource-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    padding: 2.5rem 1.5rem;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.resource-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.resource-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.faq-question {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.faq-answer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

/* Mobile FAQ fixes */
@media (max-width: 768px) {
    .faq-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .faq-question {
        padding: 1.2rem;
        font-size: 0.95rem;
    }

    .faq-answer.active {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .faq-container {
        padding: 0 0.5rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer.active {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Contact Section - Enhanced */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 0 8px 8px 0;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.contact-icon {
    font-size: 1.8rem;
    color: white;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.contact-details h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-details p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 20px 20px 0 0;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 4px 12px rgba(59, 130, 246, 0.25);
    outline: none;
    background: white;
    transform: translateY(-2px);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.form-control::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--primary);
}

/* Stats Container 2x2 Grid for screens 866px and below */
@media (max-width: 866px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Enhanced Section Icons */
.section-title h2 {
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.section-title i {
    font-size: 2.5rem;
    color: #8b5cf6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Enhanced Card Icons */
.card-icon, .theme-icon, .division-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    will-change: transform;
}

.card-icon i, .theme-icon i, .division-icon i {
    color: #8b5cf6;
    filter:
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))
        drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
    animation: iconGlow 4s ease-in-out infinite alternate;
    transform: translateZ(0); /* Hardware acceleration */
}

@keyframes iconGlow {
    0% {
        filter:
            drop-shadow(0 4px 8px rgba(0,0,0,0.3))
            drop-shadow(0 0 16px rgba(139, 92, 246, 0.4));
        transform: translateZ(0) scale(1);
    }
    100% {
        filter:
            drop-shadow(0 4px 12px rgba(0,0,0,0.4))
            drop-shadow(0 0 24px rgba(139, 92, 246, 0.6));
        transform: translateZ(0) scale(1.05);
    }
}

/* Division-specific icon colors */
.division-icon i {
    background: linear-gradient(135deg, #8b5cf6 0%, #84cc16 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-icon i {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Division Titles */
.division-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.division-title i {
    font-size: 2rem;
    color: var(--secondary);
}

/* Theme Tags */
.theme-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
    border: 1px solid rgba(237, 137, 54, 0.3);
}

/* Enhanced Prize Cards */
.prize-3d-icon {
    font-size: 2rem;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #f0f4ff 35%, #e6f0ff 60%, #dbeafe 100%);
    box-shadow:
        0 10px 20px rgba(0,0,0,0.15),
        inset 0 6px 12px rgba(255,255,255,0.6),
        inset 0 -6px 12px rgba(0,0,0,0.05);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
    animation: prizeBounce 2.2s ease-in-out infinite;
}

.prize-card.gold .prize-3d-icon {
    background: radial-gradient(circle at 30% 30%, #fff 0%, #fff7e6 35%, #fde68a 60%, #f59e0b 100%);
}
.prize-card.silver .prize-3d-icon {
    background: radial-gradient(circle at 30% 30%, #fff 0%, #eef2f7 35%, #d1d5db 60%, #9ca3af 100%);
}
.prize-card.bronze .prize-3d-icon {
    background: radial-gradient(circle at 30% 30%, #fff 0%, #ffe8d9 35%, #f7b692 60%, #d97706 100%);
}

@keyframes prizeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.prize-division {
    margin-bottom: 4rem;
}

.prize-division:last-child {
    margin-bottom: 2rem;
}

/* Special Awards Grid */
.special-awards {
    margin-top: 3rem;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.award-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.award-item p {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-top: 1rem;
    line-height: 1.4;
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Modern Contact Design - Enhanced */
.contact-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* Mobile contact layout fixes */
@media (max-width: 768px) {
    .contact-modern {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
    }
}

@media (max-width: 576px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.8rem 1.2rem;
        min-height: 160px;
    }

    .contact-icon-3d {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 20px 20px 0 0;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.15),
        0 0 0 2px rgba(59, 130, 246, 0.3);
    border-color: var(--secondary);
}

.contact-icon-3d {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow:
        0 8px 20px rgba(59, 130, 246, 0.3),
        0 0 0 2px rgba(245, 158, 11, 0.2),
        inset 0 2px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.contact-icon-3d::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon-3d {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    box-shadow:
        0 12px 30px rgba(245, 158, 11, 0.4),
        0 0 0 3px rgba(59, 130, 246, 0.3),
        inset 0 2px 0 rgba(255,255,255,0.3);
}

.contact-card:hover .contact-icon-3d::before {
    opacity: 1;
    transform: scale(1.2);
}

.contact-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Specific fix for long email addresses */
.contact-card p:first-of-type {
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.contact-form-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 24px 24px 0 0;
}

.modern-form {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.4rem 1.8rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(248, 250, 252, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.form-group label {
    position: absolute;
    left: 1.5rem;
    top: 1.4rem;
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    font-weight: 500;
    background: transparent;
    padding: 0 0.5rem;
    letter-spacing: 0.5px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 8px 20px rgba(59, 130, 246, 0.2);
    outline: none;
    background: white;
    transform: translateY(-3px);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.8rem;
    left: 1.2rem;
    font-size: 0.85rem;
    color: var(--secondary);
    background: white;
    padding: 0 0.8rem;
    border-left: 4px solid var(--accent);
    transform: translateY(2px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modern {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 1.4rem 3rem;
    border: none;
    border-radius: 60px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem auto 0;
    box-shadow:
        0 8px 20px rgba(59, 130, 246, 0.3),
        0 0 0 2px rgba(245, 158, 11, 0.2),
        inset 0 2px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 30px rgba(245, 158, 11, 0.4),
        0 0 0 3px rgba(59, 130, 246, 0.3),
        inset 0 2px 0 rgba(255,255,255,0.3);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.btn-modern i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-modern:hover i {
    transform: translateX(3px) rotate(15deg);
}

/* Section Backgrounds - Blue, White, Orange Theme */
.section-bg-blue {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.section-bg-green {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.section-bg-gold {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
}

.section-bg-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #e9d8fd 100%);
}

.section-bg-teal {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #10b981, #8b5cf6);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* 3D Card Effects - Performance Optimized */
.card, .theme-card, .prize-card, .contact-card {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 5px 15px rgba(0,0,0,0.1),
        0 20px 40px rgba(0,0,0,0.1);
    will-change: transform, box-shadow;
    transform: translateZ(0); /* Hardware acceleration */
}

.card:hover, .theme-card:hover, .prize-card:hover, .contact-card:hover {
    transform: translateY(-12px) rotateX(3deg) translateZ(0);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.15),
        0 35px 70px rgba(0,0,0,0.2);
}

/* Reduce animation intensity on mobile for better performance */
@media (max-width: 768px) {
    .card:hover, .theme-card:hover, .prize-card:hover, .contact-card:hover {
        transform: translateY(-8px) rotateX(2deg) translateZ(0);
    }

    .card-icon i, .theme-icon i, .division-icon i {
        animation: none; /* Disable continuous animations on mobile */
    }
}

/* Glassmorphism Effects */
.hero-overlay {
    /* Ensure the hero video remains crisp by disabling blur on the overlay */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), rgba(30, 41, 59, 0.4));
    pointer-events: none;
}

/* Advanced Animations */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .about-text {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 95%;
        width: 95%;
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        text-align: justify;
    }

    .about-text p:last-child {
        font-size: 1.1rem;
        margin-top: 1.5rem;
        text-align: center;
    }

    .about-gallery {
        width: 100%;
        max-width: 100%;
        margin: 0;
        align-self: flex-start;
    }

    /* Fix mobile overflow issues */
    .contact-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .award-item {
        min-height: 180px;
        padding: 1.5rem;
    }

    .award-item p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .contact-modern {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* Fix email overflow at 803px */
    .contact-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        word-break: break-all;
        overflow-wrap: break-word;
    }

    .timeline {
        padding: 1.5rem 0;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-content {
        padding: 1.2rem;
        min-height: 200px;
    }

    .themes-container,
    .prizes-container,
    .awards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .project-status-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-modern {
        padding: 2.5rem 1.5rem;
    }

    .awards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

}

/* Specific breakpoint for 803px screen size */
@media (max-width: 803px) {
    .contact-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Fix email overflow issue */
    .contact-card p {
        font-size: 0.85rem;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Ensure proper card sizing */
    .contact-card {
        padding: 1.8rem 1.2rem;
        min-height: 180px;
    }

    .contact-icon-3d {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0;
        min-height: 100vh;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* MOBILE VIDEO CLARITY FIX */
    .hero-content {
        max-width: 95% !important;
        padding: 0 1rem;
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        z-index: 1;
        max-width: 100%;
    }

    .hero-video {
        object-fit: contain; /* Ensure full video visible on mobile too */
        object-position: center center;
        filter: brightness(0.7) contrast(1.2) saturate(1.1);
        width: 100%;
        height: 100%;
        /* MOBILE GPU ACCELERATION */
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
        will-change: transform;
    }

    /* Ensure hero content is properly positioned within video */
    .hero-logo,
    .hero h2,
    .hero p,
    .countdown {
        position: relative;
        z-index: 4;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .countdown-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 1rem 0.8rem;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }


    /* Mobile form improvements */
    .contact-form-modern {
        padding: 2rem 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    .hero {
        padding: 4rem 0;
        min-height: 100vh;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .card, .theme-card, .prize-card, .resource-card {
        padding: 1.5rem 1rem;
    }

    .contact-form-modern {
        padding: 1.5rem 1rem;
    }

    /* Mobile-first countdown */
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem 0.5rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }


    /* Mobile theme toggle */
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Mobile stats */
    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Mobile contact cards */
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-icon-3d {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Extra small mobile devices */
    @media (max-width: 480px) {

        /* Extra small screen about text */
        .about-text {
            padding: 1.2rem;
            margin: 0 auto;
            max-width: 98%;
            width: 98%;
            text-align: center;
        }
    
        .about-text p {
            font-size: 0.95rem;
            margin-bottom: 1rem;
            text-align: justify;
        }
    
        .about-text p:last-child {
            font-size: 1rem;
            margin-top: 1.2rem;
            text-align: center;
        }
    
        .about-gallery {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
        }

        /* Extra small screen overflow fixes */
        .contact-card p {
            font-size: 0.85rem;
            line-height: 1.3;
        }

        .award-item {
            min-height: 160px;
            padding: 1.2rem;
        }

        .award-item p {
            font-size: 0.85rem;
            line-height: 1.2;
            margin-top: 0.8rem;
        }

        /* Mobile video fixes for extra small screens */
        .hero-video-container {
            height: 100vh;
            min-height: 100vh;
        }

        .hero-video {
            object-fit: contain; /* Avoid cropping on extra small screens */
            object-position: center center;
        }

        .hero-content {
            padding: 1rem 0.5rem;
            max-width: 98% !important;
        }
    }
}

/* Ensure hero fully fits viewport on extra-small screens (<481px) */
@media (max-width: 480px) {
    .hero {
        height: calc(100vh - 65px);
        min-height: calc(100vh - 65px);
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-video-container {
        height: 100%;
        min-height: 100%;
    }

    .hero-video {
        object-fit: contain;
        object-position: center center;
    }
}

/* Performance Optimizations and Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Global dark theme readability helpers === */
:root[data-theme='dark'] body { color: #e5e7eb; }
:root[data-theme='dark'] h1,
:root[data-theme='dark'] h2,
:root[data-theme='dark'] h3,
:root[data-theme='dark'] h4,
:root[data-theme='dark'] h5,
:root[data-theme='dark'] h6 { color: #e5e7eb; }

/* Ensure card-like components with dark backgrounds have light text */
:root[data-theme='dark'] .card,
:root[data-theme='dark'] .theme-card,
:root[data-theme='dark'] .prize-card,
:root[data-theme='dark'] .contact-card,
:root[data-theme='dark'] .resource-card,
:root[data-theme='dark'] .countdown-item,
:root[data-theme='dark'] .stat-card { color: #e5e7eb; }

/* Common headings inside cards */
:root[data-theme='dark'] .card h3,
:root[data-theme='dark'] .theme-card h3,
:root[data-theme='dark'] .contact-card h4,
:root[data-theme='dark'] .prize-card h4,
:root[data-theme='dark'] .prize-amount { color: #e5e7eb; }

/* Additional responsive fixes for consistency */
@media (max-width: 320px) {
    .container {
        width: 98%;
        padding: 0 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    section {
        padding: 2rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    /* Extra small mobile video */
    .hero-video-container {
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        max-width: 100% !important;
        padding: 0.5rem;
    }

    /* Extra small mobile contact */
    .contact-card {
        padding: 1.5rem 1rem;
        min-height: 150px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-icon-3d {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-card h4 {
        font-size: 1.1rem;
    }

    .contact-card p {
        font-size: 0.8rem;
    }

    /* Prevent FAQ overflow on extra small screens */
    .faq-container {
        padding: 0 0.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .faq-question,
    .faq-answer.active {
        padding: 0.8rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Cross-browser compatibility fixes */
@supports not (backdrop-filter: blur(10px)) {
    .theme-toggle,
    .gallery-nav,
    .countdown-item {
        background: rgba(255, 255, 255, 0.9);
    }

    [data-theme="dark"] .theme-toggle,
    [data-theme="dark"] .gallery-nav,
    [data-theme="dark"] .countdown-item {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Fallback for older browsers without CSS custom properties */
@supports not (--bg-primary: #fff) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f8fafc;
        --text-primary: #1e293b;
        --text-secondary: #64748b;
        --border-color: #e2e8f0;
        --shadow-color: rgba(0,0,0,0.1);
        --primary: #1e3a8a;
        --secondary: #3b82f6;
        --accent: #f59e0b;
        --success: #10b981;
    }
}

/* GPU Acceleration for better performance */
.hero-video,
.gallery-track,
.card,
.theme-card,
.prize-card,
.contact-card,
.countdown-item {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* About Powered block: full-width and consistent margin across screens */
.about-powered-block.section-card {
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    margin-bottom: 5px;
}

@media (min-width: 320px) {
    .about-powered-block.section-card {
        margin-bottom: 5px;
    }
}

/* Fix for 992px to 1416px viewport range - ensure proper fit within parent */
@media (min-width: 992px) and (max-width: 1416px) {
    .about-powered-block.section-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 8px;
        padding: 0.75rem;
        font-size: 0.9rem;
        overflow: hidden;
    }
    
    .about-powered-block a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        text-decoration: none !important;
        color: inherit !important;
        overflow: hidden;
    }
    
    .about-powered-block .partner-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .about-powered-block.section-card .partner-title {
        font-size: 0.95rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .about-powered-block.section-card .partner-description {
        font-size: 0.8rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin: 0.5rem 0 0 0;
        text-align: center;
    }
    
    .about-powered-block.section-card .logo-img {
        height: 35px;
        max-width: 100% !important;
        width: auto !important;
        object-fit: contain;
    }
}

/* Fix overflow issues for about-powered-block at 991px and above */
@media (min-width: 991px) {
    .about-powered-block {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
        display: block;
    }
    
    .about-powered-block.section-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 8px !important;
        box-sizing: border-box;
        overflow: hidden;
        /* Prevent transform and scale that could cause overflow */
        transform: none !important;
        scale: none !important;
        position: relative;
    }
    
    /* Ensure child elements don't cause overflow */
    .about-powered-block .flex-row,
    .about-powered-block .flex-column {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .about-powered-block .partner-content {
        overflow: hidden;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    /* Responsive content for large screens */
        .about-powered-block .partner-title {
            font-size: 0.95rem !important;
            line-height: 1.3 !important;
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
            max-width: 100%;
            margin: 0;
            padding: 0;
        }
        
        .about-powered-block .partner-description {
            font-size: 0.8rem !important;
            line-height: 1.4 !important;
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
            max-width: 100%;
            margin: 0.5rem 0 0 0;
            padding: 0;
        }
        
        .about-powered-block .logo-img {
            height: 35px !important;
            max-width: 100% !important;
            width: auto !important;
            object-fit: contain;
        }
        
        /* Ensure flex container doesn't overflow */
        .about-powered-block a {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            width: 100% !important;
            max-width: 100% !important;
            padding: 0.75rem !important;
            box-sizing: border-box;
            text-decoration: none !important;
            color: inherit !important;
            overflow: hidden;
        }
    }
    
    /* Additional responsive scaling for very large screens */
    @media (min-width: 1200px) {
        .about-powered-block.section-card {
            padding: 0.6rem !important;
            margin-bottom: 6px !important;
        }
        
        .about-powered-block .partner-title {
            font-size: 0.9rem !important;
            line-height: 1.2 !important;
        }
        
        .about-powered-block .partner-description {
            font-size: 0.75rem !important;
            line-height: 1.3 !important;
        }
        
        .about-powered-block .logo-img {
            height: 32px !important;
        }
    }
    
    @media (min-width: 1400px) {
        .about-powered-block.section-card {
            padding: 0.5rem !important;
            margin-bottom: 5px !important;
        }
        
        .about-powered-block .partner-title {
            font-size: 0.85rem !important;
            line-height: 1.2 !important;
        }
        
        .about-powered-block .partner-description {
            font-size: 0.7rem !important;
            line-height: 1.2 !important;
        }
        
        .about-powered-block .logo-img {
            height: 30px !important;
        }
    }


/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* CSS Performance Optimizations */
/* Reduce specificity and improve selector efficiency */
.theme-toggle,
.gallery-nav,
.countdown-item,
.card,
.theme-card,
.prize-card,
.contact-card {
    /* Use transform3d for hardware acceleration */
    transform: translateZ(0);
}

/* Batch similar properties to reduce repaints */
.hero-content,
.section-title,
.card-header,
.contact-card h4 {
    /* Optimize text rendering */
    text-rendering: optimizeSpeed;
    transform: translateZ(0);
}

/* Optimize animations by reducing complexity */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Optimize hover states by reducing property changes */
.btn:hover,
.card:hover,
.theme-card:hover,
.prize-card:hover,
.contact-card:hover {
    /* Use transform3d instead of multiple transforms */
    transform: translate3d(0, -5px, 0);
}

/* Final performance optimizations */

/* Optimize layer promotion for better performance */
.hero-video,
.countdown-item,
.card,
.theme-card,
.prize-card,
.contact-card,
.contact-icon-3d {
    /* Promote to new layer for better performance */
    will-change: transform;
    contain: layout style paint;
}

/* ===== SHARED UTILITY CLASSES ===== */

/* Common Transitions */
.transition-base {
    transition: var(--transition);
}

.transition-fast {
    transition: var(--transition-fast);
}

.transition-slow {
    transition: var(--transition-slow);
}

/* Common Border Radius */
.radius-sm { border-radius: var(--border-radius-sm); }
.radius-md { border-radius: var(--border-radius-md); }
.radius-lg { border-radius: var(--border-radius-lg); }
.radius-xl { border-radius: var(--border-radius-xl); }
.radius-full { border-radius: var(--border-radius-full); }

/* Common Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Common Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-center-gap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Logo and Text Utilities */
.logo-small {
    height: 35px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.text-company {
    color: var(--accent);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.text-description {
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    color: #f0f0f0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    opacity: 0.95;
}

.text-highlight {
    color: var(--secondary);
    font-weight: 600;
}

.text-accent {
    color: var(--accent);
    font-weight: 500;
}

.text-warning {
    color: var(--warning);
    font-weight: 500;
}

/* Hover and Animation Utilities */
.hover-scale {
    display: inline-block;
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Common Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

/* Common Spacing */
.m-0 { margin: 0; }
.p-0 { padding: 0; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Common Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Common Position Utilities */
.pos-relative { position: relative; }
.pos-absolute { position: absolute; }
.pos-fixed { position: fixed; }
.pos-static { position: static; }

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: var(--transition);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Utilities */
.show-mobile { display: none; }
.show-desktop { display: block; }

@media (max-width: 768px) {
    .show-mobile { display: block; }
    .show-desktop { display: none; }
    .hide-mobile { display: none; }
}

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}

/* Mobile Timeline Gap Fixes: reduce side padding and inter-card gaps */
@media (max-width: 900px) {
  /* Remove left/right padding and margins creating side gaps */
  #timeline .timeline-container { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  #timeline .timeline { padding-left: 0 !important; padding-right: 0 !important; }
  /* Ensure items don’t add extra side margins */
  #timeline .timeline-item { margin-left: 0 !important; margin-right: 0 !important; }
  /* If horizontal cards are used, tighten spacing */
  .timeline-horizontal { gap: 12px; padding-left: 0; padding-right: 0; }
}
@media (max-width: 576px) {
  .timeline-horizontal { gap: 8px; }
}

/* ============================================
   RAILWAY-THEMED TIMELINE STYLES - SIMPLIFIED
   ============================================ */

.timeline-container {
    position: relative;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.5);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Railway Track - Simplified */
.railway-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.track-line {
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #8B4513, #A0522D);
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.track-ties {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.tie {
    width: 24px;
    height: 6px;
    background: #654321;
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Timeline Items Container */
.timeline {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    min-height: 100px;
}

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

/* Content Cards */
.timeline-content {
    position: relative;
    width: 40%;
    max-width: 400px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Left and Right Positioning - Simplified */
.timeline-content.left {
    margin-right: auto;
}

/* Mobile performance overrides: reduce blur/shadows on common components */
@media (max-width: 768px), (pointer: coarse) {
  .countdown-item,
  .form-control,
  .form-group input,
  .form-group textarea,
  .award-item,
  .timeline-content {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .countdown-item,
  .timeline-content {
    box-shadow: none !important;
  }
}

.timeline-content.right {
    margin-left: auto;
}

/* Connector Lines - Simplified */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #84cc16);
    z-index: -1;
}

.timeline-content.left::before {
    right: -40px;
}

.timeline-content.right::before {
    left: -40px;
}

/* Icons - Simplified */
.timeline-icon-3d {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 15px rgba(0, 0, 0, 0.3),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.3);
    z-index: 3;
    font-size: 24px;
    transition: all 0.3s ease;
}

.timeline-content:hover .timeline-icon-3d {
    transform: translateY(-50%) scale(1.1);
    box-shadow:
        0 12px 20px rgba(139, 92, 246, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.4);
}

.timeline-content.left .timeline-icon-3d {
    right: -80px;
    background: linear-gradient(135deg, #8b5cf6, #1e293b);
    color: white;
}

.timeline-content.right .timeline-icon-3d {
    left: -80px;
    background: linear-gradient(135deg, #84cc16, #f59e0b);
    color: white;
}

/* Timeline Date */
.timeline-date {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.1rem;
}

.timeline-date i {
    margin-right: 10px;
    color: var(--secondary);
}

/* Timeline Headings */
.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.timeline-content h3 i {
    margin-right: 10px;
    color: var(--secondary);
}

.timeline-content p {
    line-height: 1.6;
    color: #555;
}

/* Phase-specific colors */
.phase-registration {
    border-top: 5px solid var(--success);
    background: linear-gradient(to bottom right, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.95));
}

.phase-workshop {
    border-top: 5px solid #8b5cf6;
    background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.95));
}

.phase-orientation {
    border-top: 5px solid #84cc16;
    background: linear-gradient(to bottom right, rgba(132, 204, 22, 0.1), rgba(255, 255, 255, 0.95));
}

.phase-submission {
    border-top: 5px solid #9C27B0;
    background: linear-gradient(to bottom right, rgba(156, 39, 176, 0.1), rgba(255, 255, 255, 0.95));
}

.phase-showcase {
    border-top: 5px solid #F44336;
    background: linear-gradient(to bottom right, rgba(244, 67, 54, 0.1), rgba(255, 255, 255, 0.95));
}

.phase-prize {
    border-top: 5px solid #f59e0b;
    background: linear-gradient(to bottom right, rgba(245, 158, 11, 0.1), rgba(255, 255, 255, 0.95));
}

/* Decorative Elements - Simplified */
.decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 20s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 75%;
    left: 85%;
    animation-delay: 3s;
}

.bubble:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 45%;
    left: 92%;
    animation-delay: 6s;
}

.bubble:nth-child(4) {
    width: 70px;
    height: 70px;
    top: 85%;
    left: 12%;
    animation-delay: 9s;
}

.bubble:nth-child(5) {
    width: 50px;
    height: 50px;
    top: 25%;
    left: 75%;
    animation-delay: 12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-15px) rotate(120deg) scale(1.1);
        opacity: 0.1;
    }
    66% {
        transform: translateY(5px) rotate(240deg) scale(0.9);
        opacity: 0.2;
    }
}

/* Timeline Section Styling */
#timeline {
    position: relative;
    margin: 2rem 0;
}

#timeline .container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure proper spacing with adjacent sections */
#timeline + section {
    margin-top: 1rem;
}

/* Additional positioning fixes */
.timeline-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-container .railway-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-container .timeline {
    position: relative;
    width: 100%;
    max-width: 1000px;
}

/* Timeline Responsive Design - Simplified */
@media (max-width: 992px) {
    .timeline-container {
        padding: 30px 0 50px 0;
        max-width: 900px;
    }

    .railway-track {
        width: 10px;
    }

    .track-line {
        width: 4px;
    }

    .tie {
        width: 20px;
        height: 4px;
    }

    .timeline {
        padding: 0 15px;
    }

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

    .timeline-content {
        width: 42%;
        padding: 20px;
    }

    .timeline-icon-3d {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .timeline-content.left .timeline-icon-3d {
        right: -70px;
    }

    .timeline-content.right .timeline-icon-3d {
        left: -70px;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        padding: 25px 0 40px 0;
        max-width: 700px;
        margin: 1rem auto;
    }

    .railway-track {
        width: 8px;
    }

    .track-line {
        width: 3px;
    }

    .tie {
        width: 16px;
        height: 3px;
    }

    .timeline {
        padding: 0 10px;
    }

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

    .timeline-content {
        width: 45%;
        padding: 18px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-icon-3d {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .timeline-content.left .timeline-icon-3d {
        right: -60px;
    }

    .timeline-content.right .timeline-icon-3d {
        left: -60px;
    }
}

@media (max-width: 576px) {
    .timeline-container {
        padding: 20px 0 30px 0;
        margin: 0.5rem auto;
        border-radius: 15px;
    }

    .railway-track {
        width: 6px;
    }

    .track-line {
        width: 2px;
    }

    .tie {
        width: 12px;
        height: 2px;
    }

    .timeline {
        padding: 0 5px;
    }

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

    .timeline-content {
        width: 48%;
        padding: 15px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .timeline-icon-3d {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .timeline-content.left .timeline-icon-3d {
        right: -55px;
    }

    .timeline-content.right .timeline-icon-3d {
        left: -55px;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        padding: 15px 0 25px 0;
        margin: 0.25rem auto;
    }

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

    .timeline-content {
        width: 47%;
        padding: 12px;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .timeline-icon-3d {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .timeline-content.left .timeline-icon-3d {
        right: -50px;
    }

    .timeline-content.right .timeline-icon-3d {
        left: -50px;
    }
}

@media (max-width: 420px) {
    .timeline-container {
        min-height: 336px; /* 20% less than 420px baseline */
    }
}

/* Timeline Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }

/* ============================================
   PHONE AUTOFETCH STYLES
   ============================================ */

.phone-autofetch-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #059669;
    animation: fadeInUp 0.3s ease-out;
}

.phone-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #dc2626;
    opacity: 0.7;
}

.phone-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.phone-clear-btn svg {
    width: 12px;
    height: 12px;
}

/* Form group with autofetch elements */
.form-group:has(.phone-autofetch-indicator) {
    position: relative;
}

.form-group:has(.phone-clear-btn) {
    position: relative;
}

/* Animation for autofetch indicator */
@keyframes phoneAutofetchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.phone-autofetch-indicator {
    animation: phoneAutofetchSlideIn 0.3s ease-out;
}

/* Responsive adjustments for phone autofetch */
@media (max-width: 768px) {
    .phone-clear-btn {
        right: 0.8rem;
        width: 20px;
        height: 20px;
    }

    .phone-clear-btn svg {
        width: 10px;
        height: 10px;
    }

    .phone-autofetch-indicator {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}
.prize-category-panel { display: none; }
.prize-category-panel.active { display: block; }

/* Prize modal cards arranged in single row */
.prize-modal .prizes-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.prize-modal .prizes-container::-webkit-scrollbar {
    height: 8px;
}

.prize-modal .prizes-container::-webkit-scrollbar-track {
    background: transparent;
}

.prize-modal .prizes-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.prize-modal .prizes-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.prize-modal .prize-card {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 220px;
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e0 100%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow:
        0 8px 25px rgba(0,0,0,0.1),
        0 0 0 1px rgba(148, 163, 184, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.prize-modal .prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.prize-modal .prize-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.15),
        0 0 0 2px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.prize-modal .prize-3d-icon {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 20px rgba(102, 126, 234, 0.3),
        inset 0 2px 0 rgba(255,255,255,0.2);
    color: white;
    transition: all 0.3s ease;
}

.prize-modal .prize-card:hover .prize-3d-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 12px 30px rgba(102, 126, 234, 0.4),
        inset 0 2px 0 rgba(255,255,255,0.3);
}

.prize-modal .prize-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.prize-modal .prize-card .prize-amount {
    font-size: 1.4rem;
    margin: 0.6rem 0;
}

.prize-modal .prize-card p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* Responsive adjustments for single row layout */
@media (max-width: 576px) {
    .prize-modal .prizes-container {
        gap: 0.75rem;
    }
    .prize-modal .prize-card {
        min-width: 180px;
        max-width: 200px;
        padding: 0.8rem;
    }
    .prize-modal .prize-3d-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    .prize-modal .prize-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    .prize-modal .prize-card .prize-amount {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }
    .prize-modal .prize-card p {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
}

@media (min-width: 1025px) {
    .prize-modal .prize-card {
        min-width: 220px;
        max-width: 250px;
        padding: 1.25rem;
    }
    .prize-modal .prize-3d-icon {
        width: 68px;
        height: 68px;
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }
    .prize-modal .prize-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    .prize-modal .prize-card .prize-amount {
        font-size: 1.6rem;
        margin: 0.8rem 0;
    }
    .prize-modal .prize-card p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
/* Enhanced Dynamic Countdown Items - Fixed Text Visibility */
.dynamic-countdown-item {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 0 20px rgba(59, 130, 246, 0.4) !important;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* Gradient overlay for better text contrast */
.dynamic-countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    pointer-events: none;
    border-radius: 16px;
}

/* Top accent line */
.dynamic-countdown-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

/* Ensure text is always visible with high contrast */
.dynamic-countdown-item .countdown-number {
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 2.8rem !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(59, 130, 246, 0.5) !important;
    position: relative;
    z-index: 2;
    line-height: 1;
    display: block;
    animation: richPulse 2s ease-in-out infinite alternate;
}

.dynamic-countdown-item .countdown-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-top: 0.5rem !important;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    z-index: 2;
}

/* Hover effects for pause functionality */
.dynamic-countdown-item:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 12px 35px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 0 30px rgba(59, 130, 246, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Pause state styling */
.dynamic-countdown-item.paused {
    animation-play-state: paused;
    opacity: 0.8;
}

.dynamic-countdown-item.paused::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
}

/* Content area pause styling */
.content-area-pause {
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-area-pause:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-radius: 8px;
    transform: scale(1.02);
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
    .dynamic-countdown-item {
        min-width: 100px !important;
        padding: 1.2rem 1rem !important;
        border-radius: 12px !important;
    }
    
    .dynamic-countdown-item .countdown-number {
        font-size: 2.2rem !important;
    }
    
    .dynamic-countdown-item .countdown-label {
        font-size: 0.8rem !important;
    }
    
    .dynamic-countdown-item:hover {
        transform: translateY(-2px) scale(1.03) !important;
    }
}

@media (max-width: 576px) {
    .dynamic-countdown-item {
        min-width: 85px !important;
        padding: 1rem 0.8rem !important;
    }
    
    .dynamic-countdown-item .countdown-number {
        font-size: 1.9rem !important;
    }
    
    .dynamic-countdown-item .countdown-label {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dynamic-countdown-item {
        background: #000000 !important;
        border: 3px solid #ffffff !important;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
    }
    
    .dynamic-countdown-item .countdown-number,
    .dynamic-countdown-item .countdown-label {
        color: #ffffff !important;
        text-shadow: none !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dynamic-countdown-item .countdown-number {
        animation: none !important;
    }
    
    .dynamic-countdown-item:hover {
        transform: translateY(-2px) !important;
    }
}
}
