/* --- Variables --- */
:root {
    --bg-dark: #0a0b10;
    --nav-bg: #14141a;
    --accent-yellow: #fde047;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow: hidden; 
}

/* --- Precision SVG Background Pattern --- */
.bg-pattern-container {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; background-color: var(--bg-dark);
}
.bg-layer {
    position: absolute; inset: 0; background-repeat: repeat; opacity: 0; animation: evolveBg 24s infinite alternate ease-in-out;
}
.layer-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='200' viewBox='0 0 100 200'%3E%3Crect x='0' y='0' width='100' height='200' rx='50' ry='50' stroke='rgba(255, 255, 255, 0.04)' stroke-width='2' fill='none' /%3E%3C/svg%3E");
    background-size: 100px 200px; animation-delay: 0s;
}
.layer-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='300' viewBox='0 0 150 300'%3E%3Crect x='0' y='0' width='150' height='300' rx='75' ry='75' stroke='rgba(255, 255, 255, 0.03)' stroke-width='1.5' fill='none' /%3E%3C/svg%3E");
    background-size: 150px 300px; animation-duration: 30s; animation-delay: -8s;
}
.layer-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='30' stroke='rgba(253, 224, 71, 0.02)' stroke-width='1' fill='none' /%3E%3C/svg%3E");
    background-size: 80px 80px; animation-duration: 20s; animation-delay: -15s;
}

@keyframes evolveBg {
    0% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
    100% { opacity: 0.1; transform: scale(1.1); }
}

/* --- Full Page Snapping --- */
.fullpage-wrapper {
    height: 100vh; width: 100vw; overflow-y: scroll; scroll-snap-type: y mandatory;
    scroll-behavior: smooth; position: relative; z-index: 10;
}
.fullpage-wrapper::-webkit-scrollbar { display: none; }
.fullpage-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

.page-section {
    height: 100vh; width: 100vw; scroll-snap-align: start;
    display: flex; flex-direction: column; justify-content: center; position: relative;
}

.reveal-elem { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-out, transform 1s ease-out; }
.reveal-elem.active { opacity: 1; transform: translateY(0); }

/* --- 3-Column Navigation --- */
.top-nav {
    position: absolute; top: 2rem; left: 5%; right: 5%;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; z-index: 100;
}

.nav-left { display: flex; justify-content: flex-start; }
.nav-center { display: flex; justify-content: center; }
.nav-right { display: flex; justify-content: flex-end; }

.channel-logo {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover; background-color: #000;
}

.logo-text {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 800; letter-spacing: 1px;
    color: var(--accent-yellow); text-transform: uppercase; white-space: nowrap;
}
.logo-text span { color: var(--text-main); }

.btn-login {
    background: var(--nav-bg); color: var(--text-main); padding: 10px 28px;
    border-radius: 50px; text-decoration: none; font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.05); transition: border-color 0.3s;
}
.btn-login:hover { border-color: var(--accent-yellow); }

/* --- Hero Text & Planned Space Typewriter --- */
.hero-text-container {
    text-align: center; margin-top: 10rem; display: flex; flex-direction: column;
    justify-content: center; align-items: center; padding: 0 5%;
}

.fixed-height-typewriter {
    height: 120px; 
    width: 100%;
    display: flex; 
    align-items: flex-start; /* Anchors text to the top */
    justify-content: center; 
    margin-bottom: 0.5rem;
}

.fixed-height-typewriter h1 {
    font-size: clamp(1.8rem, 4vw, 3.5rem); 
    font-weight: 700; 
    line-height: 1.2; 
    color: var(--accent-yellow);
    margin: 0; 
    white-space: pre-line; /* Respects the explicit \n in JS */
    text-align: center;
}

.cursor { animation: blink 1s infinite step-end; color: var(--text-main); }
@keyframes blink { 50% { opacity: 0; } }

/* --- Fluid Hero Carousel --- */
.hero-carousel {
    display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 2rem 0; -ms-overflow-style: none; scrollbar-width: none; align-items: center;
}
.hero-carousel::-webkit-scrollbar { display: none; }

/* The spacer is now a flex container that perfectly centers its child */
.carousel-spacer {
    display: flex;
    align-items: center;
    justify-content: center; 
}

/* Check Out Our Videos Indicator */
.intro-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    will-change: transform, opacity;
}

.intro-inner {
    display: flex; flex-direction: column; align-items: flex-end; gap: 15px; text-align: right;
}

.intro-inner h2 {
    font-size: clamp(1rem, 3vw, 1.8rem); line-height: 1.2; text-transform: uppercase;
    color: var(--text-main); white-space: nowrap; 
}

.custom-arrow {
    width: clamp(60px, 8vw, 120px); height: auto; transform: rotate(10deg);
    filter: invert(88%) sepia(35%) saturate(1637%) hue-rotate(338deg) brightness(104%) contrast(101%);
}

/* Responsive Cards */
.hero-card {
    flex: 0 0 clamp(320px, 60vw, 650px); width: clamp(320px, 60vw, 650px); height: clamp(200px, 35vw, 380px);
    border-radius: 40px; overflow: hidden; scroll-snap-align: center; cursor: pointer;
    position: relative; transition: transform 0.1s linear, opacity 0.1s linear; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* Responsive Shorts */
.short-card {
    flex: 0 0 clamp(240px, 35vw, 280px); width: clamp(240px, 35vw, 280px); height: clamp(426px, 62vw, 498px);   
    border-radius: 24px; overflow: hidden; scroll-snap-align: center; cursor: pointer;
    position: relative; transition: transform 0.1s linear, opacity 0.1s linear; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.hero-card img, .short-card img { width: 100%; height: 100%; object-fit: cover; }
.card-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 60%, transparent 100%); }

.latest-badge {
    position: absolute; top: 20px; left: 20px; background: var(--accent-yellow); color: #000;
    padding: 8px 18px; border-radius: 50px; font-weight: 800; font-size: clamp(0.7rem, 1vw, 0.85rem); z-index: 10;
}

.card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; z-index: 5; }
.hero-card .card-info h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.3; }
.short-card .card-info h3 { font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- About Section --- */
.about-section { align-items: center; } .about-container { max-width: 900px; padding: 0 5%; }
.about-content h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.5rem; line-height: 1.2; }
.about-content h2 span { color: var(--accent-yellow); }
.about-lead { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 1rem; color: var(--text-main); }
.about-desc { font-size: clamp(0.9rem, 1.5vw, 1.1rem); color: var(--text-muted); margin-bottom: 3rem; }
.target-box { background: var(--nav-bg); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 24px; }
.target-box h3 { margin-bottom: 1.5rem; color: var(--accent-yellow); }
.feature-list { list-style: none; margin-bottom: 1.5rem; } .feature-list li { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); } .feature-list li strong { color: var(--text-main); }
.icon { font-size: 1.2rem; } .about-footer { font-style: italic; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }

/* --- Stacked Footer --- */
.footer-section { padding: 0 5%; }
.footer-split-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; gap: 4rem; }
.footer-left h2 { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; color: var(--text-main); }
.footer-left h2 span { color: var(--accent-yellow); }

.footer-right { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 300px; }

.social-tab {
    display: flex; align-items: center; justify-content: flex-start; gap: 15px;
    padding: 15px 30px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; color: var(--text-main); text-decoration: none; transition: all 0.3s ease; backdrop-filter: blur(5px);
}
.social-tab svg { width: 24px; height: 24px; fill: var(--text-muted); transition: fill 0.3s ease; }
.social-tab span { font-weight: 600; font-size: 1.1rem; }

.social-tab.yt:hover { border-color: #FF0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); } .social-tab.yt:hover svg { fill: #FF0000; }
.social-tab.ig:hover { border-color: #E1306C; box-shadow: 0 0 15px rgba(225, 48, 108, 0.6); } .social-tab.ig:hover svg { fill: #E1306C; }
.social-tab.fb:hover { border-color: #1877F2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.6); } .social-tab.fb:hover svg { fill: #1877F2; }
.social-tab.tw:hover { border-color: #1DA1F2; box-shadow: 0 0 15px rgba(29, 161, 242, 0.6); } .social-tab.tw:hover svg { fill: #1DA1F2; }

/* --- Modal --- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-content { width: 90%; max-width: 1000px; background: #0a0a0a; border-radius: 24px; padding: 2rem; position: relative; }
.close-btn { position: absolute; top: -15px; right: -15px; width: 40px; height: 40px; background: #fff; color: #000; border: none; font-size: 1.5rem; cursor: pointer; border-radius: 50%; }
.player-video { width: 100%; padding-bottom: 56.25%; position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.player-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.modal-footer { display: flex; justify-content: center; margin-top: 1.5rem; }
.watch-external-btn { padding: 10px 24px; background: var(--accent-yellow); color: #000; border-radius: 50px; text-decoration: none; font-weight: 700; }

/* --- Mobile Specific Fixes --- */
@media (max-width: 900px) {
    /* 1. Nav layout and squish fixes */
    .top-nav {
        display: flex;
        justify-content: space-between; /* Spreads items out evenly */
        gap: 10px;
    }
    
    .channel-logo { 
        width: 50px; /* Reduced from 70px */
        height: 50px; 
    } 
    
    .logo-text { 
        font-size: 0.9rem; /* Scaled down slightly */
    }
    
    .btn-login { 
        padding: 8px 16px; /* Smaller padding for mobile */
        font-size: 0.8rem; 
    }

    /* 2. Blank space fix */
    .hero-text-container { 
        margin-top: 4rem; /* Reduced from 8rem to pull text up */
    } 
    
    /* 3. Keep your existing mobile fixes below */
    .fixed-height-typewriter { height: 80px; }
    .intro-indicator { display: none; }
    .footer-split-container { flex-direction: column; text-align: center; gap: 2rem; }
    
    .page-section { 
        height: auto; 
        min-height: 100vh; 
        padding-top: 100px; /* Adjusted to fit the new spacing */
        padding-bottom: 60px;
        justify-content: flex-start; 
    }

    .fullpage-wrapper {
        scroll-snap-type: none; 
        overflow-y: auto;
    }
}
