/* ============================
   RESET & BASE STYLES
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Mythical Theme - Matching Dark Blackish Background */
    --primary-purple: #b8a890;      /* Brighter sandy brown */
    --dark-purple: #1a1612;         /* Very dark brown-black */
    --indigo: #6a5f50;              /* Medium taupe */
    --dark-indigo: #0d0b09;         /* Almost black */
    --deep-black: #000000;          /* Pure black */
    --light-black: #0f0d0a;         /* Deep black with brown tint */
    --cyan: #d4c5b0;                /* Bright sandy brown */
    --light-cyan: #e8dcc8;          /* Very light sandy */
    --white: #ffffff;
    --light-gray: #b8a890;          /* Warm mid-tone */
    --card-bg: rgba(25, 22, 18, 0.95);  /* Darker, more opaque card background */
    --text-primary: #f5ede0;        /* Brighter warm off-white */
    --text-secondary: #d4c5b0;      /* Brighter muted tan */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Philosopher', sans-serif;
    /* Background: Fixed single-screen image that stays in place while scrolling */
    background-color: var(--deep-black);
    background-image: url('images/homeBg.jpg');
    background-size: cover; /* Fits image to viewport without stretching */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps background fixed while content scrolls */
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ============================
   DARK MIST OVERLAY
   ============================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(15, 13, 10, 0.4) 0%,
        rgba(20, 18, 15, 0.5) 50%,
        rgba(10, 8, 6, 0.6) 100%
    );
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   PARTICLE BACKGROUND
   ============================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* No overlay - fully transparent to show background image */
    background: transparent;
}

.particle {
    position: absolute;
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* No fog overlay - fully transparent */
    background: transparent;
    animation: none;
    pointer-events: none;
}

@keyframes fogMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 20px) scale(1.1);
    }
}

/* ============================
   WEBGL FLUID CURSOR
   ============================ */
/* * {
    cursor: none !important;
} */

/* ============================
   NAVIGATION BAR - Modern Tech Design
   ============================ */

/* ============================
   NAVIGATION BAR - Modern Tech Design
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.navbar.scrolled {
    background: rgba(15, 13, 10, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(180, 168, 144, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 20px;
    max-width: 100%;
    margin: 0;
    min-height: 70px;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    margin-right: 120px;
}

.nav-center {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    width: 175px;
    height: 72px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary-purple), var(--cyan));
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.logo:hover {
    transform: translateY(-2px) scale(1.08);
}

.logo:hover::before {
    opacity: 1;
}

/* Navbar Logo - ensure correct sizing for both logos */
.nav-left .logo {
    height: auto;
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.house-logo {
    width: 80px;
    height: 80px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--primary-purple), var(--cyan));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(139, 92, 246, 0.1);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

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

/* ============================
   DROPDOWN MENU
   ============================ */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
    position: absolute;
    right: 8px;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(25, 22, 18, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(180, 168, 144, 0.3);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    list-style: none;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(180, 168, 144, 0.2);
    border-left-color: var(--cyan);
    color: var(--cyan);
    padding-left: 25px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-purple), var(--cyan));
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover span {
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* Hide mobile menu header on desktop */
.mobile-menu-header {
    display: none;
}

.close-menu {
    display: none;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 60px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: -80px;
    width: 100%;
    max-width: 100%;
}

.fest-logo-container {
    margin-bottom: 0;
    transform-style: preserve-3d;
    will-change: transform;
    animation: fadeInDown 1s ease-out;
    width: 100%;
    display: flex;
    justify-content: center;
}

.fest-logo {
    max-width: 560px;
    width: 80%;
    object-fit: contain;
    animation: floatLogo 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.5));
    transition: transform 0.3s ease-out;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-25px) scale(1.02);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 15px 60px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 30px rgba(255, 200, 0, 0.6));
    }
}

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

.hero-image-container {
    margin-bottom: 0;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    animation: fadeInUp 1.2s ease-out 0.3s both;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 500px;
    width: 90%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    animation: breathe 5s ease-in-out infinite;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease-out;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 25px 60px rgba(139, 92, 246, 0.4)) drop-shadow(0 0 40px rgba(6, 182, 212, 0.3));
    }
}

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

@keyframes heroGlow {
    0% {
        box-shadow: 
            0 0 40px rgba(139, 92, 246, 0.6),
            0 0 80px rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 
            0 0 60px rgba(139, 92, 246, 0.8),
            0 0 120px rgba(99, 102, 241, 0.6);
    }
}

.hero-tagline {
    font-family: 'Macondo', cursive;
    font-size: 2.8rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, #a78bfa, #e0e7ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite, textFloat 3s ease-in-out infinite, fadeIn 1.5s ease-out 0.6s both;
    margin-top: 20px;
    padding: 0 20px;
    position: relative;
    text-transform: capitalize;
    line-height: 1.4;
    filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.8));
}

.hero-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--cyan), transparent);
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.9));
    }
}

/* ============================
   COUNTDOWN TIMER
   ============================ */
.countdown-container {
    margin-top: 40px;
    animation: fadeIn 1.8s ease-out 0.9s both;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 30px 40px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 36, 0.8));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    animation: timerGlow 3s ease-in-out infinite;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 15px 20px;
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.6), rgba(20, 20, 40, 0.6));
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    transition: all 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.time-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    line-height: 1;
    margin-bottom: 8px;
}

.time-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 215, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.time-separator {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.6);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: blinkSeparator 1.5s ease-in-out infinite;
}

@keyframes timerGlow {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.2),
            inset 0 0 30px rgba(255, 215, 0, 0.05);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.7),
            0 0 50px rgba(255, 215, 0, 0.4),
            inset 0 0 40px rgba(255, 215, 0, 0.1);
    }
}

@keyframes blinkSeparator {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-purple);
    border-radius: 20px;
    display: none;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator span {
    width: 6px;
    height: 10px;
    background: var(--primary-purple);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(15px);
        opacity: 0.5;
    }
}

/* ============================
   SECTION HEADINGS
   ============================ */
.section-heading {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--cyan));
    border-radius: 2px;
}

/* ============================
   SCHEDULE SECTION
   ============================ */
.schedule {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.0) 0%, rgba(26, 26, 46, 0.25) 100%);
}

.schedule-title {
    font-family: 'Cinzel', serif;
    color: var(--cyan);
    margin: 10px 0 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(16, 16, 36, 0.95));
    border: 1px solid rgba(180, 168, 144, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.schedule-table th.full,
.schedule-table td.full {
    text-align: center;
    padding: 16px 18px;
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid rgba(180,168,144,0.25);
}

.schedule-table td {
    padding: 14px 16px;
    color: var(--text-secondary);
    vertical-align: top;
    border-bottom: 1px solid rgba(180,168,144,0.15);
}

.schedule-table tr:last-child td { border-bottom: none; }

.schedule-table .time-band {
    color: var(--cyan);
    text-align: center;
    background: rgba(0,0,0,0.2);
}

.schedule-table .lunch {
    text-align: center;
    background: rgba(251, 191, 36, 0.08);
    border-left: 1px solid rgba(180,168,144,0.25);
    border-right: 1px solid rgba(180,168,144,0.25);
    position: relative;
}

.schedule-table .lunch .lunch-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 320px;
}

.schedule-table .lunch .lunch-stack span {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0;
}

.schedule-table .lunch .lunch-stack small {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: rgba(255, 152, 0, 0.9);
}
.schedule-table .lunch span {
    display: inline-block;
    color: #fbbf24;
    font-weight: 700;
}

.schedule-table .slot .event {
    color: var(--text-primary);
    font-weight: 600;
}
.schedule-table .slot .meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.schedule .coming-soon {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 12px;
}

.highlight-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--text-primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 0 20px rgba(34, 197, 94, 0.06);
}

@media (max-width: 768px) {
    .schedule-table colgroup col:nth-child(1),
    .schedule-table colgroup col:nth-child(3) {
        width: 42% !important;
    }
    .schedule-table colgroup col:nth-child(2) {
        width: 16% !important;
    }
    .schedule-table td, .schedule-table th { padding: 12px; }
}

/* Mobile optimizations for schedule table */
@media (max-width: 560px) {
    .schedule { padding: 0 8px; }
    .schedule-table { font-size: 0.95rem; }
    .schedule-table td, .schedule-table th { padding: 10px; }
    .schedule-table .time-band { font-size: 0.9rem; }
    .schedule-table .slot .event { font-size: 0.95rem; }
    .schedule-table .slot .meta { font-size: 0.82rem; }
    .schedule-table colgroup col:nth-child(1),
    .schedule-table colgroup col:nth-child(3) {
        width: 46% !important;
    }
    .schedule-table colgroup col:nth-child(2) {
        width: 8% !important;
    }
    .schedule-table .lunch { min-width: 64px; }
    .schedule-table .lunch .lunch-stack { min-height: 140px; gap: 3px; }
    .schedule-table .lunch .lunch-stack span { font-size: 1rem; }
    .schedule-table .lunch .lunch-stack small { margin-top: 6px; font-size: 0.8rem; }
}

/* ============================
   ABOUT SECTION
   ============================ */
.about {
    padding: 0 0 40px 0;
    position: relative;
    min-height: 100vh;
    scroll-margin-top: 70px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(16, 16, 36, 0.9));
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(138, 121, 104, 0.2);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.6),
        -8px -8px 16px rgba(40, 40, 60, 0.4),
        inset 0 0 20px rgba(139, 92, 246, 0.05);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.7),
        -12px -12px 24px rgba(40, 40, 60, 0.5),
        inset 0 0 30px rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(138, 121, 104, 0.5);
}

.about-card p {
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

/* ============================
   EVENTS SECTION
   ============================ */
.events {
    padding: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(26, 26, 46, 0.3) 100%);
    position: relative;
    overflow: visible;
    min-height: 100vh;
    scroll-margin-top: 70px;
}

/* .events .container removed; heading and scene already interactive */

.events .section-heading {
    text-align: center;
    margin-top: 0;
    margin-bottom: 60px;
    padding-top: 20px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* ============================
   3D CYLINDRICAL CAROUSEL
   ============================ */
/* container removed: styles moved to scene */
.carousel-cylinder-scene {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 0;
    pointer-events: auto;
    isolation: isolate;
}

/* scene now acts as outer wrapper */
.carousel-cylinder-scene {
    width: 100%;
    height: auto;
    perspective: none;
    perspective-origin: 50% 50%;
    pointer-events: auto;
    overflow: hidden;
}

.carousel-cylinder {
    width: 100%;
    height: auto;
    position: relative;
    transform: none;
    transform-style: flat;
    transition: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: auto;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px 20px;
}

/* Base event card styles - ONLY for non-single-card-scroll modes */
.events:not(.single-card-scroll) .event-card-cylinder {
    position: relative;
    flex: 0 0 320px;
    width: 320px;
    height: auto;
    margin: 0;
    transition: none;
    opacity: 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: none;
    will-change: auto;
    pointer-events: auto !important;
    z-index: auto;
    scroll-snap-align: start;
}

.events:not(.single-card-scroll) .event-card-cylinder.center {
    opacity: 1;
    z-index: auto;
}

.events:not(.single-card-scroll) .event-card-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(16, 16, 36, 0.98));
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(180, 168, 144, 0.3);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(180, 168, 144, 0.05);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
    transform-style: flat;
    position: relative;
    pointer-events: auto !important;
}

.events:not(.single-card-scroll) .event-card-cylinder.center .event-card-inner {
    border-color: var(--cyan);
    box-shadow: 
        0 35px 90px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(180, 168, 144, 0.4),
        inset 0 0 35px rgba(180, 168, 144, 0.15);
    transform: scale(1.05);
}

.event-card-cylinder .event-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.event-card-cylinder .event-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-purple), var(--cyan));
    z-index: -1;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card-cylinder.center .event-image::before {
    opacity: 1;
}

.event-card-cylinder .event-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.event-card-cylinder.center .event-image img { transform: none; }

.event-card-cylinder h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--cyan);
    text-shadow: 0 0 15px rgba(180, 168, 144, 0.5);
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.event-card-cylinder.center h3 { color: var(--cyan); text-shadow: 0 0 15px rgba(180,168,144,0.5); }

.event-card-cylinder p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.9rem;
    flex-grow: 1;
}

.event-card-cylinder.center p { color: var(--text-secondary); }

.event-card-cylinder .register-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-purple), var(--indigo));
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer !important;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(180, 168, 144, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
    position: relative;
    margin-top: auto;
    flex-shrink: 0;
    pointer-events: auto !important;
    z-index: 1;
    transform: none;
}

/* Slider Nav */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 5;
}

.slider-nav-btn {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.slider-nav-btn:hover {
    background: var(--primary-purple);
    border-color: var(--white);
    color: var(--white);
    transform: scale(1.1);
}

/* Responsive card widths */
@media (max-width: 1024px) {
    .event-card-cylinder { flex-basis: 280px; width: 280px; }
}
@media (max-width: 768px) {
    .carousel-cylinder { gap: 16px; padding: 10px 8px 16px; }
    .event-card-cylinder { flex-basis: 70%; width: 70%; }
}
@media (max-width: 480px) {
    .event-card-cylinder { flex-basis: 85%; width: 85%; }
}

/* =============================
   HORIZONTAL SLIDER - Centered Card with Side Preview
============================= */
.events.horizontal-slider {
    padding: 60px 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.events.horizontal-slider h2.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.events.horizontal-slider .slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
}

.events.horizontal-slider .slider-wrapper {
    overflow: visible;
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events.horizontal-slider .slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.events.horizontal-slider .event-card {
    position: absolute;
    width: 450px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(16, 16, 36, 0.98));
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(180, 168, 144, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.85);
}

/* Center card - fully visible and interactive */
.events.horizontal-slider .event-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    z-index: 3;
    border-color: var(--cyan);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 212, 255, 0.3);
}

/* Left card - partially visible, faded */
.events.horizontal-slider .event-card.prev {
    opacity: 0.4;
    transform: translateX(-500px) scale(0.85);
    z-index: 1;
    filter: blur(1px);
}

/* Right card - partially visible, faded */
.events.horizontal-slider .event-card.next {
    opacity: 0.4;
    transform: translateX(500px) scale(0.85);
    z-index: 1;
    filter: blur(1px);
}

.events.horizontal-slider .event-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.events.horizontal-slider .event-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.events.horizontal-slider .event-image img {
    width: 100%;
    height: auto;
    display: block;
}

.events.horizontal-slider .event-card h3 {
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 10px;
}

.events.horizontal-slider .event-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.events.horizontal-slider .register-btn {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6b3fb8, #0099cc);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-shadow: 
        0 8px 24px rgba(107, 63, 184, 0.4),
        0 0 20px rgba(0, 153, 204, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.events.horizontal-slider .register-btn:hover {
    background: linear-gradient(135deg, #0099cc, #6b3fb8);
    box-shadow: 
        0 12px 32px rgba(107, 63, 184, 0.6),
        0 0 30px rgba(0, 153, 204, 0.5);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.events.horizontal-slider .register-btn:active {
    transform: translateY(0);
}

.events.horizontal-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(80, 40, 150, 0.95), rgba(0, 150, 200, 0.95));
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(80, 40, 150, 0.6);
}

.events.horizontal-slider .slider-btn:hover {
    background: linear-gradient(135deg, rgba(80, 40, 150, 0.95), rgba(0, 150, 200, 0.95));
}

.events.horizontal-slider .slider-btn:active {
    transform: translateY(-50%);
}

.events.horizontal-slider .slider-btn.prev {
    left: 20px;
}

.events.horizontal-slider .slider-btn.next {
    right: 20px;
}

@media (max-width: 768px) {
    .events.horizontal-slider {
        padding: 40px 0;
    }
    
    .events.horizontal-slider h2.section-heading {
        margin-bottom: 40px;
        font-size: 2rem;
    }
    
    .events.horizontal-slider .slider-container {
        padding: 0 60px;
    }
    
    .events.horizontal-slider .slider-wrapper {
        height: 480px;
    }
    
    .events.horizontal-slider .event-card {
        width: 320px;
        padding: 20px;
    }
    
    .events.horizontal-slider .event-card.prev {
        transform: translateX(-350px) scale(0.75);
        opacity: 0.35;
    }
    
    .events.horizontal-slider .event-card.next {
        transform: translateX(350px) scale(0.75);
        opacity: 0.35;
    }
    
    .events.horizontal-slider .event-card h3 {
        font-size: 1.3rem;
    }
    
    .events.horizontal-slider .event-card p {
        font-size: 0.9rem;
    }
    
    .events.horizontal-slider .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .events.horizontal-slider .slider-btn.prev {
        left: 5px;
    }
    
    .events.horizontal-slider .slider-btn.next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .events.horizontal-slider {
        padding: 30px 0;
    }
    
    .events.horizontal-slider h2.section-heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .events.horizontal-slider .slider-container {
        padding: 0 50px;
    }
    
    .events.horizontal-slider .slider-wrapper {
        height: 450px;
    }
    
    .events.horizontal-slider .event-card {
        width: 280px;
        padding: 18px;
    }
    
    .events.horizontal-slider .event-card.active {
        transform: translateX(0) scale(0.95);
    }
    
    .events.horizontal-slider .event-card.prev {
        transform: translateX(-300px) scale(0.7);
        opacity: 0.25;
    }
    
    .events.horizontal-slider .event-card.next {
        transform: translateX(300px) scale(0.7);
        opacity: 0.25;
    }
    
    .events.horizontal-slider .event-card h3 {
        font-size: 1.2rem;
    }
    
    .events.horizontal-slider .event-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .events.horizontal-slider .register-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .events.horizontal-slider .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .events.horizontal-slider .slider-btn.prev {
        left: 2px;
    }
    
    .events.horizontal-slider .slider-btn.next {
        right: 2px;
    }
    
    .events.horizontal-slider .event-image {
        margin-bottom: 8px;
    }
}

@media (max-width: 360px) {
    .events.horizontal-slider .slider-wrapper {
        height: 420px;
    }
    
    .events.horizontal-slider .event-card {
        width: 260px;
        padding: 16px;
    }
    
    .events.horizontal-slider .event-card.prev,
    .events.horizontal-slider .event-card.next {
        opacity: 0.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .events.vertical-scroll .event-card-cylinder .register-btn { transition: transform 0.25s ease, box-shadow 0.25s ease; }
}
.events.vertical-scroll .event-card-cylinder .register-btn:hover,
.events.vertical-scroll .event-card-cylinder .register-btn:focus-visible {
    background-position: 100% 0%;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px -6px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.events.vertical-scroll .event-card-cylinder .register-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px -4px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.events.vertical-scroll .event-card-cylinder .register-btn:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}
@media (max-width: 768px){
    .events.vertical-scroll .event-card-cylinder .register-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        border-radius: 11px;
        max-width: 300px;
    }
}
@media (max-width: 480px){
    .events.vertical-scroll .event-card-cylinder .register-btn {
        padding: 11px 18px;
        font-size: 0.8rem;
        border-radius: 10px;
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .events.vertical-scroll .carousel-cylinder { max-height: 70vh; padding: 10px 12px 24px; }
    .events.vertical-scroll .event-card-cylinder { max-width: 100%; }
}
@media (max-width: 480px) {
    .events.vertical-scroll .carousel-cylinder { max-height: 75vh; }
}
/* Scene wrapper removed; perspective applied directly to cylinder */
.events.cyl-3d .carousel-cylinder {
    height: 600px;
    perspective: 1400px; /* acts as containing block for 3D */
    perspective-origin: 50% 50%;
    position: relative;
    z-index: 10000; /* ensure cards and buttons sit above floating overlays */
    overflow: visible;
}

/* Inner 3D rotating plane now target: .events.cyl-3d .carousel-cylinder > .carousel-cylinder-inner */
.events.cyl-3d .carousel-cylinder-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: auto; /* allow interaction with children */
    overflow: visible;
}

/* Hover lift to ensure buried cards become top and clickable */
.events.cyl-3d .event-card-cylinder:hover {
    z-index: 1600 !important;
}
.events.cyl-3d .event-card-cylinder:hover .event-card-inner {
    transform: scale(1.03);
    box-shadow: 0 25px 70px rgba(0,0,0,0.8), 0 0 40px rgba(180,168,144,0.35);
}

.events.cyl-3d .event-card-cylinder {
    position: absolute;
    width: 280px;
    height: 400px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -200px;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95);
    opacity: 0.35;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    pointer-events: auto !important; /* clickable */
    z-index: 500;
}

.events.cyl-3d .event-card-cylinder.center {
    opacity: 1;
    z-index: 1000;
}

.events.cyl-3d .event-card-inner {
    pointer-events: auto !important;
}

.events.cyl-3d .event-card-cylinder .register-btn {
    transform: none;
    z-index: 10010; /* above floating card and nav */
    pointer-events: auto !important; /* ensure always clickable */
}

.events.cyl-3d .slider-nav { display: flex; pointer-events: none; }
.events.cyl-3d .slider-nav-btn { pointer-events: auto; }

.event-card-cylinder.center .register-btn {
    background: linear-gradient(135deg, var(--cyan), var(--primary-purple));
    box-shadow: 0 8px 35px rgba(180, 168, 144, 0.6);
}

.event-card-cylinder.center .register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 45px rgba(180, 168, 144, 0.8);
}

.event-card-cylinder.center .register-btn:active {
    transform: translateY(-1px);
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none !important;
    z-index: 2000;
    display: none !important;
}

.carousel-nav-btn {
    pointer-events: auto !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 2001;
}

.carousel-nav-btn:hover {
    background: var(--primary-purple);
    border-color: var(--white);
    color: var(--white);
    box-shadow: 0 8px 35px rgba(180, 168, 144, 0.7);
    transform: scale(1.15);
}

.carousel-nav-btn:active {
    transform: scale(1.05);
}

.carousel-nav-btn span {
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .events.cyl-3d .carousel-cylinder { min-height: 400px; }
    
    .carousel-cylinder-scene {
        height: 450px;
        min-height: 400px;
        perspective: 700px;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    .carousel-cylinder {
        max-width: 100%;
    }
    
    .event-card-cylinder {
        width: 160px;
        height: 240px;
        margin-left: -80px;
        margin-top: -120px;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .event-card-inner {
        padding: 10px;
        border-radius: 12px;
    }
    
    .event-card-cylinder .event-image {
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .event-card-cylinder .event-image img {
        height: 80px;
        border-radius: 8px;
    }
    
    .event-card-cylinder h3 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .event-card-cylinder p {
        font-size: 0.7rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .event-card-cylinder .register-btn {
        padding: 7px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .carousel-nav {
        padding: 0 5px;
    }
    
    .carousel-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
        border-width: 1.5px;
    }
}

@media (max-width: 480px) {
    .events.cyl-3d .carousel-cylinder { min-height: 350px; }
    
    .carousel-cylinder-scene {
        height: 400px;
        min-height: 350px;
        perspective: 600px;
        width: 100%;
        max-width: 100%;
    }
    
    .event-card-cylinder {
        width: 140px;
        height: 210px;
        margin-left: -70px;
        margin-top: -105px;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .event-card-inner {
        padding: 8px;
    }
    
    .event-card-cylinder .event-image img {
        height: 70px;
    }
    
    .event-card-cylinder h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .event-card-cylinder p {
        font-size: 0.65rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .event-card-cylinder .register-btn {
        padding: 6px;
        font-size: 11px;
    }
    
    .carousel-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .carousel-cylinder-scene {
        height: 220px;
        perspective: 500px;
    }
    
    .event-card-cylinder {
        width: 130px;
        height: 195px;
        margin-left: -65px;
        margin-top: -97.5px;
    }
    
    .event-card-inner {
        padding: 7px;
    }
    
    .event-card-cylinder .event-image img {
        height: 65px;
    }
    
    .event-card-cylinder h3 {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .event-card-cylinder p {
        font-size: 0.6rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .event-card-cylinder .register-btn {
        padding: 5px;
        font-size: 10px;
    }
    
    .carousel-nav {
        padding: 0 2px;
    }
    
    .carousel-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* ============================
   GENERAL RULES SECTION
   ============================ */

.carousel-3d-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 5;
}

.carousel-3d-btn {
    pointer-events: all;
    background: rgba(180, 168, 144, 0.2);
    border: 2px solid var(--primary-purple);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d-btn:hover {
    background: var(--primary-purple);
    box-shadow: 0 0 30px rgba(180, 168, 144, 0.6);
    transform: scale(1.1);
}

.carousel-3d-btn span {
    line-height: 1;
}

/* ============================
   PHONE NUMBER LINK COLOR FIX (iOS Safari)
   Ensures auto-linked phone numbers aren't dark blue
   ============================ */
a[href^="tel"],
a[href^="tel"]:link,
a[href^="tel"]:visited {
    color: var(--cyan) !important;
    text-decoration: none !important;
}

.coordinator-contact,
.member-contact,
.contact {
    color: var(--cyan);
}

.coordinator-contact a,
.member-contact a,
.contact a {
    color: var(--cyan) !important;
    text-decoration: none !important;
}

/* ============================
   GENERAL RULES SECTION
   ============================ */
.rules {
    padding: 0 0 40px 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.3) 0%, rgba(10, 10, 15, 0) 100%);
}

.rules-container {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(16, 16, 36, 0.9));
    padding: 50px;
    border-radius: 25px;
    border: 1px solid rgba(138, 121, 104, 0.2);
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.6),
        -10px -10px 20px rgba(40, 40, 60, 0.4),
        inset 0 0 20px rgba(139, 92, 246, 0.05);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.rules-container:hover {
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.7),
        -12px -12px 24px rgba(40, 40, 60, 0.5),
        inset 0 0 30px rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}

.rules-list li {
    padding: 18px 20px 18px 45px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.3), rgba(20, 20, 40, 0.2));
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.rules-list li::before {
    content: '⚡';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-purple);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.rules-list li:hover {
    background: linear-gradient(135deg, rgba(50, 50, 80, 0.4), rgba(30, 30, 60, 0.3));
    border-color: var(--cyan);
    transform: translateX(8px);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.rules-list li:hover::before {
    transform: translateY(-50%) scale(1.3) rotate(20deg);
    text-shadow: 0 0 15px var(--primary-purple);
}

/* ============================
   COORDINATORS SECTION
   ============================ */
.coordinators {
    padding: 20px 0 40px 0;
}

.coordinator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.coordinator-card {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, 
        rgba(40, 40, 60, 0.4), 
        rgba(20, 20, 40, 0.3));
    padding: 35px 25px;
    border-radius: 25px;
    border: 1px solid rgba(180, 168, 144, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    /* Neumorphic shadow */
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.7),
        -12px -12px 24px rgba(60, 60, 80, 0.15),
        inset 0 0 30px rgba(139, 92, 246, 0.03);
}

/* Glass reflection effect */
.coordinator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.coordinator-card:hover::before {
    left: 100%;
}

/* 3D glass border glow */
.coordinator-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(145deg, 
        rgba(139, 92, 246, 0.5),
        rgba(6, 182, 212, 0.3),
        rgba(180, 168, 144, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.coordinator-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(145deg, 
        rgba(45, 45, 70, 0.5), 
        rgba(25, 25, 50, 0.4));
    border-color: rgba(139, 92, 246, 0.4);
    /* Enhanced neumorphic glow on hover */
    box-shadow: 
        15px 15px 35px rgba(0, 0, 0, 0.8),
        -15px -15px 35px rgba(70, 70, 90, 0.2),
        inset 0 0 40px rgba(139, 92, 246, 0.08),
        0 0 50px rgba(139, 92, 246, 0.3);
}

.coordinator-card:hover::after {
    opacity: 1;
}

.coordinator-image {
    width: 200px;
    height: 230px;
    margin: 0 auto 25px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.5), rgba(20, 20, 40, 0.5));
}

/* Glass shine on image */
.coordinator-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.coordinator-card:hover .coordinator-image {
    transform: scale(1.08) translateY(-5px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 
        0 15px 50px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(6, 182, 212, 0.3),
        inset 0 0 30px rgba(139, 92, 246, 0.15);
}

.coordinator-card:hover .coordinator-image::before {
    opacity: 1;
}

.coordinator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.coordinator-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.coordinator-card:hover h3 {
    color: var(--cyan);
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
    transform: scale(1.05);
}

.coordinator-card p {
    color: rgba(180, 168, 144, 0.9);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.coordinator-card:hover p {
    color: var(--white);
    text-shadow: 0 0 15px rgba(180, 168, 144, 0.5);
}

.coordinator-contact {
    color: rgba(100, 255, 218, 0.9) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.coordinator-card:hover .coordinator-contact {
    color: var(--cyan) !important;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

/* ============================
   SPONSORS SECTION
   ============================ */
.sponsors {
    padding: 40px 0;
    background: 
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        rgba(10, 10, 15, 0.3);
    position: relative;
    overflow: visible;
}

.sponsors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: sponsorGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sponsorGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.sponsors .section-heading {
    font-size: 3.5rem;
    margin-bottom: 70px;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.sponsor-logo {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 240, 255, 0.95));
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.7),
        -12px -12px 24px rgba(40, 40, 60, 0.5),
        inset 0 0 20px rgba(139, 92, 246, 0.08);
    padding: 25px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.1);
}

.sponsor-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-purple), var(--cyan), var(--indigo));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.sponsor-logo:hover::before {
    opacity: 1;
}

.sponsor-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        16px 16px 32px rgba(0, 0, 0, 0.8),
        -16px -16px 32px rgba(40, 40, 60, 0.6),
        inset 0 0 30px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(139, 92, 246, 0.4);
    border-color: transparent;
}

.sponsor-logo img {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.4s ease;
}

.sponsor-logo:hover img {
    filter: brightness(1) contrast(1.15);
    transform: scale(1.05);
}

/* Sponsor Categories Layout */
.sponsor-categories {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 40px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.sponsor-category {
    text-align: center;
    background: rgba(139, 92, 246, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 30px;
    border: 2px solid rgba(139, 92, 246, 0.15);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(139, 92, 246, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.sponsor-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.sponsor-category:hover::before {
    left: 100%;
}

.sponsor-category:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.3),
        inset 0 0 40px rgba(139, 92, 246, 0.08);
}

.sponsor-tier-heading {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    position: relative;
    padding-bottom: 15px;
    width: 100%;
    flex-shrink: 0;
}

.sponsor-tier-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    border-radius: 2px;
}

.sponsor-logos {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
}

.sponsor-logos.horizontal-split {
    flex-direction: row;
    gap: 35px;
    align-items: stretch;
}

.sponsor-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 35px 40px;
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sponsor-group:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.sponsor-group.left-group {
    align-items: center;
    justify-content: center;
}

.sponsor-group.right-group {
    align-items: center;
    justify-content: center;
}

/* Gold Tier Specific Styling */
.sponsor-category.gold-tier {
    padding: 40px 50px;
}

.sponsor-category.gold-tier .sponsor-logo {
    padding: 20px 25px;
    min-width: 180px;
    max-width: 220px;
}

.sponsor-category.gold-tier .sponsor-logo img {
    width: 100%;
    max-width: 170px;
    height: auto;
    object-fit: contain;
}

.sponsor-category.gold-tier .sponsor-group {
    padding: 25px 30px;
    gap: 18px;
}

/* Silver Tier Specific Styling */
.sponsor-category.silver-tier {
    padding: 35px 25px;
}

.sponsor-category.silver-tier .sponsor-logo {
    padding: 25px 30px;
}

.sponsor-category.silver-tier .sponsor-logo img {
    max-width: 150px;
}

/* Styling Partner Tier Specific Styling */
.sponsor-category.styling-tier {
    padding: 35px 25px;
}

.sponsor-category.styling-tier .sponsor-logo {
    padding: 25px 30px;
}

.sponsor-category.styling-tier .sponsor-logo img {
    max-width: 150px;
}

.sponsor-row {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    align-items: center;
}

.sponsor-logo.single-logo {
    width: 100%;
    max-width: 280px;
}

.sponsor-logo {
    width: 100%;
    max-width: 280px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .sponsor-categories {
        gap: 40px;
        padding: 0 15px;
    }
    
    .sponsor-category {
        padding: 35px 25px;
    }
    
    .sponsor-tier-heading {
        font-size: 1.7rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .sponsor-logos.horizontal-split {
        flex-direction: column;
        gap: 20px;
    }
    
    .sponsor-group {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    .sponsor-categories {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 600px;
    }
    
    .sponsor-category {
        padding: 40px 30px;
        min-height: 320px;
    }
    
    .sponsor-tier-heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .sponsor-logo {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .sponsor-tier-heading {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }
    
    .sponsor-logo {
        min-width: 200px;
        min-height: 120px;
        padding: 30px 40px;
    }
    
    .sponsor-logo img {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .sponsor-category {
        padding: 30px 20px;
        min-height: 280px;
    }
    
    .sponsor-tier-heading {
        font-size: 1.4rem;
        letter-spacing: 1px;
        margin-bottom: 25px;
    }
    
    .sponsor-tier-heading::after {
        width: 50px;
        height: 2px;
    }
    
    .sponsor-logo {
        min-width: 180px;
        min-height: 100px;
        padding: 25px 30px;
        max-width: 100%;
    }
    
    .sponsor-logo img {
        max-width: 150px;
    }
}

/* ============================
   STYLING PARTNER
   ============================ */
.styling-partner {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05) 0%, 
        rgba(59, 130, 246, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.styling-partner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="80" cy="80" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.styling-partner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.styling-partner-logo {
    position: relative;
    border-radius: 50%;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(248, 250, 252, 0.9));
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.6),
        -20px -20px 40px rgba(40, 40, 60, 0.4),
        inset 0 0 30px rgba(139, 92, 246, 0.1);
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
    text-decoration: none;
    width: 250px;
    height: 250px;
    max-width: 250px;
}

.styling-partner-logo::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, 
        var(--primary-purple) 0%, 
        var(--cyan) 25%, 
        var(--indigo) 50%, 
        #10b981 75%, 
        #f59e0b 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.styling-partner-logo:hover::before {
    opacity: 1;
}

.styling-partner-logo:hover {
    transform: translateY(-15px) scale(1.08) rotateY(5deg);
    box-shadow: 
        25px 25px 50px rgba(0, 0, 0, 0.8),
        -25px -25px 50px rgba(40, 40, 60, 0.6),
        inset 0 0 40px rgba(139, 92, 246, 0.2),
        0 0 60px rgba(139, 92, 246, 0.5);
    border-color: transparent;
}

.styling-partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(1) contrast(1.1) saturate(1.1);
    transition: all 0.5s ease;
    display: block;
}

.styling-partner-logo:hover img {
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
    transform: scale(1.05);
}

.partner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(139, 92, 246, 0.9) 0%, 
        rgba(139, 92, 246, 0.7) 50%, 
        transparent 100%);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-radius: 0 0 50% 50%;
    height: 60%;
}

.styling-partner-logo:hover .partner-overlay {
    transform: translateY(0);
}

.partner-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

/* Responsive Design for Styling Partner */
@media (max-width: 768px) {
    .styling-partner {
        padding: 60px 0;
    }
    
    .styling-partner-logo {
        padding: 25px;
        width: 200px;
        height: 200px;
        max-width: 200px;
    }
    
    .partner-text {
        font-size: 0.9rem;
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .styling-partner {
        padding: 40px 0;
    }
    
    .styling-partner-logo {
        padding: 20px;
        width: 180px;
        height: 180px;
        max-width: 180px;
    }
    
    .styling-partner-logo:hover {
        transform: translateY(-10px) scale(1.05);
    }
    
    .partner-text {
        font-size: 0.85rem;
        margin-top: 20px;
    }
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: linear-gradient(180deg, rgba(15, 13, 10, 0.7) 0%, rgba(20, 18, 15, 0.9) 100%);
    border-top: 1px solid rgba(138, 121, 104, 0.3);
    padding: 40px 0 20px;
    width: 100%;
}

.footer .container {
    max-width: 100%;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
    align-items: start;
    height: 350px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.footer-section h3 {
    color: var(--cyan);
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid rgba(138, 121, 104, 0.4);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    height: 300px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 300px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    text-decoration: none;
    padding: 25px 35px;
    background: rgba(138, 121, 104, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(138, 121, 104, 0.4);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
    background: rgba(138, 121, 104, 0.25);
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(138, 121, 104, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.social-icon svg {
    color: var(--primary-purple);
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 300px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    text-decoration: none;
    padding: 25px 35px;
    background: rgba(138, 121, 104, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(138, 121, 104, 0.4);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-icon:hover {
    background: rgba(138, 121, 104, 0.25);
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(138, 121, 104, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.contact-icon svg {
    color: var(--primary-purple);
    flex-shrink: 0;
}

/* Footer Designer Cards */
.footer-designers {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    height: 300px;
    justify-content: center;
    width: 100%;
}

.designer-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    background: rgba(138, 121, 104, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(138, 121, 104, 0.4);
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.designer-card:hover {
    background: rgba(138, 121, 104, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 121, 104, 0.4);
}

.designer-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-purple);
    flex-shrink: 0;
}

.designer-card span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(138, 121, 104, 0.2);
    color: var(--text-secondary);
}

/* ============================
   FADE-IN ANIMATION
   ============================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

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

/* Mobile Menu Backdrop */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* Desktop Navigation Styles */
.desktop-nav {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-nav li {
    margin: 0;
}

/* Desktop Dropdown */
.desktop-nav .dropdown {
    position: relative;
}

.desktop-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg, 
        rgba(10, 10, 30, 0.98) 0%, 
        rgba(20, 15, 40, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    list-style: none;
    margin: 5px 0 0 0;
}

.desktop-nav .dropdown:hover .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-dropdown li {
    margin: 0;
}

.desktop-dropdown .dropdown-link {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.desktop-dropdown .dropdown-link:hover {
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0.25), 
        rgba(124, 58, 237, 0.15));
    color: #ffffff;
    border-left-color: var(--cyan);
    transform: translateX(5px);
}

/* Mobile Sidebar (Hidden by Default) */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    flex-direction: column;
}

.sidebar-header {
    background: rgba(20, 20, 20, 0.5);
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 4px;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.3);
    margin: 0;
}

.close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 15px;
    margin: 0;
    flex: 1;
}

.menu-item {
    margin-bottom: 8px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateX(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.menu-icon {
    display: none !important;
}

/* ============================
   DESKTOP LAYOUT (Above 768px)
   ============================ */
@media (min-width: 769px) {
    /* Reset coordinator grid to proper desktop layout */
    .coordinator-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 50px !important;
        max-width: 1100px !important;
        flex-wrap: unset !important;
        padding: 0 20px !important;
    }

    /* Tech & Design Heads: 2 cards centered */
    .tech-heads .coordinator-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 700px !important;
        justify-content: center !important;
    }

    /* All coordinator cards get equal width on desktop */
    .coordinator-card {
        width: auto !important;
        flex: unset !important;
    }

    /* Reset image sizes for desktop */
    .coordinator-image {
        width: 200px !important;
        height: 230px !important;
    }

    /* Reset text sizes for desktop */
    .coordinator-card h3 {
        font-size: 1.6rem !important;
        white-space: normal !important;
    }

    .coordinator-card p {
        font-size: 1.05rem !important;
        white-space: normal !important;
    }

    /* Fix footer layout for desktop */
    .footer-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 50px !important;
        height: 350px !important;
        align-items: start !important;
    }

    .footer-designers {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        height: 300px !important;
        justify-content: center !important;
    }

    .social-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        height: 300px !important;
        justify-content: center !important;
    }

    .map-container {
        height: 300px !important;
    }

    .designer-card {
        padding: 25px 20px !important;
        gap: 20px !important;
    }

    .designer-card img {
        width: 90px !important;
        height: 90px !important;
    }

    .social-icon {
        padding: 25px 35px !important;
        font-size: 1.2rem !important;
        max-width: 280px !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: rgba(15, 13, 10, 0.85);
        backdrop-filter: blur(10px);
        min-height: 60px;
        border-bottom: 1px solid rgba(180, 168, 144, 0.2);
        width: 100%;
        overflow: hidden;
    }

    /* Hide Desktop Nav on Mobile */
    .desktop-nav {
        display: none !important;
    }

    /* Show Hamburger on Mobile */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        cursor: pointer;
        padding: 8px;
        z-index: 10001;
        position: relative;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        flex-shrink: 0;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
    }

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

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

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

    /* Show Mobile Sidebar on Mobile */
    .mobile-sidebar {
        display: flex !important;
    }

    .mobile-sidebar.active {
        right: 0;
    }

    /* Mobile Dropdown Styles */
    .dropdown-toggle {
        justify-content: space-between;
        cursor: pointer;
    }

    .dropdown-toggle::after {
        content: '›';
        font-size: 1.2rem;
        margin-left: auto;
        transition: transform 0.3s ease;
        font-weight: bold;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(90deg);
    }

    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        margin-top: 5px;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 600px;
        padding: 8px 0;
    }

    .dropdown-link {
        display: block;
        padding: 10px 15px 10px 40px;
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        font-size: 0.85rem;
        transition: all 0.25s ease;
        border-radius: 6px;
        margin: 0 8px 3px 8px;
        border-left: 2px solid transparent;
    }

    .dropdown-link:hover {
        background: rgba(139, 92, 246, 0.2);
        color: #ffffff;
        border-left-color: var(--cyan);
        transform: translateX(3px);
    }

    .nav-container {
        padding: 8px 10px;
        min-height: 60px;
        max-width: 100%;
        width: 100%;
    }

    .nav-right {
        gap: 0;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .nav-center {
        display: none;
    }

    .logo {
        width: auto;
        height: 45px;
        max-height: 45px;
    }

    .nav-left .logo {
        max-height: 45px;
    }

    .house-logo {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: linear-gradient(180deg, rgba(25, 22, 18, 0.98) 0%, rgba(15, 13, 10, 0.98) 100%);
        width: 75%;
        max-width: 300px;
        height: 100vh;
        padding: 0;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 2px solid rgba(180, 168, 144, 0.3);
        backdrop-filter: blur(20px);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25px 25px 20px;
        border-bottom: 1px solid rgba(180, 168, 144, 0.2);
        margin-bottom: 10px;
    }

    .mobile-menu-header h3 {
        font-family: 'Cinzel', serif;
        font-size: 24px;
        color: var(--text-primary);
        margin: 0;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .close-menu {
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 36px;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border-radius: 50%;
        line-height: 1;
    }

    .close-menu:hover {
        background: rgba(180, 168, 144, 0.2);
        transform: rotate(90deg);
    }

    .close-menu span {
        display: block;
        line-height: 0.8;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-link {
        font-size: 18px;
        width: 100%;
        text-align: left;
        padding: 18px 30px;
        background: transparent;
        border-left: 4px solid transparent;
        border-radius: 0;
        transition: all 0.3s ease;
        display: block;
        margin: 0;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(180, 168, 144, 0.2);
        border-left-color: var(--cyan);
        padding-left: 35px;
        color: var(--cyan);
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: rgba(15, 13, 10, 0.5);
        transition: all 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        padding: 5px 0;
    }

    .dropdown-toggle::after {
        float: right;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-item {
        padding: 15px 30px 15px 45px;
        font-size: 16px;
        border-left: 4px solid transparent;
    }

    .dropdown-item:hover {
        background: rgba(180, 168, 144, 0.25);
        border-left-color: var(--cyan);
        padding-left: 50px;
    }

    .hero {
        padding: 100px 0 60px 0;
    }

    .hero-content {
        margin-top: 20px;
        padding: 0;
        width: 100%;
    }

    .hero-image-container {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .hero-image {
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }

    .fest-logo {
        max-width: 400px;
        /* Disable animations on mobile for performance */
        animation: none !important;
        filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.5)) !important;
    }

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

    /* Events Section Mobile */
    .about {
        padding: 0 0 40px 0;
        scroll-margin-top: 80px;
    }

    .events {
        padding: 0;
        scroll-margin-top: 80px;
    }

    .events .section-heading {
        margin-top: 0;
        margin-bottom: 40px;
        padding-top: 20px;
    }

    .section-heading {
        padding-top: 20px;
    }

    /* Countdown Timer Mobile */
    .countdown-container {
        margin-top: 30px;
        padding: 0 15px;
    }

    .countdown-timer {
        gap: 8px;
        padding: 20px 15px;
        border-radius: 15px;
    }

    .time-box {
        min-width: 60px;
        padding: 10px 8px;
        border-radius: 10px;
    }

    .time-value {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .time-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .time-separator {
        font-size: 1.8rem;
    }

    .section-heading {
        font-size: 2rem;
    }

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

    /* General Rules Mobile */
    .rules {
        padding: 0 0 30px 0;
    }

    .rules-container {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .rules-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rules-list li {
        padding: 14px 15px 14px 40px;
        font-size: 0.85rem;
        line-height: 1.5;
        border-radius: 10px;
    }

    .rules-list li::before {
        left: 12px;
        font-size: 1.1rem;
    }

    .rules-list li:hover {
        transform: translateX(5px);
    }

    /* Coordinators/Advisory Panel Mobile - Grid Layout */
    .coordinators {
        padding: 20px 0 30px 0;
    }

    .coordinator-grid {
        display: flex !important;
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        grid-template-columns: unset !important;
        max-width: 100%;
    }

    .coordinator-card {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
        box-sizing: border-box;
    }

    .coordinator-card h3 {
        font-size: 1rem;
        margin-bottom: 5px;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .coordinator-card p {
        font-size: 0.8rem;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Smaller text for side-by-side cards (Event Convenors, Event Heads, Tech Heads) */
    .advisory-panel .coordinator-card:nth-child(2) h3,
    .advisory-panel .coordinator-card:nth-child(3) h3,
    .our-coordinators .coordinator-card:nth-child(2) h3,
    .our-coordinators .coordinator-card:nth-child(3) h3,
    .tech-heads .coordinator-card h3 {
        font-size: 0.85rem;
    }

    .advisory-panel .coordinator-card:nth-child(2) p,
    .advisory-panel .coordinator-card:nth-child(3) p,
    .our-coordinators .coordinator-card:nth-child(2) p,
    .our-coordinators .coordinator-card:nth-child(3) p,
    .tech-heads .coordinator-card p {
        font-size: 0.7rem;
    }

    /* Advisory Panel Section */
    /* Row 1: HOD - Full width */
    .advisory-panel .coordinator-card:nth-child(1) {
        width: 100% !important;
        flex: 0 0 100%;
    }

    /* Row 2: Event Convenors - Side by side (50% each) */
    .advisory-panel .coordinator-card:nth-child(2),
    .advisory-panel .coordinator-card:nth-child(3) {
        width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px);
    }

    /* Meet Our Coordinators Section */
    /* Row 1: President - Full width */
    .our-coordinators .coordinator-card:nth-child(1) {
        width: 100% !important;
        flex: 0 0 100%;
    }

    /* Row 2: Event Heads - Side by side (50% each) */
    .our-coordinators .coordinator-card:nth-child(2),
    .our-coordinators .coordinator-card:nth-child(3) {
        width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px);
    }

    /* Tech & Design Heads Section */
    /* Row 1: Both Tech Heads - Side by side (50% each) */
    .tech-heads .coordinator-card:nth-child(1),
    .tech-heads .coordinator-card:nth-child(2) {
        width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px);
    }

    .coordinator-image {
        width: 140px;
        height: 160px;
        margin: 0;
        flex-shrink: 0;
        border-radius: 20px;
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(139, 92, 246, 0.25),
            inset 0 0 15px rgba(139, 92, 246, 0.1);
    }

    /* ALL Event Convenors and Event Heads get same size as Tech Heads */
    .advisory-panel .coordinator-card:nth-child(2) .coordinator-image,
    .advisory-panel .coordinator-card:nth-child(3) .coordinator-image,
    .our-coordinators .coordinator-card:nth-child(2) .coordinator-image,
    .our-coordinators .coordinator-card:nth-child(3) .coordinator-image,
    .tech-heads .coordinator-card:nth-child(1) .coordinator-image,
    .tech-heads .coordinator-card:nth-child(2) .coordinator-image {
        width: 140px;
        height: 160px;
    }

    /* Only HOD and President get larger images */
    .advisory-panel .coordinator-card:nth-child(1) .coordinator-image,
    .our-coordinators .coordinator-card:nth-child(1) .coordinator-image {
        width: 180px;
        height: 210px;
    }
    }

    .coordinator-card:hover .coordinator-image {
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.6),
            0 0 35px rgba(139, 92, 246, 0.4),
            0 0 50px rgba(6, 182, 212, 0.25),
            inset 0 0 20px rgba(139, 92, 246, 0.15);
    }

    .coordinator-card h3 {
        font-size: 1.3rem;
        margin-bottom: 5px;
        width: 100%;
        white-space: normal;
        word-break: keep-all;
    }

    .coordinator-card p {
        font-size: 0.9rem;
        width: 100%;
        white-space: normal;
    }

    /* 3D Carousel Mobile Styles */
    .carousel-3d-container {
        height: 550px;
        margin: 40px auto;
    }

    .carousel-3d-wrapper {
        width: 320px;
        height: 480px;
    }

    .event-card {
        width: 300px;
        padding: 20px;
    }

    .event-card.active {
        transform: scale(1.05);
    }

    .event-image img {
        height: 220px;
    }

    .event-card h3 {
        font-size: 1.3rem;
    }

    .carousel-3d-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

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

    .sponsor-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .footer .container {
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        height: auto;
    }
    
    .footer-designers {
        flex-direction: column;
        gap: 15px;
        height: auto;
    }
    
    .designer-card {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .designer-card img {
        width: 70px;
        height: 70px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .social-links {
        height: auto;
        align-items: stretch;
    }
    
    .social-icon {
        max-width: none;
        padding: 20px 25px;
        font-size: 1.1rem;
    }
    
    .footer-section h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .designer-card img {
        width: 50px;
        height: 50px;
    }
    
    .designer-card span {
        font-size: 0.95rem;
    }

    .map-container {
        height: 150px;
    }


@media (max-width: 480px) {
    .fest-logo {
        /* Disable animations on small mobile screens for performance */
        animation: none !important;
        filter: drop-shadow(0 8px 30px rgba(255, 215, 0, 0.4)) !important;
    }

    .hero {
        padding: 100px 0 60px 0;
    }

    .hero-content {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-image-container {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-image {
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0;
    }

    .hero-tagline {
        font-size: 1.5rem;
        padding: 0 20px;
    }

    /* About and Events Section Small Mobile */
    .about {
        padding: 0 0 40px 0;
        scroll-margin-top: 80px;
    }

    .events {
        padding: 0;
        scroll-margin-top: 80px;
    }

    .events .section-heading {
        margin-top: 0;
        margin-bottom: 30px;
        padding-top: 20px;
        font-size: 1.8rem;
    }

    .section-heading {
        font-size: 1.8rem;
        padding-top: 20px;
    }

    .event-card {
        min-width: 250px;
    }

    .nav-container {
        padding: 15px;
    }

    /* Coordinator cards more compact on smaller screens */
    .coordinator-card {
        gap: 10px;
        padding: 15px 10px;
    }

    .coordinator-card h3 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .coordinator-card p {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Even smaller text for side-by-side cards on small screens */
    .advisory-panel .coordinator-card:nth-child(2) h3,
    .advisory-panel .coordinator-card:nth-child(3) h3,
    .our-coordinators .coordinator-card:nth-child(2) h3,
    .our-coordinators .coordinator-card:nth-child(3) h3,
    .tech-heads .coordinator-card h3 {
        font-size: 0.75rem;
    }

    .advisory-panel .coordinator-card:nth-child(2) p,
    .advisory-panel .coordinator-card:nth-child(3) p,
    .our-coordinators .coordinator-card:nth-child(2) p,
    .our-coordinators .coordinator-card:nth-child(3) p,
    .tech-heads .coordinator-card p {
        font-size: 0.65rem;
    }

    .coordinator-image {
        width: 120px;
        height: 140px;
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(139, 92, 246, 0.2),
            inset 0 0 12px rgba(139, 92, 246, 0.08);
    }

    /* Full width cards (HOD and President) get larger images */
    .advisory-panel .coordinator-card:nth-child(1) .coordinator-image,
    .our-coordinators .coordinator-card:nth-child(1) .coordinator-image {
        width: 160px;
        height: 190px;
    }

    /* Prevent horizontal overflow on mobile */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .navbar {
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .nav-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 8px 10px !important;
    }

    .nav-left {
        flex-shrink: 0 !important;
    }

    .events {
        overflow: hidden !important;
        max-width: 100vw !important;
    }

    .carousel-cylinder-container {
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px 5px !important;
    }

    .carousel-cylinder-scene {
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .carousel-nav {
        padding: 0 5px !important;
        max-width: 100% !important;
    }

    section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .container {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* ============================
   FLOATING HACKATHON CARD - UNIQUE DESIGN
   ============================ */
.hackathon-float-card {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: linear-gradient(135deg, rgba(15, 13, 10, 0.98), rgba(26, 15, 46, 0.98));
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4), 0 0 80px rgba(139, 92, 246, 0.2);
    z-index: 9998;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(139, 92, 246, 0.3);
    animation: floatIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    pointer-events: none; /* don't block underlying interactions */
}

@keyframes floatIn {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.8);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.card-header h3 {
    font-family: 'Orbitron', 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #b8a890, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 1px;
}

.event-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border-left: 3px solid rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateX(5px);
    border-left-color: #8b5cf6;
}

.timeline-item.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.15));
    border-left: 3px solid #8b5cf6;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.timeline-icon {
    font-size: 1.5rem;
    min-width: 35px;
    text-align: center;
}

.timeline-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.timeline-text strong {
    color: #b8a890;
    font-size: 0.9rem;
    font-weight: 600;
}

.highlight-date {
    color: #e8dcc8;
    font-size: 0.95rem;
    font-weight: 500;
}

.highlight-date.mega {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
    pointer-events: auto; /* clickable even though parent is none */
}

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

.card-cta:hover::before {
    left: 100%;
}

.card-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

.card-cta .arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.card-cta:hover .arrow {
    transform: translateX(5px);
}

.card-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #b8a890;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: auto; /* clickable even though parent is none */
}

.card-close:hover {
    background: rgba(255, 71, 87, 0.3);
    color: white;
    transform: rotate(90deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hackathon-float-card {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        padding: 20px;
    }
    
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .timeline-item {
        padding: 10px;
    }
    
    .timeline-icon {
        font-size: 1.3rem;
        min-width: 30px;
    }
    
    .card-cta {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hackathon-float-card {
        bottom: 15px;
        right: 15px;
        left: 15px;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .timeline-text strong {
        font-size: 0.85rem;
    }
    
    .highlight-date {
        font-size: 0.9rem;
    }
}
