/* =========================================
   KVMN MEDIA - FINAL APP MODE CSS (FIXED)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   1. NAVIGATION (CLEAN TEXT & DROPDOWN)
   ========================================= */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; position: fixed; width: 100%; top: 0; 
    z-index: 1000; /* Standard high layer */
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.nav-logo-img { height: 35px !important; width: auto !important; object-fit: contain; }

/* Main Nav Links */
.nav-links { list-style: none; display: flex; gap: 40px; margin: 0 20px; align-items: center; }
.nav-links li a {
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: #ffffff; font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; height: 100%; padding: 10px 0;
}
.nav-icon { display: none !important; } 
.nav-label { font-size: 0.8rem; margin: 0; }
.nav-links li a:hover { color: #ffa500; }

/* Socials + Cart */
.nav-socials { display: flex; gap: 15px; align-items: center; flex-shrink: 0; }
.nav-socials a { color: #fff; font-size: 1.1rem; transition: 0.3s; cursor: pointer; }
.nav-socials a:hover { color: #ffa500; transform: translateY(-2px); }

/* Header Cart Icon */
.header-cart-btn { position: relative; display: flex; align-items: center; }
.header-cart-count {
    position: absolute; top: -8px; right: -10px;
    background: #ff4444; color: #fff; font-size: 0.6rem;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* =========================================
   2. HERO & SECTIONS
   ========================================= */
.hero-section {
    min-height: 100vh; display: flex; justify-content: center; align-items: center;
    text-align: center; position: relative; padding-top: 80px; overflow: hidden;
}
#hero-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { z-index: 2; padding: 20px; max-width: 900px; width: 100%; }

.main-logo { max-width: 400px; width: 80%; margin-bottom: 20px; filter: drop-shadow(0 0 20px #ffaa00); }
.floating-animation { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

.hero-content h1 {
    font-size: 3rem; text-transform: uppercase; margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p { font-size: 1.2rem; color: #ccc; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

.cta-button { padding: 15px 30px; text-decoration: none; font-weight: 900; text-transform: uppercase; border-radius: 4px; transition: 0.3s; }
.primary-btn { background-color: #ffa500; color: #000; }
.primary-btn:hover { background-color: #fff; transform: scale(1.05); }
.secondary-btn { border: 2px solid #fff; color: #fff; }
.secondary-btn:hover { background-color: #fff; color: #000; }

.content-section { padding: 100px 50px; background: #050505; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; text-align: center; }
.section-title { font-size: 2.5rem; color: #ffa500; text-transform: uppercase; margin-bottom: 10px; }
.section-subtitle { color: #888; margin-bottom: 60px; }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #111; padding: 40px; border: 1px solid #222; border-radius: 10px; transition: 0.3s; cursor: pointer; }
.card:hover { border-color: #ffa500; transform: translateY(-10px); }
.service-icon { height: 80px; margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.card p { color: #aaa; font-size: 0.95rem; }

/* =========================================
   3. FOOTER & FAQ
   ========================================= */
.faq-section { background: #080808; padding: 80px 20px; border-top: 1px solid #222; }
.faq-grid { max-width: 800px; margin: 40px auto; }
.faq-item { border-bottom: 1px solid #333; margin-bottom: 10px; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; color: #fff;
    padding: 20px 0; font-size: 1.1rem; font-weight: 700; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; font-family: 'Montserrat', sans-serif;
}
.faq-question:hover { color: #ffa500; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s ease-out; color: #aaa; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-toggle { transition: 0.3s; }
.faq-item.active .faq-toggle { transform: rotate(45deg); color: #ffa500; }

.mission-section { padding: 100px 50px; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.highlight-text { font-weight: 900; color: #fff; margin-top: 20px; font-size: 1.2rem; }

footer { padding: 80px 50px 20px; border-top: 2px solid #ffa500; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; text-align: left; }
.footer-col h3 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links li { margin-bottom: 10px; list-style: none; }
.footer-links a { text-decoration: none; color: #888; transition: 0.3s; }
.footer-links a:hover { color: #ffa500; padding-left: 5px; }
.contact-info li { list-style: none; display: flex; align-items: center; gap: 10px; color: #888; margin-bottom: 10px; }
.contact-info i { color: #ffa500; }
.social-row { margin-top: 20px; }
.social-row a { color: #fff; font-size: 1.2rem; margin-right: 15px; transition: 0.3s; }
.social-row a:hover { color: #ffa500; }
.footer-legal { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid #222; color: #444; font-size: 0.8rem; }

/* Global Animations */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.mobile-app-nav { display: none; }

/* =========================================
   GLOBAL CART SYSTEM (FIXED Z-INDEX)
   ========================================= */
.cart-trigger { 
    position: fixed; bottom: 100px; right: 20px; 
    background: #ffa500; color: #000; width: 60px; height: 60px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; box-shadow: 0 0 20px rgba(255,165,0,0.4); 
    z-index: 9990; cursor: pointer; transition: 0.3s; 
}
.cart-trigger:hover { transform: scale(1.1); }
.cart-count { 
    position: absolute; top: -5px; right: -5px; 
    background: #ff4444; color: #fff; font-size: 0.8rem; 
    width: 22px; height: 22px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid #000;
}

/* ✅ Z-INDEX HIERARCHY FIX */
/* 1. Overlay covers the page (20,000) */
.cart-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 20000 !important; 
    display: none; 
    backdrop-filter: blur(5px); 
}

/* 2. Drawer sits ON TOP of Overlay (20,001) */
.cart-drawer { 
    position: fixed; top: 0; right: -450px; width: 100%; max-width: 450px; 
    height: 100vh; background: #0a0a0a; 
    z-index: 20001 !important; 
    padding: 30px; 
    border-left: 1px solid #333; transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    display: flex; flex-direction: column; box-shadow: -10px 0 50px rgba(0,0,0,0.7);
}
.cart-drawer.active { right: 0; }

.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 20px; margin-bottom: 20px; }
.cart-header h2 { font-size: 1.5rem; text-transform: uppercase; color: #fff; }
.close-cart { 
    background: #111; border: 1px solid #333; color: #fff; 
    width: 44px; height: 44px; border-radius: 50%; 
    font-size: 1.2rem; cursor: pointer; display: flex; 
    align-items: center; justify-content: center; transition: 0.2s; 
}
.close-cart:hover { background: #ff4444; border-color: #ff4444; color: #fff; }
.cart-items { flex-grow: 1; overflow-y: auto; }
.cart-item { 
    background: #151515; padding: 15px; margin-bottom: 10px; 
    border-radius: 5px; display: flex; justify-content: space-between; 
    align-items: center; border: 1px solid #222; 
}
.cart-item-info h4 { font-size: 0.9rem; color: #fff; margin-bottom: 5px; }
.cart-item-price { font-size: 0.8rem; color: #ffa500; }
.remove-item { color: #888; background: none; border: none; cursor: pointer; font-size: 0.8rem; text-decoration: underline; }
.remove-item:hover { color: #ff4444; }
.cart-footer { margin-top: 20px; border-top: 1px solid #333; padding-top: 20px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 20px; }
.checkout-btn { 
    width: 100%; background: #ffa500; color: #000; border: none; 
    padding: 18px; font-weight: 900; text-transform: uppercase; 
    cursor: pointer; transition: 0.3s; font-family: 'Montserrat', sans-serif; 
    font-size: 1rem; letter-spacing: 1px;
}
.checkout-btn:hover { background: #fff; }
.checkout-btn:disabled { background: #333; color: #555; cursor: not-allowed; }

/* ====================================================================
   MOBILE APP DRAWER
   ==================================================================== */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); 
    z-index: 15000 !important; /* Higher than nav, lower than cart */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
    backdrop-filter: blur(10px);
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
.mobile-menu-links { text-align: center; display: flex; flex-direction: column; gap: 25px; }
.mobile-menu-links a { color: #fff; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; text-decoration: none; letter-spacing: 2px; transition: 0.2s; }
.mobile-menu-links a:hover { color: #ffa500; transform: scale(1.1); }
.mobile-menu-links i { margin-right: 10px; color: #555; }

/* ====================================================================
   MOBILE & TABLET OVERRIDES
   ==================================================================== */
@media screen and (max-width: 1100px) {
    .cta-small { display: none; }
    .nav-links { gap: 15px; }
}

@media screen and (max-width: 900px) {
    nav { 
        display: flex !important; justify-content: center !important; 
        padding: 10px !important; background: #000 !important; 
        height: 70px !important;
    }
    .nav-links, .nav-socials { display: none !important; }
    
    .nav-logo-img { height: 35px !important; width: auto !important; max-width: 120px !important; }

    #hero-logo-mobile { max-width: 200px !important; width: 60% !important; height: auto !important; margin-top: 40px !important; }
    .hero-content h1 { font-size: 2rem !important; }
    .hero-section { padding-top: 120px !important; }
    
    .about-header, .media-header, .web-header, .ai-header, .contact-container, .alacarte-header {
        padding-top: 120px !important; padding-left: 20px !important; padding-right: 20px !important;
    }
    .about-header h1, .media-header h1, .web-header h1, .ai-header h1, .alacarte-header h1 { font-size: 2.2rem !important; }
    
    footer { padding: 40px 20px !important; padding-bottom: 140px !important; }
    .footer-grid { grid-template-columns: 1fr !important; text-align: center !important; }
    .social-row { justify-content: center !important; display: flex !important; }
    
    .grid-layout, .values-grid, .ai-grid, .process-grid, .gallery-grid, .contact-container, .founder-grid, .menu-grid { 
        display: grid !important; grid-template-columns: 1fr !important; 
        gap: 40px !important; width: 100% !important;
    }

    /* 5. FLOATING APP NAVIGATION */
    .mobile-app-nav {
        display: flex !important; justify-content: space-around !important; 
        align-items: center !important;
        position: fixed !important; bottom: 25px !important; 
        left: 50% !important; transform: translateX(-50%) !important;
        width: 90% !important; max-width: 400px !important; height: 65px !important;
        background-color: rgba(10, 10, 10, 0.95) !important; 
        border: 1px solid #333 !important; border-radius: 50px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        backdrop-filter: blur(10px) !important; 
        z-index: 1000 !important; /* Keep above page content, but below cart */
    }
    
    .mobile-nav-item { 
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-decoration: none; color: #888; font-size: 0.65rem; font-weight: 600;
        width: 20% !important; 
    }
    .mobile-nav-item i { font-size: 1.2rem; margin-bottom: 4px; color: #fff; transition: 0.3s; }
    .mobile-nav-item:hover i, .mobile-nav-item:active i { color: #ffa500; transform: translateY(-2px); }
    .mobile-nav-item:hover span { color: #fff; }
}

@media screen and (max-width: 600px) {
    .cart-drawer { width: 100%; max-width: 100%; }
    .cart-trigger { bottom: 110px; right: 20px; }
}

.header-cart-btn.cart-filled {
    color: #ffa500 !important; text-shadow: 0 0 10px rgba(255, 165, 0, 0.6); transform: scale(1.1);
}

/* --- PRICING SECTION STYLES --- */
.pricing-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: 0.4s ease;
}

.pricing-card.featured {
    border-color: var(--accent-color);
    background: rgba(0, 212, 255, 0.05);
    transform: scale(1.05);
    z-index: 2;
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #000;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tier-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.features li strong {
    color: #fff;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #000;
}