/* ==========================================================================
   ALUPRO ARCHITECTURAL SYSTEM - STYLESHEET (KHATER STYLE - FAST & RESPONSIVE)
   ========================================================================== */

:root {
    --primary: #111111;             
    --primary-hover: #0056b3;       
    --primary-glow: rgba(0, 86, 179, 0.12);
    --accent-bronze: #b89768;       

    --bg-main: #ffffff;            
    --bg-surface: #f8f9fa;         
    --bg-surface-hover: #ffffff;   
    --bg-header: rgba(255, 255, 255, 0.95); 
    
    --text-primary: #111111;       
    --text-secondary: #555555;     
    --text-inverse: #ffffff;       

    --border-subtle: #e2e8f0;     
    --border-accent: #111111;     

    --radius-sm: 4px;
    --radius-md: 8px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Glassmorphic Header */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

header.scrolled {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Desktop Navigation */
@media (min-width: 993px) {
    nav ul li.dropdown { position: static; }

    nav ul li.dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 20px;
        display: block;
    }

    nav ul li.dropdown:hover > .dropdown-menu { display: flex !important; }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 95%;
        max-width: 1150px;
        margin: 0 auto;
        background-color: #ffffff;
        border: 1px solid var(--border-subtle);
        padding: 0;
        z-index: 100000;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        border-radius: var(--radius-md);
        overflow: hidden;
        min-height: 420px;
        flex-direction: row;
    }

    .mega-sidebar {
        width: 280px;
        background-color: var(--bg-surface);
        border-right: 1px solid var(--border-subtle);
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
    }

    .mega-tab-btn {
        padding: 15px 20px;
        color: var(--text-secondary);
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        border-bottom: 1px solid var(--border-subtle);
        transition: var(--transition-fast);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .mega-tab-btn:hover, .mega-tab-btn.active {
        background-color: #ffffff;
        color: var(--primary-hover);
        padding-left: 24px;
    }

    .mega-content-area {
        flex: 1;
        padding: 25px 30px;
        background-color: #ffffff;
        overflow-y: auto;
    }

    .mega-tab-content { display: none; height: 100%; flex-direction: column; }
    .mega-tab-content.active { display: flex; }

    .mega-tab-header {
        font-size: 16px;
        color: var(--primary);
        font-weight: 800;
        margin-bottom: 20px;
        border-bottom: 2px solid var(--primary);
        padding-bottom: 10px;
    }

    .mega-sub-group { margin-bottom: 20px; }
    .mega-sub-title {
        font-size: 11px;
        color: var(--text-secondary);
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .mega-systems-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .system-item-card {
        background-color: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-sm);
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        transition: var(--transition-fast);
    }

    .system-item-card span { color: var(--text-primary); font-size: 12px; font-weight: 600; }
    .system-item-thumb { width: 42px; height: 32px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border-subtle); }
    .system-item-card:hover { background-color: #ffffff; border-color: var(--primary-hover); transform: translateY(-2px); }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .header-socials, .btn-quote-header { display: none !important; }

    nav#navMenu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: #ffffff;
        transition: left 0.25s ease-in-out;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        z-index: 99999;
    }

    nav#navMenu.active { left: 0; }

    nav#navMenu ul {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100%;
    }

    nav#navMenu ul li { width: 100%; border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; }

    .dropdown-menu { display: none !important; position: relative; width: 100%; box-shadow: none; border: none; min-height: auto; flex-direction: column; }
    nav ul li.dropdown.active .dropdown-menu { display: flex !important; }

    .mega-sidebar { width: 100%; border-right: none; background: transparent; }
    .mega-tab-btn { padding: 10px 0; font-size: 13px; }
    .mega-content-area { padding: 10px 0; }
    .mega-tab-content { display: none !important; }
    .mega-tab-content.active { display: flex !important; }
}

/* Live Counters & Stats */
.stats-section {
    background-color: var(--bg-surface);
    padding: 60px 20px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition-fast);
}

.stat-card:hover { border-color: var(--primary-hover); transform: translateY(-4px); }

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* HIGH-SPEED SCROLL REVEAL ANIMATION */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}