/* ===== HOMEPAGE STYLES ===== */

::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none; 
}


html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 30s infinite ease-in-out;
    z-index: -1;
    transition: all 4s ease;
    will-change: transform, opacity;
}

[data-theme="light"] .bubble {
    opacity: 0.25;
    filter: blur(50px);
}

.bubble:hover {
    opacity: 0.4;
    filter: blur(35px);
    transform: scale(1.05);
}

[data-theme="light"] .bubble:hover {
    opacity: 0.35;
}

/* Dark mode bubbles */
.bubble-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #F5B823, rgba(245, 184, 35, 0.5));
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 35s;
}

.bubble-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #1A1A1A, rgba(245, 184, 35, 0.4));
    top: 65%;
    left: 85%;
    animation-delay: 7s;
    animation-duration: 40s;
}

.bubble-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #F5B823, rgba(181, 242, 222, 0.6));
    top: 35%;
    left: 75%;
    animation-delay: 14s;
    animation-duration: 30s;
}

/* Light mode bubbles */
[data-theme="light"] .bubble-1 {
    background: radial-gradient(circle, rgba(245, 184, 35, 0.6), rgba(245, 184, 35, 0.2));
}

[data-theme="light"] .bubble-2 {
    background: radial-gradient(circle, rgba(230, 230, 230, 0.8), rgba(245, 184, 35, 0.2));
}

[data-theme="light"] .bubble-3 {
    background: radial-gradient(circle, rgba(245, 184, 35, 0.5), rgba(181, 242, 222, 0.3));
}

.bubble-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #463c3c, rgba(206, 156, 30, 0.3));
    top: 75%;
    left: 20%;
    animation-delay: 21s;
    animation-duration: 45s;
}

.bubble-5 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(161, 199, 234, 0.7), rgba(245, 184, 35, 0.4));
    top: 25%;
    left: 45%;
    animation-delay: 28s;
    animation-duration: 33s;
}

.bubble-6 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #F5B823, rgba(229, 214, 214, 0.5));
    top: 50%;
    left: 5%;
    animation-delay: 10s;
    animation-duration: 37s;
}

.bubble-7 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #F5B823, rgba(212, 197, 170, 0.5));
    top: 10%;
    left: 80%;
    animation-delay: 17s;
    animation-duration: 42s;
}

[data-theme="light"] .bubble-4 {
    background: radial-gradient(circle, rgba(230, 230, 230, 0.7), rgba(190, 148, 41, 0.197));
}

[data-theme="light"] .bubble-5 {
    background: radial-gradient(circle, rgba(161, 199, 234, 0.5), rgba(245, 189, 48, 0.2));
}

[data-theme="light"] .bubble-6 {
    background: radial-gradient(circle, rgba(245, 184, 35, 0.4), rgba(229, 214, 214, 0.3));
}

[data-theme="light"] .bubble-7 {
    background: radial-gradient(circle, rgba(200, 156, 43, 0.4), rgba(212, 197, 170, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(30px, 50px) rotate(5deg) scale(1.02);
    }
    40% {
        transform: translate(-20px, 80px) rotate(-5deg) scale(0.98);
    }
    60% {
        transform: translate(40px, -30px) rotate(8deg) scale(1.01);
    }
    80% {
        transform: translate(-10px, -40px) rotate(-3deg) scale(0.99);
    }
}
[data-theme="light"] {
        @keyframes float {
        0%, 100% {
            transform: translate(0, 0) rotate(0deg) scale(1);
        }
        20% {
            transform: translate(15px, 25px) rotate(3deg) scale(1.01);
        }
        40% {
            transform: translate(-10px, 40px) rotate(-3deg) scale(0.99);
        }
        60% {
            transform: translate(20px, -15px) rotate(4deg) scale(1.005);
        }
        80% {
            transform: translate(-5px, -20px) rotate(-2deg) scale(0.995);
        }
    }
}



:root {
            /* BRAND COLORS */
            --bg-primary: #32353c;
            --bg-secondary: rgba(104, 100, 100, 0.05);
            --bg-tertiary: rgba(108, 105, 105, 0.3);
            --text-primary: #f3f4f6;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --border-color: #374151;
            --border-hover: #4b5563;
            --shadow-color: rgba(60, 57, 57, 0.3);
            --header-bg: rgba(39, 42, 47, 0.95);
            --flip-style: rotate; /* Can be 'rotate' or 'overlay' */
            
            /* Card Variables - Default Dark */
            --card-bg: rgba(134, 134, 147, 0.7);
            --card-border: rgba(255, 255, 255, 0.1);
            --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
            
            /* Brand Colors */
            --color-red: #F5B823;
            --color-purple: #F5B823;
            --color-orange: #F5B823;
            --color-green: #44c0af;
                       
            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #F5B823, #F5B823);
            --gradient-secondary: linear-gradient(135deg, #F5B823, #F5B823);
            --gradient-blue: linear-gradient(135deg, #F5B823, #F5B823);
            
            /* Button Styles */
            --btn-light: linear-gradient(135deg, #1f2937 0%, #374151 100%);
            --btn-text-light: #f3f4f6;
            --btn-border-light: rgba(255, 255, 255, 0.1);
            
            --mobile-font-scale: 0.82;
            --base-size: clamp(14px, 4vw, 16px);
            
          
    /* type scale */
    --h1: calc(var(--base-size) * var(--mobile-font-scale) * 3);
    --h2: calc(var(--base-size) * var(--mobile-font-scale) * 2);
    --h3: calc(var(--base-size) * var(--mobile-font-scale) * 1.5);
    --body: calc(var(--base-size) * var(--mobile-font-scale));
    --btn-text: calc(var(--base-size) * var(--mobile-font-scale) * 1);
    --caption: calc(var(--base-size) * var(--mobile-font-scale) * 0.9);
            
            /* Button Hierarchy */
            --btn-primary-height: 44px;
            --btn-secondary-height: 38px;
            --btn-border-radius: 8px;
            
            /* Section Spacing System */
            /* --section-spacing-desktop: 64px;
            --section-spacing-tablet: 48px;
            --section-spacing-mobile: 32px; */
            
            /* Mobile Viewport */
            --mobile-section-height: 100vh;
            --mobile-padding: 15px 5vw;
            
            /* YouTube Embed */
            --youtube-aspect-ratio: 16 / 9;
            --youtube-max-width: 1200px;
            
            /* Animation Durations */
            --transition-fast: 0.2s ease;
            --transition-normal: 0.3s ease;
            --transition-slow: 0.5s ease;
            
            /* Z-Index Layers */
            --z-modal: 1000;
            --z-overlay: 900;
            --z-header: 800;
            --z-floating: 700;
            
            /* Font Sizes (Legacy Support) */
            --font-size-base: 16px;
            --font-size-sm: 14px;
            --font-size-lg: 18px;
            --font-size-xl: 20px;
            --font-size-2xl: 24px;
            --font-size-3xl: 30px;
            --font-size-4xl: 36px;
        }

        [data-theme="light"] {
            --bg-primary: #ffffff;
            --bg-secondary: rgba(255, 255, 255, 0.95);
            --bg-tertiary: rgba(248, 250, 252, 0.9);
            --text-primary: #111827;
            --text-secondary: #374151;
            --text-muted: #6b7280;
            --border-color: #e5e7eb;
            --border-hover: #d1d5db;
            --shadow-color: rgba(0, 0, 0, 0.04);
            --header-bg: rgba(255, 255, 255, 0.95);
            
            /* Card Variables */
            --card-bg: rgba(255, 255, 255, 0.95);
            --card-border: rgba(0, 0, 0, 0.08);
            --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
            --card-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            
            /* Button Styles */
            --btn-light: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
            --btn-text-light: #2d3748;
            --btn-border-light: rgba(0, 0, 0, 0.05);
            
            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #ecdbbe, #e4d6c5);
            --gradient-secondary: linear-gradient(135deg, #f0d5a6, #d97706);
            --gradient-blue: linear-gradient(135deg, #abc5f0, #58d6e6);
        }
        
/* Theme Variables */
:root {
    --stats-bg-light: rgba(248, 248, 250, 0.9);
    --stats-border-light: rgba(156, 149, 149, 0.08);
    --stats-shadow-light: 0 4px 24px rgba(207, 203, 203, 0.1);
    --stats-hover-shadow-light: 0 8px 32px rgba(0, 0, 0, 0.15);
    --stats-pattern-opacity-light: 0.15;
    
    --stats-bg-dark: rgba(162, 162, 168, 0.7);
    --stats-border-dark: rgba(255, 255, 255, 0.1);
    --stats-shadow-dark: 0 8px 32px rgba(137, 133, 133, 0.3);
    --stats-hover-shadow-dark: 0 12px 40px rgba(141, 139, 139, 0.4);
    --stats-pattern-opacity-dark: 0.25;
}

[data-theme="light"] .stats-section {
    --stats-bg: var(--stats-bg-light);
    --stats-border: var(--stats-border-light);
    --stats-shadow: var(--stats-shadow-light);
    --stats-hover-shadow: var(--stats-hover-shadow-light);
    --stats-pattern-opacity: var(--stats-pattern-opacity-light);
    --text-secondary: #5a5a6a;
}

[data-theme="dark"] .stats-section {
    --stats-bg: var(--stats-bg-dark);
    --stats-border: var(--stats-border-dark);
    --stats-shadow: var(--stats-shadow-dark);
    --stats-hover-shadow: var(--stats-hover-shadow-dark);
    --stats-pattern-opacity: var(--stats-pattern-opacity-dark);
    --text-secondary: rgba(255, 255, 255, 0.7);
}

/* Direct theme overrides */
[data-theme="light"],
[data-theme="light"] *,
body:not([data-theme="dark"]),
body:not([data-theme="dark"]) * {
    color: #111827 !important;
}

[data-theme="light"] .text-secondary,
[data-theme="light"] .feature-description,
body:not([data-theme="dark"]) .text-secondary,
body:not([data-theme="dark"]) .feature-description {
    color: #374151 !important;
}

/* System preference detection */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --card-bg: rgba(255, 255, 255, 0.95) !important;
        --card-border: rgba(0, 0, 0, 0.08) !important;
        --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
        --card-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        --text-primary: #111827 !important;
        --text-secondary: #374151 !important;
        --border-hover: #d1d5db !important;
        --bg-secondary: rgba(255, 255, 255, 0.9) !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --card-bg: rgba(47, 47, 54, 0.7) !important;
        --card-border: rgba(255, 255, 255, 0.1) !important;
        --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
        --text-primary: #f3f4f6 !important;
        --text-secondary: #94a3b8 !important;
        --border-hover: #4b5563 !important;
    }
}
/* Theme Variables */
:root {
    --card-bg-light: rgba(255, 255, 255, 0.95);
    --card-border-light: rgba(0, 0, 0, 0.08);
    --card-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-hover-shadow-light: 0 10px 30px rgba(0, 0, 0, 0.12);
    --text-primary-light: #2a2a3a;
    --text-secondary-light: #5a5a6a;
    --border-hover-light: rgba(245, 184, 35, 0.25);
    
    --card-bg-dark: rgba(25, 25, 35, 0.9);
    --card-border-dark: rgba(255, 255, 255, 0.08);
    --card-shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
    --card-hover-shadow-dark: 0 12px 40px rgba(0, 0, 0, 0.4);
    --text-primary-dark: #ffffff;
    --text-secondary-dark: rgba(255, 255, 255, 0.8);
    --border-hover-dark: rgba(245, 184, 35, 0.4);
    
    --card-bg: var(--card-bg-light);
    --card-border: var(--card-border-light);
    --card-shadow: var(--card-shadow-light);
    --card-hover-shadow: var(--card-hover-shadow-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --border-hover: var(--border-hover-light);
}

/* Feature cards */
body:not([data-theme="dark"]) .feature-card,
[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(124, 120, 120, 0.226) !important;
    box-shadow: 0 4px 24px rgba(126, 126, 126, 0.1) !important;
}

body:not([data-theme="dark"]) .feature-card:hover,
[data-theme="light"] .feature-card:hover {
    box-shadow: 0 8px 32px rgba(159, 42, 42, 0.15) !important;
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --card-bg: var(--card-bg-dark);
        --card-border: var(--card-border-dark);
        --card-shadow: var(--card-shadow-dark);
        --card-hover-shadow: var(--card-hover-shadow-dark);
        --text-primary: var(--text-primary-dark);
        --text-secondary: var(--text-secondary-dark);
        --border-hover: var(--border-hover-dark);
    }
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --card-bg: var(--card-bg-light);
        --card-border: var(--card-border-light);
        --card-shadow: var(--card-shadow-light);
        --card-hover-shadow: var(--card-hover-shadow-light);
        --text-primary: var(--text-primary-light);
        --text-secondary: var(--text-secondary-light);
        --border-hover: var(--border-hover-light);
    }
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            transition: all 0.3s ease;
            font-size: var(--font-size-base);
        }

        .container {
    max-width: 1400px;
            margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
}

/* Large Screen (≥1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 2rem;
    }
}

/* Medium Screen (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        max-width: 1200px;
        padding: 0 1.5rem;
    }
}

/* Small Screen (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Mobile (≤479px) */
@media (max-width: 479px) {
    .container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
}

/* Extra Small Mobile (≤375px) */
@media (max-width: 375px) {
    .container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
        }
        
            /* section layout */
        .section {
            flex-direction: column;
    /* padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem); */
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: auto;
            height: auto;
            margin: 0 auto;
            scroll-snap-align: start;
    max-width: 1400px;
            
            /* Desktop */
            @media (min-width: 1024px) {
                & + section { 
                    margin-top: var(--section-spacing-desktop); 
                }
        /* padding: 4rem 2rem; */
            }
            
            /* Tablet */
            @media (min-width: 601px) and (max-width: 1023px) {
                & + section { 
                    margin-top: var(--section-spacing-tablet); 
                }
        /* padding: 3rem 1.5rem; */
            }
            
            /* Mobile */
            @media (max-width: 600px) {
        height: auto;
        width: 100%;
                overflow: hidden;
        padding: 2rem 1rem;
                box-sizing: border-box;
                
                /*  {
                     max-width: 100%;
                    overflow-x: hidden; 
                } */
            }
    
    @media (max-width: 375px) {
        padding: 1.5rem 0.75rem;
    }
        }

        /* Header */
        .header {
            background: transparent;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            border-bottom: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
        }

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-link {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .logo-icon {
            width: 48px;
            height: 48px;
            object-fit: cover;
            border-radius: 8px;
            animation: pulse 2s infinite;
            transition: transform 0.3s ease;
        }

        .logo-icon:hover {
            transform: scale(1.05);
        }

        /* Mobile Logo adjustments */
@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .logo {
        margin-left: auto;
        margin-right: 15px;
        position: relative;
        z-index: 1004;
    }
}

        .nav-center {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-center a {
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 500;
            position: relative;
            padding: 0.5rem 0;
        }

        .nav-center a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width 0.3s ease;
        }

        .nav-center a:hover::after {
            width: 100%;
        }

        .nav-center a:hover {
            color: var(--color-red);
        }

        .nav-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* Theme Toggle */
        .theme-toggle {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 0.75rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            min-width: 50px;
        }

        .theme-toggle:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px var(--shadow-color);
        }

        .theme-toggle:active {
            transform: translateY(0) scale(0.95);
        }

        .theme-icon {
            font-size: 1.3rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        }

        .theme-toggle:hover .theme-icon {
            transform: rotate(15deg) scale(1.1);
        }

        /* Theme toggle */
        .theme-toggle::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transition: left 0.5s;
        }

        .theme-toggle:hover::before {
            left: 100%;
        }

        /* Language Toggle */
        .language-toggle {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--text-primary);
            font-weight: 600;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            font-size: 0.9rem;
            letter-spacing: 0.5px;
        }

        .language-toggle:hover {
            background: var(--color-red);
            color: rgb(209, 209, 206);
            border-color: var(--color-red);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(245, 184, 35, 0.3);
        }

        .language-toggle:active {
            transform: translateY(0) scale(0.95);
        }

            /* Language toggle */
        .language-toggle::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .language-toggle:hover::before {
            left: 100%;
        }

        /* Floating */
        
        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

       
        /* Section */
        .section {
            /* padding: 100px 0; */
            position: relative;
        }

        .section-header {
            text-align: center;
            margin-top: clamp(2rem, 5vw, 4rem);
        }

        .section-title {
            font-size: clamp(2rem, 6vw, 3.5rem);
            font-weight: 700;
            /* margin-top: clamp(1rem, 3vw, 1.5rem); */
            color: var(--text-primary);
            position: relative;
            display: inline-block;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: clamp(60px, 15vw, 80px);
            height: clamp(3px, 1vw, 4px);
            background: var(--gradient-primary);
            border-radius: 2px;
        }

        .section-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
            color: var(--text-secondary);
    max-width: clamp(500px, 80vw, 700px);
            margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
            margin-bottom: clamp(1rem, 3vw, 1.5rem);

}

/* Large Screen (≥1200px) */
@media (min-width: 1200px) {
    .section-header {
        /* margin-bottom: 4rem; */
    }
    
    .section-title {
        font-size: 3.5rem;
        /* margin-bottom: 1.5rem; */
    }
    
    .section-subtitle {
        font-size: 1.3rem;
        max-width: 700px;
    }
}

/* Medium Screen (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .section-header {
        margin-bottom: 2rem;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2.8rem;
        /* margin-bottom: 1.25rem; */
    }
    
    .section-subtitle {
        font-size: 1.2rem;
        max-width: 600px;
    }
}

/* Small Screen (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .section-header {
        margin-bottom: 2rem;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        /* margin-bottom: 1rem; */
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        max-width: 500px;
    }
}

/* Mobile (≤479px) */
@media (max-width: 479px) {
    .section-header {
        margin-bottom: 2rem;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        /* margin-bottom: 0.75rem; */
    }
    
    .section-subtitle {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Extra Small Mobile (≤375px) */
@media (max-width: 375px) {
    .section-header {
        margin-bottom: 2rem;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        /* margin-bottom: 0.5rem; */
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
        }

/* Features Grid */
.features-grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
    /* margin-bottom: clamp(2rem, 4vw, 3rem); */
    
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

    /* Large screens  */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: clamp(1.5rem, 2.5vw, 2.5rem);
        
    }
}

/* Medium screens (768px - 1199px): 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1.2rem, 2vw, 1.8rem);
    }
}

/* Small screens (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 2vw, 1.5rem);
    }
}

/* Mobile screens (below 600px): 1 column */
@media (max-width: 599px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: clamp(0.8rem, 4vw, 1.2rem);
        /* margin-bottom: clamp(1.5rem, 6vw, 2.5rem); */
    }
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: clamp(12px, 2vw, 16px);
    /* padding: clamp(1.25rem, 3vw, 2rem); */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 100%;
}

/* Top Line Effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f5b823, #ff8a00);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 2;
    opacity: 0.9;
}

.feature-card:hover::before {
    transform: translateX(0);
    animation: shimmerLine 1.8s infinite;
}

/* Shimmer */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover::after {
    opacity: 0.6;
    animation: gentlePulse 3s infinite;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--border-hover);
}

.feature-icon {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
    display: block;
    color: #f5b823;
    filter: drop-shadow(0 2px 4px rgba(245, 184, 35, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(245, 184, 35, 0.5));
}

.feature-title {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    font-weight: 600;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: clamp(0.9rem, 3vw, 1rem);
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes shimmerLine {
    0% { transform: translateX(-100%); }
    90% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Mobile */
@media (max-width: 480px) {
    .feature-card {
        padding: clamp(1rem, 4vw, 1.5rem);
    }
    
    .feature-card::before {
        height: 2px;
    }
    
    .feature-card:hover {
        transform: translateY(-3px);
    }
    
    .feature-card:hover::after {
        opacity: 0.4; /* Slightly less intense on mobile */
    }
}

/* Touch device */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-card::before,
    .feature-card::after,
    .feature-icon {
        transition: none;
        animation: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
}

    /* Statistics Section */
.stats-section {
    background: var(--stats-bg, rgba(40, 40, 50, 0.6));
    border: 1px solid var(--stats-border, rgba(255, 255, 255, 0.1));
    border-radius: clamp(16px, 2vw, 20px);
    /* padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    margin: clamp(2.5rem, 5vw, 4rem) 0; */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--stats-shadow, 0 8px 32px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stats-section:hover {
    transform: translateY(-3px);
    box-shadow: var(--stats-hover-shadow, 0 12px 40px rgba(0, 0, 0, 0.3));
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: var(--stats-pattern-opacity, 0.2);
    z-index: -1;
}

.stats-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s ease-out;
}

.stats-section:hover::after {
    transform: scaleY(1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    padding: clamp(1rem, 3vw, 1.5rem);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: 'Barlow', sans-serif;
    text-shadow: 0 0 10px rgba(245, 184, 35, 0.2);
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    max-width: 200px;
    margin: 0 auto;
}

/* Large Screen Optimizations (≥1200px) */
@media (min-width: 1200px) {
    .stats-section {
        padding: 3rem 2rem;
        margin: 5rem auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        max-width: 1200px;
    }
    
    .stat-item {
        min-height: 150px;
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-label {
        font-size: 1.4rem;
        max-width: 250px;
    }
}

/* Medium Screen Optimizations (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .stats-section {
        /* padding: 4rem 2rem;
        margin: 4rem auto; */
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        max-width: 800px;
    }
    
    .stat-item {
        min-height: 140px;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }
    
    .stat-label {
        font-size: 1.2rem;
        max-width: 200px;
    }
}

/* Small Screen Optimizations (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .stats-section {
        padding: 3rem 1.5rem;
        margin: 3rem auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-item {
        min-height: 120px;
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
        max-width: 180px;
    }
}

/* Mobile (≤479px) */
@media (max-width: 479px) {
    .stats-section {
        padding: 2.5rem 1rem;
        margin: 2rem auto;
        border-radius: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        min-height: 100px;
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
        max-width: 140px;
        line-height: 1.3;
    }
    
    .stats-section:hover {
        transform: none;
    }
}

/* Extra Small Mobile (≤375px) */
@media (max-width: 375px) {
    .stats-section {
        padding: 2rem 0.75rem;
        margin: 1.5rem auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .stat-item {
        min-height: 90px;
        padding: 0.75rem 0.25rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        max-width: 120px;
    }
}

/* Animation */
@keyframes statPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-item:hover .stat-number {
    animation: statPulse 0.6s ease;
}
@media (max-width: 480px) {
    /* Base Reset */
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    /* Layout Structure */
    .container {
        max-width: 100vw;
        padding: 0 0.75rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Typography */
    [class*="title"] {
        font-size: 1.375rem;
        line-height: 1.3;
    }
}

        /* Movie Showcase */
    .movie-showcase {
    display: flex;
    flex-direction: column;
    /* gap: 2.5rem; */
    /* margin: 3rem 0 0 0; */
    align-items: stretch;
    width: 100%;
    position: relative;
}

/* Glassmorphic Search Bar */
.sticky-search-bar {
    position: sticky;
    top: 20px;
    width: 400px;
    height: 48px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sticky-search-bar:focus-within {
    width: 500px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px #f5b823 , 0 8px 32px rgba(1, 180, 228, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.sticky-search-bar:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(137, 119, 136, 0.9);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 0 16px;
    outline: none;
    caret-color: #aaa889;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0;
}

.search-btn {
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 12px;
    outline: none;
}

.search-btn .fa-search {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.search-btn:hover .fa-search {
    color: rgba(255, 255, 255, 0.9);
}

/* Loading state */
.sticky-search-bar.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.sticky-search-bar.loading .search-btn {
    background: var(--primary);
}

.sticky-search-bar.loading .fa-search,
.sticky-search-bar.loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }

.search-results-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease-in-out;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.search-results-carousel {
    position: relative;
    display: flex;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--glass-border);
}

.search-results-carousel::-webkit-scrollbar {
    height: 6px;
}

.search-results-carousel::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.search-results-carousel::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.stacked-overlap {
    position: relative;
    padding-bottom: 2rem;
}

.stacked-overlap .movie-card {
    flex: 0 0 200px;
    margin: 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stacked-overlap .movie-card:not(:first-child) {
    margin-left: -110px;
}

/* Adjust overlap for larger screens for better visibility */
@media (min-width: 1024px) {
    .stacked-overlap .movie-card:not(:first-child) {
        margin-left: -90px;
    }
}

@media (min-width: 1440px) {
    .stacked-overlap .movie-card:not(:first-child) {
        margin-left: -80px;
    }
}

.stacked-overlap .movie-card:focus,
.stacked-overlap .movie-card:hover {
    transform: translateY(-6px) scale(1.04);
    z-index: 5;
    box-shadow: 0 0 30px rgba(255,255,255,0.4), 0 15px 40px rgba(0,0,0,0.35);
}

.stacked-overlap .movie-card .card-inner {
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.stacked-overlap .movie-card:first-child {
    margin-left: 0;
}

.stacked-overlap::before,
.stacked-overlap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.5rem;
    pointer-events: none;
    z-index: 2;
}

.stacked-overlap::before {
    left: 0;
    background: linear-gradient(90deg, var(--glass-bg) 0%, transparent 60%);
}

.stacked-overlap::after {
    right: 0;
    background: linear-gradient(270deg, var(--glass-bg) 0%, transparent 60%);
}

.stacked-overlap .movie-card:last-child {
    margin-right: 1.5rem;
}

.stacked-overlap .movie-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

/* Stacked carousel now works on all screen sizes for search results */
/* Removed media queries that hide carousel on large screens */

@media (max-width: 768px) {
    .sticky-search-bar {
        width: 90%;
        max-width: 360px;
        height: 44px;
    }
    
    .sticky-search-bar:focus-within {
        width: 95%;
        max-width: 400px;
    }
    
    .search-input {
        font-size: 15px;
        padding: 0 14px;
    }
    
    .search-btn {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    .container {
        max-width: 100vw;
        padding: 0 6px;
    }
    .hero {
        padding: 80px 0 60px;
        text-align: center;
        position: relative;
        overflow: hidden;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-content {
        max-width: 700px;
        margin-left: -4vw;
        margin-right: 24vw;
        position: relative;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-40px);
    }
    .hero-title {
        font-size: clamp(3.4rem, 8vw, var(--h1));
        line-height: 1.1;
        margin-bottom: 1.8rem;
        padding-top: 20px;
        font-weight: 720;
        margin-left: -5vw;
        position: relative;
        display: inline-block;
        /* contrast and readability */
        background: linear-gradient(135deg, 
            #ffffff 0%, 
            #f8f9fa 25%, 
            #e9ecef 50%, 
            #dee2e6 75%, 
            #ced4da 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 4px 12px rgba(0,0,0,0.9), 0 8px 24px rgba(0,0,0,0.8);
        animation: none;
        text-align: left;
        /* crisp text rendering */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        letter-spacing: 0.02em;
        transform: translateZ(0);
        backface-visibility: hidden;
        background-color: rgba(0, 0, 0, 0.3);
        padding: 1rem 1.5rem;
        border-radius: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        
        @media (max-width: 600px) {
            font-size: var(--h1);
        line-height: 1.2;
            word-wrap: break-word;
            -webkit-hyphens: auto;
            margin-left: 0;
            padding: 0.75rem 1rem;
        }
    }
    .hero-subtitle {
        color: #ffffff; 
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.7;
        font-weight: 400;
        text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.8);
        background-color: rgba(0, 0, 0, 0.4);
        padding: 1rem 1.5rem;
        border-radius: 0.75rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        
        @media (max-width: 600px) {
            font-size: 1rem;
            padding: 0.75rem 1rem;
        }
    }
    .hero-overlay {
        max-width: 100vw;
        min-width: 0;
        padding: 0.4rem 0.4rem 0.4rem 0;
        border-radius: 0.7rem;
        right: 0; left: 0;
        bottom: 0;
        align-items: flex-end;
    }
    .hero-arrow, .nav-controls .hero-refresh {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .hero-arrow-left { left: 1px; }
    .hero-arrow-right { right: 1px; }
    .section {
        padding: 40px 0 30px 0;
    }
    .section-header {
        /* margin-bottom: 2rem; */
    }
    .section-title, .discover-title {
        font-size: 1.1rem;
    }
    .features-grid, .stats-grid, .movie-grid, .mood-options {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .feature-card, .stat-item, .movie-card, .questionnaire-card {
        /* padding: 1rem 0.5rem; */
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
   
    .sticky-search-bar {
        width: 98vw;
        max-width: 99vw;
        height: 38px;
        border-radius: 8px;
    }
    .search-input {
        font-size: 13px;
        padding: 0 6px;
    }
    .search-btn {
        width: 36px;
        height: 36px;
        padding: 4px;
    }
    .btn, .btn-primary, .btn-secondary, .discover-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        border-radius: 7px;
        min-width: 48px;
        min-height: 48px;
    }
    .questionnaire-card {
        min-height: 320px;
    }
    .question h3 {
        font-size: 1rem;
    }
    .text-input {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
    .progress-bar {
        height: 6px;
    }
    
}
@media (max-width: 375px) {
    .container, .hero-content, .hero-overlay {
        padding-left: 2px;
        padding-right: 2px;
    }
    .hero-title, .section-title, .discover-title {
        font-size: 0.95rem;
    }
    .btn, .btn-primary, .btn-secondary, .discover-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.7rem;
    }
    .sticky-search-bar {
        height: 32px;
    }
    .search-btn {
        width: 28px;
        height: 28px;
    }
    .movie-card {
        /* Keep responsive sizing with clamp */
    }
}

/* ========== MOVIE CARD GRID SYSTEM ========== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg, 1.5rem);
    padding: var(--space-md, 1rem) 0;
}

/* ========== MOVIE CARD FLIP SYSTEM ========== */
.movie-card {
    position: relative;
    width: clamp(120px, 30vw, 300px);
    height: auto;
    aspect-ratio: 2/3;
    perspective: 1200px;
    cursor: pointer;
    border-radius: 10px;
    overflow: visible;
    background: none;
    margin: 0 auto 1.5rem;
    transition: transform var(--transition-normal, 0.3s ease);
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
    box-shadow: 0 0 30px rgba(255,255,255,0.4), 0 15px 40px rgba(0,0,0,0.3);
    outline: 2px solid rgba(255,255,255,0.2);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    -webkit-transform-style: preserve-3d; /* Safari fix */
    transform-style: preserve-3d;
}

.movie-card.flipped .card-inner {
    transform: rotateY(180deg);
    z-index: 10;
    transform-origin: center center;
}

/* Ensure flipped cards don't block pointer events */
.movie-card.flipped {
    pointer-events: auto;
}

.movie-card.flipped .card-back {
    pointer-events: auto;
}

.movie-card.flipped .card-back * {
    pointer-events: auto;
}

/* ========== CARD FRONT & BACK BASE ========== */
.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari fix */
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Card back header row with title and info button */
.card-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 3;
}

/* Info button styles */
.info-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: rgba(249, 197, 8, 0.5);
  color: #111;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 4;
}

.movie-card.flipped .info-btn { opacity: 1; pointer-events: auto; }

.info-btn:hover { 
  transform: scale(1.1);
  background: rgba(255, 215, 0, 0.9);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.info-btn:active { transform: scale(0.95); }

@media (max-width: 1024px) {
  .info-btn { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
}

@media (max-width: 768px) {
  .info-btn { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 14px; }
}

[data-theme="light"] .info-btn {
  color: #000;
  border-color: rgba(0,0,0,0.15);
}

/* Movie Info Modal */
.info-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.info-modal.show { display: flex; }

.info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.info-container {
  position: relative;
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  background: rgba(30, 30, 40, 0.95);
}

[data-theme="light"] .info-container {
  background: rgba(255,255,255,0.95);
}

.info-modal.show .info-container {
  transform: translateY(0);
  opacity: 1;
}

.info-content {
  overflow-y: auto;
  max-height: 90vh;
  padding: 1.25rem 1.25rem 1.5rem 1.25rem;
}
/* Gold-themed smooth scrollbars for info modal */
.info-content::-webkit-scrollbar { width: 8px; }
.info-content::-webkit-scrollbar-track { background: transparent; }
.info-content::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.4); border-radius: 999px; }
.info-content::-webkit-scrollbar-thumb:hover { background: rgba(255, 215, 0, 0.7); }
@supports (scrollbar-color: auto) {
  .info-content { scrollbar-color: rgba(255, 215, 0, 0.5) transparent; scrollbar-width: thin; }
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.info-title { font-size: 28px; font-weight: 700; margin: 0 0 1rem 0; }

.info-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-bottom: 1rem; }
.info-meta .pill { padding: 0.25rem 0.5rem; border-radius: 999px; background: color-mix(in oklab, var(--primary), transparent 70%); font-size: 12px; }

.info-overview { font-size: 16px; line-height: 1.7; color: var(--text-secondary); padding: 1.5rem 0; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1024px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-item .label { font-size: 12px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.info-item .value { font-size: 15px; font-weight: 500; color: var(--text-light); }

.info-cast { margin-top: 3rem; }
.info-cast h4 { font-size: 22px; margin-bottom: 1rem; }
.cast-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.cast-scroller::-webkit-scrollbar { height: 6px; }
.cast-scroller::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }

.cast-card { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 1rem; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
[data-theme="light"] .cast-card { background: rgba(0,0,0,0.04); }
.cast-card:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,0.15); filter: brightness(1.05); }
.cast-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); margin: 0 auto; display: block; }
.cast-initials { width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--gradient-primary)); color: #fff; font-weight: 700; font-size: 22px; margin: 0 auto; }
.cast-name { margin-top: 0.75rem; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast-character { text-align: center; font-size: 13px; color: var(--text-secondary); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Filmography Modal */
.filmography-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10000; }
.filmography-modal.show { display: flex; }
.filmography-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.filmography-container { position: relative; width: 92vw; max-width: 1000px; max-height: 92vh; overflow: hidden; border-radius: 16px; background: rgba(30,30,40,0.95); box-shadow: 0 20px 60px rgba(0,0,0,0.4); transform: translateY(30px); opacity: 0; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease; }
[data-theme="light"] .filmography-container { background: rgba(255,255,255,0.95); }
.filmography-modal.show .filmography-container { transform: translateY(0); opacity: 1; }
.filmography-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem 0 1.25rem; }
.filmography-back { border: 1px solid rgba(255, 215, 0, 0.35); background: rgba(255, 255, 255, 0.08); color: var(--text-light); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0.35rem 0.6rem; border-radius: 10px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.filmography-back:hover { background: rgba(255, 215, 0, 0.25); border-color: rgba(255, 215, 0, 0.6); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.filmography-back:active { transform: scale(0.97); }
/* removed row controls */
.filmography-actor { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 24px; }
.filmography-actor img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.filmography-knownfor { color: var(--text-secondary); font-size: 0.95rem; }
.filmography-content { padding: 0 1.25rem 1.25rem 1.25rem; overflow-y: auto; overflow-x: auto; max-height: 85vh; }
/* Gold-themed smooth scrollbars for filmography */
.filmography-content::-webkit-scrollbar { width: 8px; }
.filmography-content::-webkit-scrollbar-track { background: transparent; }
.filmography-content::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.4); border-radius: 999px; }
.filmography-content::-webkit-scrollbar-thumb:hover { background: rgba(255, 215, 0, 0.7); }
@supports (scrollbar-color: auto) {
  .filmography-content { scrollbar-color: rgba(255, 215, 0, 0.5) transparent; scrollbar-width: thin; }
}
.filmography-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; grid-template-rows: repeat(4, auto); gap: 1rem; align-items: start; }
@media (max-width: 1024px) { .filmography-grid { grid-auto-columns: 160px; } }
@media (max-width: 768px) { .filmography-grid { grid-auto-columns: 140px; } }
.film-card { width: 100%; cursor: default; }
.film-poster { width: 100%; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; transition: none; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.film-card:hover .film-poster { transform: none; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.film-info { margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-light); }
.film-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.film-meta { color: var(--text-secondary); font-size: 0.85rem; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .info-btn, .cast-card, .film-card .film-poster, .info-container, .filmography-container { transition: none !important; }
}

/* Blurred poster background for card back */
.card-back::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg-primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* When flipped, show blurred poster only on the back */
.movie-card.flipped .card-back::before {
    background-image: var(--poster-url);
    background-size: cover;
    background-position: center;
    filter: blur(8px) saturate(0.95);
    transform: scale(1.05); /* avoid edge bleed after blur */
    opacity: 1;
}

/* Optional readability gradient on top of blur */
.movie-card.flipped .card-back::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.card-front {
    z-index: 2;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.card-back {
    transform: rotateY(180deg);
    z-index: 3;
    background: var(--bg-primary);
    background-image: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, transparent 80%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1rem;
    padding-bottom: 7rem;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

/* Keep back content above the blur */
.card-back > * {
    position: relative;
    z-index: 2;
}

/* Ensure mobile card-back content is above blur */
@media (max-width: 480px) {
    .card-back > * {
        position: relative;
        z-index: 2;
    }
}

/* Force readable light text on card backs in all themes */
.card-back,
.carousel-container .card-back {
    color: #ffffff !important;
}
/* ensure inner text always light on backs */
.card-back .movie-title,
.card-back .movie-overview,
.card-back .movie-meta,
.card-back .modal-buttons,
.carousel-container .card-back .movie-title,
.carousel-container .card-back .movie-overview,
.carousel-container .card-back .movie-meta {
    color: #ffffff !important;
}

/* ========== POSTER & IMAGE STYLING ========== */
.poster-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    border-radius: 12px;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
}

.movie-card:hover .poster-image {
    transform: scale(1.05);
}

/* ========== CARD METADATA ========== */
.card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.25rem 0.9375rem 0.9375rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    justify-content: space-between;
}

.movie-card:hover .card-meta,
.movie-card.flipped .card-meta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.genre {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tv-badge {
    background: var(--primary);
    color: var(--dark);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.rating {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== CARD BACK CONTENT ========== */
.close-detail {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.close-detail:hover {
    background: rgba(255, 255, 255, 0.3);
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.movie-overview {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
    max-height: 140px;
    overflow: hidden;
    position: relative;
}

.movie-overview::after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, var(--glass-bg) 30%);
    padding-left: 20px;
    color: var(--text-secondary);
    font-weight: bold;
}

.movie-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.movie-details-grid div {
    display: flex;
    flex-direction: column;
}

.movie-details-grid strong {
    color: var(--text-light);
    margin-bottom: 0.1rem;
}

/* ========== ACTION BUTTONS ========== */
.card-actions {
    opacity: 0;
    transition: opacity 0.3s ease 0.4s;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.movie-card:hover .card-actions,
.movie-card.flipped .card-back .card-actions {
    opacity: 1;
    pointer-events: auto;
}

.action-btn {
    background: linear-gradient(135deg, var(--color-red), #f5c70f);
    color: white;
    border: none;
    border-radius: var(--btn-border-radius);
    padding: 0.75rem 1.5rem;
    font-size: var(--btn-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 12px rgba(255, 183, 0, 0.3);
    z-index: 10;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    min-height: 48px;
    width: 100%;
}

.action-btn.secondary {
    background: linear-gradient(135deg, var(--primary), var(--gradient-primary));
    box-shadow: 0 2px 12px rgba(236, 238, 245, 0.453);
    margin-top: 0.5rem;
    z-index: 19;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.4);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 191, 0, 0.3);
}

/* ========== CARD DETAILS PREVIEW ========== */
.card-details-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 30%, rgba(0,0,0,0) 100%);
    padding: 0.5rem 0.6rem 0.6rem 0.6rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    border-radius: 0 0 12px 12px;
}

.movie-card.show-details .card-details-preview,
.movie-card:hover .card-details-preview,
.movie-card.flipped .card-details-preview {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 5;
}

/* Always reveal actions on flip */
.movie-card.flipped .card-actions { opacity: 1; pointer-events: auto; }

.details-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details-meta,
.details-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ddd;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== GRID HOVER EFFECTS ========== */
.movie-grid:hover .movie-card:not(:hover):not(.flipped) {
    transform: scale(0.95);
    filter: brightness(0.9);
}

/* Mobile movie card styles */
@media (max-width: 480px) {
 
}

/* Disable hover flip on touch devices */
@media (hover: none) {
    .movie-card:hover .card-inner {
        transform: none;
    }
    
    .movie-card:hover .card-meta,
    .movie-card:hover .card-details-preview {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ========== RESPONSIVE DESIGN ========== */
/* Tablet */
@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 22px;
        padding: 16px;
    }
    
    .movie-card {
        width: 260px;
        height: 400px;
        margin-bottom: 1rem;
    }
    
    .poster-image,
    .poster-wrapper {
        height: 70%;
    }
    
    .card-meta {
        padding: 0.5rem;
        gap: 0.2rem;
    }
    
    .genre {
        font-size: 0.7rem;
    }
    
    .rating {
        font-size: 0.8rem;
    }
    
    .year {
        font-size: 0.7rem;
    }
    
    .card-back {
    padding: 0.75rem;
    padding-bottom: 6rem;
    display: flex;
    flex-direction: column;
}
    
    .movie-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .movie-overview {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        max-height: 140px;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }
    
    .movie-details-grid {
        font-size: 0.7rem;
        gap: 0.4rem 1rem;
    }
    
    .action-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        bottom: 0.75rem;
        z-index: 20;
    }
    
    .card-details-preview {
        padding: 0.4rem 0.5rem;
    }
    
    .details-title {
        font-size: 0.8rem;
    }
    
    .details-meta,
    .details-text {
        font-size: 0.7rem;
    }
}

    
/* Success Toast Styles */
.save-success-toast {
position: fixed;
top: 20px;
right: 20px;
background: linear-gradient(135deg, #10B981 0%, #059669 100%);
color: white;
padding: 1rem 1.5rem;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 10000;
display: flex;
align-items: center;
gap: 0.5rem;
animation: slideInRight 0.3s ease;
max-width: 400px;
border: 1px solid rgba(16, 185, 129, 0.3);
}

.save-success-toast i {
font-size: 1.2rem;
color: white;
}

.save-success-toast span {
font-size: 0.9rem;
font-weight: 500;
line-height: 1.4;
}

@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}

@keyframes slideOutRight {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}

@keyframes titleColorFade {
0% {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #fbbf24 25%, 
        #f59e0b 50%, 
        #d97706 75%, 
        #b45309 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
100% {
    background: linear-gradient(135deg, 
        #fbbf24 0%, 
        #f59e0b 25%, 
        #d97706 50%, 
        #b45309 75%, 
        #92400e 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
}


/* Skeleton Loaders */
.skeleton-card {
    background: var(--glass-bg, var(--bg-secondary));
    border: 1px solid var(--glass-border, var(--border-color, #374151));
    border-radius: var(--radius-md, 10px);
    height: 280px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.1));
    -webkit-backdrop-filter: var(--glass-blur, blur(10px));
    backdrop-filter: var(--glass-blur, blur(10px));
}

.skeleton-poster {
    width: 100%;
    height: 200px;
    background: var(--gray, #6b7280);
    position: relative;
    overflow: hidden;
}

.skeleton-title {
    height: 16px;
    width: 80%;
    background: var(--gray, #6b7280);
    margin: var(--space-md, 1rem) auto var(--space-sm, 0.5rem);
    border-radius: 4px;
}

.skeleton-meta {
    height: 12px;
    width: 60%;
    background: var(--gray, #7e806b);
    margin: 0 auto;
    border-radius: 4px;
}

/* Skeleton animation */
.skeleton-poster, .skeleton-title, .skeleton-meta {
    position: relative;
    background: linear-gradient(90deg, 
        var(--gray, #6b7280) 25%, 
        var(--soft-gray, #9ca3af) 50%, 
        var(--gray, #6b7280) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl, 2rem);
    flex-direction: column;
    gap: var(--space-md, 1rem);
}

.loading-indicator .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--soft-gray, #9ca3af);
    border-top: 3px solid var(--primary, #F5B823);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: var(--shadow-gold, 0 4px 15px rgba(245, 184, 35, 0.3));
}

.loading-indicator p {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    background: linear-gradient(135deg, var(--error, #dc2626) 0%, #b91c1c 100%);
    color: var(--light, #ffffff);
    padding: var(--space-xl, 2rem);
    border-radius: var(--radius-md, 10px);
    margin: var(--space-md, 1rem) 0;
    text-align: center;
    display: none;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.15));
    border: 1px solid var(--color-red);
}

.error-state.show {
    display: block;
}

.error-state i {
    font-size: 2.5rem;
    margin-bottom: var(--space-md, 1rem);
    display: block;
    opacity: 0.9;
}

.error-state p {
    margin-bottom: var(--space-md, 1rem);
    font-size: 1rem;
    line-height: 1.6;
}

.error-state p:last-child {
    margin-bottom: 0;
}

    /* Featured Search Button */
.featured-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: #f2dba0;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2.2rem;
    margin-top: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(139,92,246,0.08);
    transition: background 0.2s, transform 0.2s;
}

.featured-search-btn:hover {
    background: var(--gradient-blue);
    transform: translateY(-2px) scale(1.04);
}

.movie-showcase-row {
    display: flex;
    flex-direction: row;
    /* gap: 2rem; */
    width: 100%;
    justify-content: center;
    /* margin-bottom: 2.5rem; */
}

/* Movie Carousel */
.movie-carousel-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.movie-carousel {
    display: grid;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
}

.movie-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 10;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-arrow:hover,
.carousel-arrow:active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.carousel-card {
    min-width: 200px;
    scroll-snap-align: start;
}

/* Showcase Grid */
.showcase-grid-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.showcase-row {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.showcase-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.row-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.row-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.row-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.showcase-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
    flex: 1;
    min-height: 300px;
    scroll-behavior: smooth;
}

.showcase-carousel::-webkit-scrollbar {
    display: none;
}

.showcase-arrow {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.showcase-arrow:hover,
.showcase-arrow:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.showcase-arrow.left {
    left: 0;
}

.showcase-arrow.right {
    right: 0;
}

.showcase-card {
    scroll-snap-align: start;
    min-width: 0;
    transition: transform 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-4px);
}

    /* Responsive */
@media (max-width: 1200px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .showcase-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .movie-card {
        width: 44vw;
        min-width: 180px;
        max-width: 250px;
        height: 260px;
        min-height: 180px;
        max-height: 375px;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .movie-card {
        width: 45vw;
        min-width: 140px;
        max-width: 160px;
        height: 200px;
        aspect-ratio: 2/3;
        margin: 0 auto 1rem;
    }
    
    .poster-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 8px;
    }
    
    .poster-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .showcase-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .skeleton-card {
        height: 200px;
        width: 45vw;
        min-width: 140px;
        max-width: 160px;
    }
    
    .carousel-container .movie-card,
    .movie-match-content .movie-card {
        width: 140px;
        height: 200px;
        margin: 0 0.25rem;
    }
    }
    
    .skeleton-poster {
        height: 70%;
    }

/* No border between rows */
.movie-showcase-row:not(:last-child) {
    border-bottom: none;
}

       
        /* CTA Section */
        .cta-section {
            text-align: center;
            padding: 5rem 2rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            margin: 4rem 0;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
            z-index: -1;
        }

        .cta-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .cta-description {
            color: var(--text-secondary);
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            font-size: 1.1rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 2rem;
            border-radius: var(--btn-border-radius);
            text-decoration: none;
            font-weight: 600;
            font-size: var(--btn-text);
            transition: var(--transition-fast);
            border: none;
            cursor: pointer;
            margin: 0 0.5rem;
            gap: 0.5rem;
            min-height: var(--btn-primary-height);
            min-width: 48px;
            box-shadow: 0 2px 8px var(--shadow-color);
            white-space: nowrap;
            
            /* Micro-interactions */
            &:active {
                transform: scale(0.96);
            }
            
            /* Mobile Optimization */
            @media (max-width: 600px) {
                width: 100%;
                min-height: 44px;
                margin: 0.25rem 0;
            }
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: rgb(231, 233, 207);
            position: relative;
            overflow: hidden;
            border: 1px solid var(--color-red);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover, .btn-primary:focus {
            background: var(--color-red);
            color: var(--text-primary);
            border: 1px solid var(--color-red);
        }

        .btn-secondary {
            background: var(--btn-light);
            color: var(--btn-text-light);
            border: 1px solid var(--btn-border-light);
            min-height: var(--btn-secondary-height);
            
            @media (max-width: 600px) {
                min-height: 38px;
            }
        }

        .btn-secondary:hover, .btn-secondary:focus {
            border: 1px solid var(--color-red);
            background: var(--bg-tertiary);
        }

        /* Scroll Progress Bar */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--gradient-primary);
            z-index: 1001;
            transition: width 0.1s ease;
        }

    /* Discover Section */
.discover-section {
    /* padding: 2rem 0; */
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    /* margin: 1rem 0; */
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.discover-section::before {
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
    animation: shimmerLine 3s ease-in-out infinite;
}

.discover-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.2;
    z-index: -1;
}

.discover-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
}

.discover-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.discover-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(212, 153, 26, 0.3);
}

.discover-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: var(--shadow-gold);
    animation: underlinePulse 2.5s ease-in-out infinite;
}

.discover-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Questionnaire Card */
.questionnaire-card {
    position: relative;
    min-height: 500px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
}

.questionnaire-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
    animation: shimmerLine 3s ease-in-out infinite;
}

/* Enhanced Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

/* Enhanced Question Container */

.question-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    padding: var(--space-md);
    background: rgba(26, 26, 26, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.question {
    display: none;
    width: 100%;
    /* padding: 20px; */
    transition: all 0.3s var(--transition-smooth);
    opacity: 1;
    transform: translateY(20px);
    position: relative;
}

.question.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s var(--transition-smooth);
}

.question h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 8px rgba(212, 153, 26, 0.2);
}

.emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(212, 153, 26, 0.4));
}
/* Mood Grid Layout */
.mood-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* Strict 4 columns */
    grid-template-rows: repeat(2, minmax(0, 1fr));    /* Strict 2 rows */
    gap: 1rem;
    margin: 2rem 0;
}

.mood-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-height: 120px;
}

.mood-icon {
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.mood-name {
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mood-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
    }
    
    .mood-btn {
        padding: 1rem;
        min-height: 100px;
    }
    
    .mood-icon {
        font-size: 1.5rem;
    }
    
    .mood-name {
        font-size: 0.85rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .mood-options {
        gap: 0.75rem;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto;
    }
    
    .mood-options[data-options="8"],
    .mood-options[data-options="5"],
    .mood-options[data-options="4"],
    .mood-options[data-options="3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .mood-btn {
        padding: 0.75rem;
        min-height: 80px;
    }
    
    .mood-icon {
        font-size: 1.3rem;
    }
    
    .mood-name {
        font-size: 0.8rem;
    }
}

.mood-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mood-btn.selected {
    background: var(--gradient-mood-selected);
    color: rgb(251, 252, 225);
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(212, 153, 26, 0.5);
    transform: translateY(-4px);
}

.mood-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mood-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.mood-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(212, 153, 26, 0.5) 25%, 
        rgba(194, 138, 22, 0.7) 50%, 
        rgba(212, 153, 26, 0.5) 75%, 
        transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mood-btn:hover::before {
    opacity: 1;
}

.mood-btn.selected::after {
    opacity: 1;
    animation: selectedPulse 2s ease-in-out infinite;
}

.mood-btn.selected::before {
    opacity: 0;
}
/* Energy Slider */
.slider-container {
    margin-top: 1.5rem;
}

.slider-layout {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.slider-label {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    min-width: 50px;
    text-align: center;
}

.low-label {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.high-label {
    color: var(--primary);
    background: rgba(212, 153, 26, 0.1);
    border: 1px solid rgba(212, 153, 26, 0.3);
}

/* Glow Effects */
.low-label.glow {
    animation: low-glow-pulse 1.5s infinite alternate;
    background: rgba(255, 107, 107, 0.2);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.high-label.glow {
    animation: high-glow-pulse 1.5s infinite alternate;
    background: rgba(212, 153, 26, 0.2);
    box-shadow: 0 0 15px rgba(212, 153, 26, 0.4);
}

@keyframes low-glow-pulse {
    0% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.3); }
    100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.6); }
}

@keyframes high-glow-pulse {
    0% { box-shadow: 0 0 10px rgba(212, 153, 26, 0.3); }
    100% { box-shadow: 0 0 20px rgba(212, 153, 26, 0.6); }
}

.slider-track-wrapper {
    flex: 1;
    position: relative;
    height: 6px;
}

.slider-track {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        #FF6B6B 0%, 
        #FFD166 50%, 
        var(--primary) 100%);
    border-radius: 3px;
    position: relative;
}

.slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(251, 250, 215);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-smooth);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Text Input */
.text-input {
    width: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-smooth);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(212, 153, 26, 0.3);
}

/* Discover Button */
.discover-btn {
    width: 100%;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #B8860B, #8B6914);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(184, 134, 11, 0.5);
}

.discover-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.discover-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.discover-btn:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite;
}

.discover-btn:active {
    transform: translateY(0);
}

/* Movie Match Card */

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.movie-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem 1.5rem;
    color: white;
}

.movie-result-placeholder {
    text-align: center;
    margin-bottom: 2rem;
}

.movie-poster-placeholder {
    width: 120px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.movie-info-placeholder h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.movie-info-placeholder p {
    margin: 0;
    opacity: 0.8;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
}

.modal-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .movie-poster-placeholder {
        width: 100px;
        height: 150px;
    }
    
    .modal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98%;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1rem 0.75rem;
    }
    
    .movie-poster-placeholder {
        width: 80px;
        height: 120px;
    }
    
    .movie-info-placeholder h4 {
        font-size: 1.1rem;
    }
    
    .movie-info-placeholder p {
        font-size: 0.9rem;
    }
}

/* Modal Entrance */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.movie-modal.show .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
    /* Analysis Text */
.analysis-text {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    animation: fadeIn var(--transition-slow);
}

.analysis-text.show {
    display: block;
}

.pulse-animation {
    animation: pulse 1.5s infinite alternate;
    font-size: var(--h3);
    margin-bottom: 1rem;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

.one-time-btn {
    transition: all var(--transition-normal);
    min-height: 44px;
    font-size: var(--btn-text);
}

.one-time-btn:disabled {
    background: var(--disabled-color, #666);
    transform: scale(0.98);
    cursor: not-allowed;
}

/* questionnaire */

    .questionnaire-card {
        min-height: 320px;
    }
    .question h3 {
        font-size: 1rem;
    }
    .text-input {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
    .progress-bar {
        height: 6px;
    }
    .movie-match-content {
        flex-direction: column;
        gap: 1rem;
    }
    .movie-match-poster {
        width: 100%;
        height: 120px;
        font-size: 1.5rem;
    }

@media (max-width: 375px) {
    .container, .hero-content, .hero-overlay {
        padding-left: 2px;
        padding-right: 2px;
    }
    .hero-title, .section-title, .discover-title {
        font-size: 0.95rem;
    }
    .btn, .btn-primary, .btn-secondary, .discover-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.7rem;
    }
    .sticky-search-bar {
        height: 32px;
    }
    .search-btn {
        width: 28px;
        height: 28px;
    }
    .movie-card {
        /* Keep responsive sizing with clamp */
    }
}

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.8rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
            
            .nav-center {
                display: none;
            }
            
            .nav-controls {
                gap: 0.5rem;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .movie-showcase {
                grid-template-columns: 1fr;
            }
            
            .theme-toggle, .language-toggle {
                padding: 0.4rem 0.8rem;
                font-size: 0.9rem;
            }

            .section-title, .discover-title {
                font-size: 2rem;
            }

            .question h3 {
                font-size: 1.1rem;
            }

            .mood-options {
                grid-template-columns: repeat(2, 1fr);
            }

            .movie-match-content {
                flex-direction: column;
                align-items: flex-start;
            }

            .movie-match-poster {
                width: 100%;
                height: 300px;
            }
        }

            /* Smooth Scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Loading Animation */
        .loading {
            animation: pulse 2s infinite;
        }

        /* Language */
        [data-lang="sw"] .nav-center a,
        [data-lang="sw"] .section-title,
        [data-lang="sw"] .feature-title {
            font-size: 0.95em;
        }
        

/* Analysis Loading */
.analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    min-height: 320px;
    animation: fadeIn 0.7s;
}
.film-reel-icon {
    font-size: 3.5rem;
    color: var(--primary, #d4991a);
    animation: reelPulse 1.2s infinite alternate;
    margin-bottom: 1.2rem;
}
@keyframes reelPulse {
    0% { filter: drop-shadow(0 0 0 #d4991a); opacity: 0.7; }
    100% { filter: drop-shadow(0 0 16px #d4991a88); opacity: 1; }
}
.analysis-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeInText 1.2s;
}
@keyframes fadeInText {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Underline Animation */

@keyframes underlinePulse {
    0% {
        width: 80px;
        opacity: 0.8;
    }
    50% {
        width: 100px;
        opacity: 1;
    }
    100% {
        width: 80px;
        opacity: 0.8;
    }
}  


/* Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 4vw;
    padding-right: 2vw;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-20px);
    z-index: 2;
}

/* Search Button */
.hero-search {
    position: absolute;
    top: 120px;
    right: 20px;
    z-index: 3;
    animation: fadeInSlide 1s ease-out 0.5s both;
}

    /* Hero Search Form */
.hero-search-form {
    display: none;
    align-items: center;
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.1));
    min-width: 300px;
    transition: all 0.3s ease;
    animation: searchFormSlideIn 0.3s ease-out;
}

.hero-search-form .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    color: var(--text-primary, #fff);
    font-size: 16px;
    border-radius: 50px;
}

.hero-search-form .search-input::placeholder {
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.hero-search-form .search-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s ease;
}

.hero-search-form .search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.hero-search-form .search-btn .fa-search {
    color: #1a1a1a;
    font-size: 14px;
}

.hero-search-form .close-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 4px;
    transition: all 0.2s ease;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.hero-search-form .close-search:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary, #fff);
    transform: scale(1.05);
}

.hero-search-form .close-search .fa-times {
    font-size: 12px;
}

/* Search Form */
@keyframes searchFormSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Search Button */
.hero .search-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.hero .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero .search-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 30px rgba(255, 215, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero .search-btn:hover::before {
    opacity: 1;
}

.hero .search-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition-duration: 0.1s;
}

/* Search Icon */
.hero .search-btn .fa-search {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.hero .search-btn:hover .fa-search {
    color: #1a1a1a;
    transform: scale(1.1);
    font-weight: 600;
}

/* Glow Effect */
.hero .search-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.hero .search-btn:hover::after {
    opacity: 0.3;
}

/* Fade in */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-search {
        top: 100px;
        right: 20px;
    }
    
    .hero .search-btn {
        width: 48px;
        height: 48px;
    }
    
    .hero .search-btn .fa-search {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-search {
        top: 90px;
        right: 16px;
    }
    
    .hero .search-btn {
        width: 44px;
        height: 44px;
    }
    
    .hero .search-btn .fa-search {
        font-size: 14px;
    }
}


.hero-title {
    font-size: clamp(2.2rem, 8vw, var(--h1));
    color: #FFD700 !important; /* Beautiful gold color */
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 1.8rem;
    padding-top: 20px;
    margin-left: -5vw;
    position: relative;
    text-align: left;
    letter-spacing: 0.02em;
    
    /* Rich gold text */
    text-shadow: 
        0 1px 0px #B8860B,
        0 2px 0px #8B6914,
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 215, 0, 0.4) !important;
    
    background: none;
    transition: all 0.3s ease;
    
    /* Premium font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    
    transform: perspective(500px) translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    animation: underlinePulse 2.5s ease-in-out infinite;
}

.hero-subtitle {
    color: #e8e8e8 !important;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    max-width: 40vw;
    min-width: 220px;
    width: 100%;
    padding: 2.2rem 2.2rem 2.2rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
    transition: all 0.3s ease;
}

.hero-overlay .hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
    line-height: 1.1;
    text-align: right;
    
    /* Rich gold text */
    color: #FFD700 !important;
    text-shadow: 
        0 1px 0px #B8860B,
        0 2px 0px #8B6914,
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 215, 0, 0.4) !important;
    
    transition: all 0.3s ease;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    
    transform: perspective(500px) translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Gold effects on hover/focus */
.hero-overlay .hero-title:hover,
.hero-overlay .hero-title:focus {
    color: #FFEC8B !important;
    text-shadow: 
        0 1px 0px #FFD700,
        0 2px 0px #B8860B,
        0 3px 8px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(255, 215, 0, 0.6) !important;
}

/* Clickable hero title styling */
.hero-overlay .clickable-title {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: underline;
    text-decoration-color:  #B8860B(255, 215, 0, 0.6);
    text-underline-offset: 2px;
}

.hero-overlay .clickable-title:hover {
    transform: scale(1.02);
    text-shadow: 
        0 1px 0px #FFD700,
        0 2px 0px #B8860B,
        0 3px 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.8) !important;
    text-decoration-color: #B8860B
}

.hero-overlay .clickable-title:active {
    transform: scale(0.98);
}

/* Hide clickable styling on smaller screens */
@media (max-width: 1023px) {
    .hero-overlay .clickable-title {
        cursor: default !important;
        text-decoration: none !important;
    }
    
    .hero-overlay .clickable-title:hover {
        transform: none !important;
        text-shadow: inherit !important;
    }
}

/* Genre-specific gold */
.hero-overlay.genre-action .hero-title {
    font-family: 'Oswald', Impact, 'Arial Black', sans-serif;
    text-transform: uppercase;
    color: #FFD700 !important;
    text-shadow: 
        0 1px 0px #B8860B,
        0 2px 0px #8B6914,
        0 3px 6px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(255, 215, 0, 0.5) !important;
    letter-spacing: 0.04em;
}

.hero-overlay.genre-romance .hero-title {
    font-family: 'Quicksand', sans-serif;
    color: #FFD700 !important;
    text-shadow: 
        0 1px 0px #FFB6C1,
        0 2px 0px #FF69B4,
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 215, 0, 0.4) !important;
}

.hero-overlay.genre-noir .hero-title {
    font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    color: #FFD700 !important;
    text-shadow: 
        0 1px 0px #000000,
        0 2px 0px #333333,
        0 3px 6px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(255, 215, 0, 0.3) !important;
}

/* Description */
.hero-desc {
    color: #E6E6FA !important;
    background: linear-gradient(135deg, #E6E6FA 0%, #F0F8FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    color: #E6E6FA;
    
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(230, 230, 250, 0.3) !important;
    
    font-size: 1.15rem;
    line-height: 1.5;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 3);
    font-weight: 500;
    opacity: 0.95;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-desc.smoky-white {
    color: #F5F5F5 !important;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(236, 236, 228, 0.3) !important;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-overlay .hero-title {
        font-size: 2rem;
        text-shadow: 
            0 1px 0px #B8860B,
            0 2px 0px #8B6914,
            0 2px 4px rgba(0, 0, 0, 0.5),
            0 0 8px rgba(255, 215, 0, 0.4) !important;
    }
    
    .hero-desc {
        font-size: 1.5 rem;
    }
}

@media (max-width: 600px) {
    .hero-overlay .hero-title {
        font-size: 1.5rem;
        text-shadow: 
            0 1px 0px #B8860B,
            0 1px 0px #8B6914,
            0 1px 3px rgba(0, 0, 0, 0.5),
            0 0 6px rgba(255, 215, 0, 0.3) !important;
    }
    
    .hero-overlay {
        padding: 1.5rem 1.5rem 1.5rem 0;
        min-width: 180px;
    }
}
/* Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.18);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    z-index: 10;
    cursor: pointer;
    opacity: 0.35;
    transition: background 0.25s, opacity 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-arrow-left { left: 32px; }
.hero-arrow-right { right: 32px; }
.hero-arrow:hover, .hero-arrow:focus {
    background: rgba(255,255,255,0.18);
    opacity: 0.85;
    outline: none;
    box-shadow: 0 4px 24px 0 rgba(139,92,246,0.18), 0 1.5px 8px rgba(255,255,255,0.18);
    transform: scale(1.15) translateY(-50%);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
}
.hero-arrow:active {
    background: rgba(239, 68, 68, 0.18);
    opacity: 1;
    transform: scale(0.95) translateY(-50%);
}

/* Refresh Button */
.nav-controls .hero-refresh {
    position: static;
    margin-right: 0.5rem;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    opacity: 0.85;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.3s, opacity 0.3s, transform 0.2s, box-shadow 0.3s, border-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    color: var(--text-primary);
    outline: none;
}
.nav-controls .hero-refresh:hover, .nav-controls .hero-refresh:focus {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    opacity: 1;
    box-shadow: 0 2px 12px 0 rgba(255, 215, 0, 0.4), 0 1.5px 8px rgba(255, 255, 255, 0.18);
    transform: scale(1.10);
    border-color: #FFD700;
    animation: hero-refresh-pulse 0.7s;
}
.nav-controls .hero-refresh:active {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: #fff;
    opacity: 1;
    transform: scale(0.97);
    border-color: #FFA500;
}
@keyframes hero-refresh-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
}
.nav-controls .hero-refresh .fa-sync-alt {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-controls .hero-refresh.spinning .fa-sync-alt {
    animation: hero-refresh-spin 0.8s linear 1;
}
@keyframes hero-refresh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.nav-controls .hero-refresh::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--header-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s;
    z-index: 100;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-controls .hero-refresh:hover::after, .nav-controls .hero-refresh:focus::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .hero-arrow-left { left: 8px; }
    .hero-arrow-right { right: 8px; }
    .nav-controls .hero-refresh { right: 12px; top: 16px; }
    .hero-content { margin-left: 5vw; max-width: 90vw; }
}
@media (max-width: 600px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-arrow, .nav-controls .hero-refresh {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        opacity: 0.9;
    }
    .hero-arrow-left { left: 2px; }
    .hero-arrow-right { right: 2px; }
    .nav-controls .hero-refresh { right: 4px; top: 8px; }
    .hero-content { margin-left: 2vw; max-width: 98vw; }
    /* Ensure features section is always visible below the hero on mobile */
    #features {
        display: block;
    }
}



.hero-bg-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0.6) blur(1px); /* for cinematic effect */
}

.hero-bg-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero {
    position: relative; /* ensure stacking context */
    z-index: 1;
}

.hero .container,
.hero-content {
    position: relative;
    z-index: 2; 
}

/* Mobile Details Button */
.mobile-details-btn {
    display: none; /* Hidden on desktop */
    width: 120px;
    height: 36px;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #cc0000, #a89904);
    border-radius: 18px;
    box-shadow: 0 3px 10px rgba(204, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 15;
}

.mobile-details-btn:hover {
    background: linear-gradient(135deg, #e60000, #b8a505);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.6);
    animation: colorPulse 1s ease-in-out infinite alternate;
}

@keyframes colorPulse {
    0% { background: linear-gradient(135deg, #e65c00, #b8a505); }
    100% { background: linear-gradient(135deg, #ff9233, #d4c306); }
}
/* Movie Modal */
.movie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

/* Blurred Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.4);
    z-index: -1;
    transition: all 0.3s ease;
}

/* Modal Container */
.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    border-radius: 16px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 75vw; /* Occupy 75% of the screen width */
    max-width: 1000px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative; /* Ensure arrows position correctly */
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-poster {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-height: 50vh;
}

.modal-poster img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-content {
    flex: 1;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    position: relative;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

/* Trailer link styling - make it look like a button */
.trailer-link {
    min-height: var(--btn-primary-height, 48px);
    background: linear-gradient(135deg, var(--color-red, #DC143C), #f5c70f);
    border: none;
    border-radius: var(--btn-border-radius, 8px);
    color: white;
    font-weight: 600;
    font-size: var(--btn-text, 1rem);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(255, 183, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.trailer-link:hover {
    background: linear-gradient(135deg, #B22222, #FFA500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.4);
    color: white;
    text-decoration: none;
}

.trailer-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 200, 0, 0.3);
}

/* Mobile modal buttons - stack vertically */
@media (max-width: 768px) {
    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .trailer-link,
    .watch-trailer,
    .action-btn.secondary {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
}

.watch-trailer {
    min-height: var(--btn-primary-height);
    background: linear-gradient(135deg, #DC143C, #FFD700);
    border: none;
    border-radius: var(--btn-border-radius);
    color: white;
    font-weight: 600;
    font-size: var(--btn-text);
    cursor: pointer;
    transition: var(--transition-normal);
    flex: 1;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    &:hover {
        background: linear-gradient(135deg, #B22222, #FFA500);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
    }
    
    &:disabled {
        background: #666;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
}

.watch-trailer:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.5);
}

    /* Watch Trailer Button */
.watch-trailer-btn {
    background: linear-gradient(135deg, var(--color-red), #cfbe05);
    color: white;
    border: none;
    border-radius: var(--btn-border-radius);
    padding: 0.75rem 1.5rem;
    font-size: var(--btn-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 12px rgba(255, 153, 0, 0.3);
}

.watch-trailer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.4);
}

.watch-trailer-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 200, 0, 0.3);
}

/* Modal Navigation Arrows */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
    z-index: 1010; /* Higher than modal container */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.modal-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.modal-arrow-left {
    left: 10px;
}

.modal-arrow-right {
    right: 10px;
}


/* Mobile */
@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(1.4rem, 3.5vw, 2.8rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .hero-overlay .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-meta {
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .hero-meta .hero-year, 
    .hero-meta .hero-genre {
        font-size: 0.85rem;
    }
    
    .hero-desc {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        max-height: calc(0.9em * 1.5 * 3);
    }
    
    .hero {
        padding: 36px 0 18px;
        min-height: 80vh;
    }
    
    .hero-content {
        margin-left: 1vw;
        max-width: 95vw;
    }
    
    .hero-overlay {
        display: none !important;
    }
    
    .mobile-details-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .hero-arrow {
        display: block !important;
    }
    
    .nav-controls .hero-refresh {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
    }
    
    .modal-meta {
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .modal-desc {
        font-size: 0.9rem;
    }
    
    .watch-trailer {
        height: 44px;
        font-size: 0.95rem;
    }
    
    .modal-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .modal-arrow-left {
        left: 5px;
    }
    
    .modal-arrow-right {
        right: 5px;
    }
    
   }

@media (max-width: 600px) {
    .mobile-details-btn,
    .modal-close,
    .watch-trailer,
    .modal-arrow,
    .youtube-close,
    .btn,
    .btn-primary,
    .btn-secondary,
    .discover-btn,
    .mood-btn,
    .theme-toggle,
    .language-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 8px;
    }
    
    .mobile-details-btn {
        width: 140px;
        height: 44px;
    }
    
    .btn,
    .btn-primary,
    .btn-secondary,
    .discover-btn {
        padding: 0.6rem 1.2rem;
    }
    
    .mood-btn {
        padding: 0.75rem 1rem;
    }
}

        /* Performance */
        @media (max-width: 600px) {
            .hero-bg-slide {
                will-change: opacity;
            }
            
            .movie-modal {
                will-change: transform, opacity;
            }
            
            .mobile-details-btn {
                will-change: transform;
            }
            
            img {
                max-width: 100%;
                height: auto;
            }
            
            * {
                scroll-behavior: smooth;
            }
        }
        
        body {
            transition: background-color 0.05s ease, color 0.05s ease;
        }
        
        @media (max-width: 414px) {
            .container {
                padding: 0 10px;
            }
            
            .section {
                padding: 1rem 3vw;
            }
            
            .hero-content {
                margin-left: 0;
                max-width: 100vw;
            }
        }

/* Mobile Control Bar */
.mobile-control-bar {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 1003;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Ensure desktop header is visible on large screens */
/* Desktop navigation - 1025px and above */
@media (min-width: 1025px) {
    .header {
        display: block !important;
    }
    .nav-center {
        display: flex !important;
    }
    .nav-controls {
        display: flex !important;
    }
    .mobile-control-bar {
        display: none !important;
    }
    
    /* Desktop grid layouts */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .showcase-carousel {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Tablet to desktop transition - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        display: block !important;
    }
    .nav-center {
        display: flex !important;
    }
    .nav-controls {
        display: flex !important;
    }
    .mobile-control-bar {
        display: none !important;
    }
    
    /* Override tablet hamburger menu for larger tablets */
    .mobile-control-bar {
        display: none !important;
    }
}

/* Tablet responsive design - 768px to 768px only */
@media (min-width: 768px) and (max-width: 768px) {
    .mobile-control-bar {
        display: flex !important;
    }
    
    .nav-center {
        display: none !important;
    }
    
    .nav-controls {
        display: none !important;
    }
    
    .logo {
        display: block !important;
    }
    
    /* Tablet grid layouts */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .showcase-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Tablet movie cards */
    .movie-card {
        width: 180px;
        height: 270px;
    }
    
    .carousel-container .movie-card {
        width: 160px;
        height: 240px;
    }
    
    /* Touch targets for tablet */
    .btn, .mood-btn, .action-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 16px;
    }
    
    .mobile-menu-btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .mobile-control-bar {
        display: flex !important;
    }
    /* Hide desktop controls on mobile to avoid duplicates */
    .nav-controls {
        display: none !important;
    }
    /* Hide logo on mobile for home page */
    .logo {
        display: none !important;
    }
    
    .mood-btn,
    .action-btn,
    .get-recommendations,
    .discover-btn,
    .mobile-menu-btn,
    .btn,
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: var(--glass-bg, rgba(26, 26, 26, 0.8));
    border: 1px solid var(--glass-border, rgba(212, 153, 26, 0.2));
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    color: var(--text-primary, #F5F5F5);
    font-size: 18px;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.2));
    width: 48px; 
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: var(--glass-blur, blur(20px));
    backdrop-filter: var(--glass-blur, blur(20px));
    pointer-events: auto;
}
    
.mobile-menu-btn:hover {
    background: var(--gradient-primary, linear-gradient(135deg, #D4991A 0%, #C28A16 100%));
    color: var(--dark, #0A0A0A);
    transform: scale(1.05);
    box-shadow: var(--shadow-gold, 0 0 30px rgba(212, 153, 26, 0.3));
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--primary, #D4991A);
    outline-offset: 2px;
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

/* Mobile Controls */
.mobile-controls {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.mobile-refresh,
.mobile-theme-toggle,
.mobile-language-toggle {
    background: var(--glass-bg, rgba(26, 26, 26, 0.8));
    border: 1px solid var(--glass-border, rgba(212, 153, 26, 0.2));
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-primary, #F5F5F5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: var(--glass-blur, blur(20px));
    backdrop-filter: var(--glass-blur, blur(20px));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-refresh {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.mobile-theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.mobile-language-toggle {
    width: 40px;
    height: 32px;
    font-size: 12px;
    font-weight: 600;
}

.mobile-refresh:hover {
    background: var(--gradient-primary, linear-gradient(135deg, #D4991A 0%, #C28A16 100%));
    color: var(--dark, #0A0A0A);
    transform: scale(1.05) rotate(180deg);
    box-shadow: var(--shadow-gold, 0 0 15px rgba(212, 153, 26, 0.3));
}

.mobile-theme-toggle:hover {
    background: var(--gradient-primary, linear-gradient(135deg, #D4991A 0%, #C28A16 100%));
    color: var(--dark, #0A0A0A);
    transform: scale(1.05);
    box-shadow: var(--shadow-gold, 0 0 15px rgba(212, 153, 26, 0.3));
}

.mobile-language-toggle:hover {
    background: var(--gradient-primary, linear-gradient(135deg, #D4991A 0%, #C28A16 100%));
    color: var(--dark, #0A0A0A);
    transform: scale(1.05);
    box-shadow: var(--shadow-gold, 0 0 15px rgba(212, 153, 26, 0.3));
}

.mobile-theme-toggle .theme-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.mobile-theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background: var(--glass-bg, rgba(26, 26, 26, 0.8));
    -webkit-backdrop-filter: var(--glass-blur, blur(20px));
    backdrop-filter: var(--glass-blur, blur(20px));
    border-left: 1px solid var(--glass-border, rgba(212, 153, 26, 0.2));
    z-index: 1002;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl, 0 16px 48px rgba(0, 0, 0, 0.4));
    transform: translateX(100%);
    overflow-y: auto;
    pointer-events: auto;
}

.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mobile-menu.open {
    transform: translateX(0);
}

.menu-open {
    overflow: hidden !important;
}

.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

    /* Menu Header */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-time-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 25px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-time-container i {
    font-size: 0.9rem;
    color: var(--color-red);
    opacity: 0.8;
}

#menu-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    font-family: 'Barlow', sans-serif;
    transition: opacity 0.3s ease;
}

.close-menu {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.8);
    font-size: 1.4em;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Vertical Navigation */
.vertical-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    margin: 2px 12px;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover,
.menu-item:active {
    border-left-color: var(--color-red);
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.menu-item i {
    width: 24px;
    text-align: center;
    font-size: 1.2em;
    color: var(--color-red);
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.menu-item:hover i {
    transform: scale(1.1);
}

.menu-item span {
    flex: 1;
    font-weight: 500;
    z-index: 1;
    position: relative;
}

/* Divider */
.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 15px 20px;
    border-radius: 1px;
}

/* Footer */
.menu-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.menu-version {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.menu-version span:last-child {
    font-weight: 600;
    color: var(--color-red);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
    .mobile-menu-btn {
        display: flex !important;
        left: 15px;
        top: 15px;
        width: 48px;
        height: 48px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu {
        width: 90vw;
        max-width: 300px;
    }
    
    .menu-header {
        padding: 20px 15px;
    }
    
    .menu-item {
        padding: 16px 18px;
        margin: 2px 10px;
        font-size: 0.95rem;
    }
    
    
    .hero-title::before {
        content: '';
        display: inline-block;
        width: 42px;
        height: 42px;
        background-image: url('/static/popcorn.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-right: 12px;
        vertical-align: middle;
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 95vw;
        max-width: 280px;
    }
    
    .mobile-menu-btn {
        left: 12px;
        top: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.2em;
    }
    
    .menu-item {
        padding: 14px 16px;
        font-size: 0.9rem;
        gap: 15px;
    }
    
    .menu-item i {
        width: 20px;
        font-size: 1.1em;
    }
    
    .menu-time-container {
        padding: 8px 14px;
    }
    
    .menu-time-container i {
        font-size: 0.8rem;
    }
    
    #menu-time {
        font-size: 1rem;
    }
    
    .menu-footer {
        padding: 15px;
    }
    
    .menu-version {
        font-size: 0.8rem;
    }
}

/* Desktop */
@media (min-width: 601px) {
    .mobile-menu-btn,
    .mobile-menu {
        display: none !important;
    }
    
    .hero-title::before {
        content: '';
        display: inline-block;
        width: 84px;
        height: 84px;
        background-image: url('/static/popcorn.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-right: 12px;
        vertical-align: middle;
    }
}

        /* Dark */
[data-theme="dark"] .mobile-menu {
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .menu-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .menu-item {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] #menu-time {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .close-menu {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .menu-time-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] #menu-time {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .menu-divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

[data-theme="dark"] .menu-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .menu-version {
    color: rgba(255, 255, 255, 0.6);
}

/* Light theme adjustments */
[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .menu-header {
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .menu-item {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .menu-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .menu-time-container {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] #menu-time {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .menu-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
}

[data-theme="light"] .menu-footer {
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .menu-version {
    color: rgba(0, 0, 0, 0.6);
}

/* Animation */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

/* Pulsing Arrow */
.pulse-arrow {
    margin-left: 8px;
    animation: pulseArrow 1.5s infinite;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulseArrow {
    0% { 
        opacity: 0.6; 
        transform: translateX(0); 
    }
    50% { 
        opacity: 1; 
        transform: translateX(3px); 
    }
    100% { 
        opacity: 0.6; 
        transform: translateX(0); 
    }
}

/* Hero Arrow Pulse Animation */
/* .hero-arrow::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    animation: pulseArrow 1.5s infinite;
    opacity: 0.8;
    font-size: 0.8em;
} */


/* Mobile responsive button layout */
@media (max-width: 600px) {
    .hero-actions {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .hero-actions .btn {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-actions .btn i:not(.pulse-arrow) {
        margin-right: 0.5rem;
    }
    
    .hero-actions .btn .pulse-arrow {
        margin-left: 0.5rem;
    }
    
    .carousel-arrow {
        display: flex !important;
        width: 44px;
        height: 44px;
        font-size: 1.2em;
    }
    
    .carousel-arrow.left {
        left: 5px;
    }
    
    .carousel-arrow.right {
        right: 5px;
    }
    
    .movie-carousel {
        padding: 0 2rem;
    }
    
    /* Showcase Grid */
    .showcase-grid-container {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .showcase-row {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .row-title {
        font-size: 1.2rem;
    }
    
    .showcase-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        min-height: 250px;
    }
    
    .showcase-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    

}

/* Variables */
:root {
  --mobile-font-scale: 0.82;
  --base-size: clamp(14px, 4vw, 16px);
  
  --h1: calc(var(--base-size) * var(--mobile-font-scale) * 2);
  --h2: calc(var(--base-size) * var(--mobile-font-scale) * 1.5);
  --h3: calc(var(--base-size) * var(--mobile-font-scale) * 1.25);
  --body: calc(var(--base-size) * var(--mobile-font-scale));
  --btn-text: calc(var(--base-size) * var(--mobile-font-scale) * 0.9);
  --caption: calc(var(--base-size) * var(--mobile-font-scale) * 0.8);
  
  --btn-primary-height: 44px;
  --btn-secondary-height: 38px;
  --btn-border-radius: 8px;
  
  /* --section-spacing-desktop: 64px;
  --section-spacing-tablet: 48px;
  --section-spacing-mobile: 32px; */
  
  --mobile-section-height: 100vh;
  --mobile-padding: 15px 5vw;
  
  --youtube-aspect-ratio: 16 / 9;
  --youtube-max-width: 1200px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --z-modal: 1000;
  --z-overlay: 900;
  --z-header: 800;
  --z-floating: 700;
}

/* Theme */
[data-theme="light"] {
  --hero-text-shadow: 0 2px 4px rgba(255,255,255,0.7);
  --btn-hover-bg: linear-gradient(to right, #f0f0f0, #e0e0e0);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --hero-text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  --btn-hover-bg: linear-gradient(to right, #333, #222);
  --modal-bg: rgba(0, 0, 0, 0.95);
  --card-bg: rgba(0, 0, 0, 0.9);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
section {
  margin: 0 auto;
  scroll-snap-align: start;
  
  @media (min-width: 1024px) {
    & + section { 
      margin-top: calc(var(--section-spacing-desktop) * 0.7); 
    }
  }
  
    /* Tablet */
  @media (min-width: 601px) and (max-width: 1023px) {
    & + section { 
      margin-top: calc(var(--section-spacing-tablet) * 0.7); 
    }
  }
  
  /* Mobile */
  @media (max-width: 600px) {
    /* height: var(--mobile-section-height); */
    width: 100vw;
    overflow: hidden;
    padding: var(--mobile-padding);
    box-sizing: border-box;
    
    * {
      /* max-width: 100%;
      overflow-x: hidden; */
    }
  }
}

/* Button */
.btn {
  min-height: var(--btn-primary-height);
  font-size: var(--btn-text);
  white-space: nowrap;
  border-radius: var(--btn-border-radius);
  transition: transform var(--transition-fast);
  
  &:active {
    transform: scale(0.96);
  }
  
  @media (max-width: 600px) {
    width: 100%;
    min-height: 44px;
  }
}

.btn-secondary {
  min-height: var(--btn-secondary-height);
  
  @media (max-width: 600px) {
    min-height: 38px;
  }
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 0 5vw;
  
  button {
    min-height: 44px;
    font-size: var(--btn-text);
    white-space: nowrap;
    
    transition: transform var(--transition-fast);
    &:active {
      transform: scale(0.96);
    }
  }
}

/* Hero Text */
.hero-title {
  text-shadow: var(--hero-text-shadow);
  background: linear-gradient(to right, 
    var(--primary) 20%, 
    var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  
  @media (max-width: 600px) {
    font-size: var(--h1);
    line-height: 1.2;
  }
}

/* Keep emoji in original color */
.hero-title .emoji {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: #FFD700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  display: inline-block;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Trailer Button */
.trailer-btn {
  width: 100%;
  min-height: 44px;
  font-size: var(--btn-text);
  background: linear-gradient(135deg, #cc0000, #a89904);
  color: white;
  border: none;
  border-radius: var(--btn-border-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  
  &:hover {
    background: linear-gradient(135deg, #e60000, #b8a505);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
  }
  
  &:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  
  @media (min-width: 601px) {
    width: auto;
  }
}

/* Youtube */
.youtube-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
  
  iframe {
    width: min(95vw, var(--youtube-max-width));
    height: calc(min(95vw, var(--youtube-max-width)) / var(--youtube-aspect-ratio));
    border: none;
    border-radius: 8px;
  }
}

/* Question Flow */
.analysis-text {
  display: none;
  text-align: center;
  padding: 2rem;
  animation: fadeIn var(--transition-slow);
}

.analysis-text.show {
  display: block;
}

.pulse-animation {
  animation: pulse 1.5s infinite alternate;
  font-size: var(--h3);
  margin-bottom: 1rem;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

.one-time-btn {
  transition: all var(--transition-normal);
  min-height: 44px;
  font-size: var(--btn-text);
}

.one-time-btn:disabled {
  background: var(--disabled-color, #666);
  transform: scale(0.98);
  cursor: not-allowed;
}

        /* Mobile */
@media (max-width: 600px) {
  .hero-title,
  .section-title,
  .discover-title {
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  
  .btn,
  .mood-btn,
  .nav-controls button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .questionnaire-card {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }
  
  .mood-btn.selected {
    border: 3px solid currentColor;
  }
}

/* Performance */
.movie-card img {
  loading: lazy;
  decoding: async;
}

.hero-bg-slide {
  will-change: opacity;
}

/* Trailer */
.trailer-required {
  position: relative;
}

.trailer-required::after {
  content: "🎬";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff0000;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  animation: pulse 2s infinite;
}

    /* Mobile */
    .hero-bg-slide {
        object-fit: cover;
        filter: brightness(0.6) blur(0px);
    }
    
    .modal-backdrop {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center top;
    }

/* Showcase */
.movie-section {
    margin-bottom: var(--space-xl);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.movie-row-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.movie-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    flex: 1;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

.movie-row .movie-card {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 0;
    margin-left: 0;
}

/* Navigation */
.row-nav-arrow {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.row-nav-arrow:hover,
.row-nav-arrow:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.row-nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.row-nav-arrow.left {
    left: 0;
}

.row-nav-arrow.right {
    right: 0;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

.loading-indicator.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .movie-row {
        gap: 0.75rem;
        padding: 1rem 0.25rem;
    }
    
    .movie-row .movie-card {
        width: 150px;
    }
    
    .movie-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .row-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .movie-row .movie-card {
        width: 200px;
    }
}

/* Edge */
.movie-row {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Section Title Styling */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


@media (max-width: 480px) {
    .poster-wrapper {
        height: 70%;
    }
    .details-title {
        font-size: 0.75rem;
    }
    .details-meta {
        font-size: 0.65rem;
    }
    .card-details-preview {
        padding: 0.3rem 0.4rem;
    }
}

/* Showcase */
.showcase {
    margin: 2rem 0;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem 1rem;
    padding: 0 1rem;
}

.carousel-controls {
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container .movie-card,
.movie-match-content .movie-card {
    position: relative;
    flex-shrink: 0;
    min-width: 200px;
    max-width: 200px;
    height: 380px;
    margin: 0 0.5rem 1rem 0.5rem;
    perspective: 1200px;
    border-radius: 10px;
    overflow: visible;
    background: none;
    transition: transform 0.3s ease;
    z-index: 2;
}
.movie-info
 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
}


    
    .showcase-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .carousel-controls {
        justify-content: center;
    }
    
    /* Card inner styles for TV Shows */
    .carousel-container .card-inner,
    .movie-match-content .card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: left;
        transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        will-change: transform;
    }
    
    .carousel-container .movie-card.flipped .card-inner,
    .movie-match-content .movie-card.flipped .card-inner {
        transform: rotateY(180deg);
        z-index: 10;
    }
    
    /* Ensure carousel flipped cards don't block pointer events */
    .carousel-container .movie-card.flipped,
    .movie-match-content .movie-card.flipped {
        pointer-events: auto;
    }
    
    .carousel-container .movie-card.flipped .card-back,
    .movie-match-content .movie-card.flipped .card-back {
        pointer-events: auto;
    }
    
    .carousel-container .movie-card.flipped .card-back *,
    .movie-match-content .movie-card.flipped .card-back * {
        pointer-events: auto;
    }
    
    .carousel-container .card-front,
    .carousel-container .card-back,
    .movie-match-content .card-front,
    .movie-match-content .card-back {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .carousel-container .card-front,
    .movie-match-content .card-front {
        z-index: 2;
        background: var(--bg-secondary);
    }
    
    .carousel-container .card-back,
    .movie-match-content .card-back {
        transform: rotateY(180deg);
        z-index: 3;
        background: var(--bg-primary);
        background-image: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, transparent 80%);
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem;
        padding-bottom: 7rem;
        position: relative;
    }

/* Showcase Loading */
.carousel-container .skeleton-card,
.movie-skeleton {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    min-width: 200px;
    height: 300px;
    position: relative;
    animation: skeleton-loading 1.5s infinite;
    flex-shrink: 0;
}

.carousel-container .skeleton-poster,
.movie-skeleton .skeleton-poster {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, var(--soft-gray) 25%, var(--glass-border) 50%, var(--soft-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.carousel-container .skeleton-content,
.movie-skeleton .skeleton-content {
    padding: 15px;
}

.carousel-container .skeleton-title,
.movie-skeleton .skeleton-title {
    height: 16px;
    background: linear-gradient(90deg, var(--soft-gray) 25%, var(--glass-border) 50%, var(--soft-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 8px;
    border-radius: 4px;
}

.carousel-container .skeleton-meta,
.movie-skeleton .skeleton-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.carousel-container .skeleton-year,
.carousel-container .skeleton-rating,
.movie-skeleton .skeleton-year,
.movie-skeleton .skeleton-rating {
    height: 12px;
    background: linear-gradient(90deg, var(--soft-gray) 25%, var(--glass-border) 50%, var(--soft-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    flex: 1;
}

.carousel-container .skeleton-year,
.movie-skeleton .skeleton-year {
    flex: 0.4;
}

.carousel-container .skeleton-rating,
.movie-skeleton .skeleton-rating {
    flex: 0.6;
}

/* Error state */
.carousel-container .error-state,
.movie-match-content .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    text-align: center;
    min-height: 200px;
}

.carousel-container .error-state i,
.movie-match-content .error-state i {
    font-size: 2rem;
    color: var(--color-red);
    margin-bottom: 1rem;
}

.carousel-container .error-state p,
.movie-match-content .error-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* questionnaire card styles */
.questionnaire-card {
    position: relative;
    min-height: 500px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
    max-width: 600px;
}

.questionnaire-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
    animation: shimmerLine 3s ease-in-out infinite;
}

/* Enhanced question styling */
.question h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.question .emoji {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

/* Enhanced mood options */
.mood-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mood-options[data-options="8"] {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.mood-options[data-options="5"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.mood-options[data-options="5"] .mood-btn:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 200px;
}

@media (max-width: 480px) {
    .mood-options[data-options="5"] .mood-btn:nth-child(5) {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
    }
}

.mood-options[data-options="4"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.mood-options[data-options="3"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.mood-options[data-options="3"] .mood-btn:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 200px;
}

@media (max-width: 480px) {
    .mood-options[data-options="3"] .mood-btn:nth-child(3) {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
    }
}

.mood-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 90px;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    touch-action: manipulation;
}

.mood-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mood-btn:hover::before {
    left: 100%;
}

.mood-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.mood-btn.selected {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    animation: shimmerSelect 0.6s ease-out;
}

@keyframes shimmerSelect {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 184, 35, 0.7);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 184, 35, 0.3);
        transform: scale(1.08);
    }
    100% {
        box-shadow: var(--shadow-xl);
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.mood-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.mood-btn .emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mood-btn .mood-name {
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

/* progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Analysis Loading */
.analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.film-reel-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: reelPulse 2s ease-in-out infinite;
}

@keyframes reelPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.analysis-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    animation: fadeInText 0.5s ease-in;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.analysis-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.analysis-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Discover Button  */
.discover-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FFD700;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000;
    font-size: 1rem;
    margin: 1.5rem auto;
    min-height: 50px;
    min-width: 200px;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
}

.discover-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.discover-btn:hover::before {
    left: 100%;
}

.discover-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.discover-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.discover-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.discover-btn:hover::after {
    width: 300px;
    height: 300px;
}

.discover-btn .emoji {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes discoverPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Analysis Text Container */
.analysis-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
}

.analysis-text.hidden {
    display: none;
}

.analysis-text.show {
    display: block;
    animation: fadeInText 0.5s ease-in;
}

/* Recommendation Preview */
.recommendation-preview {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
    animation: fadeInText 0.5s ease-in;
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Movie Recommendations */
.movie-match-content {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--glass-border);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.movie-match-content::-webkit-scrollbar {
    height: 8px;
}

.movie-match-content::-webkit-scrollbar-track {
    background: var(--glass-border);
    border-radius: 4px;
}

.movie-match-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.movie-match-content::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

.movie-match-content::-webkit-scrollbar {
    height: 6px;
}

.movie-match-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.movie-match-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.movie-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: skeletonShimmer 2s infinite;
}

.skeleton-poster {
    width: 100%;
    height: 280px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.skeleton-content {
    padding: 1rem;
}

.skeleton-title {
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 80%;
}

.skeleton-meta {
    height: 16px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 60%;
}

.skeleton-rating {
    height: 16px;
    background: var(--bg-secondary);
    border-radius: 4px;
    width: 40%;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes skeletonShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Action Buttons */
.questionnaire-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.one-time-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    min-height: 48px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.one-time-btn:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.one-time-btn.try-again {
    background: linear-gradient(135deg, #FFD700, #a89904);
    border-color: #FFD700;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.one-time-btn.try-again:hover {
    background: linear-gradient(135deg, #FFA500, #e60000);
    border-color: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.one-time-btn.more-like-this {
    background: linear-gradient(135deg, #FFD700, #a8a8a8);
    border-color: #FFD700;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.one-time-btn.more-like-this:hover {
    background: linear-gradient(135deg, #FFA500, #e60000);
    border-color: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Navigation Buttons */
.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.question-navigation .one-time-btn {
    min-width: 100px;
}

/* Pulse Animation for Refresh */
.pulse-animation {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .questionnaire-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .question h3 {
        font-size: 1.2rem;
    }
    
    .mood-options {
        gap: 0.75rem;
        max-width: 100%;
    }
    
    /* Mobile responsive grid layouts */
    .mood-options[data-options="8"] {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .mood-options[data-options="5"] {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .mood-options[data-options="5"] .mood-btn:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 150px;
    }
    
    .mood-options[data-options="4"] {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .mood-options[data-options="3"] {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .mood-options[data-options="3"] .mood-btn:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 150px;
    }
    
    .mood-btn {
        min-height: 80px;
        padding: 1rem 0.75rem;
    }
    
    .movie-match-content {
        gap: 0.75rem;
    }
    
    
    .questionnaire-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .one-time-btn {
        min-width: 100%;
        justify-content: center;
    }
    
    .analysis-text h3 {
        font-size: 1.3rem;
    }
    
    .analysis-text p {
        font-size: 0.9rem;
    }
    
    .discover-btn {
        min-width: 260px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 40px;
    }
    
    .analysis-text,
    .recommendation-preview {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .questionnaire-card {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .mood-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .mood-btn {
        min-height: 70px;
        padding: 0.75rem 0.5rem;
    }
    
    
    .movie-match-content .poster-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .analysis-text h3 {
        font-size: 1.1rem;
    }
    
    .analysis-text p {
        font-size: 0.85rem;
    }
}

/* Accessibility */
.mood-btn:focus,
.one-time-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .mood-btn,
    .one-time-btn,
    .progress-fill,
    .film-reel-icon {
        animation: none;
        transition: none;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .mood-btn {
        border-width: 3px;
    }
    
    .mood-btn.selected {
        border-width: 4px;
    }
    
    .progress-bar {
        height: 8px;
    }
}

@media (max-width: 768px) {
    .movie-overview {
        max-height: 100px;
    }
    
    .action-btn {
        min-height: 44px;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .action-btn.secondary {
        margin-top: 0.5rem;
    }
    
    .card-back {
        padding-bottom: 6rem;
    }
}
    
    
.mood-btn.selected::after {
    display: none !important;
}

.mood-btn.selected {
    box-shadow: 0 0 20px rgba(212, 153, 26, 0.4) !important;
    background: var(--gradient-mood-selected) !important;
    border-color: var(--primary) !important;
}

.mood-btn {
    min-height: 48px;
    min-width: 48px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
