/* =========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================= */
:root {
    /* Colors - Premium Dark/Modern Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --accent-primary: #3b82f6;
    /* Beautiful Blue */
    --accent-glow: rgba(59, 130, 246, 0.4);

    --border-light: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading:
        "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Light Theme Override (Optional, can be toggled via JS) */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-glass-hover: rgba(0, 0, 0, 0.08);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-light: rgba(0, 0, 0, 0.08);
}

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

html {
    /* scroll-behavior handled by Lenis JS for smoother inertia */
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Custom cursor setup */
    cursor: none;
}

/* Ensure links and buttons don't show default cursor */
a,
button,
input,
select,
textarea {
    cursor: none;
}

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
    position: relative;
}

/* =========================================================================
   NAVIGATION (Glassmorphism)
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

/* Magnetic Area wrapper for JS */
.magnetic-wrap {
    display: inline-block;
    padding: 20px;
    /* Interaction area */
    margin: -20px;
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--text-muted);
}

/* =========================================================================
   CARDS & GRIDS
   ========================================================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.15);
    background: var(--bg-glass-hover);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08),
        0 0 0 1px rgba(59, 130, 246, 0.06);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    text-align: center;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 100;
    }

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

    .nav-link {
        font-size: 2rem;
    }

    /* Standard cursor for mobile */
    body,
    a,
    button,
    input,
    select,
    textarea {
        cursor: auto;
    }
}

/* -------------------------------------------------------------------------- */
/* ABOUT PAGE STICKY LAYOUT                                                   */
/* -------------------------------------------------------------------------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: flex-start;
}

@media (min-width: 900px) {
    .about-container {
        grid-template-columns: 1fr 1.5fr;
        gap: 5rem;
    }

    .about-sticky-side {
        position: sticky;
        top: calc(var(--nav-height) + 50px);
    }
}

.about-scroll-side {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.tilt-card {
    will-change: transform;
    transform-style: preserve-3d;
}

/* =========================================================================
   HERO SECTION (moved from inline styles)
   ========================================================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* =========================================================================
   EPISODE CARD IMAGE OVERLAY
   ========================================================================= */
.episode-card .img-wrap {
    position: relative;
}

.episode-card .img-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent, var(--bg-glass));
    pointer-events: none;
}

/* =========================================================================
   SECTION DIVIDER
   ========================================================================= */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 0;
    border: none;
}

/* =========================================================================
   GUEST CARD AVATAR RING PULSE
   ========================================================================= */
.guest-card:hover {
    transform: translateY(-6px);
}

/* =========================================================================
   SOCIAL LINK TOOLTIP
   ========================================================================= */
.social-link {
    position: relative;
}

.social-link::after {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::after {
    opacity: 1;
}