/* Premium Hackathon - Styles */

:root {
    /* Colors - Deep & Tech */
    --bg-primary: #050505;
    /* Darker black for OLED feel */
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(10, 10, 10, 0.6);

    /* Blue Accents */
    --blue-deep: #0f172a;
    --blue-primary: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.5);

    /* Premium Gold Palette */
    --gold: #ffd700;
    --gold-light: #fffacd;
    --gold-dark: #b8860b;

    /* Text Colors */
    --text-white: #ffffff;
    --text-gray: #9ca3af;




    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
    /* Add usage later */



    /* Dimensions & Motion */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    --transition: cubic-bezier(0.22, 1, 0.36, 1);
    /* Elegant easing */
}

/* Base Reset Improvements */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    word-spacing: 0.08em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-white);
}



/* Utility: Gold Gradient Text */
.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Utility: Glass Surface */
.glass-surface {
    background: var(--glass-frosted);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Leo Club Logo Styling - Clean circular with white bg */
.leo-logo,
.intro-logo-img.leo,
.footer-logo[alt*="Lions"] {
    border-radius: 50% !important;
    background: #fff;
    padding: 2px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
    object-fit: contain;
}

.intro-bg-logo {
    border-radius: 50%;
    opacity: 0.08;
}

/* ============================================
   GLITCH CYPHER INTRO OVERLAY
   ============================================ */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Scanlines Effect */
.intro-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    mix-blend-mode: screen;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 400px);
    opacity: 0.15;
    /* Subtle background */
    z-index: -1;
    filter: grayscale(100%) sepia(100%) hue-rotate(0deg) saturate(300%) contrast(1.2);
    /* Gold Tint */
    pointer-events: none;
    animation: logoPulse 4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.2;
    }
}

/* Glitch Title */
.intro-title {
    font-family: 'Space Mono', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    /* Gold */
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    display: inline-block;
    /* Removed drop-shadow filter to fix blurriness */
    word-break: keep-all;
    /* Prevent splitting words */
    overflow-wrap: break-word;
}

.intro-char {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Glitch Effect on Text */
.intro-title::before,
.intro-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.intro-title::before {
    left: 2px;
    text-shadow: -1px 0 #ffaa00;
    /* Darker Gold */
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.intro-title::after {
    left: -2px;
    text-shadow: -1px 0 #ffff00;
    /* Bright Yellow/Gold */
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.intro-char {
    display: inline-block;
    min-width: 0.6em;
    /* Fixed width prevents jitter */
}

/* Keyframes for Glitch */
@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.85deg);
    }

    5% {
        clip: rect(70px, 9999px, 11px, 0);
        transform: skew(0.28deg);
    }

    10% {
        clip: rect(6px, 9999px, 83px, 0);
        transform: skew(0.04deg);
    }

    15% {
        clip: rect(28px, 9999px, 96px, 0);
        transform: skew(0.12deg);
    }

    20% {
        clip: rect(56px, 9999px, 5px, 0);
        transform: skew(0.77deg);
    }

    25% {
        clip: rect(22px, 9999px, 34px, 0);
        transform: skew(0.35deg);
    }

    30% {
        clip: rect(64px, 9999px, 4px, 0);
        transform: skew(0.15deg);
    }

    35% {
        clip: rect(6px, 9999px, 59px, 0);
        transform: skew(0.96deg);
    }

    40% {
        clip: rect(39px, 9999px, 7px, 0);
        transform: skew(0.75deg);
    }

    45% {
        clip: rect(78px, 9999px, 98px, 0);
        transform: skew(0.02deg);
    }

    50% {
        clip: rect(2px, 9999px, 4px, 0);
        transform: skew(0.22deg);
    }

    55% {
        clip: rect(93px, 9999px, 75px, 0);
        transform: skew(0.71deg);
    }

    60% {
        clip: rect(13px, 9999px, 56px, 0);
        transform: skew(0.13deg);
    }

    65% {
        clip: rect(91px, 9999px, 2px, 0);
        transform: skew(0.3deg);
    }

    70% {
        clip: rect(82px, 9999px, 60px, 0);
        transform: skew(0.57deg);
    }

    75% {
        clip: rect(7px, 9999px, 26px, 0);
        transform: skew(0.91deg);
    }

    80% {
        clip: rect(44px, 9999px, 9px, 0);
        transform: skew(0.76deg);
    }

    85% {
        clip: rect(3px, 9999px, 86px, 0);
        transform: skew(0.83deg);
    }

    90% {
        clip: rect(32px, 9999px, 71px, 0);
        transform: skew(0.24deg);
    }

    95% {
        clip: rect(81px, 9999px, 10px, 0);
        transform: skew(0.19deg);
    }

    100% {
        clip: rect(62px, 9999px, 59px, 0);
        transform: skew(0.39deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: skew(0.85deg);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
        transform: skew(0.28deg);
    }

    10% {
        clip: rect(79px, 9999px, 85px, 0);
        transform: skew(0.04deg);
    }

    15% {
        clip: rect(15px, 9999px, 3px, 0);
        transform: skew(0.12deg);
    }

    20% {
        clip: rect(67px, 9999px, 95px, 0);
        transform: skew(0.77deg);
    }

    25% {
        clip: rect(34px, 9999px, 4px, 0);
        transform: skew(0.35deg);
    }

    30% {
        clip: rect(82px, 9999px, 51px, 0);
        transform: skew(0.15deg);
    }

    35% {
        clip: rect(2px, 9999px, 2px, 0);
        transform: skew(0.96deg);
    }

    40% {
        clip: rect(14px, 9999px, 36px, 0);
        transform: skew(0.75deg);
    }

    45% {
        clip: rect(83px, 9999px, 16px, 0);
        transform: skew(0.02deg);
    }

    50% {
        clip: rect(57px, 9999px, 48px, 0);
        transform: skew(0.22deg);
    }

    55% {
        clip: rect(12px, 9999px, 41px, 0);
        transform: skew(0.71deg);
    }

    60% {
        clip: rect(98px, 9999px, 96px, 0);
        transform: skew(0.13deg);
    }

    65% {
        clip: rect(54px, 9999px, 20px, 0);
        transform: skew(0.3deg);
    }

    70% {
        clip: rect(65px, 9999px, 63px, 0);
        transform: skew(0.57deg);
    }

    75% {
        clip: rect(27px, 9999px, 70px, 0);
        transform: skew(0.91deg);
    }

    80% {
        clip: rect(77px, 9999px, 54px, 0);
        transform: skew(0.76deg);
    }

    85% {
        clip: rect(53px, 9999px, 16px, 0);
        transform: skew(0.83deg);
    }

    90% {
        clip: rect(16px, 9999px, 81px, 0);
        transform: skew(0.24deg);
    }

    95% {
        clip: rect(4px, 9999px, 98px, 0);
        transform: skew(0.19deg);
    }

    100% {
        clip: rect(27px, 9999px, 44px, 0);
        transform: skew(0.39deg);
    }
}

@keyframes charGlow {
    0% {
        text-shadow: 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .intro-title {
        font-size: clamp(2rem, 10vw, 4rem);
        /* Smaller min size */
        letter-spacing: -1px;
        flex-wrap: wrap;
        /* Allow wrapping */
        gap: 0.5em;
        /* Increase gap slightly when wrapping */
        padding: 0 20px;
        /* Safe padding */
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: clamp(1.8rem, 12vw, 3rem);
        flex-direction: column;
        /* Stack vertically on small phones */
        align-items: center;
        gap: 0.2em;
    }
}

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



html,
body {
    margin: 0;
    padding: 0;
    background-color: #0a0d14;
    /* Fallback dark background */
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    min-height: 100vh;
    background: transparent;
    /* Keep transparent to show global-bg if needed, but html has color */
}

/* Custom Selection */
::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

/* Custom Cursor Follower - added via JS */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    border-color: var(--blue-accent);
}

/* Magnetic Button Hover */
.magnetic-btn {
    transition: transform 0.3s var(--transition);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Floating particles background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0.6;
    /* Subtle */
}

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite ease-in-out;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--blue-accent));
    z-index: 9999;
    transition: width 0.1s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 5%;
    background: transparent;
    transition: all 0.4s var(--transition);
}

.header.scrolled {
    background: rgba(10, 13, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left,
.header-right {
    flex: 1;
    /* Equal width for left and right to center the middle h1 */
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    text-align: center;
}

.partner-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Enhanced Header Title */
.header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #FFD700 0%, #F59E0B 50%, #B45309 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    animation: titleGlow 2.5s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
    }
}

.logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* Logo Images */
.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 20, 0.98);
    /* Slightly darker for better contrast */
    backdrop-filter: blur(20px);
    z-index: 2000;
    /* Ensure on top of everything */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center to allow scrolling from top */
    align-items: center;
    padding: 0;
    /* Removed large padding to use internal header */
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 5%;
    transform: translateY(20px);
    transition: transform 0.4s var(--transition);
}

/* Sidebar Header & Close Button */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
    transform: rotate(90deg);
}

/* Sidebar Live Timer Widget */
.mobile-nav-timer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mobile-timer-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.mobile-timer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.mobile-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
}

.mobile-timer-val {
    font-family: 'Space Mono', monospace;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.mobile-timer-unit {
    font-size: 0.65rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 700;
}

.mobile-timer-sep {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

/* Sidebar Nav Links Area */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateY(0);
}

.mobile-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--gold);
}

.mobile-link.cta {
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 30px;
    border-radius: 50px;
}

.mobile-nav-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 80%;
    max-width: 300px;
}

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

.mobile-contact p {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.mobile-contact a {
    font-size: 1.3rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    transition: transform 0.3s ease;
    display: block;
}

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

.mobile-socials {
    display: flex;
    gap: 15px;
}

.mobile-social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s var(--transition);
}

.mobile-social-icon:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: translateY(-5px);
    color: var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Hamburger Menu - Visible on ALL screens */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 8px;
    /* Slightly tighter touch target */
}

/* Hide text labels on mobile, show logo */
@media (max-width: 1024px) {
    .header-right .ieee-partners {
        display: flex;
        /* Restore visibility */
        gap: 8px;
    }

    .header-center {
        display: flex;
        /* Restore visibility */
        flex: 2;
        justify-content: center;
    }

    .header-inner {
        justify-content: space-between;
        gap: 10px;
    }

    .logo-img {
        width: 32px !important;
        height: 32px !important;
    }

    .header-title {
        font-size: 1rem !important;
        letter-spacing: 1px;
    }
}


/* Restore Hamburger Spans */
.hamburger span {
    display: block;
    width: 24px;
    /* Shrunk from 30px */
    height: 2px;
    /* Shrunk from 3px */
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s var(--transition);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Prevent scroll when menu open */
body.no-scroll {
    overflow: hidden;
}

/* Removed forced high-specificity rules as we fixed the base display logic */


/* Hide default desktop links if any (though we only have mobile-nav currently) */
/* If there were desktop links in header-center or header-right, we'd hide them here */



.logo-img.college-logo {
    width: 68px;
    height: 68px;
}

.logo-img.leo-logo {
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-img.ieee-logo {
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img.ieee-logo:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

/* Zoom SMC to fill the circle frame */
.logo-img.ieee-smc {
    object-fit: cover;
    padding: 0;
    object-position: center center;
}

.ieee-partners {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
}

/* Footer Logos */
.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.footer-logo[alt*="Lions"] {
    background: transparent;
    border-radius: 6px;
}

.logo-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* (Duplicate .header-title removed — see line 693 for canonical rule) */


/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 5% 60px;
    overflow: hidden;
}

.global-bg {
    display: none;
    /* Hide old background to show React animation */
}

/* Vignette Overlay for Blending Corners */
.vignette-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    /* Above animation, behind content */
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 13, 20, 0.4) 60%, rgba(10, 13, 20, 0.95) 100%);
}

/* Gold Accent Overlay */
.global-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Reduced blur for definition */
    opacity: 0.4;
    transition: all 1s ease;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue-primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float1 25s infinite ease-in-out;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold-dark) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.3;
    animation: float2 30s infinite ease-in-out;
}

/* New orb for middle/balance */
.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--blue-accent) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation: float3 35s infinite ease-in-out;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-50px, 50px) scale(1.1);
    }

    66% {
        transform: translate(20px, -30px) scale(0.9);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 20px) scale(0.95);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    33% {
        transform: translate(-40%, -60%) scale(1.2);
    }

    66% {
        transform: translate(-60%, -40%) scale(0.8);
    }
}

/* FLOATING SHAPES ANIMATION */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    /* Boosted visibility */
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 400;
    user-select: none;
    animation: floatUp 20s linear infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Specific Shapes - Randomized positions */
.shape-1 {
    top: 110%;
    left: 10%;
    animation-duration: 25s;
    font-size: 3rem;
    color: rgba(245, 158, 11, 0.2);
    /* Gold */
}

.shape-2 {
    top: 105%;
    left: 80%;
    animation-duration: 30s;
    font-size: 1.5rem;
}

.shape-3 {
    top: 115%;
    left: 20%;
    animation-duration: 28s;
    font-size: 2.5rem;
    color: rgba(59, 130, 246, 0.2);
    /* Blue */
}

.shape-4 {
    top: 108%;
    left: 60%;
    animation-duration: 22s;
    font-size: 2rem;
}

.shape-5 {
    top: 112%;
    left: 90%;
    animation-duration: 35s;
    font-size: 1.2rem;
}

.shape-6 {
    top: 102%;
    left: 5%;
    animation-duration: 26s;
    font-size: 2.8rem;
    color: rgba(245, 158, 11, 0.06);
}

.shape-7 {
    top: 118%;
    left: 70%;
    animation-duration: 32s;
    font-size: 2rem;
}

.shape-8 {
    top: 106%;
    left: 30%;
    animation-duration: 24s;
    font-size: 1.5rem;
    color: rgba(59, 130, 246, 0.06);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Grid Visibility */
.grid-pattern {
    opacity: 0.15;
    /* Increased from default */
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-mascot {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--gold-light);
    margin-left: 0;
    margin-right: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--gold-light);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: min(5rem, 6vw);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 25px;
    white-space: nowrap;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: wordReveal 0.8s var(--transition) forwards;
}

.title-word:nth-child(1) {
    animation-delay: 0.1s;
}

.title-word:nth-child(2) {
    animation-delay: 0.2s;
}

.title-word:nth-child(3) {
    animation-delay: 0.3s;
}

.title-word:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-word.accent {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 480px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.8s 0.5s var(--transition) forwards;
}

.mission-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--gold-light);
    max-width: 480px;
    margin-bottom: 30px;
    border-left: 2px solid var(--gold);
    padding-left: 20px;
    opacity: 0;
    animation: fadeIn 0.8s 0.7s var(--transition) forwards;
}

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

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition);
    opacity: 0;
    animation: fadeIn 0.8s 0.6s var(--transition) forwards;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity 0.4s;
}

.cta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(245, 158, 11, 0.4),
        0 0 30px rgba(245, 158, 11, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-primary:active {
    transform: translateY(-2px) scale(0.98);
}

/* Pulse animation for CTA */
.cta-primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    z-index: -1;
    opacity: 0;
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.cta-text,
.cta-arrow {
    position: relative;
    z-index: 1;
}

.cta-arrow {
    transition: transform 0.3s;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(8px);
    animation: arrowBounce 0.6s infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(8px);
    }

    50% {
        transform: translateX(12px);
    }
}

/* Mascot */
.hero-mascot {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s 0.4s var(--transition) forwards;
}

.mascot-wrapper {
    position: relative;
    width: min(340px, 90vw);
    height: 400px;
}

.mascot-glow {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(251, 191, 36, 0.15) 40%, transparent 70%);
    animation: mascotGlow 4s infinite ease-in-out;
    border-radius: 50%;
}

.mascot-aura {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, transparent 50%, rgba(245, 158, 11, 0.08) 60%, transparent 70%);
    animation: auraRotate 15s infinite linear;
    border-radius: 50%;
}

@keyframes auraRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mascot Image */
.lion-mascot-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
    animation: mascotFloat 4s ease-in-out infinite;
}

/* Float Animation for Mascot */
@keyframes mascotFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Mascot Bubble - Ensure on TOP */
.mascot-bubble {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: rgba(15, 23, 42, 0.95);
    /* Ensure opacity */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 12px 24px;
    border-radius: 24px;
    border-bottom-left-radius: 4px;
    /* Speech bubble style */
    z-index: 50 !important;
    /* Force on top */
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    animation: bubbleFloat 3s ease-in-out infinite 0.5s;
}

@keyframes bubbleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes mascotGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

/* Lion SVG */
.lion-svg {
    width: 300px;
    height: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lionFloat 5s infinite ease-in-out;
    filter: drop-shadow(0 20px 40px rgba(245, 158, 11, 0.3));
}

@keyframes lionFloat {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, calc(-50% - 18px));
    }
}

/* Mane Animation */
.mane-outer {
    animation: maneBreath 4s infinite ease-in-out;
    transform-origin: center;
}

@keyframes maneBreath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.mane-spike {
    animation: spikeWave 3s infinite ease-in-out;
    transform-origin: center bottom;
}

@keyframes spikeWave {

    0%,
    100% {
        transform: scaleY(1) rotate(0deg);
    }

    50% {
        transform: scaleY(1.1) rotate(2deg);
    }
}

/* Ear Animation */
.ear {
    transform-origin: center bottom;
    animation: earTwitch 6s infinite ease-in-out;
}

.ear-left {
    animation-delay: 0s;
}

.ear-right {
    animation-delay: 0.3s;
}

@keyframes earTwitch {

    0%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    92% {
        transform: rotate(-8deg);
    }

    94% {
        transform: rotate(5deg);
    }

    96% {
        transform: rotate(-3deg);
    }

    98% {
        transform: rotate(0deg);
    }
}

/* Eyes Blinking */
.eyelid {
    animation: blinkLid 4s infinite;
}

@keyframes blinkLid {

    0%,
    45%,
    55%,
    100% {
        ry: 0;
    }

    48%,
    52% {
        ry: 24px;
    }
}

/* Eye tracking - slight movement */
.eye-iris {
    animation: eyeLook 8s infinite ease-in-out;
}

.eye-left-iris {
    animation-delay: 0s;
}

.eye-right-iris {
    animation-delay: 0.05s;
}

@keyframes eyeLook {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(3px, -2px);
    }

    40% {
        transform: translate(-2px, 1px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(-3px, -1px);
    }
}

/* Eye shine sparkle */
.eye-shine {
    animation: eyeShine 3s infinite ease-in-out;
}

@keyframes eyeShine {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.5;
    }
}

/* Nose twitch */
.nose-group {
    animation: noseTwitch 5s infinite ease-in-out;
    transform-origin: center;
}

@keyframes noseTwitch {

    0%,
    85%,
    100% {
        transform: scale(1);
    }

    88% {
        transform: scale(1.08);
    }

    91% {
        transform: scale(0.95);
    }

    94% {
        transform: scale(1.05);
    }
}

/* Cheek blush pulse */
.cheek {
    animation: cheekPulse 4s infinite ease-in-out;
}

@keyframes cheekPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

/* Paw animation */
.paw {
    transform-origin: center;
    animation: pawTap 4s infinite ease-in-out;
}

.paw-left {
    animation-delay: 0s;
}

.paw-right {
    animation-delay: 2s;
}

@keyframes pawTap {

    0%,
    90%,
    100% {
        transform: translateY(0);
    }

    93% {
        transform: translateY(-5px);
    }

    96% {
        transform: translateY(0);
    }
}

/* Lion body breathing */
.lion-body {
    animation: bodyBreath 4s infinite ease-in-out;
    transform-origin: center;
}

@keyframes bodyBreath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Celebrate animation for success */
.lion-svg.celebrate {
    animation: lionCelebrate 0.5s ease 3;
}

@keyframes lionCelebrate {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -50%) rotate(-12deg) scale(1.1);
    }

    75% {
        transform: translate(-50%, -50%) rotate(12deg) scale(1.1);
    }
}

.mascot-bubble {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    z-index: 20;
    /* Ensure bubble is on top of mascot */
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mascot-bubble::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(245, 158, 11, 0.3);
}

.mascot-bubble.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(12px);
    }
}

.scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* Sections Common */
.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Intro Section - College & LEO Club */
.intro {
    padding: 80px 5%;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.intro-card {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    overflow: hidden;
    transition: all 0.5s var(--transition);
}

.intro-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.intro-card-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.intro-card-glow.gold {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 60%);
}

.intro-card:hover .intro-card-glow {
    opacity: 1;
}

.intro-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s var(--transition);
}

.intro-logo-img.leo {
    background: transparent;
    border-radius: 12px;
    padding: 0;
}

.intro-card:hover .intro-logo-img {
    transform: scale(1.1) rotate(5deg);
}

.intro-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.intro-tagline {
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.intro-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

.intro-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

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

.stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-light);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intro-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.highlight-tag {
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gold-light);
    transition: all 0.3s var(--transition);
}

.highlight-tag:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

/* Event Banner */
.event-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px;
    overflow: hidden;
    text-align: center;
}

.event-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.event-banner-content {
    position: relative;
    z-index: 1;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 30px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-light);
}

.badge-icon {
    font-size: 1.2rem;
}

.event-banner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    /* Slightly reduced min size */
    font-weight: 800;
    color: var(--gold);
    /* Solid color for safety */
    background: transparent !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentcolor !important;
    margin-bottom: 10px;
    letter-spacing: 2px;
    /* Reduced spacing */
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    padding: 0 10px;
}

.event-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-weight: 500;
}

.event-description {
    font-size: 1.05rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.event-description strong {
    color: var(--gold-light);
}

/* Event Important Notice */
.event-notice {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg,
            rgba(239, 68, 68, 0.1) 0%,
            rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 25px 30px;
    margin: 30px auto 35px;
    max-width: 800px;
    text-align: left;
    backdrop-filter: blur(10px);
    animation: noticeGlow 3s ease-in-out infinite;
}

@keyframes noticeGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    }

    50% {
        box-shadow: 0 0 35px rgba(245, 158, 11, 0.4);
    }
}

.notice-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: noticeBounce 2s ease-in-out infinite;
}

@keyframes noticeBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 15px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li strong {
    color: var(--text-white);
}

.notice-list li strong strong {
    color: var(--gold-light);
    font-size: 1.05rem;
}

/* Event Info Grid */
.event-info-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.95rem;
    color: var(--text-gray);
    transition: all 0.3s var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-item.date-item {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--blue-light);
}

.feature-item.prize-item {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gold-light);
    font-weight: 600;
}

.feature-item .feature-icon {
    font-size: 1.2rem;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
    font-size: 1.3rem;
}

/* Highlights */
.highlights {
    padding: 80px 0 10px;
    background: transparent;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.highlight-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s var(--transition);
}

.highlight-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Impact Highlights */
.impact-highlights {
    padding: 0 0 60px;
    position: relative;
    z-index: 2;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.impact-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
    opacity: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.impact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.2));
}

.impact-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.impact-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--transition);
}

.detail-item:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
}

.detail-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.detail-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-info p {
    font-size: 0.95rem;
    color: var(--text-white);
}

/* Prizes Card */
.about-prizes {
    position: sticky;
    top: 120px;
}

.prizes-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.prizes-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-white);
}

.prize-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.prize-list {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.prize-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1rem;
    color: var(--text-white);
}

.prize-list li:last-child {
    border-bottom: none;
}

.prize-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-prizes {
        position: static;
    }

    .about-details {
        grid-template-columns: 1fr;
    }
}

/* Step Indicator */
.step-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.4s;
}

.step-indicator.visible {
    opacity: 1;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.step span {
    width: 28px;
    height: 28px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.step.active span {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
}

.step.active {
    color: var(--gold);
}

.step.completed span {
    background: var(--blue-accent);
    border-color: var(--blue-accent);
    color: white;
}

/* Domains */
.domains {
    padding: 80px 0;
    background: transparent;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.domain-tile {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s var(--transition);
}

.domain-tile:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-2deg);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 158, 11, 0.1);
}

.domain-tile.selected {
    border-color: var(--gold);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.2);
}

.tile-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.domain-tile:hover .tile-glow {
    opacity: 1;
}

.tile-content {
    position: relative;
    z-index: 1;
}

.tile-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 20px;
}

.tile-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tile-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.tile-action {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.domain-tile:hover .tile-action {
    opacity: 1;
    transform: translateY(0);
}

/* Problems */
.problems {
    padding: 80px 0;
    background: transparent;
    display: none;
}

.problems.visible {
    display: block;
    animation: sectionReveal 0.6s var(--transition);
}

@keyframes sectionReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-primary);
    margin-top: 20px;
}

.problems-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.problem-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 35px;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.problem-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.problem-card.selected {
    border-color: var(--blue-accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.problem-num {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.problem-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Judges */
.judges {
    padding: 80px 0;
    background: transparent;
}

.judges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.judge-card {
    background: transparent;
    border: none;
    text-align: center;
    transition: all 0.4s var(--transition);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    padding: 20px;
}

.judge-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.judge-card:hover {
    transform: translateY(-10px);
}

.judge-image {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    padding: 5px;
    /* Space for border */
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    transition: all 0.5s ease;
}

.judge-card:hover .judge-image {
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.6), inset 0 0 20px rgba(245, 158, 11, 0.4);
    transform: scale(1.05);
}

/* Judge Photo Image Styling */
.judge-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    /* Inner border */
    position: relative;
    z-index: 2;
    transition: all 0.5s var(--transition);
}

.judge-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, transparent 50%, rgba(245, 158, 11, 0.2) 100%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.judge-card:hover .judge-overlay {
    opacity: 1;
}

/* Judge Info styling */
.judge-info {
    padding: 0;
    text-align: center;
}

.judge-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.judge-role {
    font-size: 0.9rem;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.judge-expertise {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Registration */
.registration {
    padding: 80px 0;
    background: transparent;
}

.form-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

/* Form Section Styling */
.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 25px;
}

.form-section:first-child {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
}

.form-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.member-badge.lead {
    width: auto;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    font-size: 0.8rem;
    gap: 6px;
}

.reg-form {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 50px;
}

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

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.form-field input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-white);
    transition: all 0.3s var(--transition);
}

.form-field input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.form-field input::placeholder {
    color: var(--text-muted);
}

.form-field.readonly input {
    background: rgba(245, 158, 11, 0.08);
    cursor: not-allowed;
}

/* PDF Upload Section */
.upload-section {
    background: rgba(59, 130, 246, 0.05) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.upload-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.file-upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    transition: all 0.3s var(--transition);
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--blue-accent);
    background: rgba(59, 130, 246, 0.05);
}

.file-upload-area.dragover {
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: uploadBounce 2s infinite ease-in-out;
}

@keyframes uploadBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 8px;
}

.upload-or {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-primary));
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s var(--transition);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Required Badge */
.required-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
    animation: requiredPulse 2s infinite;
}

@keyframes requiredPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Error State for Upload Area */
.file-upload-area.error {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.05);
    animation: shakeError 0.5s ease;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Upload Note Warning */
.upload-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    margin-top: 15px;
    color: #fca5a5;
    font-size: 0.9rem;
    animation: fadeSlideIn 0.3s ease;
}

.note-icon {
    font-size: 1.2rem;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    margin-top: 15px;
    animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 2rem;
}

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

.file-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.remove-file {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    color: #ef4444;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.4s var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.btn-loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.success-panel {
    position: absolute;
    inset: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.5s var(--transition);
}

.success-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    animation: pop 0.5s var(--transition);
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.success-panel p {
    color: var(--text-gray);
}

/* Roaring Lion Celebration Styles */
.success-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.roaring-lion {
    width: 280px;
    height: 280px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Realistic Lion Image */
.lion-roar-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 3;
    animation: lionEnter 0.8s var(--transition), lionBreathing 2s ease-in-out infinite 0.8s;
    box-shadow:
        0 0 40px rgba(245, 158, 11, 0.6),
        0 0 80px rgba(245, 158, 11, 0.3),
        inset 0 0 30px rgba(245, 158, 11, 0.2);
    border: 4px solid var(--gold);
}

@keyframes lionEnter {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.15) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes lionBreathing {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 40px rgba(245, 158, 11, 0.6),
            0 0 80px rgba(245, 158, 11, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow:
            0 0 60px rgba(245, 158, 11, 0.8),
            0 0 100px rgba(245, 158, 11, 0.4);
    }
}

/* Glow Rings around lion */
.lion-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    opacity: 0;
    animation: glowRingExpand 2s ease-out infinite;
}

.lion-glow-ring.ring-2 {
    animation-delay: 0.4s;
}

.lion-glow-ring.ring-3 {
    animation-delay: 0.8s;
}

@keyframes glowRingExpand {
    0% {
        width: 220px;
        height: 220px;
        opacity: 0.8;
        border-width: 4px;
    }

    100% {
        width: 350px;
        height: 350px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Lion Animation Container - 3D Effect */
.lion-animation-container {
    position: relative;
    z-index: 3;
    perspective: 1000px;
}

/* 3D Wrapper for transforms */
.lion-3d-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: lion3DEntrance 1s var(--transition) forwards;
}

@keyframes lion3DEntrance {
    0% {
        transform: perspective(1000px) rotateY(-30deg) scale(0) translateZ(-200px);
        opacity: 0;
    }

    60% {
        transform: perspective(1000px) rotateY(15deg) scale(1.1) translateZ(50px);
    }

    100% {
        transform: perspective(1000px) rotateY(0deg) scale(1) translateZ(0);
        opacity: 1;
    }
}

/* Animated 3D Lion Image */
.lion-roar-img.animated-3d {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    animation:
        lionRoarShake 0.15s ease-in-out infinite,
        lionBreathing 2s ease-in-out infinite,
        lion3DMove 4s ease-in-out infinite;
    box-shadow:
        0 0 50px rgba(245, 158, 11, 0.7),
        0 0 100px rgba(245, 158, 11, 0.4),
        inset 0 0 40px rgba(245, 158, 11, 0.3);
    transform-style: preserve-3d;
}

/* Head shake roaring effect */
@keyframes lionRoarShake {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-3px) rotate(-1deg);
    }

    50% {
        transform: translateX(3px) rotate(1deg);
    }

    75% {
        transform: translateX(-2px) rotate(-0.5deg);
    }
}

/* 3D Movement Animation */
@keyframes lion3DMove {

    0%,
    100% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1);
        filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.6)) brightness(1);
    }

    15% {
        transform: perspective(1000px) rotateY(12deg) rotateX(-5deg) scale(1.02);
        filter: drop-shadow(-15px 0 50px rgba(245, 158, 11, 0.9)) brightness(1.1);
    }

    30% {
        transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) scale(1.05);
        filter: drop-shadow(10px 0 60px rgba(245, 158, 11, 1)) brightness(1.2);
    }

    45% {
        transform: perspective(1000px) rotateY(5deg) rotateX(-3deg) scale(1.08);
        filter: drop-shadow(-5px 0 70px rgba(245, 158, 11, 1)) brightness(1.3);
    }

    60% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) scale(1.05);
        filter: drop-shadow(15px 0 60px rgba(245, 158, 11, 0.9)) brightness(1.15);
    }

    80% {
        transform: perspective(1000px) rotateY(6deg) rotateX(-2deg) scale(1.02);
        filter: drop-shadow(-8px 0 50px rgba(245, 158, 11, 0.8)) brightness(1.05);
    }
}

/* Roar effect overlay - pulsing light burst */
.roar-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(245, 158, 11, 0.4) 0%,
            rgba(245, 158, 11, 0.2) 30%,
            transparent 70%);
    animation: roarPulse 0.8s ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes roarPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
}

/* Roar Sound Waves Animation */
.roar-waves .wave {
    animation: roarWave 1.5s ease-out infinite;
}

.wave-1 {
    animation-delay: 0s;
}

.wave-2 {
    animation-delay: 0.2s;
}

.wave-3 {
    animation-delay: 0.4s;
}

@keyframes roarWave {
    0% {
        r: 50;
        opacity: 0.8;
        stroke-width: 4;
    }

    100% {
        r: 150;
        opacity: 0;
        stroke-width: 1;
    }
}

/* Mane Celebration Animation */
.celebrate-mane {
    animation: maneShake 0.3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes maneShake {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.mane-spike-celebrate {
    animation: spikeGrow 0.5s ease-in-out infinite alternate;
    transform-origin: center bottom;
}

.mane-spike-celebrate:nth-child(odd) {
    animation-delay: 0.1s;
}

.mane-spike-celebrate:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes spikeGrow {
    0% {
        transform: scaleY(1) rotate(-3deg);
    }

    100% {
        transform: scaleY(1.15) rotate(3deg);
    }
}

/* Ears Animation */
.celebrate-ears {
    animation: earWiggle 0.4s ease-in-out infinite;
}

@keyframes earWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

/* Victory Crown Animation */
.victory-crown {
    animation: crownBounce 0.6s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes crownBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(-3deg);
    }

    75% {
        transform: translateY(-5px) rotate(3deg);
    }
}

/* Sparkle Animation */
.sparkle {
    animation: sparkleFloat 1s ease-in-out infinite;
}

.sparkle.delay {
    animation-delay: 0.5s;
}

@keyframes sparkleFloat {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-5px) scale(1.2);
    }
}

/* Roaring Mouth Animation */
.roaring-mouth {
    animation: mouthRoar 0.3s ease-in-out infinite;
    transform-origin: center top;
}

@keyframes mouthRoar {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.1);
    }
}

/* Success Text Styles */
.success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 5px;
    animation: textPop 0.5s 0.3s var(--transition) both;
}

.success-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    animation: textPop 0.5s 0.4s var(--transition) both;
}

.success-message {
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 400px;
    margin: 0 auto 25px;
    animation: textPop 0.5s 0.5s var(--transition) both;
}

@keyframes textPop {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Badges */
.success-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    animation: textPop 0.5s 0.6s var(--transition) both;
}

.success-badge {
    padding: 10px 20px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 25px;
    font-size: 0.9rem;
    color: #86efac;
    animation: badgePop 0.3s ease-out both;
}

.success-badge:nth-child(1) {
    animation-delay: 0.7s;
}

.success-badge:nth-child(2) {
    animation-delay: 0.8s;
}

.success-badge:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes badgePop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Confetti Container */
.confetti-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Footer */
.footer {
    padding: 60px 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-brand .logo {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.footer-brand span {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.divider {
    color: var(--gold);
    font-size: 1.2rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-mascot {
        order: -1;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .event-banner {
        padding: 40px 30px;
    }

    .event-features {
        gap: 12px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .judges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .judges-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Nav Trigger */
    .header-center {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 2px;
        background: var(--text-white);
        border-radius: 2px;
        transition: all 0.3s var(--transition);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Mobile Nav Overlay */
    .mobile-nav {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        z-index: 990;
        /* Below header (1000) so hamburger is clickable */
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s var(--transition);
    }

    .mobile-nav.active {
        opacity: 1;
        pointer-events: all;
    }

    .mobile-nav-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        transform: translateY(30px);
        transition: all 0.4s 0.1s var(--transition);
    }

    .mobile-nav.active .mobile-nav-content {
        transform: translateY(0);
    }

    .mobile-link {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-white);
        text-decoration: none;
        position: relative;
    }

    .mobile-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--gold);
        transition: all 0.3s var(--transition);
        transform: translateX(-50%);
    }

    .mobile-link:hover::after,
    .mobile-link.active::after {
        width: 100%;
    }

    .mobile-link.cta {
        padding: 12px 30px;
        background: linear-gradient(135deg, var(--gold), var(--gold-dark));
        color: var(--bg-primary);
        border-radius: 30px;
        font-size: 1.2rem;
    }

    .mobile-link.cta::after {
        display: none;
    }

    .judges-grid {
        grid-template-columns: 1fr;
    }

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

    .reg-form {
        padding: 30px 20px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 10px;
    }

    .divider {
        display: none;
    }
}

/* Consolidated into the bottom block */

/* Extra Small Screens (< 380px) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2rem;
    }

    .cta-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        /* Full width button */
        justify-content: center;
    }

    .logo-img.college-logo {
        height: 28px;
    }

    .logo-img.leo-logo {
        height: 35px;
    }
}

/* Mobile Form Improvements */
@media (max-width: 480px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom */
        padding: 12px 15px;
    }

    .file-upload-label {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
}

/* Admin Link in Footer */
.admin-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s var(--transition);
    opacity: 0.6;
}

.admin-link:hover {
    opacity: 1;
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   ENHANCED MOBILE OPTIMIZATIONS
   ============================================ */

/* Touch Device Global Styles */
.touch-device {
    -webkit-tap-highlight-color: transparent;
}

.touch-device * {
    -webkit-tap-highlight-color: transparent;
}

/* Disable hover effects on touch devices */
.touch-device .domain-tile:hover,
.touch-device .problem-card:hover,
.touch-device .highlight-card:hover,
.touch-device .judge-card:hover {
    transform: none;
}

/* Active/Tap states for touch devices */
.touch-device .domain-tile:active,
.touch-device .problem-card:active,
.touch-device .highlight-card:active,
.touch-device .judge-card:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.touch-device .cta-primary:active,
.touch-device .submit-btn:active,
.touch-device .upload-btn:active {
    transform: scale(0.97);
}

/* ============================================
   TABLET LANDSCAPE (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problems-container {
        grid-template-columns: 1fr;
    }

    .event-features {
        flex-wrap: wrap;
        justify-content: center;
    }

    .event-notice {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-prizes {
        margin-top: 30px;
    }
}

/* ============================================
   TABLET PORTRAIT / LARGE PHONES (768px)
   ============================================ */
@media (max-width: 768px) {

    /* Header adjustments */
    .header {
        padding: 15px 4%;
    }

    .header-inner {
        gap: 10px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .logo-img.leo-logo {
        width: 40px;
        height: 40px;
    }

    /* Section padding reduction */
    .domains,
    .problems,
    .judges,
    .registration,
    .about,
    .intro,
    .highlights {
        padding: 60px 0;
    }

    .section-inner {
        padding: 0 5%;
    }

    /* Domain tiles full width */
    .domains-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .domain-tile {
        padding: 30px 25px;
    }

    /* Intro section */
    .intro-card {
        padding: 30px 25px;
    }

    .intro-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat-item {
        flex: 1 1 45%;
        min-width: 100px;
    }

    .intro-highlights {
        flex-wrap: wrap;
        gap: 10px;
    }

    .highlight-tag {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    /* Event banner */
    .event-banner {
        padding: 30px 20px;
    }

    .event-banner h2 {
        font-size: 2rem;
    }

    .event-features {
        gap: 10px;
    }

    .feature-item {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    /* About section */
    .about-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .prizes-card {
        padding: 30px;
    }

    .prize-amount {
        font-size: 2.5rem;
    }

    /* Scroll hint mobile */
    .scroll-hint {
        display: none;
    }
}

/* ============================================
   MOBILE PHONES (480px)
   ============================================ */
/* ============================================
   TABLETS & SMALL LAPTOPS (768px)
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .hero {
        padding: 120px 5% 60px;
        height: auto;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-mascot {
        order: 0;
        margin-bottom: 20px;
        transform: scale(0.9);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .mission-quote {
        margin: 0 auto 30px;
    }

    .intro-grid,
    .event-features,
    .highlights-grid,
    .prizes-card,
    .judges-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reg-form {
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* ============================================
   MOBILE PHONES (480px) - CONSOLIDATED
   ============================================ */
@media (max-width: 480px) {

    /* Base body adjustments */
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Event Info Grid Mobile */
    .event-info-grid {
        gap: 8px;
    }

    .feature-item {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .feature-item .feature-icon {
        font-size: 1rem;
    }

    /* Step Indicator adjustment */
    .step-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }

    /* Header mobile layout */
    .header {
        padding: 12px 15px;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }

    .header-left,
    .header-right {
        gap: 8px;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .logo-img.college-logo {
        width: 30px;
        height: 30px;
    }

    .logo-img.leo-logo {
        width: 32px;
        height: 32px;
    }

    /* Hero section mobile */
    .hero {
        padding: 110px 5% 40px;
        /* Increased top padding to clear header */
        min-height: auto;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-badge {
        padding: 8px 16px;
        font-size: 0.75rem;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .cta-primary {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    /* Mascot scaling */
    .hero-mascot {
        transform: scale(0.65);
        /* Smaller mascot */
        margin-top: -30px;
        margin-bottom: -20px;
    }

    /* Hide De-clutter Elements */
    .float-element {
        display: none !important;
    }

    .logo-text {
        display: none;
    }

    .header-inner {
        padding: 0 10px;
    }

    .mascot-wrapper {
        width: 280px;
        height: 330px;
    }

    .lion-svg {
        width: 240px;
        height: 260px;
    }

    .mascot-bubble {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 35px;
    }

    .section-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .section-desc {
        font-size: 0.9rem;
        padding: 0 5px;
    }

    /* Section padding mobile */
    .domains,
    .problems,
    .judges,
    .registration,
    .about,
    .intro,
    .highlights {
        padding: 50px 0;
    }

    .section-inner {
        padding: 0 4%;
    }

    /* Intro cards mobile */
    .intro-grid {
        gap: 20px;
    }

    .intro-card {
        padding: 25px 20px;
    }

    .intro-logo {
        margin-bottom: 15px;
    }

    .intro-logo-img {
        width: 70px;
        height: 70px;
    }

    .intro-card h3 {
        font-size: 1.2rem;
    }

    .intro-tagline {
        font-size: 0.85rem;
    }

    .intro-description {
        font-size: 0.9rem;
    }

    .intro-stats {
        gap: 12px;
        justify-content: center;
    }

    .stat-item {
        min-width: 80px;
        flex: 1 1 auto;
    }

    .stat-value {
        font-size: 1.4rem;
    }

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

    /* Event banner mobile */
    .event-banner {
        margin-top: 25px;
        padding: 25px 18px;
    }

    .event-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .event-banner h2 {
        font-size: 1.6rem;
    }

    .event-subtitle {
        font-size: 0.95rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    .event-notice {
        padding: 18px;
        text-align: left;
    }

    .notice-icon {
        font-size: 1.5rem;
    }

    .notice-title {
        font-size: 0.95rem;
    }

    .notice-list li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .event-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-item {
        padding: 12px 10px;
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .feature-icon {
        font-size: 1.3rem;
    }

    /* Highlights grid mobile */
    .highlights-grid {
        gap: 15px;
    }

    .highlight-card {
        padding: 25px 20px;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .highlight-card h3 {
        font-size: 1.1rem;
    }

    .highlight-card p {
        font-size: 0.85rem;
    }

    /* About section mobile */
    .about-intro {
        font-size: 0.95rem;
    }

    .about-details {
        gap: 15px;
    }

    .detail-item {
        padding: 18px;
        gap: 15px;
    }

    .detail-icon {
        font-size: 1.8rem;
    }

    .detail-info h4 {
        font-size: 0.9rem;
    }

    .detail-info p {
        font-size: 0.95rem;
    }

    .prizes-card {
        padding: 25px 20px;
    }

    .prizes-card h3 {
        font-size: 1.1rem;
    }

    .prize-amount {
        font-size: 2.2rem;
    }

    .prize-list li {
        font-size: 0.95rem;
    }

    .prize-note {
        font-size: 0.85rem;
    }

    /* Domain tiles mobile */
    .domain-tile {
        padding: 28px 22px;
    }

    .tile-icon {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

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

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

    .tile-action {
        opacity: 1;
        transform: translateY(0);
        margin-top: 15px;
    }

    /* Problem cards mobile */
    .problems-container {
        gap: 18px;
    }

    .problem-card {
        padding: 25px 20px;
    }

    .problem-num {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .problem-card h4 {
        font-size: 1.05rem;
    }

    .problem-card p {
        font-size: 0.85rem;
    }

    .selected-badge {
        font-size: 0.8rem;
        padding: 8px 18px;
    }

    /* Judges section mobile */
    .judges-grid {
        gap: 20px;
    }

    .judge-card {
        max-width: 100%;
    }

    .judge-image {
        height: 160px;
    }

    .judge-info {
        padding: 20px 15px;
    }

    .judge-info h4 {
        font-size: 1rem;
    }

    .judge-role {
        font-size: 0.8rem;
    }

    .judge-expertise {
        font-size: 0.75rem;
    }

    /* Registration form mobile */
    .reg-form {
        padding: 25px 18px;
    }

    .form-section {
        padding: 22px 18px;
        margin-bottom: 18px;
    }

    .form-section-title {
        font-size: 1rem;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .member-badge {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .member-badge.lead {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .form-row {
        gap: 18px;
        margin-bottom: 18px;
    }

    .form-field label {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }

    .form-field input {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents iOS zoom */
        border-radius: 10px;
    }

    /* Upload section mobile */
    .upload-desc {
        font-size: 0.85rem;
    }

    .file-upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .upload-text {
        font-size: 0.95rem;
    }

    .upload-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .upload-hint {
        font-size: 0.75rem;
    }

    .file-preview {
        padding: 15px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .file-info {
        flex: 1;
        min-width: 0;
    }

    .file-icon {
        font-size: 1.6rem;
    }

    .file-name {
        font-size: 0.9rem;
        word-break: break-all;
    }

    .file-size {
        font-size: 0.75rem;
    }

    .remove-file {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .required-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
        margin-left: 8px;
    }

    .upload-note {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    /* Submit button mobile */
    .submit-btn {
        padding: 16px;
        font-size: 1rem;
        border-radius: 14px;
    }

    /* Success panel mobile */
    .success-panel {
        padding: 30px 20px;
    }

    .roaring-lion {
        transform: scale(0.8);
        margin-bottom: -20px;
    }

    .success-title {
        font-size: 1.3rem;
    }

    .success-main {
        font-size: 1.6rem;
    }

    .success-message {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .success-badges {
        gap: 10px;
    }

    .success-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Footer mobile */
    .footer {
        padding: 35px 5%;
    }

    .footer-brand {
        gap: 10px;
    }

    .footer-logo {
        width: 35px;
        height: 35px;
    }

    .footer-brand span {
        font-size: 0.85rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-copy {
        font-size: 0.75rem;
    }

    .admin-link {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* ============================================
   VERY SMALL PHONES (380px)
   ============================================ */
@media (max-width: 380px) {
    .header-inner {
        padding: 0 10px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .hero {
        padding: 85px 4% 40px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-mascot {
        transform: scale(0.6);
        margin-top: -50px;
        margin-bottom: -50px;
    }

    .cta-primary {
        padding: 13px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .intro-card {
        padding: 20px 15px;
    }

    .intro-logo-img {
        width: 60px;
        height: 60px;
    }

    .intro-card h3 {
        font-size: 1.1rem;
    }

    .event-banner {
        padding: 20px 15px;
    }

    .event-banner h2 {
        font-size: 1.4rem;
    }

    .event-features {
        grid-template-columns: 1fr;
    }

    .domain-tile,
    .problem-card {
        padding: 22px 18px;
    }

    .reg-form {
        padding: 20px 14px;
    }

    .form-section {
        padding: 18px 14px;
    }

    .form-field input {
        padding: 12px 14px;
    }

    .file-upload-area {
        padding: 25px 15px;
    }

    .success-panel {
        padding: 25px 15px;
    }

    .success-main {
        font-size: 1.4rem;
    }

    .success-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 5% 40px;
    }

    .hero-mascot {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .domains,
    .problems,
    .judges,
    .registration,
    .about,
    .intro,
    .highlights {
        padding: 50px 0;
    }
}

/* ============================================
   SAFE AREA INSETS (iPhone X+)
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(35px + env(safe-area-inset-bottom));
    }

    .header {
        padding-top: calc(12px + env(safe-area-inset-top));
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mascot-glow,
    .mascot-aura,
    .lion-svg,
    .mane-outer,
    .mane-spike,
    .ear,
    .eyelid,
    .eye-iris,
    .eye-shine,
    .nose-group {
        animation: none;
    }
}

/* ============================================
   3D MASCOT STYLES
   ============================================ */
.hero {
    perspective: 1000px;
}

.mascot-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    width: 100%;
    max-width: 450px;
    /* Limit size */
    aspect-ratio: 1;
    /* Keep square */
    margin: 0 auto;
}

.lion-mascot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transform: translateZ(20px);
    /* Pop out slightly */
}

/* Floating Elements */
.float-element {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: floatIcon 3s ease-in-out infinite;
    animation-delay: var(--d, 0s);
    transform: translateZ(var(--depth, 30px));
    user-select: none;
    pointer-events: none;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateZ(var(--depth, 30px)) translateY(0);
    }

    50% {
        transform: translateZ(var(--depth, 30px)) translateY(-15px);
    }
}

/* Roar Animation */
.mascot-wrapper.roaring {
    animation: roarAction 0.6s ease-out;
}

.mascot-wrapper.roaring .lion-mascot-img {
    filter: drop-shadow(0 20px 50px rgba(234, 179, 8, 0.6));
    /* Gold glow */
    transition: filter 0.2s;
}

@keyframes roarAction {
    0% {
        transform: scale(1) rotate(0deg);
    }

    20% {
        transform: scale(1.1) rotate(-5deg);
    }

    40% {
        transform: scale(1.1) rotate(5deg);
    }

    60% {
        transform: scale(1.1) rotate(-3deg);
    }

    80% {
        transform: scale(1.05) rotate(2deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.mascot-bubble {
    transform: translateZ(60px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   COUNTDOWN TIMER STYLES
   ============================================ */
.countdown-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 70px;
    animation: fadeIn 0.5s ease-out backwards;
}

.countdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

.countdown-item:nth-child(2) {
    animation-delay: 0.2s;
}

.countdown-item:nth-child(3) {
    animation-delay: 0.3s;
}

.countdown-item:nth-child(4) {
    animation-delay: 0.4s;
}

.countdown-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    /* Gold */
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.countdown-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .countdown-container {
        gap: 0.8rem;
    }

    .countdown-item {
        padding: 0.6rem 0.8rem;
        min-width: 55px;
    }

    .countdown-val {
        font-size: 1.4rem;
    }

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

/* ============================================
   HEADER 3D MASCOT STYLES
   ============================================ */
.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-mascot-container {
    perspective: 500px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    flex-shrink: 0;
}

.header-mascot-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-mascot-container:hover .header-mascot-3d {
    transform: rotateY(180deg) rotateX(10deg);
}

.header-mascot-3d div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mascot-mane {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px;
    transform: translate(-50%, -50%) translateZ(-5px);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.mascot-ears {
    width: 34px;
    height: 10px;
    transform: translate(-50%, -15px) translateZ(-2px);
}

.mascot-ears::before,
.mascot-ears::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d97706;
    border-radius: 2px;
}

.mascot-ears::before {
    left: 0;
    transform: rotate(-15deg);
}

.mascot-ears::after {
    right: 0;
    transform: rotate(15deg);
}

.mascot-face {
    width: 20px;
    height: 20px;
    background: #fef3c7;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(2px);
}

.mascot-eyes {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -4px) translateZ(6px);
}

.mascot-eyes::before,
.mascot-eyes::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #1f2937;
    border-radius: 50%;
}

.mascot-eyes::before {
    left: 2px;
}

.mascot-eyes::after {
    right: 2px;
}

.mascot-nose {
    width: 4px;
    height: 3px;
    background: #4b5563;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translate(-50%, 4px) translateZ(8px);
}

@keyframes mascotIdle {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg);
    }

    50% {
        transform: translateY(-2px) rotateX(10deg);
    }
}

.header-mascot-3d {
    animation: mascotIdle 3s ease-in-out infinite;
}

.header-title {
    font-weight: 900;
    font-size: 4.5rem;
    white-space: nowrap;
}


@media (max-width: 1024px) {
    .header-center {
        display: none;
        /* Hide on smaller screens to prevent overlap */
    }
}

/* ============================================
   HACKATHON STRUCTURE (TIMELINE) STYLES
   ============================================ */
.structure {
    padding: 100px 5%;
    position: relative;
    background: var(--bg-secondary);
}

.timeline {
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--blue-accent), transparent);
    opacity: 0.3;
}

.timeline-stage {
    position: relative;
    margin-bottom: 60px;
    padding-left: 100px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s var(--transition) forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stage-tag {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--gold);
    z-index: 2;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.stage-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s var(--transition);
}

.stage-content:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.stage-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--gold-light);
}

.stage-content p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.criteria-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
}

.criteria-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

.rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.round-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.round-card.fun {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.05);
}

.round-num {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.2;
    margin-bottom: 10px;
}

.round-card h4 {
    color: var(--text-white);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.round-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-stage {
        padding-left: 60px;
    }

    .stage-tag {
        width: 40px;
        height: 40px;
        font-size: 0.6rem;
    }

    .stage-content {
        padding: 25px;
    }

    .stage-content h3 {
        font-size: 1.4rem;
    }
}

/* Roadmap & Scope Gold Sections */
.structure,
.scope-members {
    padding: 80px 0;
    /* Gold Gradient Overlay */
    background: linear-gradient(135deg, rgba(69, 26, 3, 0.6) 0%, rgba(180, 83, 9, 0.2) 100%);
    position: relative;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: inset 0 0 100px rgba(245, 158, 11, 0.05);
}

.structure {
    overflow: hidden;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    transform-style: preserve-3d;
}

/* 3D Flip Animation */
.scope-card {
    background: transparent;
    padding: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    border: none;
    height: 350px;
    /* Tighter balanced height */
    width: 100%;
    /* Ensure it fills grid cell */
    max-width: 280px;
    /* Constrain width */
    margin: 0 auto;
    /* Center in grid cell */
    /* Fixed height for consistent flip */
    cursor: pointer;
}

.scope-card:hover {
    transform: translateY(-10px);
}

.scope-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform-style: preserve-3d;
    /* Removed border-radius and box-shadow from inner container to avoid double border */
}

.scope-card.flipped .scope-card-inner {
    transform: rotateY(180deg);
}

.scope-card-front,
.scope-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;

    /* Professional Polish Updates */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 15, 30, 0.95));
    /* Premium Navy Blue */
    backdrop-filter: blur(8px);
    /* Premium Blur */
    border: 2px solid #D4AF37;
    /* Gold Border */

    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical Center */
    align-items: center;
    /* Horizontal Center */
    top: 0;
    left: 0;
    overflow: hidden;
    /* Clean shadow for depth */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Front Face */
.scope-card-front {
    z-index: 2;
}

/* Back Face */
.scope-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99));
    border: 1px solid var(--gold);
}

.scope-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.scope-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.scope-back-content h4 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin: 0;
}

.scope-email {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
    word-break: break-all;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 90%;
}

.scope-email:hover {
    color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
}

.click-hint {
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--text-gray);
    opacity: 0.7;
}

.scope-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered perfectly */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8rem;
    /* Large background element */
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    /* 10% Opacity */
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    /* Non-interactive */
}

.scope-card-front:hover .scope-letter {
    color: rgba(212, 175, 55, 0.2);
    /* #D4AF37 Gold hint on hover */
    transform: translate(-50%, -50%) scale(1.1);
}

.scope-image-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    /* Spacing below photo */
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid #D4AF37;
    /* Consistent Gold Ring */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.scope-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: all 0.4s ease;
}

.scope-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
    /* Standardize name-role spacing */
    z-index: 1;
    position: relative;
    white-space: nowrap !important;
}

.scope-role {
    display: block;
    font-size: 0.85rem;
    color: #D4AF37;
    /* Gold Text matching border */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    z-index: 1;
    position: relative;
}

.scope-dept {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Core Team Specific Image Size */
.core-team-grid .scope-image-container {
    width: 180px;
    height: 180px;
}

/* Registration Deadline Badge (Global) */
.registration-deadline {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@media (max-width: 1024px) {

    /* Stack Grids Vertically */
    .hero-content,
    .intro-grid,
    .about-content,
    .about-details,
    .highlights-grid,
    .domains-grid,
    .judges-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    /* Global Padding Adjustments */
    .section-inner,
    .header,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Hero Font Sizes */
    .hero-title {
        font-size: 3rem;
    }

    /* Scope Card Mobile Flip */
    .scope-card {
        height: 400px;
        /* Increase height for mobile content */
    }

    .scope-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 40px 20px;
        width: 100%;
        z-index: 10;
        height: auto;
    }

    /* Hide Navigation on Mobile */
    .scroll-buttons,
    .swipe-hint-container {
        display: none !important;
    }

    .scope-grid::-webkit-scrollbar {
        display: none;
    }

    .scope-card {
        width: calc(50% - 10px);
        min-width: 0;
        max-width: none;
        height: 360px;
        flex-shrink: 0;
        transform-style: preserve-3d;
        transition: transform 0.1s ease-out;
        margin: 0;
        /* Gap handles spacing now */
        pointer-events: auto;
    }

    .scope-image-container {
        width: 110px;
        height: 110px;
    }

    /* Problems Horizontal Scroll or Stack */
    .problems-container {
        flex-direction: column;
        /* Stack problems vertically */
        overflow-x: hidden;
    }

    .problem-card {
        min-width: 100%;
    }
}

/* Mobile Glitch Fixes */
@media (max-width: 768px) {

    /* 1. Header Title Visibility */
    .header-center {
        display: block !important;
        /* Force show */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }

    .header-title {
        font-size: 2rem;
        white-space: nowrap;
        opacity: 1;
    }


    /* 2. Intro Background Logo */
    /* 2. Intro Background Logo */
    /* 2. Intro Background Logo */
    .intro-bg-logo {
        width: 85vw !important;
        position: fixed !important;
        /* Fixed to viewport */
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: -1;
        /* Removed static opacity !important to allow animation */
        filter: grayscale(100%) sepia(100%) hue-rotate(0deg) saturate(300%) contrast(1.2) brightness(1.5);
        /* Brighter */
        animation: mobileLogoPulse 3s ease-in-out infinite alternate !important;
    }

    /* Mobile specific pulse that goes from very low to visible */
    @keyframes mobileLogoPulse {
        0% {
            opacity: 0;
            /* Start completely invisible (fade out) */
            transform: translate(-50%, -50%) scale(0.9);
        }

        50% {
            opacity: 0.15;
        }

        100% {
            opacity: 0.35;
            /* Fade in to visible */
            transform: translate(-50%, -50%) scale(1.05);
        }
    }

    /* 3. Intro Title Scaling */
    .intro-title {
        width: 100%;
        padding: 0 10px;
        font-size: clamp(2rem, 6vw, 4rem);
        /* Smaller max size */
        line-height: 1.2;
    }

    .intro-break {
        display: block;
        /* Force break on mobile */
        content: "";
        height: 10px;
    }
}

/* Swipe Hint Styling */
.swipe-hint-container {
    display: none;
    /* Hidden by default */
    justify-content: center;
    margin-bottom: 25px;
}

.swipe-hint-update {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    /* Fully rounded pill */
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    animation: hintPulse 2s infinite;
    position: relative;
}

.swipe-hint-update::before {
    content: '↔';
    /* Hand/Arrow icon */
    font-size: 1.1rem;
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Mobile Display Only */
@media (max-width: 1024px) {
    .swipe-hint-container {
        display: flex;
    }

    .intro-break::after {
        content: "\00A0";
        display: inline;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
    }


    .logo-text {
        display: none;
        /* Hide 'Sri Sairam...' text on very small screens to fit title */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .scope-card {
        height: 360px !important;
        /* Keep mobile height consistent */
    }
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    will-change: transform;
}

/* Text Reveal Animation */
.reveal-text {
    overflow: hidden;
    line-height: 1.2;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.reveal-text.visible span {
    transform: translateY(0);
}

/* Spotlight Effect */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    /* Default glass base */
    z-index: 1;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 215, 0, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    pointer-events: none;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* ============================================
   GALLERY - 3D CAROUSEL
   ============================================ */
.gallery {
    padding: 100px 0;
    position: relative;
    overflow: visible;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 40px auto;
    /* Perspective calibration:
       Radius R ≈ 458px (from JS). Scale = P/(P-R).
       P=1800 → scale = 1800/1342 = 1.34x
       Apparent card: 220×1.34=295w, 330×1.34=443h → fits 600px container.
       Frustum: R(458) < P(1800), no near-plane clipping. */
    perspective: 1800px;
    perspective-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.gallery-cylinder {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    cursor: grab;
    will-change: transform;
    touch-action: none;
    /* Capture all touches for rotation */
    user-select: none;
    -webkit-user-drag: none;
    /* transition: transform 0.1s linear;  Managed by JS for drag */
}

.gallery-cylinder:active {
    cursor: grabbing;
}

.gallery-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 330px;
    margin-left: -110px;
    margin-top: -165px;
    border-radius: 6px;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 8px;
    /* Reduced from 14px */
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    user-select: none;
    -webkit-user-drag: none;
    transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;

    /* Gold frame base */
    background: linear-gradient(145deg, #d4a017, #b8860b 20%, #ffd700 40%, #daa520 60%, #b8860b 80%, #d4a017);
    border: 2px solid #a67c00;
    /* Reduced from 3px */
    box-shadow:
        /* Outer frame shadow */
        0 6px 30px rgba(0, 0, 0, 0.6),
        /* Gold outer glow */
        0 0 15px rgba(212, 160, 23, 0.3),
        /* Inner bevel - top/left highlight */
        inset 2px 2px 4px rgba(255, 223, 100, 0.6),
        /* Inner bevel - bottom/right shadow */
        inset -2px -2px 4px rgba(120, 80, 0, 0.5);
}

/* Inner ornate border */
.gallery-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    /* Reduced from 6px */
    border: 1px solid rgba(255, 215, 0, 0.5);
    /* Thinner inner border */
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
    box-shadow:
        inset 1px 1px 2px rgba(255, 223, 100, 0.3),
        inset -1px -1px 2px rgba(120, 80, 0, 0.3);
}

/* Gold shimmer sweep */
.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 245, 200, 0.15) 45%,
            rgba(255, 245, 200, 0.25) 50%,
            rgba(255, 245, 200, 0.15) 55%,
            transparent 70%);
    background-size: 200% 100%;
    animation: goldShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes goldShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.gallery-card img {
    flex: 1;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    border-radius: 3px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(180, 134, 11, 0.4);
    position: relative;
    z-index: 0;
    display: block;
}

.gallery-card:hover {
    filter: brightness(1.15);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 2px 2px 4px rgba(255, 223, 100, 0.6),
        inset -2px -2px 4px rgba(120, 80, 0, 0.5);
}

/* Overlay for Full Size Image */
.gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gallery-overlay.active img {
    transform: scale(1);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.gallery-close:hover {
    color: var(--gold);
}

.drag-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-container {
        height: 450px;
        /* Mobile radius ≈ (160+20)*12/2π ≈ 344px
           P=1200 → scale = 1200/856 = 1.40x
           Apparent: 160×1.40=224w, 240×1.40=336h → fits 450px */
        perspective: 1200px;
    }

    .gallery-card {
        width: 160px;
        height: 240px;
        margin-left: -80px;
        margin-top: -120px;
        padding: 6px;
        /* Reduced from 10px */
        border-radius: 5px;
    }
}

/* Force Scroll Fix */
html {
    overflow-y: auto !important;
    height: auto !important;
    scroll-behavior: auto !important;
    /* Disable smooth scroll if causing issues */
}

body {
    overflow-y: auto !important;
    /* Ensure vertical scroll */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    height: auto !important;
    min-height: 100vh;
}

/* Ensure overlay doesn't block events if stuck */
.intro-overlay:not([style*="display: block"]) {
    pointer-events: none !important;
}

/* Card Flip Logic (JS Toggled) */
.scope-card-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.scope-card.flipped .scope-card-inner {
    transform: rotateY(180deg);
}

.scope-card-front,
.scope-card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.scope-card-back {
    transform: rotateY(180deg);
}

/* Core Team Custom Header */
.core-title {
    color: #ff0000;
    /* Red */
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.core-subtitle {
    color: #ffffff;
    font-family: var(--font-heading);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    display: table;
    /* Keeps border tight to text */
    margin: 0 auto 40px;
    border-bottom: 3px solid #ff0000;
    /* Red underline */
    padding-bottom: 5px;
}

/* --- Domain Modal Styles --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 20, 0.98));
    border: 1px solid var(--gold);
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--gold);
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    overflow-y: auto;
    padding-right: 10px;
    color: var(--text-gray);
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .scroll-buttons {
        display: flex;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 3px;
    }

    /* Problem Statement Layout */
    .ps-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .ps-item:hover {
        border-color: rgba(212, 175, 55, 0.3);
        transform: translateX(5px);
        background: rgba(255, 255, 255, 0.05);
    }

    .ps-id {
        display: inline-block;
        background: rgba(212, 175, 55, 0.1);
        color: var(--gold);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 700;
        margin-bottom: 10px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }

    .ps-title {
        color: #fff;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.2rem;
        margin: 0 0 10px 0;
    }

    .ps-desc {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #cbd5e1;
        margin-bottom: 15px;
    }

    .ps-challenges {
        margin-top: 15px;
        padding-left: 15px;
        border-left: 2px solid var(--gold);
    }

    .ps-challenges h5 {
        color: var(--gold);
        margin: 0 0 5px 0;
        font-size: 0.9rem;
        text-transform: uppercase;
    }

    .ps-challenges p {
        font-size: 0.9rem;
        color: #94a3b8;
        margin: 0;
    }

    /* --- Domain Interaction Hint --- */
    .hint-container {
        display: flex;
        justify-content: center;
        margin-top: 15px;
        /* Added positive spacing */
        margin-bottom: 30px;
        opacity: 0;
        animation: fadeInUp 0.8s ease 0.5s forwards;
    }

    .hint-badge {
        background: rgba(212, 175, 55, 0.1);
        /* Low opacity gold */
        border: 1px solid rgba(212, 175, 55, 0.3);
        color: var(--gold);
        padding: 8px 20px;
        border-radius: 50px;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
        cursor: default;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .hint-badge:hover {
        background: rgba(212, 175, 55, 0.2);
        border-color: var(--gold);
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    }

    .hint-icon {
        font-size: 1.1rem;
        animation: bounceDown 2s infinite;
    }

    @keyframes bounceDown {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(4px);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* --- Typography Spacing Fix Removed (Moved to Global) --- */

    .section-label {
        letter-spacing: 2px !important;
        margin-bottom: 0.5em;
        display: block;
    }

    /* --- Registration Note --- */
    .registration-note {
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid var(--gold);
        border-radius: var(--radius-sm);
        padding: 15px 20px;
        max-width: 600px;
        margin: 0 auto 30px;
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        backdrop-filter: blur(5px);
    }

    .note-icon {
        font-size: 1.5rem;
    }

    .registration-note p {
        margin: 0;
        font-size: 0.95rem;
        color: var(--text-white);
        line-height: 1.4;
    }

    .registration-note strong {
        color: var(--gold);
    }

    /* --- Modal Footer (PPT Instruction) --- */
    .modal-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
        margin-top: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        color: var(--text-gray);
        font-size: 0.9rem;
        background: rgba(0, 0, 0, 0.2);
        /* Subtle darken */
        margin: 20px -30px -30px;
        /* Negative margin to fill bottom */
        padding: 20px 30px;
        border-radius: 0 0 20px 20px;
    }

    .footer-icon {
        font-size: 1.4rem;
    }

    .modal-footer strong {
        color: var(--gold);
    }

    .footer-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
    }

    .download-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid var(--gold);
        color: var(--gold);
        padding: 8px 16px;
        border-radius: 5px;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .download-link:hover {
        background: rgba(212, 175, 55, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    }

    /* Secondary CTA (Download) */
    .cta-secondary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 28px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--gold);
        border-radius: 50px;
        color: var(--text-white);
        text-decoration: none;
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }

    .cta-secondary:hover {
        background: rgba(212, 175, 55, 0.1);
        border-color: var(--gold-light);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
    }

    .cta-secondary .cta-icon {
        font-size: 1.2rem;
    }

    /* Footer Contact Layout */
    .footer-contact {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 80px;
        margin: 60px auto 40px;
        padding: 40px;
        width: fit-content;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }

    .contact-group h4 {
        color: var(--gold);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.1rem;
        margin-bottom: 25px;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
    }

    .contact-item {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .contact-item span {
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--text-white);
    }

    .contact-item a {
        color: var(--text-gray);
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .contact-item a:hover {
        color: var(--gold-light);
        transform: translateX(5px);
    }

    .contact-divider {
        width: 1px;
        height: 120px;
        background: var(--glass-border);
        align-self: center;
    }

}

@media (max-width: 850px) {
    .footer-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        width: 90%;
    }

    .contact-divider {
        width: 100px;
        height: 1px;
    }

    .contact-item a {
        justify-content: center;
    }
}

/* ============================================
   NEW MOBILE-FRIENDLY GALLERY MARQUEE
   ============================================ */
.gallery-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Momentum scrolling for iOS if needed, though marquee is automated */
    -webkit-overflow-scrolling: touch;
}

.marquee-track {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    width: -webkit-max-content;
    width: max-content;
    gap: 20px;
    -webkit-animation: marquee-scroll 30s linear infinite !important;
    animation: marquee-scroll 30s linear infinite !important;
    will-change: transform;
    /* Force GPU Acceleration in Safari */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.marquee-item {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    /* Prevent image context menu on long press which can stall animation */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.marquee-item img {
    width: 280px;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    /* iOS specific hardware acceleration for the images themselves */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.marquee-item img:hover {
    transform: scale(1.05);
    border-color: var(--blue-primary);
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@-webkit-keyframes marquee-scroll {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .marquee-item img {
        width: 200px;
        height: 280px;
    }
}

/* New CTA Mini Style */
.cta-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-mini:hover {
    background: var(--gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.cta-mini:active {
    transform: translateY(0);
}

/* Footer Contact Layout Update */
/* Footer Contact Layout Update */
/* Footer Contact Layout Update */
.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px auto 20px;
}

.footer-contact .contact-divider {
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop Only: Row Layout & Vertical Divider */
@media (min-width: 851px) {
    .footer-contact {
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
    }

    .footer-contact .contact-divider {
        display: block;
        width: 1px;
        height: 100px;
        align-self: center;
    }
}

/* Mobile Footer Centering */
@media (max-width: 850px) {
    .footer-inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 40px 20px !important;
    }

    .footer-column {
        align-items: center !important;
        width: 100% !important;
    }

    .brand-logos {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-contact-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        text-align: center !important;
    }
}

/* Glassmorphic Footer Redesign */
.footer {
    background: linear-gradient(to bottom, #000000, #050505);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    padding: 80px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Brand Section Refresh */
.footer-brand-section {
    flex: 1.5;
    min-width: 320px;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease;
}

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

.leo-logo-small {
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.brand-divider-vertical {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.college-name {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.club-name {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    opacity: 0.9;
}

/* Social Pill Styling */
.footer-social-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
}

.social-icon-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Section Refresh */
.footer-contact-section {
    flex: 2;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.contact-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item span {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

/* Location Section Refresh */
.footer-location-section {
    flex: 1;
    min-width: 250px;
}

.location-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.location-label {
    display: block;
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 700;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    transition: all 0.3s ease;
    width: fit-content;
}

.map-link:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Footer Bottom Refresh */
.footer-bottom {
    width: 100%;
    margin-top: 60px;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Responsive Polish */
@media (max-width: 1024px) {
    .footer-inner {
        gap: 40px;
    }
}

@media (max-width: 850px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 50px 20px 30px;
        gap: 45px;
    }

    .footer-column {
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .brand-logos {
        justify-content: center;
        gap: 15px;
    }

    .footer-social-pill {
        justify-content: center;
        margin-top: 10px;
    }

    .footer-contact-section {
        grid-template-columns: 1fr;
        gap: 35px;
        width: 100%;
    }

    .contact-group {
        align-items: center;
    }

    .contact-item a {
        justify-content: center;
        font-size: 0.95rem;
    }

    .footer-ieee-logos {
        justify-content: center;
    }

    .map-link {
        align-self: center;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        margin-top: 40px;
        padding-top: 30px;
    }
}

/* Mobile Card Layout Optimization */
@media (max-width: 600px) {
    .scope-card {
        height: 350px !important;
        /* Match desktop height */
        width: 100% !important;
        max-width: 340px !important;
        /* Cap width for very large phones */
        margin: 0 auto !important;
    }

    .scope-image-container {
        width: 140px !important;
        /* Match desktop regular size */
        height: 140px !important;
        margin-bottom: 15px !important;
    }

    .core-team-grid .scope-image-container {
        width: 180px !important;
        /* Match desktop core team size */
        height: 180px !important;
    }

    .scope-info h4 {
        font-size: 0.95rem !important;
    }

    .scope-role {
        font-size: 0.75rem !important;
    }

    .scope-dept {
        font-size: 0.7rem !important;
    }

    .scope-letter {
        font-size: 4rem !important;
    }

    .scope-card-front,
    .scope-card-back {
        padding: 15px 10px !important;
    }
}

/* Global Heading Spacing Fix */
h1,
h2,
h3,
h4,
.hero-title,
.section-title,
.event-banner h2 {
    word-spacing: 0.25em !important;
    white-space: normal !important;
    /* Ensure spaces are rendered */
}


.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-socials {
    margin-top: 20px;
}

/* Footer IEEE Logos */
.footer-ieee-section {
    margin-top: 18px;
}

.footer-ieee-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.footer-ieee-logos {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-ieee-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-ieee-badge span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-ieee-img {
    width: 160px;
    height: 70px;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer-ieee-img:hover {
    transform: scale(1.05);
    border-color: rgba(212, 175, 55, 0.75);
}


.social-link {
    color: var(--text-white);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    color: var(--gold);
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--gold));
}

/* Mobile Nav Socials */
.mobile-nav-socials {
    width: 100%;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-socials p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-light);
    opacity: 0.6;
    margin-bottom: 20px;
    text-align: left;
}

.mobile-nav-socials .social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-socials .social-link {
    justify-content: flex-start;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    opacity: 1;
    color: var(--text-white);
}

.mobile-nav-socials .social-link span {
    letter-spacing: 1px;
}

.mobile-nav-socials .social-link svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

/* ============================================
   IEEE Association Section
   ============================================ */
.ieee-association {
    padding: 80px 5%;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.ieee-association::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 102, 153, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.ieee-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.ieee-card {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 45px 35px;
    text-align: center;
    overflow: hidden;
    transition: all 0.5s var(--transition);
}

.ieee-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 102, 153, 0.1);
}

.ieee-card-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 153, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.ieee-card-glow.cs {
    background: radial-gradient(circle, rgba(0, 102, 204, 0.2) 0%, transparent 60%);
}

.ieee-card:hover .ieee-card-glow {
    opacity: 1;
}

.ieee-logo-wrapper {
    width: 280px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s var(--transition);
}

.ieee-card:hover .ieee-logo-wrapper {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.ieee-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s var(--transition);
}

/* Specific cropping for each logo */
.ieee-smc-img {
    transform: scale(1);
    transform-origin: center;
}

.ieee-cs-img {
    transform: scale(1.8);
    transform-origin: center;
}

.ieee-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.ieee-fullname {
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.ieee-tagline {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto;
}

/* IEEE Footer Logos */
.footer-ieee-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-ieee-logo {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 8px 15px;
    height: 45px;
    display: flex;
    align-items: center;
    transition: all 0.3s var(--transition);
}

.footer-ieee-logo:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-ieee-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* IEEE Section Responsive */
@media (max-width: 768px) {
    .ieee-logos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ieee-card {
        padding: 35px 25px;
    }

    .ieee-logo-wrapper {
        width: 240px;
        height: 90px;
        padding: 0;
    }

    .ieee-info h3 {
        font-size: 1.3rem;
    }

    .ieee-tagline {
        font-size: 0.82rem;
    }

    .footer-ieee-logos {
        gap: 15px;
    }

    .footer-ieee-logo {
        height: 38px;
        padding: 6px 12px;
    }

    .footer-ieee-logo img {
        height: 24px;
    }

    .ieee-association {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {
    .ieee-card {
        padding: 30px 20px;
    }

    .ieee-logo-wrapper {
        width: 220px;
        height: 80px;
        padding: 0;
    }

    .ieee-info h3 {
        font-size: 1.15rem;
    }

    .ieee-fullname {
        font-size: 0.85rem;
    }

    .footer-ieee-logos {
        flex-direction: column;
        gap: 10px;
    }
}

/* Event Duration Timer Styles */
.event-duration {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
}

/* Gold Timer Theme Styles */
/* Gold Timer Theme Styles - Large Screen Fitting */
.timer-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.grid {
    display: grid;
}

.auto-cols-max {
    grid-auto-columns: max-content;
}

.grid-flow-col {
    grid-auto-flow: column;
}

.timer-grid {
    display: grid;
    gap: 2rem;
    margin: 0 auto;
}

.justify-center {
    justify-content: center;
}

.flex {
    display: flex;
}

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

.p-2 {
    padding: 1.5rem;
}

/* Increased padding */

.timer-gold-card {
    background: rgba(255, 215, 0, 0.08);
    /* Softened glass-gold */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: var(--gold);
    min-width: 200px;
    padding: 2rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.4s var(--transition);
}

.timer-gold-card:hover {
    transform: translateY(-15px) scale(1.02);
}

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

.font-mono {
    font-family: 'Space Mono', monospace;
}

.text-5xl {
    font-size: 5rem;
    font-weight: 800;
}

.timer-label-sm {
    font-size: 1.25rem;
    /* Larger labels */
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    margin-top: 15px;
    opacity: 0.9;
}

.timer-header {
    margin-bottom: 70px;
}

.timer-label {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.timer-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
}

.timer-footer {
    margin-top: 60px;
    color: #888;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2.5rem;
}

.timer-btn {
    padding: 14px 28px;
    /* Slightly more compact default */
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.timer-controls.hidden {
    display: none;
}

.timer-lock {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.lock-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.lock-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
    width: 250px;
    transition: all 0.3s ease;
}

.lock-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.unlock-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

.lock-error {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-gold {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    color: #1a1a1a;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Responsive Timer - Scale down for smaller screens */
@media (max-width: 1200px) {
    .text-5xl {
        font-size: 6rem;
    }

    .timer-gold-card {
        min-width: 200px;
    }
}

@media (max-width: 1024px) {
    .text-5xl {
        font-size: 4.5rem;
    }

    .timer-gold-card {
        min-width: 160px;
    }

    .gap-5 {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .timer-title {
        font-size: 3rem;
    }

    .text-5xl {
        font-size: 3rem;
    }

    .timer-gold-card {
        min-width: 110px;
        padding: 1.5rem 0.75rem;
    }

    .gap-5 {
        gap: 1rem;
    }

    .timer-controls {
        gap: 15px;
        flex-wrap: wrap;
    }

    .timer-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .timer-container {
        padding: 30px 15px;
        /* Reduced padding */
    }

    .timer-title {
        font-size: 1.8rem;
    }

    .text-5xl {
        font-size: 2rem;
        /* Scaled down */
    }

    .timer-gold-card {
        min-width: 75px;
        /* Narrower cards */
        padding: 1rem 0.4rem;
    }

    .gap-5 {
        gap: 0.4rem;
        /* Tighter gap */
    }

    .timer-controls {
        gap: 10px;
        flex-wrap: wrap;
    }

    .timer-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        min-width: 120px;
        justify-content: center;
    }

    .timer-label-sm {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ============================================ */

/* ── Tablet / Mobile (≤768px) ── */
@media (max-width: 768px) {

    /* Prevent horizontal scroll globally */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* HEADER - Compact Single Row for mobile */
    .header-inner {
        display: grid;
        grid-template-areas: "left center right";
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 10px 2%;
        align-items: center;
        width: 100%;
    }

    .header-left {
        grid-area: left;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
    }

    .header-right {
        grid-area: right;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 6px;
    }

    .header-center {
        grid-area: center;
        display: flex !important;
        justify-content: center;
        width: 100%;
        padding: 0;
        border: none;
    }

    .hamburger {
        grid-area: unset;
        margin: 0 !important;
        padding: 4px !important;
        transform: scale(0.85);
    }

    .logo-img.college-logo,
    .logo-img.leo-logo {
        width: 32px !important;
        height: 32px !important;
    }

    .logo-img.ieee-logo {
        width: 28px !important;
        height: 28px !important;
    }

    .hamburger span {
        width: 22px !important;
        height: 2px !important;
        gap: 4px !important;
    }

    .header-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        line-height: 1;
    }

    .header-title span {
        display: block;
        font-size: 1.1rem !important;
        /* Increased for better visibility */
        letter-spacing: 0.2px;
        text-align: center;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD700 0%, #F59E0B 50%, #B45309 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-transform: uppercase;
        filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.3));
    }

    .ieee-partners {
        padding-right: 0 !important;
    }

    .header-title .header-title-hack {
        font-size: 0.9rem !important;
        /* Increased slightly */
        margin-top: -1px;
    }

    /* HERO */
    .hero {
        padding: 100px 4% 50px;
        /* Reduced for single row header */
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    .hero-desc,
    .mission-quote {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-actions a,
    .hero-actions button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .countdown-container {
        justify-content: center;
        gap: 10px;
    }

    .countdown-val {
        font-size: 2rem !important;
    }

    .hero-visual,
    .hero-image-wrap {
        display: none;
    }

    /* SECTIONS */
    section {
        padding: 60px 5%;
    }

    .section-inner {
        padding: 0 12px;
    }

    .section-header {
        margin-bottom: 28px;
        text-align: center;
    }

    /* ABOUT */
    .about-content,
    .about-details {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* HIGHLIGHTS / STATS */
    .highlights-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px;
    }

    .highlight-card,
    .stat-card {
        padding: 18px 14px;
    }

    /* DOMAINS */
    .domains-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .domain-card {
        padding: 18px;
    }

    /* JUDGES */
    .judges-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px;
    }

    /* REGISTRATION */
    .registration-form,
    .form-grid,
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .form-group {
        width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Prevent iOS auto-zoom */

    /* GALLERY */
    .gallery-container {
        height: 380px;
        perspective: 900px;
    }

    .gallery-card {
        width: 160px;
        height: 240px;
        margin-left: -80px;
        margin-top: -120px;
    }

    /* SCOPE / CORE TEAM */
    .scope-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px;
        overflow-x: unset;
        height: auto !important;
        padding: 20px 0;
    }

    .scope-card {
        width: 100% !important;
        min-width: 0 !important;
        height: 340px !important;
    }

    .core-team-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px;
    }

    .core-team-grid .scope-image-container {
        width: 110px;
        height: 110px;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 28px;
        text-align: center;
    }

    .footer-social-pill {
        justify-content: center;
    }

    /* MODAL */
    .modal-content {
        width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
        padding: 22px 14px;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {

    .hero-title {
        font-size: clamp(1.7rem, 9vw, 2.4rem) !important;
    }

    .countdown-val {
        font-size: 1.6rem !important;
    }

    .logo-text {
        display: none !important;
    }

    .logo-img.college-logo,
    .logo-img.leo-logo {
        width: 36px;
        height: 36px;
    }

    /* COLLAPSE EVERYTHING TO 1 COLUMN */
    .highlights-grid,
    .stats-grid,
    .judges-grid,
    .scope-grid,
    .core-team-grid {
        grid-template-columns: 1fr !important;
    }

    h2 {
        font-size: clamp(1.3rem, 6vw, 1.8rem) !important;
    }

    .section-desc {
        font-size: 0.875rem;
    }

    .gallery-container {
        height: 280px;
        perspective: 700px;
    }

    .gallery-card {
        width: 130px;
        height: 195px;
        margin-left: -65px;
        margin-top: -97px;
    }

    .btn,
    .cta-btn,
    button[type="submit"] {
        width: 100%;
        font-size: 0.9rem;
        padding: 13px 18px;
    }

    .footer {
        padding: 36px 14px 20px;
    }

    .footer-copy {
        font-size: 0.78rem;
    }
}

/* ── Pure touch devices: disable hover-only effects ── */
@media (hover: none) and (pointer: coarse) {
    .spotlight-card::before {
        display: none;
    }

    a,
    button {
        min-height: 44px;
    }
}