/* ==========================================
   HEADER - ULTRA PRO ENGINEERING UI
   ========================================== */

:root {
    --nav-surface-dark: rgba(11, 18, 28, 0.65); /* Highly transparent for glass effect */
    --nav-border-color: rgba(44, 150, 234, 0.15);
    --tech-accent: #2C96EA; 
    --text-primary: #F4F5F7;
    --text-secondary: #9BA3AE;
    --whatsapp-green: #25D366;
    --motion-fluid: 0.5s cubic-bezier(0.25, 1, 0.3, 1); /* Elegant easing */
}

/* Base Header Styles */
.site-header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    z-index: 1000;
    background-color: var(--nav-surface-dark);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--nav-border-color); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform var(--motion-fluid), background-color var(--motion-fluid);
}

/* Dynamic Ambient Glow Source */
.header-ambient-glow {
    position: absolute;
    top: -100px; 
    left: 5%;
    width: 300px; 
    height: 300px;
    background: radial-gradient(circle, rgba(44, 150, 234, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    animation: slowDrift 12s infinite alternate ease-in-out;
}

@keyframes slowDrift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(40vw, 20px) scale(1.2); opacity: 0.7; }
    100% { transform: translate(70vw, -10px) scale(0.9); opacity: 0.4; }
}

.nav-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    height: 85px; 
    max-width: 1400px; /* Wider max-width for modern displays */
    margin: 0 auto; 
    padding: 0 40px;
    position: relative; 
    z-index: 2;
}

/* ==========================================
   BRAND LOGO & TYPOGRAPHY (ULTRA PRO)
   ========================================== */

/* Brand Cluster (Logo + Text) */
.brand-cluster { 
    display: flex; 
    align-items: center; 
    gap: 15px; /* Precision spacing between orb and text */
}

/* Circular Logo Fit */
.brand-orb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    overflow: hidden;
    border-radius: 50%;

    background: #F5F7FA;
    border: 1px solid rgba(76, 169, 245, 0.45);

    box-shadow:
        0 0 0 3px rgba(76, 169, 245, 0.06),
        0 0 14px rgba(44, 150, 234, 0.10);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.brand-link:hover .brand-orb {
    border-color: #4CA9F5;
    box-shadow:
        0 0 0 3px rgba(76, 169, 245, 0.10),
        0 0 25px rgba(44, 150, 234, 0.3);
    transform: rotate(10deg) scale(1.05);
}

/* Logo image */
.brand-mark {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 3px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}

/* --- THE NEW PRO BRAND TEXT --- */
.brand-text-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sleek Tech Line separating Logo and Text */
.brand-divider {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(44, 150, 234, 0.5), transparent);
}

/* Premium Typography for A ENGINEERING */
.brand-typography {
    font-family: 'Oswald', sans-serif; /* Industrial/Tech font */
    font-size: 1.4rem; /* Larger, authoritative size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* Silver/Cyan Metallic Gradient */
    background: linear-gradient(90deg, #FFFFFF 0%, #A0B3C6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Sharp text drop-shadow to separate from dark background */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    transition: filter 0.3s ease;
}

.brand-link:hover + .brand-text-container .brand-typography,
.brand-typography:hover {
    filter: drop-shadow(0 0 10px rgba(44, 150, 234, 0.5)); /* Hover Glow */
}


/* ==========================================
   NAVIGATION SYSTEM (DESKTOP)
   ========================================== */
.drawer-header { display: none; } 

.nav-list {
    display: flex; 
    gap: 40px;
    list-style: none; 
    margin: 0; 
    padding: 0;
}

.nav-link {
    color: var(--text-primary); 
    font-family: 'Inter', sans-serif;
    font-weight: 500; 
    font-size: 0.95rem; 
    text-decoration: none;
    letter-spacing: 0.5px; 
    padding: 32px 0; /* Matches nav height for full hit area */
    position: relative; 
    white-space: nowrap; 
    transition: color 0.3s ease;
}

/* Engineered Desktop Indicator */
.nav-link::after {
    content: ''; 
    position: absolute; 
    bottom: -1px; 
    left: 50%;
    transform: translateX(-50%); 
    width: 0%; 
    height: 3px;
    background-color: var(--tech-accent);
    box-shadow: 0 -3px 12px rgba(44, 150, 234, 0.6);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Slight bounce */
    border-radius: 2px 2px 0 0;
}

.nav-link:hover, .nav-link.active { color: var(--tech-accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Action Cluster (CTA & Toggle) */
.action-cluster { display: flex; align-items: center; }

/* Desktop CTA */
.btn-nav-cta {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    background-color: rgba(37, 211, 102, 0.05); 
    color: var(--whatsapp-green); 
    padding: 12px 24px; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.85rem; 
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    border-radius: 4px; 
    border: 1px solid rgba(37, 211, 102, 0.3); 
    text-decoration: none; 
    white-space: nowrap;
    transition: var(--motion-fluid);
}

.btn-nav-cta:hover {
    background-color: var(--whatsapp-green); 
    color: #05080D;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
    transform: translateY(-2px); 
    border-color: var(--whatsapp-green);
}

.mobile-toggle-btn { display: none; }
.ui-overlay { display: none; }

/* ==========================================
   MOBILE UX: MINIMAL TOP BAR & SLIDE DRAWER
   ========================================== */
@media (max-width: 1024px) {
    
    /* 1. Ultra-Clean Minimal Top Bar Focus */
    .nav-container { 
        height: 70px; 
        padding: 0 20px; 
    }
    
    /* Brand Logo adjustments for mobile */
    .brand-orb {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    
    .brand-typography {
        font-size: 1.15rem; /* Scaled perfectly for mobile */
        letter-spacing: 1.5px;
    }
    
    .brand-divider {
        height: 20px;
        gap: 10px;
    }
    
    /* STRICTLY hide non-essentials on mobile top bar */
    .btn-nav-cta { 
        display: none !important; 
    }
    
    /* Mobile Toggle Button Style */
    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        font-size: 1.5rem; 
        color: var(--text-primary); 
        cursor: pointer; 
        transition: color 0.3s ease;
    }
    
    .mobile-toggle-btn:hover { 
        color: var(--tech-accent); 
    }

    /* Dramatic UI Overlay - Fix Z-index */
    .ui-overlay {
        display: block; 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100vw; 
        height: 100vh;
        background: rgba(5, 8, 13, 0.8); 
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999; /* Under drawer, over content */
        opacity: 0; 
        pointer-events: none;
        transition: opacity var(--motion-fluid);
    }
    
    .ui-overlay.active { 
        opacity: 1; 
        pointer-events: all; 
    }

    /* Professional Slide Drawer */
    .navigation-system {
        position: fixed; 
        top: 0; 
        right: -100%; /* Hide completely off-screen */
        width: 100%; 
        max-width: 320px; 
        height: 100vh;
        background-color: #080D14; /* Solid dark background */
        box-shadow: -20px 0 50px rgba(0,0,0,0.5);
        z-index: 1002; 
        display: flex;
        flex-direction: column; 
        padding: 0; 
        transition: right var(--motion-fluid);
    }
    
    .navigation-system.active { 
        right: 0; 
    }

    /* Drawer Header */
    .drawer-header {
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        width: 100%;
        padding: 30px;
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        margin-bottom: 20px;
    }
    
    .drawer-label { 
        font-family: 'Inter', sans-serif; 
        font-size: 0.8rem; 
        color: var(--text-secondary); 
        text-transform: uppercase; 
        letter-spacing: 3px; 
        font-weight: 700; 
    }
    
    .drawer-close-btn { 
        background: none; 
        border: none; 
        color: var(--text-primary); 
        font-size: 1.5rem; 
        cursor: pointer; 
        transition: color 0.3s ease; 
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    
    .drawer-close-btn:hover { 
        color: var(--tech-accent); 
    }

    /* Mobile Nav Links */
    .nav-list { 
        flex-direction: column; 
        width: 100%; 
        gap: 5px; 
        padding: 0 20px;
    }
    
    .nav-link {
        display: block; 
        padding: 16px 20px; 
        font-size: 1.1rem; 
        border-radius: 6px;
        border-left: 3px solid transparent; /* Indicator base */
    }
    
    /* Fix Mobile Indicator */
    .nav-link::after { 
        display: none !important; 
    } 

    /* Mobile Active State */
    .nav-link:hover, .nav-link.active {
        background: rgba(44, 150, 234, 0.08); 
        color: var(--tech-accent);
        border-left: 3px solid var(--tech-accent); 
    }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .brand-cluster { gap: 10px; }
    .brand-typography { font-size: 1rem; letter-spacing: 1px; }
    .brand-divider { height: 16px; }
}