/* --- 1. Variables & Reset --- */
:root {
    --c-dark: #0F0F1A;
    --c-dark-glass: rgba(15, 15, 26, 0.95);
    --c-yellow: #FFD700;
    --c-orange: #FF8C00;
    --c-purple: #2D0A31;
    --c-accent: #00E5FF;
    --c-white: #ffffff;
    --c-gray: #a0a0a0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --container-width: 1280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--c-dark);
    color: var(--c-white);
    overflow-x: hidden;
    line-height: 1.6;
    /* Font smoothing for sharper text/icons */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 2. Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: bold; }
.mr-10 { margin-right: 10px; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.tracking-wide { letter-spacing: 1px; }

/* Colors Helper Classes */
.text-yellow { color: var(--c-yellow); }
.text-orange { color: var(--c-orange); }
.text-accent { color: var(--c-accent); }
.text-purple { color: var(--c-purple); }
.text-subtle { color: #666; }
.text-white { color: white; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--c-yellow);
    color: var(--c-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}
.btn-primary:hover { background-color: var(--c-white); transform: scale(1.05); }

.btn-outline {
    border: 1px solid var(--c-white);
    color: var(--c-white);
}
.btn-outline:hover { background-color: var(--c-white); color: var(--c-dark); }

.btn-dark { background: var(--c-dark); color: var(--c-white); }
.btn-dark:hover { background: var(--c-white); color: var(--c-dark); }

.btn-purple-shadow {
    background: var(--c-purple); 
    color: white; 
    box-shadow: 0 10px 20px rgba(45,10,49,0.3);
}
.btn-purple-shadow:hover { background: var(--c-dark); }

/* --- 3. Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0; 
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    
    /* SPEED FIX: Force Hardware Acceleration to prevent scroll flicker */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.navbar.scrolled {
    background-color: var(--c-dark-glass);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.logo-container { display: flex; align-items: center; gap: 15px; }

/* Main Brand Logo */
.logo-img {
    height: 65px; 
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    display: block;
}

/* Navbar Sponsor Styles */
.logo-sponsor {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sponsor-label {
    font-size: 0.55rem;
    color: var(--c-gray);
    letter-spacing: 1px;
    margin-bottom: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.sponsor-logo {
    height: 50px;
    width: auto;
    max-width: 130px;
    object-fit: contain; 
    display: block;
    border-radius: 4px;
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:not(.btn) { font-size: 0.9rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--c-yellow); }

/* Mobile Menu Toggle Button */
.mobile-toggle { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--c-white); 
    border: none; 
    background: none;
    
    /* SPEED FIX: Removes 300ms touch delay on mobile */
    touch-action: manipulation;
}

/* Mobile Menu (Optimized) */
.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background-color: var(--c-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    
    /* Optimized Transition */
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    will-change: max-height, opacity;
}

.mobile-menu.active {
    max-height: 400px;
    opacity: 1;
    /* Allows scrolling if content is taller than 400px */
    overflow-y: auto; 
    padding: 0; 
}

.mobile-link { display: block; padding: 12px 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* --- 4. Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 15, 26, 0.7), var(--c-dark));
}

.hero-content { position: relative; z-index: 10; width: 100%; padding: 0 1rem; }
.hero-date {
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.5);
    padding: 5px 20px;
    border-radius: 50px;
    color: var(--c-yellow);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(5px);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-gradient-text {
    background: linear-gradient(to right, var(--c-yellow), var(--c-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero h2 { font-size: 3rem; font-weight: 700; margin-bottom: 2rem; }
.hero p {
    font-size: 1.25rem;
    color: #ddd;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Decorative Kites */
.kite-decor { position: absolute; opacity: 0.2; pointer-events: none; }
.kite-1 { top: 10%; left: 5%; animation: float 6s ease-in-out infinite; font-size: 3rem; color: var(--c-yellow); transform: rotate(-45deg); }
.kite-2 { bottom: 15%; right: 5%; animation: float 8s ease-in-out infinite reverse; font-size: 5rem; color: var(--c-accent); transform: rotate(15deg); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-45deg); }
    50% { transform: translateY(-20px) rotate(-40deg); }
}

/* --- 5. Stats Section --- */
.stats-bar {
    background-color: var(--c-purple);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    position: relative;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stat-item { border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--c-gray); letter-spacing: 1px; margin-top: 5px; }

/* --- 6. Vision/About Section --- */
.section-padding { padding: 6rem 0; }
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-tag { color: var(--c-yellow); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }
.vision-text h2 { font-size: 3rem; line-height: 1.2; margin-bottom: 1.5rem; }
.vision-text p { font-size: 1.1rem; color: var(--c-gray); margin-bottom: 1.5rem; }

.check-list li { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.check-list i { color: var(--c-accent); margin-right: 10px; margin-top: 5px; }

.vision-image-wrapper { position: relative; }
.vision-image { border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); width: 100%; transition: transform 0.5s; }
.vision-image:hover { transform: scale(1.02); }
.image-caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    border-radius: 0 0 20px 20px;
}
.caption-title { margin:0; font-weight:bold; color:white; }
.caption-subtitle { color: var(--c-yellow); font-size: 0.8rem; }

/* --- 7. Experience/Activities --- */
.bg-slant {
    background-color: #161625;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    padding-bottom: 8rem;
}
.divider { width: 60px; height: 4px; background: var(--c-yellow); margin: 20px auto; border-radius: 2px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--c-dark);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.card:hover { transform: translateY(-5px); }

/* Custom Border Colors on Hover */
.card-concert:hover { border-color: rgba(255, 215, 0, 0.5); }
.card-food:hover { border-color: rgba(255, 140, 0, 0.5); }
.card-culture:hover { border-color: rgba(0, 229, 255, 0.5); }
.card-fashion:hover { border-color: rgba(236, 72, 153, 0.5); }
.card-kite:hover { border-color: rgba(34, 197, 94, 0.5); }

.card-img-box { height: 200px; overflow: hidden; position: relative; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img-box img { transform: scale(1.1); }
.card-content { padding: 2rem; }
.card-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.card-concert .card-icon { color: var(--c-yellow); }
.card-food .card-icon { color: var(--c-orange); }
.card-culture .card-icon { color: var(--c-accent); }
.card-fashion .card-icon { color: #ec4899; }
.card-kite .card-icon { color: #22c55e; }

.card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--c-gray); font-size: 0.95rem; }

.cta-card {
    background: linear-gradient(135deg, var(--c-yellow), var(--c-orange));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.cta-card h3, .cta-text, .cta-icon { color: var(--c-dark); }
.cta-text { margin-bottom: 1.5rem; font-weight: 500;}
.cta-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* --- 8. Sponsors --- */
.bg-white { background-color: white; color: var(--c-dark); }
.bg-white h2 { color: var(--c-dark); }
.section-desc { color: #555; max-width: 700px; margin: 0 auto; }

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.tier-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: 0.3s;
}

.tier-title { border: 2px solid var(--c-purple); background: var(--c-white); }
.tier-title:hover { background: var(--c-purple); color: white; transform: scale(1.02); }
.tier-title:hover .tier-head, .tier-title:hover .tier-sub { color: white; }

.tier-diamond { background: #f9fafb; border-color: #ddd; position: relative; overflow: hidden; }
.tier-diamond:hover { border-color: var(--c-accent); }
.badge { position: absolute; top: 0; right: 0; background: var(--c-accent); color: var(--c-dark); font-size: 0.7rem; font-weight: bold; padding: 5px 10px; }

.tier-gold:hover { border-color: var(--c-yellow); }

.tier-head { font-weight: 900; font-size: 1.5rem; }
.tier-sub { color: var(--c-gray); font-weight: bold; font-size: 0.9rem; margin-bottom: 1.5rem; }
.feature-list li { margin-bottom: 0.8rem; display: flex; align-items: center; font-size: 0.9rem; font-weight: 500;}
.feature-list i { margin-right: 10px; }

/* --- 9. Map --- */
.map-section { height: 400px; width: 100%; position: relative; }
.map-frame { border:0; filter: grayscale(100%) invert(90%); }
.map-info { position: absolute; bottom: 20px; left: 20px; background: var(--c-yellow); color: var(--c-dark); padding: 1rem; border-radius: 8px; font-weight: bold; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.map-sub { font-size: 0.8rem; font-weight: normal; }

/* --- 10. Footer --- */
footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 4rem 0 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-desc { color: var(--c-gray); font-size: 0.9rem; max-width: 300px; }

.social-links { display: flex; gap: 10px; margin-top: 1.5rem; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-icon:hover { background: var(--c-yellow); color: var(--c-dark); }

.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--c-gray); }
.footer-links a:hover { color: var(--c-yellow); }

.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; color: #666; font-size: 0.9rem; }

/* Footer Sponsor Styles */
.footer-sponsor-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-powered-by {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sponsor-logo-footer {
    height: 40px;
    width: auto;
    object-fit: contain; 
    vertical-align: middle;
}

/* --- 11. Media Queries (Responsiveness) --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .sponsor-grid { grid-template-columns: 1fr; }
    .vision-grid { grid-template-columns: 1fr; gap: 2rem; }
    .vision-text { order: 2; }
    .vision-image-wrapper { order: 1; }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0; 
    }

    .nav-links { display: none; } 
    
    .mobile-toggle { 
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px; 
        height: 44px;
        font-size: 1.8rem; 
        color: var(--c-white); 
        border: none; 
        background: none;
        cursor: pointer;
        margin-left: auto; 
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .logo-sponsor { 
        display: flex; 
        padding-left: 10px; 
        margin-left: 10px; 
    } 
    
    .sponsor-logo {
        height: 28px;
    }
    
    .sponsor-label {
        font-size: 0.45rem;
    }
    
    .logo-img { 
        height: 90px;
        max-width: 160px;
        object-fit: contain;
    } 
    
    /* Layout Adjustments */
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.5rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-item { border-right: none; }
    
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- 12. Modal Popup (Hardware Optimized) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    visibility: hidden;
    will-change: opacity, visibility;
    
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--c-dark);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--c-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
}

.modal-close:hover {
    color: var(--c-yellow);
}

.modal-icon-box {
    font-size: 3rem;
    color: var(--c-yellow);
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.modal-content p {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.modal-subtext {
    font-size: 0.85rem;
    color: var(--c-gray) !important;
    margin-bottom: 2rem !important;
}