/* ==========================================================================
   CROWNZ BARBER SHOP - PREMIUM ENHANCEMENTS & ANIMATIONS
   ========================================================================== */

/* --- GSAP REVEALS & STATES --- */
.gs-reveal-up, 
.gs-reveal-scale,
.gs-reveal-left,
.gs-reveal-right,
.gs-reveal {
    opacity: 0;
}

/* Base Preloader overlay logic */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-base);
    z-index: 999998;
}

/* Page Transition Logo Overlay */
.page-transition-overlay {
    pointer-events: none;
}

/* --- CUSTOM CURSOR --- */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    
    .cursor-dot, .cursor-ring {
        position: fixed;
        top: 0; left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
    }
    
    .cursor-dot {
        width: 6px; height: 6px;
        background-color: var(--text-main);
        transition: opacity 0.3s ease;
        box-shadow: 0 0 10px rgba(255,255,255,0.8);
    }
    
    .cursor-ring {
        width: 40px; height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), background-color 0.3s ease, border-color 0.3s ease;
    }
    
    body.cursor-hover .cursor-ring {
        width: 65px; height: 65px;
        background-color: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.8);
    }
    
    body.cursor-hover .cursor-dot {
        transform: translate(-50%, -50%) scale(0);
    }
    
    body.cursor-drag .cursor-ring {
        width: 80px; height: 80px;
        background-color: var(--text-main);
        border-color: transparent;
        mix-blend-mode: difference;
    }
}

/* --- FLOATING BOOK BUTTON --- */
.floating-book-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 990;
    transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
}

.circular-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 15s linear infinite;
    font-family: var(--font-heading);
}

.circular-text svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.circular-text text {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2px;
    fill: var(--text-muted);
    transition: fill 0.4s ease;
    text-transform: uppercase;
}

.floating-book-btn i {
    color: var(--text-main);
    transition: color 0.4s ease;
    font-size: 1.5rem;
}

.floating-book-btn:hover {
    background: var(--text-main);
    border-color: var(--text-main);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.floating-book-btn:hover .circular-text text { fill: var(--bg-base); }
.floating-book-btn:hover i { color: var(--bg-base); }

@keyframes rotateText {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .floating-book-btn {
        width: 85px; height: 85px;
        bottom: 25px; right: 25px;
    }
    .circular-text text { font-size: 11px; }
    .floating-book-btn i { font-size: 1.2rem; }
}

/* --- AMBIENT LOGO BACKGROUND --- */
.ambient-logo-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh; height: 100dvh;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.ambient-logo-bg img {
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0.03;
    transform: scale(1.1);
    -webkit-user-drag: none;
    filter: grayscale(100%);
    transition: filter 1.2s ease, opacity 1.2s ease;
}

.ambient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-base) 80%);
    z-index: 2;
}

.monochrome-reveal.color-active img {
    filter: grayscale(0%);
    opacity: 0.1;
}

/* --- CINEMATIC HERO OVERLAYS --- */
.hero-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background: var(--bg-base);
}

.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* --- HUGE FOOTER TEXT --- */
.huge-footer-text-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-bottom: -5vh;
    contain: paint;
    transform: translateZ(0);
}

.huge-footer-text img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* --- UTILITIES --- */
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --- FINAL LUXURY POLISH --- */
.editorial-visual {
    box-shadow: 0 40px 100px rgba(0,0,0,0.95);
    border: 1px solid rgba(255,255,255,0.03);
}
.editorial-visual:hover {
    box-shadow: 0 50px 120px rgba(0,0,0,1), 0 0 40px rgba(255,255,255,0.05);
}

.craft-item {
    box-shadow: 0 30px 80px rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.02);
}
.craft-item:hover {
    box-shadow: 0 40px 100px rgba(0,0,0,1), 0 0 30px rgba(255,255,255,0.03);
}

.primary-btn {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-btn:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Deeper text shadows for headers */
.section-heading {
    text-shadow: 0 15px 40px rgba(0,0,0,0.8);
}


/* --- EDITORIAL BLOG UPGRADES --- */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Raleway', sans-serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #e0e0e0;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin: 60px 0 20px 0;
    letter-spacing: 1px;
}

.drop-cap {
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff; /* Changed to white */
}

.pull-quote {
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    margin: 50px -40px;
    padding: 40px;
    border-left: 4px solid #ffffff; /* Changed to white */
    background: rgba(255,255,255,0.02);
    border-radius: 0 8px 8px 0;
    position: relative;
}

@media (max-width: 768px) {
    .pull-quote {
        margin: 40px 0;
        padding: 30px 20px;
        font-size: 1.3rem;
    }
}

/* --- BLOG BACK BUTTON --- */
.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    margin-bottom: 40px;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-back-btn i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-back-btn:hover {
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.blog-back-btn:hover i {
    transform: translateX(-5px);
}

/* --- MOBILE HERO IMAGE OPTIMIZATION --- */
@media (max-width: 768px) {
    .hero-section {
        height: 55svh !important;
        min-height: 450px !important;
        padding-top: 100px;
    }
    .hero-bg-img {
        object-position: 30% top !important;
        transform: none !important;
        min-height: 45vh !important;
    }
}

/* --- BLOG BACK BUTTON COLLISION FIX --- */
.blog-back-btn {
    display: flex !important;
    margin: 120px auto 50px auto !important;
    width: max-content;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   PREMIUM LUXURY CHATBOT (PURE WHITE & SCISSOR ANIMATION)
   ========================================================================== */

/* White glowing pulse for the button */
@keyframes whitePulseGlow {
    0% { 
        box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,255,255,0.05); 
        border-color: rgba(255,255,255,0.2);
    }
    50% { 
        box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.6), inset 0 0 20px rgba(255,255,255,0.3); 
        border-color: #ffffff;
    }
    100% { 
        box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,255,255,0.05); 
        border-color: rgba(255,255,255,0.2);
    }
}

/* Mast Scissor Cutting Action */
@keyframes snipCut {
    0%, 75% { transform: rotate(0deg) scale(1); }
    80% { transform: rotate(-25deg) scale(1.15); }
    85% { transform: rotate(20deg) scale(1.15); }
    90% { transform: rotate(-25deg) scale(1.15); }
    95% { transform: rotate(20deg) scale(1.15); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Avatar White BG Pulse */
@keyframes avatarWhitePulse {
    0% { 
        background: #e0e0e0; 
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); 
    }
    50% { 
        background: #ffffff; 
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.9); 
    }
    100% { 
        background: #e0e0e0; 
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); 
    }
}

.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--bg-surface, #111);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff; /* Pure White */
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    
    /* Apply White Glow */
    animation: whitePulseGlow 3s ease-in-out infinite;
}

/* Scissor Icon Animation targeting the icon inside the button */
.chatbot-trigger i, .chatbot-trigger svg {
    display: inline-block;
    animation: snipCut 4s ease-in-out infinite; /* Continuous cutting action */
    transform-origin: center;
}

.chatbot-trigger:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 40px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
    animation-play-state: paused; 
}

.chatbot-trigger:hover i {
    animation-play-state: paused;
}

.chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15); /* Slightly brighter border */
    border-radius: 16px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 80px rgba(255,255,255,0.05);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
}
.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff; /* Pure White */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000; /* Black icon for contrast */
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    
    /* Apply Avatar Pulse */
    animation: avatarWhitePulse 3s ease-in-out infinite;
}
.chat-title-group {
    flex: 1;
}
.chat-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.chat-status {
    font-size: 0.75rem;
    color: #aaaaaa;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffffff; /* White status indicator */
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff;
}
.chat-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.chat-close:hover {
    color: #fff;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.chat-body::-webkit-scrollbar {
    width: 4px;
}
.chat-body::-webkit-scrollbar-track {
    background: transparent;
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.msg {
    max-width: 85%;
    padding: 15px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: msgFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}
@keyframes msgFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.msg.ai {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.msg.user {
    background: #ffffff; /* White background for user message */
    border: 1px solid #ffffff;
    color: #000000; /* Black text for readability */
    font-weight: 500;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    animation: msgFadeIn 0.5s ease forwards;
}
.chat-opt-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.chat-opt-btn:hover {
    border-color: #ffffff; /* White hover */
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 15px 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    width: fit-content;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: #ffffff; /* White dots */
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.booksy-cta {
    display: block;
    text-align: center;
    background: #ffffff; /* White Button */
    color: #000; /* Black Text */
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    padding: 18px;
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}
.booksy-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
    color: #000;
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 100px;
        height: 500px;
    }
    .chatbot-trigger {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* --- CHATBOT INPUT STYLES --- */
.chat-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 10px;
    background: rgba(10, 10, 10, 0.95);
}
.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}
.chat-input:focus {
    border-color: #ffffff; /* White Focus */
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.08);
}
.chat-input::placeholder {
    color: #888;
}
.chat-send {
    background: #ffffff; /* White send button */
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}
.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255,255,255,0.4);
    background: #e0e0e0;
}
.chat-send i {
    font-size: 1rem;
    margin-left: -2px;
}

/* --- CINEMATIC PHOTO STORYTELLING --- */
.cinematic-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    cursor: pointer;
    background: #050505;
}
.cinematic-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%) brightness(0.8);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}
.cinematic-image-wrapper:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.1);
}
.cinematic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}
.cinematic-image-wrapper:hover .cinematic-overlay {
    opacity: 1;
}
.cinematic-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    transform: translateY(20px);
    opacity: 0.9;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.cinematic-image-wrapper:hover .cinematic-content {
    transform: translateY(0);
    opacity: 1;
}
.cinematic-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
.cinematic-desc {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cinematic-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff; /* Changed to white */
    margin-bottom: 10px;
    display: inline-block;
}

/* --- HERO SECTION MOBILE FIXES --- */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .hero-subtitle {
        position: absolute !important;
        bottom: 12% !important;
        left: 10% !important;
        transform: none !important;
        width: 80% !important;
        text-align: left !important;
        margin-bottom: 0 !important;
        z-index: 10;
        text-shadow: 0 5px 15px rgba(0,0,0,1);
    }
    
    .hero-section {
        height: 45vh !important;
        min-height: 350px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-bg-img {
        object-position: 30% top !important;
        transform: none !important;
        min-height: 45vh !important;
    }
    
    /* Ensure no text overlaps the faces */
    .hero-text-box {
        position: static !important;
    }
}

/* --- NETFLIX-STYLE CINEMATICS UI --- */
.netflix-row {
    margin-bottom: 60px;
    position: relative;
}
.netflix-row-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-left: 5%;
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.netflix-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding: 10px 5%;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.netflix-carousel::-webkit-scrollbar {
    display: none;
}
.netflix-card {
    position: relative;
    flex: 0 0 calc(80vw); /* Mobile size */
    max-width: 400px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    will-change: transform;
    transform: translate3d(0,0,0);
    scroll-snap-align: center;
}
@media (min-width: 768px) {
    .netflix-card {
        flex: 0 0 calc(30vw);
    }
    .netflix-card:hover {
        transform: scale(1.08) translate3d(0,0,0);
        box-shadow: 0 20px 40px rgba(0,0,0,0.9);
        z-index: 10;
    }
}
.netflix-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.netflix-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.netflix-card:hover .netflix-card-overlay {
    opacity: 1;
}
.netflix-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}
.netflix-card:hover .netflix-card-info {
    transform: translateY(0);
    opacity: 1;
}
.netflix-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.netflix-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}
.netflix-card:hover .netflix-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 768px) {
    /* Always show info on mobile */
    .netflix-card-info {
        opacity: 1;
        transform: translateY(0);
    }
    .netflix-play-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* --- CINEMATIC FULLSCREEN MODAL --- */
.cinematic-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.cinematic-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.cinematic-modal-video {
    width: 90vw;
    height: 80vh;
    max-width: 1200px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #000;
}
.cinematic-modal-overlay.active .cinematic-modal-video {
    transform: scale(1);
}
.cinematic-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1000000;
    text-shadow: 0 4px 15px rgba(0,0,0,1);
    transition: color 0.3s ease, transform 0.3s ease;
}
.cinematic-modal-close:hover {
    color: #ffffff;
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}


.netflix-card-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.netflix-card:hover .netflix-card-poster {
    opacity: 0;
}


/* --- NETFLIX CARD REDESIGN --- */
.netflix-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, transparent 100%) !important;
}

.netflix-card-info {
    bottom: 0;
    left: 0;
    padding: 25px;
    width: 100%;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.netflix-card:hover .netflix-card-info {
    transform: translateY(0);
}

.netflix-card-title {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

.netflix-card-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
    max-width: 90%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    opacity: 0.8;
    transition: opacity 0.4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netflix-card:hover .netflix-card-subtitle {
    opacity: 1;
}

.netflix-play-btn {
    top: 40% !important;
}