:root {
    /* Premium Color Palette */
    --primary: #0B1120;     /* Midnight Slate */
    --secondary: #475569;   /* Slate Gray */
    --accent: #D97706;      /* Amber Gold */
    --bg-base: #F8FAFC;     /* Alabaster White */
    --surface: #FFFFFF;     /* Pure White */
    --border-light: rgba(11, 17, 32, 0.08);
    
    /* Dynamics */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 10px 30px -5px rgba(11, 17, 32, 0.05);
    --shadow-float: 0 20px 40px -10px rgba(217, 119, 6, 0.15);
    --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { 
    font-family: 'Outfit', sans-serif; 
    font-weight: 800; 
    color: var(--primary); 
    letter-spacing: -0.02em; 
}

/* =========================================
   Cinematic Scrolling Navbar
========================================= */
.premium-nav {
    position: fixed; top: 0; left: 0; width: 100%; 
    height: calc(100px + env(safe-area-inset-top)); 
    padding-top: env(safe-area-inset-top);
    background: transparent; z-index: 9999;
    transition: height 0.6s var(--ease-fluid), background 0.6s var(--ease-fluid), border-color 0.6s ease;
    border-bottom: 1px solid transparent;
}

.premium-nav.scrolled { 
    height: calc(75px + env(safe-area-inset-top));
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    position: relative; width: 100%; height: 100%;
    max-width: 1440px; margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Central to Left Transition Magic */
.logo-text { 
    position: absolute; 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.8rem, 3vw, 2.4rem); 
    font-weight: 900; letter-spacing: -0.04em;
    color: var(--primary);
    white-space: nowrap;
    transition: all 0.8s var(--ease-fluid);
}

.premium-nav.scrolled .logo-text {
    /* Aligns to the padding boundary of the container */
    left: clamp(1.5rem, 5vw, 4rem);
    transform: translate(0, -50%) scale(0.65);
    transform-origin: left center;
}

/* =========================================
   Fluid Hero Carousel
========================================= */
#hero {
    min-height: 100dvh; position: relative;
    display: flex; align-items: center; justify-content: center;
    padding-top: calc(100px + env(safe-area-inset-top));
    padding-bottom: 4rem;
}

.carousel-viewport { width: 100%; max-width: 1440px; margin: 0 auto; overflow: hidden; }
.carousel-track { display: flex; align-items: center; }

.slide {
    min-width: 100%; 
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem); 
    gap: clamp(3rem, 6vw, 6rem);
}

.slide-content { flex: 1; max-width: 600px; }
.slide-eyebrow { 
    font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 800; 
    color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; 
    margin-bottom: 1.2rem; display: inline-block;
}
.slide-content h2 {
    font-size: clamp(3rem, 6vw, 5rem); line-height: 1.05; margin-bottom: 1.5rem;
}
.slide-content p { 
    font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--secondary); 
    line-height: 1.7; font-weight: 500; text-wrap: pretty;
}

/* Polished Image Presentation */
.slide-visual { flex: 1.2; display: flex; justify-content: flex-end; width: 100%; }
.img-wrapper {
    width: 100%; max-width: 700px; overflow: hidden;
    border-radius: 20px; box-shadow: var(--shadow-soft);
    background: var(--surface); border: 1px solid var(--border-light);
}
.img-wrapper img {
    display: block; width: 100%; height: 55vh; min-height: 400px; max-height: 600px;
    object-fit: cover; transition: transform 1.2s var(--ease-fluid);
}
.slide:hover .img-wrapper img { transform: scale(1.05); }

/* Scroll Down Indicator */
.scroll-wrapper {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; color: var(--secondary); }
.scroll-line { width: 2px; height: 30px; background: var(--border-light); overflow: hidden; position: relative; }
.scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; 
    background: var(--accent); animation: scrollFill 2s infinite var(--ease-fluid);
}
@keyframes scrollFill { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }

/* =========================================
   Fluid Sections & Typography
========================================= */
section { 
    padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem); 
    max-width: 1440px; margin: 0 auto; 
}
.section-header { text-align: center; margin-bottom: clamp(3rem, 5vw, 5rem); }
.section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.section-subtitle { 
    font-size: clamp(1.1rem, 1.5vw, 1.2rem); color: var(--secondary); 
    max-width: 650px; margin: 0 auto; line-height: 1.6; font-weight: 500;
}

/* Sponsors */
.sponsor-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.sponsor-logo {
    width: 150px; height: 150px; background: var(--surface); 
    border-radius: 16px; padding: 2.5rem; object-fit: contain; 
    box-shadow: var(--shadow-soft); border: 1px solid var(--border-light);
    transition: all 0.4s var(--ease-fluid);
}
.sponsor-logo:hover { transform: translateY(-8px); box-shadow: var(--shadow-float); border-color: transparent; }

/* =========================================
   Elite Cards Grid
========================================= */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.card {
    background: var(--surface); border-radius: 20px; padding: 3rem 2.5rem; 
    display: flex; flex-direction: column; gap: 1.5rem;
    box-shadow: var(--shadow-soft); border: 1px solid var(--border-light);
    transition: all 0.5s var(--ease-fluid);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-float); border-color: transparent; }

.card-header h3 { font-size: 1.8rem; }
.card-header h4 { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; }
.card p { font-size: 1.05rem; color: var(--secondary); line-height: 1.7; flex-grow: 1; }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }
.btn {
    padding: 0.9rem 1.8rem; border-radius: 10px;
    background: var(--primary); color: var(--surface); 
    text-decoration: none; font-weight: 700; font-family: 'Outfit', sans-serif;
    font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
    transition: all 0.3s var(--ease-fluid);
}
.btn:hover { background: var(--accent); transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn.disabled { background: #E2E8F0; color: #94A3B8; pointer-events: none; }
.social-icon { font-size: 1.4rem; color: var(--secondary); transition: all 0.3s; }
.social-icon:hover { color: var(--accent); transform: translateY(-3px); }

/* =========================================
   Footer
========================================= */
.elite-footer { background: var(--surface); border-top: 1px solid var(--border-light); padding: 5rem 0 2rem; margin-top: 4rem; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); margin-bottom: 4rem; }
.footer-logo { font-size: 1.6rem; margin-bottom: 1rem; }
.footer-desc { color: var(--secondary); font-size: 1.05rem; max-width: 450px; line-height: 1.7; }
.footer-social .social-link { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; font-weight: 700; padding: 1rem 1.5rem; border: 1px solid var(--border-light); border-radius: 12px; transition: all 0.3s; }
.footer-social .social-link:hover { background: var(--primary); color: var(--surface); }
.footer-bottom { border-top: 1px solid var(--border-light); color: var(--secondary); font-size: 0.9rem; font-weight: 500; display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1440px; margin: 0 auto; padding: 2rem clamp(1.5rem, 5vw, 4rem) 0; gap: 1rem;}
.signature { color: var(--primary); font-weight: 800; }

/* Skeletons */
.skeleton { background: #E2E8F0; border-radius: 12px; animation: pulse 1.5s infinite ease-in-out; }
.skeleton-title { height: 4rem; width: 75%; margin-bottom: 1.5rem; }
.skeleton-text { height: 5rem; width: 100%; }
.skeleton-img { width: 100%; height: 55vh; min-height: 400px; border-radius: 20px; }
.skeleton-logo { width: 150px; height: 150px; border-radius: 16px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Reveals */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-fluid); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   Bulletproof Responsiveness
========================================= */
@media (max-width: 992px) {
    .slide { flex-direction: column; text-align: center; justify-content: center; gap: 3rem; }
    .slide-visual { justify-content: center; }
    .img-wrapper img { height: 40vh; min-height: 300px; max-height: 450px; }
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
    .footer-desc { margin: 0 auto; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1.6rem; }
    /* Prevent title from overlapping when scaled heavily on ultra-small devices */
    .premium-nav.scrolled .logo-text { transform: translate(0, -50%) scale(0.75); } 
    .card { padding: 2.5rem 1.5rem; }
    .card-footer { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .btn { width: 100%; text-align: center; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
