/* Premium About Section Gallery */
.about-gallery {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.15),
        0 0 0 2px rgba(59, 130, 246, 0.1);
    transition: all 0.4s ease;
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration */
}

.gallery-item {
    min-width: 100%;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: transform 0.4s ease;
}

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

.gallery-description {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    flex: 1;
    border-radius: 0 0 20px 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-description h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-description p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,250,0.9));
    border: 2px solid rgba(59, 130, 246, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 6px 20px rgba(0,0,0,0.15),
        0 0 0 3px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-nav:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow:
        0 8px 25px rgba(0,0,0,0.2),
        0 0 0 4px rgba(59, 130, 246, 0.3);
}

.gallery-nav.prev {
    left: 25px;
}

.gallery-nav.next {
    right: 25px;
}

/* Enhanced Dot Indicators */
.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.dot[data-size="small"] {
    width: 8px;
    height: 8px;
}

.dot[data-size="medium"] {
    width: 10px;
    height: 10px;
}

.dot[data-size="large"] {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.5);
}

.dot.active {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-color: var(--secondary);
    box-shadow:
        0 0 15px rgba(52, 152, 219, 0.6),
        0 0 30px rgba(52, 152, 219, 0.3);
    animation: dotPulse 2s infinite;
}

.dot:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-color: var(--secondary);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(59, 130, 246, 0.6),
            0 0 30px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow:
            0 0 20px rgba(52, 152, 219, 0.8),
            0 0 40px rgba(52, 152, 219, 0.5);
    }
}

/* Rest of your existing CSS remains the same */
:root {
    --primary: #1e3a8a;      /* Professional blue */
    --secondary: #3b82f6;    /* Complementary blue */
    --accent: #0b0ff5d5;       /* Warm amber */
    --merwin: #4c1d95;       /* Dark purple complement */
    --light: #f8fafc;        /* Clean white-blue */
    --dark: #1e293b;         /* Modern dark slate */
    --success: #10b981;      /* Fresh green */
    --gold: #d97706;         /* Rich gold */
    --silver: #415879;       /* Sophisticated gray */
    --bronze: #b45309;       /* Elegant bronze */

    /* Theme variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0,0,0,0.3);
}

/* Smooth theme transitions */
.theme-transitioning * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Enhanced theme toggle button */
.theme-toggle {
    transition: all 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(15deg);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.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);
    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);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

/* 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 2.5rem;
    }
}

/* Hero Section with Video Background - Mobile First */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 100vh;
    min-height: 600px; /* Mobile-first minimum height */
    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;
}

/* Tablet and up */
@media (min-width: 768px) {
    .hero {
        min-height: 700px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        min-height: 800px;
    }
}

.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, #667eea 0%, #764ba2 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: cover;
    opacity: 1.0; /* Maximum visibility */
    filter: brightness(0.8) contrast(1.4) saturate(1.5); /* Rich, dramatic colors */
    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(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    50% {
        background:
            radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(120, 219, 226, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #764ba2 0%, #667eea 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%
    );
    backdrop-filter: blur(0.8px);
    z-index: 2;
}

.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;
    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: white;
    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;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        0 0 10px rgba(255,255,255,0.3);
    animation: pulse 2s infinite;
    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;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 25px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,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, #ff1493, #ff69b4);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

.countdown-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.countdown-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #ff91ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    text-shadow:
        0 0 15px rgba(255, 23, 68, 0.8),
        0 0 30px rgba(255, 23, 68, 0.6),
        0 0 45px rgba(255, 23, 68, 0.4);
    filter: drop-shadow(0 4px 8px rgba(255, 23, 68, 0.6));
    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;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 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(220, 53, 69, 0.5),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
    50% {
        box-shadow:
            0 0 30px rgba(220, 53, 69, 0.8),
            inset 0 1px 0 rgba(255,255,255,0.3);
    }
}

@keyframes richPulse {
    0% {
        filter:
            drop-shadow(0 4px 8px rgba(255, 23, 68, 0.6))
            drop-shadow(0 0 15px rgba(255, 23, 68, 0.8));
        transform: scale(1) translateZ(0);
    }
    100% {
        filter:
            drop-shadow(0 6px 12px rgba(255, 23, 68, 0.8))
            drop-shadow(0 0 25px rgba(255, 23, 68, 1));
        transform: scale(1.05) 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;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.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(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.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);
}

/* 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(0,0,0,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;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.card-body ul li:before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: 10px;
}

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

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

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

.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;
}

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

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

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

.prize-card {
    background-color: white;
    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);
}

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

.resource-card {
    background-color: white;
    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;
}

.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;
}

.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;
}

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

.faq-answer {
    background-color: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* 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);
    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);
}

/* Enhanced Section Icons */
.section-title h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.section-title i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    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 {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 4px 8px rgba(0,0,0,0.3))
        drop-shadow(0 0 16px rgba(52, 152, 219, 0.4));
    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(52, 152, 219, 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(52, 152, 219, 0.6));
        transform: translateZ(0) scale(1.05);
    }
}

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

.theme-icon i {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-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;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 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: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    animation: prizeBounce 2s ease-in-out infinite;
}

@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(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.award-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.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;
}

.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;
}

.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);
    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, var(--success), var(--secondary));
    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 {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

/* 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;
    }

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

    .timeline {
        padding: 1.5rem 0;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

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

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

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

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

    /* Gallery responsive improvements */
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .gallery-nav.prev {
        left: 15px;
    }

    .gallery-nav.next {
        right: 15px;
    }
}

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

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

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

    .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 gallery improvements */
    .gallery-container {
        border-radius: 15px;
    }

    .gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-dots {
        bottom: 15px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* 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 gallery */
    .gallery-item img {
        height: 250px;
    }

    .gallery-description {
        padding: 1.5rem;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .gallery-nav.prev {
        left: 8px;
    }

    .gallery-nav.next {
        right: 8px;
    }

    /* 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;
    }
}

/* 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;
    }
}

/* 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;
}

/* 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 */
* {
    /* Improve scrolling performance on mobile */
    -webkit-overflow-scrolling: touch;
}

/* Optimize layer promotion for better performance */
.hero-video,
.gallery-track,
.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;
}