﻿/* ==========================================================================
   COMPACT PREMIUM LAYOUT (Matches Reference)
   ========================================================================== */
.container {
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* Font Family Overrides */
*, body, html {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* CRITICAL: Fix animation hidden class collision with Tailwind */
.hidden, .hidden-onload { display: block !important; opacity: 0; }
.visible { opacity: 1 !important; }


/* YouTube Section - Permanent Dark Theme */
section#youtube.section {
    background-color: #1c1917 !important;
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}
section#youtube h1, section#youtube h2, section#youtube h3,
section#youtube p, section#youtube span, section#youtube a,
section#youtube li, section#youtube strong, section#youtube label,
section#youtube .section-title, section#youtube .section-subtitle {
    color: #fff !important;
}
section#youtube .glass-card {
    background: #292524 !important;
    border: 1px solid #44403c !important;
}
section#youtube .glass-card * {
    color: #fff !important;
}

/* Navbar */
[data-theme="light"] nav.navbar { background-color: rgba(250, 250, 249, 0.85) !important; }
[data-theme="dark"]  nav.navbar { background-color: rgba(8, 8, 8, 0.60) !important; backdrop-filter: blur(24px) !important; border-bottom: 1px solid rgba(13, 148, 136, 0.15) !important; }
.nav-links a { color: #44403c !important; font-weight: 500 !important; }
.nav-links a:hover { color: #0D9488 !important; }

.logo span { color: #0D9488 !important; }

/* Contact & Footer */
[data-theme="light"] #contact .section-title,
[data-theme="light"] #contact .glass-card h2,
[data-theme="light"] #contact .glass-card p,
[data-theme="light"] #contact .glass-card span { color: #1c1917 !important; }
[data-theme="dark"] #contact .section-title,
[data-theme="dark"] #contact .glass-card h2,
[data-theme="dark"] #contact .glass-card p,
[data-theme="dark"] #contact .glass-card span { color: #F5F5F5 !important; }
footer { background-color: #1c1917 !important; }
footer * { color: #a8a29e !important; }

.contact-hub-btn { background-color: #f5f5f4 !important; border: 1px solid #e7e5e4 !important; }
.contact-hub-btn:hover { background-color: #e7e5e4 !important; }
.contact-hub-btn .text-wrapper span { color: #1c1917 !important; }

.custom-hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 1.5rem !important;
}
.hero-bio-custom {
    font-size: 1.125rem !important;
    color: var(--text-secondary) !important;
    max-width: 32rem;
    line-height: 1.6;
}

/* TIMELINE FIXES */
.timeline::before { display: none !important; }
.timeline-dot {
position: absolute !important;
left: 13px !important;
top: 10px !important;
width: 16px !important;
height: 16px !important;
border-radius: 50% !important;
background: #0D9488 !important;
box-shadow: 0 0 0 3px var(--bg-color), 0 0 12px rgba(13,148,136,0.5) !important;
z-index: 2 !important;
}

/* --- PRO UI/UX UPGRADES (Step 1) --- */
.hero {
    position: relative;
    overflow: hidden;
}
.gradient-text-teal {
    background: linear-gradient(135deg, #0D9488 0%, #0D9488 50%, #99F6E4 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline-block; /* Ensure gradient applies properly */
}

/* --- PRO UI/UX UPGRADES (Step 2: Final Hover Fixes) --- */
#youtube .glass-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}
#youtube .glass-card:hover {
    /* REMOVED SCALE ON THE CARD ITSELF - Keeps it solid and anchored */
    transform: none !important;
    box-shadow: none !important;
    border-color: #44403c !important;
}
#youtube .video-thumbnail img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
#youtube .glass-card:hover .video-thumbnail img {
    /* Extremely smooth and subtle inner zoom only */
    transform: scale(1.04) !important;
}

/* Force hide the original play overlay from main.js */
#youtube .play-overlay {
    display: none !important;
}

/* Make title match the reference image exactly */
#youtube .glass-card h3 {
    transition: color 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 1.15rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.4 !important;
}
#youtube .glass-card:hover h3 {
    color: #0D9488 !important;
}

/* --- PRO UI/UX UPGRADES (Global GPU Acceleration) --- */
/* 1. Force hardware acceleration for all cards, dots, and animated elements */
.glass-card, .timeline-dot, .timeline-progress-animated, #cursor-dot, #cursor-ring, .video-thumbnail img {
    will-change: transform, opacity;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 2. Upgrade all fade-up animations to use 3D transforms (translate3d) */
/* This forces the GPU to create a separate render layer for these elements */
[data-animation="fade-up"].hidden {
    opacity: 0 !important;
    transform: translate3d(0, 30px, 0) !important;
    display: block !important; /* Fix for tailwind collision */
}

[data-animation="fade-up"].visible,
[data-animation="fade-up-stagger"].visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

[data-animation="fade-up-stagger"].hidden {
    opacity: 0 !important;
    transform: translate3d(0, 30px, 0) !important;
    display: block !important;
}

/* 3. Global anti-aliasing for sharper text during animations */
body, html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth; /* Native smooth scrolling */
}

/* --- PRO UI/UX UPGRADES (Step 3: Header Fixes) --- */
/* Force Latest Content title to be white */
#youtube .section-title {
    color: #ffffff !important;
}

/* Override the old subscribe button styles to be a sleek text link */
#youtube .yt-link-override {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #0D9488 !important; /* Teal text */
    font-weight: 600 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    box-shadow: none !important; /* Remove button shadow */
}
#youtube .yt-link-override:hover {
    opacity: 0.8 !important;
    transform: translateX(4px) !important; /* Slide slightly right on hover */
    background: transparent !important;
}

/* --- PRO UI/UX UPGRADES (Step 4: Section Title Accent) --- */
/* Convert the small decorative line under headings to Teal */
.section-title::after {
    background: #0D9488 !important; /* Vibrant Teal */
    opacity: 1 !important; /* Make it solid, not faded */
    height: 3px !important; /* Slightly thicker for a premium feel */
    border-radius: 3px !important;
}

/* --- PRO UI/UX UPGRADES (Step 5: Theme Fixes & Accents) --- */
/* 1. Fix Latest Content heading color (overriding the global dark rule) */
#youtube h2.section-title {
    color: #ffffff !important;
}

/* 2. Permanent Teal Version in Footer */
footer .site-version {
    color: #0D9488 !important;
    opacity: 1 !important;
}

/* 3. Teal Underline & Active State for Navbar Links */
.nav-links a::after {
    background: #0D9488 !important; /* Force teal underline */
}
.nav-links a:hover,
.nav-links a.active {
    color: #0D9488 !important; /* Force teal text on active/hover */
}

/* --- PRO UI/UX UPGRADES (Step 6: Cursor, Top Button & Spinner) --- */

/* 1. CURSOR THEME MATCH */
#cursor-dot {
    background: #0F766E !important; /* Dark teal */
}
#cursor-ring {
    border-color: rgba(13, 148, 136, 0.4) !important; /* Light Teal */
}
#cursor-dot.hover, #cursor-dot.clicking {
    background: #0D9488 !important; /* Bright teal */
}
#cursor-ring.hover, #cursor-ring.clicking {
    border-color: #0D9488 !important; /* Bright teal */
}

/* 2. GO TO TOP BUTTON HOVER */
.scroll-top-btn:hover {
    background: #0D9488 !important;
    color: white !important;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45) !important;
    transform: translateY(-4px) !important;
}

/* 3. FADING TAIL TEAL SPINNER */
.loader-circle {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: none !important; /* Remove old solid borders */
    /* Create the fading tail effect */
    background: conic-gradient(from 0deg, transparent 0%, rgba(13, 148, 136, 0.1) 30%, rgba(13, 148, 136, 0.8) 80%, #0D9488 100%) !important;
    /* Hollow out the center to make it a ring */
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0) !important;
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0) !important;
    animation: spin 0.9s linear infinite !important;
}

/* --- PRO UI/UX UPGRADES (Step 7: Modal & Button Details) --- */

/* 1. Modal Heading Teal Underline */
#feedback-modal h2 {
    position: relative !important;
    padding-bottom: 0 !important;
    margin-bottom: 1rem !important;
}
#feedback-modal h2::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -2px !important;
    width: 40px !important;
    height: 3px !important;
    border-radius: 3px !important;
    background: #0D9488 !important;
}

/* 2. Modal Close Button Hover */
#close-feedback-btn {
    transition: all 0.3s ease !important;
}
#close-feedback-btn:hover {
    background: #0D9488 !important;
    color: #ffffff !important;
    border-color: #0D9488 !important;
    transform: rotate(90deg) !important; /* Cool interaction */
}

/* 3. Global Primary Button Theme (Send Button, etc.) */
.btn-primary {
    background: #0D9488 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25) !important;
    color: #ffffff !important;
}
.btn-primary:hover {
    background: #0F766E !important; /* Darker teal on hover */
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* --- PRO UI/UX UPGRADES (Step 8: Latest Content Layout) --- */
#youtube h2.section-title::after {
    display: block !important;
}


            .contact-hub-btn {
                width: 100%;
                display: flex;
                flex-direction: row;
                align-items: center;
                padding: 1.2rem;
                border-radius: 12px;
                border: 1px solid var(--glass-border);
                background: transparent;
                cursor: pointer;
                transition: all 0.3s ease;
                text-decoration: none;
                font-family: inherit;
                text-align: left;
                gap: 1rem;
                color: var(--text-primary);
            }
            .contact-hub-btn:hover {
                background: var(--glass-bg);
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            }
            .contact-hub-btn .icon-wrapper {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 42px;
                height: 42px;
                border-radius: 50%;
                background: rgba(128, 128, 128, 0.1);
                color: var(--text-primary);
                flex-shrink: 0;
            }
            .contact-hub-btn .text-wrapper {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: center;
            }


/* BULLETPROOF WHITE TITLE */
body #youtube .youtube-header h2.section-title { color: #ffffff !important; }

/* BULLETPROOF CLOSE BUTTON FIX */
button.contact-close-btn-fixed {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
button.contact-close-btn-fixed:hover {
    background: #0D9488 !important;
    color: #ffffff !important;
    border-color: #0D9488 !important;
    transform: rotate(90deg) scale(1.1) !important;
}


/* UNIFIED GAP FIX */


/* CIRCULAR CLOSE BUTTONS */
#close-contact-hub-btn, #close-feedback-btn, .contact-close-btn-fixed {
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* AGGRESSIVE GAP REDUCTION FOR ALL TITLES */
.section-title, #feedback-modal h2, .column-title, h2, h3 {
    line-height: 1.1 !important;
    padding-bottom: 0 !important;
}

.section-title::after,
#feedback-modal h2::after,
.section-subtitle::after {
    bottom: -2px !important;
}


/* EXACTLY 2 LETTERS WIDTH */
.section-title::after, #feedback-modal h2::after, .section-subtitle::after {
    width: 1.6ch !important;
}

/* --- PRO UI/UX UPGRADES (Step 17: Stats Section Cleanup) --- */

/* 1. Neutralize the old red subscriber card */


/* 2. Premium Stat Cards */



/* 3. Stat Icons - Unified Teal Theme */


.stat-card:hover


/* 4. Stat Typography */
.stat-card h3.counter {
    color: #1c1917 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.2rem !important;
}
.stat-card p {
    color: #a8a29e !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
}
.stat-card:hover p {
    color: #0D9488 !important;
}

/* Restore pure glass-card behavior for the red card */
.live-subscriber-card {
    border: 1px solid var(--glass-border) !important;
    background: var(--glass-bg) !important;
}
.live-subscriber-card:hover {
    border-color: var(--card-hover-border) !important;
}

/* CLEAN ICONS */


.stat-card:hover





/* Restore clean circular icons */
.stat-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(13, 148, 136, 0.05) !important;
    border: 1px solid rgba(13, 148, 136, 0.15) !important;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.1) !important;
    transition: all 0.4s ease !important;
    margin-bottom: 1.5rem !important;
}
.stat-card:hover .stat-icon {
    background: #0D9488 !important;
}
.stat-card svg {
    width: 22px !important;
    height: 22px !important;
    color: #0D9488 !important;
    filter: none !important;
    transition: all 0.4s ease !important;
}
.stat-card:hover .stat-icon svg {
    color: #ffffff !important;
}

/* Allow .stat-card to naturally inherit .glass-card hover, NO forced scale */
/* We just need to make sure the red subscriber card is fixed */
.live-subscriber-card {
    border: 1px solid var(--glass-border) !important;
    background: var(--glass-bg) !important;
}
.live-subscriber-card:hover {
    border-color: var(--card-hover-border) !important;
}

/* FIX OVERLAP: Move Scroll to Top button beside the AI button (to its left) */
.scroll-top-btn {
    bottom: 45px !important; /* Perfect vertical alignment with 50px AI button */
    right: 130px !important; /* 15px gap from the AI button (30 + 50 + 15 = 95) */
    z-index: 997 !important;
}
/* Ensure chat widget stays above everything */
#ai-chat-widget {
    bottom: 110px !important;
}


/* Enforce Light Theme Only - Hide Toggle */
#theme-toggle { display: none !important; }

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ Fix Profile Image Background in Dark Mode ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
[data-theme="dark"] .hero-image-container {
    background: transparent !important;
    border: none !important;
    box-shadow: 0 20px 50px rgba(13, 148, 136, 0.15) !important; /* Soft teal glow behind profile */
}
[data-theme="dark"] .hero-image-container::after {
    /* Optional: very subtle gradient behind the image to separate from background */
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    z-index: -1;
}
/* KILL AI FLOATING PURPLE / PINK ORBS COMPLETELY */
.ambient-glow, .glow-orb, .orb-1, .orb-2, .mouse-aura {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
/* ========================================================
   CINEMATIC THEATER MODE (Glass Blur & Dim Backdrop)
   ======================================================== */
.theater-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.35s ease !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
}

.theater-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Glass Blur & Dim Backdrop */
.theater-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(3, 7, 18, 0.88) !important; /* Deep dark cinematic dim */
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    z-index: 1 !important;
    cursor: pointer !important;
}

.theater-shell {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-height: 94vh !important;
    transform: scale(0.94) translateY(15px) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.theater-modal.active .theater-shell {
    transform: scale(1) translateY(0) !important;
}

/* Top bar */
.theater-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 0.75rem !important;
    padding: 0 0.25rem !important;
}

.theater-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 9999px !important;
    background: rgba(13, 148, 136, 0.15) !important;
    border: 1px solid rgba(13, 148, 136, 0.35) !important;
    color: #5EEAD4 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.theater-pulse {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #0D9488 !important;
    box-shadow: 0 0 10px #0D9488 !important;
    animation: theaterPulse 1.8s infinite ease-in-out !important;
}

@keyframes theaterPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.theater-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
}

.theater-yt-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e4e4e7 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.theater-yt-btn:hover {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4) !important;
}

.theater-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #e4e4e7 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.theater-close-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #f87171 !important;
    transform: rotate(90deg) !important;
}

/* Screen Wrapper */
.theater-screen-wrapper {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* WIDESCREEN / LONG VIDEO (16:9) */
.theater-shell.is-widescreen {
    max-width: 980px !important;
}

.theater-shell.is-widescreen .theater-screen {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    background: #000000 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(13, 148, 136, 0.25) !important;
}

/* SHORTS (9:16 Vertical Reel Player) */
.theater-shell.is-shorts {
    max-width: 420px !important;
}

.theater-shell.is-shorts .theater-screen {
    width: min(88vw, 390px) !important;
    height: min(78vh, 690px) !important;
    aspect-ratio: 9 / 16 !important;
    background: #000000 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    border: 2px solid rgba(13, 148, 136, 0.4) !important;
    box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.9), 0 0 45px rgba(13, 148, 136, 0.35) !important;
}

.theater-screen iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

/* Title & Meta */
.theater-meta {
    width: 100% !important;
    margin-top: 0.85rem !important;
    text-align: left !important;
    padding: 0 0.5rem !important;
}

.theater-title {
    color: #f4f4f5 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
/* ========================================================
   THEME ACCENT SCROLL PROGRESS BAR (Signature Deep Teal)
   ======================================================== */
.scroll-progress,
#scroll-progress {
    height: 3px !important;
    background: linear-gradient(90deg, #0F766E, #0D9488, #2DD4BF, #5EEAD4, #0D9488) !important;
    background-size: 200% 100% !important;
    animation: gradientMove 3s linear infinite !important;
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.75), 0 0 20px rgba(45, 212, 191, 0.45) !important;
    z-index: 10001 !important;
}
/* ==========================================================================
   REFRESHED DARK THEME - DEEP MATTE SLATE & TEAL ACCENTS
   ========================================================================== */

/* 1. Background Base & Subtle Grid Texture */
body[data-theme="dark"] {
    background-color: #0B0E14 !important;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 28px 28px !important;
    background-attachment: fixed !important;
}

/* Ensure sections don't block the grid */
body[data-theme="dark"] section,
body[data-theme="dark"] section#youtube.section,
body[data-theme="dark"] footer {
    background-color: transparent !important;
}

/* 2. Teal Glow Accent behind Hero */
body[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 60%) !important;
    pointer-events: none;
    z-index: 0;
}
body[data-theme="dark"] .hero > * {
    position: relative;
    z-index: 1;
}

/* 3. Card Surfaces (Stats & Content Cards) */
body[data-theme="dark"] .glass-card, 
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .timeline-content,
body[data-theme="dark"] section#youtube .glass-card {
    background-color: #121620 !important;
    border: 1px solid rgba(20, 184, 166, 0.18) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
}

/* Keep the interactive card effects clean */
body[data-theme="dark"] .glass-card:hover,
body[data-theme="dark"] section#youtube .glass-card:hover {
    border-color: rgba(20, 184, 166, 0.4) !important;
}

/* Navbar integration with the new theme */
body[data-theme="dark"] nav.navbar {
    background-color: rgba(11, 14, 20, 0.60) !important; 
    border-bottom: 1px solid rgba(20, 184, 166, 0.15) !important;
}
/* ==========================================================================
   HERO REFACTOR (V2)
   ========================================================================== */
.hero-content {
    text-align: left !important;
    max-width: 720px !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .hero-content {
        text-align: left !important;
    }
}

.custom-hero-title-v2 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1.5rem !important;
    color: #F9FAFB !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.hero-bio-custom-v2 {
    color: #9CA3AF !important;
    font-size: clamp(1rem, 2vw, 1.125rem) !important;
    line-height: 1.65 !important;
    max-width: 640px !important;
    margin-bottom: 2.5rem !important;
}

.primary-btn-v2 {
    background-color: #14B8A6 !important;
    color: #090D16 !important;
    font-weight: 600 !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease, filter 0.2s ease !important;
    display: inline-block !important;
}

.primary-btn-v2:hover {
    opacity: 0.9 !important;
    filter: brightness(1.1) !important;
}

.secondary-btn-v2 {
    background-color: #1e293b !important;
    border: 1px solid rgba(20, 184, 166, 0.3) !important;
    color: #E5E7EB !important;
    font-weight: 500 !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    display: inline-block !important;
}

.secondary-btn-v2:hover {
    background-color: #334155 !important;
}
/* ==========================================================================
   3D HERO CALL TO ACTION BUTTONS
   ========================================================================== */
/* 3D Primary Button */
.primary-btn-v2 {
    background: linear-gradient(145deg, #16c8b4, #12a695) !important;
    color: #090D16 !important;
    font-weight: 700 !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 0.75rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: none !important;
    box-shadow: 
        0 6px 0 #0d7a6e,
        0 12px 15px rgba(20, 184, 166, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
    transform: translateY(0) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: none !important;
}

.primary-btn-v2:hover {
    transform: translateY(2px) !important;
    opacity: 1 !important;
    box-shadow: 
        0 4px 0 #0d7a6e,
        0 8px 10px rgba(20, 184, 166, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}

.primary-btn-v2:active {
    transform: translateY(6px) !important;
    box-shadow: 
        0 0px 0 #0d7a6e,
        0 4px 5px rgba(20, 184, 166, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}

/* 3D Secondary Button */
.secondary-btn-v2 {
    background: linear-gradient(145deg, #253347, #1b2536) !important;
    color: #E5E7EB !important;
    font-weight: 700 !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 0.75rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: none !important;
    box-shadow: 
        0 6px 0 #0f151f,
        0 12px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(0) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.secondary-btn-v2:hover {
    transform: translateY(2px) !important;
    background: linear-gradient(145deg, #2b3b52, #1b2536) !important;
    box-shadow: 
        0 4px 0 #0f151f,
        0 8px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1) !important;
}

.secondary-btn-v2:active {
    transform: translateY(6px) !important;
    box-shadow: 
        0 0px 0 #0f151f,
        0 4px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1) !important;
}
/* ==========================================================================
   GLASSMORPHISM NAVBAR
   ========================================================================== */
body[data-theme="dark"] nav.navbar {
    background-color: rgba(11, 14, 20, 0.60) !important; 
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(20, 184, 166, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}


/* ==========================================================================
   OFFICIAL YOUTUBE WHITE SUBSCRIBE BUTTON WITH 3D HOVER
   ========================================================================== */
.yt-official-sub-btn {
    background-color: #f1f1f1 !important;
    color: #0f0f0f !important;
    font-family: 'Roboto', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 36px !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 18px !important; /* Full pill shape */
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    transform: translateY(0) !important;
    box-shadow: 0 0 0 #b3b3b3 !important; /* Flat initially */
}

/* 3D Effect on Hover */
.yt-official-sub-btn:hover {
    background-color: #ffffff !important;
    transform: translateY(-3px) !important; /* Pops up */
    box-shadow: 
        0 4px 0 #cccccc, /* 3D thickness */
        0 8px 15px rgba(0, 0, 0, 0.2) !important; /* Glow/Drop shadow */
}

/* Push down on click */
.yt-official-sub-btn:active {
    transform: translateY(1px) !important; /* Presses down */
    box-shadow: 
        0 0px 0 #cccccc, 
        0 2px 5px rgba(0, 0, 0, 0.2) !important;
}/* ==========================================================================
   YOUTUBE SUBSCRIBE BUTTON TEXT COLOR FIX
   ========================================================================== */
a.yt-official-sub-btn {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}
/* ==========================================================================
   SCROLL MARGIN FIX FOR FIXED NAVBAR
   ========================================================================== */
section, .section {
    scroll-margin-top: 80px !important;
}
/* ==========================================================================
   CUSTOM CURSOR ENLARGED HOVER
   ========================================================================== */
#cursor-ring.hover {
    width: 64px !important;
    height: 64px !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-width: 1px !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

#cursor-dot.hover {
    opacity: 0 !important;
}
/* ==========================================================================
   ELEVATED / LIFTED CARDS (UBHRE HUE BOXES)
   ========================================================================== */
body[data-theme="dark"] .glass-card, 
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .timeline-content,
body[data-theme="dark"] section#youtube .glass-card {
    /* Slightly lighter background to pop from the #0B0E14 page background */
    background: linear-gradient(180deg, #1A2235 0%, #111724 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important; /* Top light reflection */
    border-radius: 16px !important;
    
    /* 3D Elevated Shadow: A strong dark drop shadow to lift it up */
    box-shadow: 
        0 15px 35px -5px rgba(0, 0, 0, 0.8), 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    
    backdrop-filter: blur(10px) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

body[data-theme="dark"] .glass-card:hover,
body[data-theme="dark"] section#youtube .glass-card:hover {
    transform: translateY(-5px) !important; /* Lifts up on hover */
    box-shadow: 
        0 25px 40px -5px rgba(0, 0, 0, 0.9), 
        0 10px 20px rgba(20, 184, 166, 0.2), /* Subtle teal glow on hover */
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(20, 184, 166, 0.4) !important;
}
/* ==========================================================================
   SMOOTH SCROLLING FOR ANCHOR LINKS
   ========================================================================== */
html {
    scroll-behavior: smooth !important;
}

/* ==========================================================================
   HAMBURGER MENU SIZE FIX (FOOLPROOF)
   ========================================================================== */
.hamburger {
        display: inline-flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 26px !important;
        min-width: 26px !important;
        max-width: 26px !important;
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        gap: 0 !important; 
    }

    .hamburger .bar {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        min-height: 2px !important;
        max-height: 2px !important;
        background-color: var(--text-primary) !important;
        border-radius: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease !important;
    }

    .hamburger .bar:nth-child(2) {
        width: 75% !important;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0 !important;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }


/* Desktop Menu: Remove Home */
ul.nav-links li:first-child {
    display: none !important;
}

/* Mobile Menu: Hamburger on Left */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
        position: relative;
    }
    .nav-brand {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .nav-right {
        width: auto !important;
        flex: 0 0 auto;
    }
    .nav-right .hamburger {
        position: relative !important;
        left: auto !important;
        margin: 0 !important;
    }
}
/* Make Hero Image appear BELOW the text on mobile */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column !important;
    }
}
/* ==========================================================================
   ENHANCED PREMIUM SCROLL REVEAL ANIMATIONS
   ========================================================================== */
@keyframes premiumFadeUp {
    from {
        opacity: 0;
        transform: translateY(80px); /* Increased from 40px to 80px for a more pronounced slide */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up, 
[data-animation="fade-up"].animate-fade-up,
[data-animation="fade-up-stagger"].animate-fade-up {
    animation: premiumFadeUp 2s forwards cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}