/* ==========================================
   MOBILE HEADER FIX - Load this CSS file LAST
   Add this line to your HTML after all other CSS files:
   <link rel="stylesheet" href="css/mobile-header-fix.css">
   ========================================== */

/* Mobile devices only */
@media (max-width: 768px) {
    
    /* FORCE HEADER TO BE VISIBLE AT ALL TIMES */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 70px !important;
        background-color: rgba(10, 10, 15, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
        z-index: 9999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header.scrolled {
        background-color: rgba(10, 10, 15, 0.98) !important;
    }
    
    /* Container inside header */
    .header .container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 70px !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* Navigation bar */
    .header .nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 70px !important;
        width: 100% !important;
    }
    
    /* Logo - always visible */
    .header .logo {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        z-index: 10000 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header .logo-icon {
        display: block !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .header .logo-text {
        display: inline !important;
        color: rgba(0, 245, 212, 1);
        font-size: 1.5rem !important;
        font-weight: 800 !important;
    }
    
    .header .logo-ai {
        color: #ffffff !important;
    }
    
    /* Navigation actions */
    .header .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        z-index: 10000 !important;
    }
    
    /* Hamburger menu button - always visible */
    .header .nav-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: 28px !important;
        padding: 4px 0 !important;
        cursor: pointer !important;
        z-index: 10000 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header .nav-toggle span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: #ffffff !important;
        border-radius: 10px !important;
    }
    
    /* Mobile menu overlay */
    .header .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(10, 10, 15, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        z-index: 9998 !important;
    }
    
    .header .nav-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .header .nav-link {
        color: #ffffff !important;
        font-size: 1.5rem !important;
        text-decoration: none !important;
    }
    
    /* Hide desktop CTA button on mobile */
    .header .nav-actions .btn {
        display: none !important;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        background-color: rgba(10, 10, 15, 0.85) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    .header.scrolled {
        background-color: rgba(10, 10, 15, 0.95) !important;
    }
}
