/* ==========================================================================
   Nuqta Text - Professional Header Stylesheet (Final Fix)
   ========================================================================== */

/* --- 1. إعدادات الشريط العلوي (Navbar Base) --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 75px; 
    z-index: 2000; /* طبقة عالية جداً */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 9, 11, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.nav-container {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* --- 2. تصميم الشعار (Logo Styling) --- */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 2002; /* فوق القائمة المنسدلة */
    position: relative;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(74, 124, 89, 0.2));
    transition: transform 0.3s ease;
}

.brand-logo:hover .logo-img {
    transform: scale(1.05) rotate(-5deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-text .company {
    font-size: 0.8rem;
    color: #a1a1aa;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-text .product {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}
.brand-text .product::after {
    content: '.'; color: var(--primary);
}

/* --- 3. روابط القائمة (Desktop) --- */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-links a {
    color: #a1a1aa;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, 
.nav-links a.active { color: #fff; }

.nav-links a i {
    font-size: 1.1rem;
    color: var(--primary);
    transition: 0.3s;
}
.nav-links a:hover i { transform: translateY(-2px); }

.nav-links a.active::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 100%; height: 2px;
    background: var(--primary);
    box-shadow: 0 -2px 8px var(--primary-glow);
}

/* --- 4. زر الهامبرغر (مهم جداً) --- */
.hamburger-menu {
    display: none; /* مخفي في الديسكتوب */
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2005; /* !!! أعلى رقم لضمان الضغط عليه !!! */
    padding: 10px; /* مساحة ضغط مريحة */
    position: relative;
}

/* =========================================
   5. الموبايل والتابلت (Responsive Design)
   ========================================= */
@media (max-width: 900px) {
    
    .hamburger-menu { display: block; }
    
    .hamburger-menu.active { 
        color: var(--primary); 
        transform: rotate(90deg); 
        transition: 0.3s;
    }

    /* --- القائمة المنسدلة (Overlay) --- */
    .nav-menu-wrapper {
        position: fixed;
        top: 0; right: 0;
        width: 100%;
        height: 100vh;
        background: #09090b; /* خلفية سوداء صلبة */
        background-image: radial-gradient(circle at top right, #1a1a1c 0%, #09090b 40%);
        
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        transform: translateX(100%); /* مخفية يميناً */
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2001; /* تحت الزر والشعار */
    }

    /* عند الفتح */
    .nav-menu-wrapper.active {
        transform: translateX(0);
        opacity: 1;
    }

    /* تنسيق الروابط داخل الموبايل */
    .nav-links {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        width: 100%;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease;
    }
    
    .nav-menu-wrapper.active .nav-links li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
    .nav-menu-wrapper.active .nav-links li:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
    .nav-menu-wrapper.active .nav-links li:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

    .nav-links a {
        font-size: 1.4rem;
        justify-content: center;
        padding: 15px;
        border-radius: 12px;
        background: rgba(255,255,255,0.03);
        width: 80%;
        margin: 0 auto;
    }

    .nav-links a.active {
        background: rgba(74, 124, 89, 0.15);
        color: var(--primary);
        border: 1px solid rgba(74, 124, 89, 0.3);
    }
    
    .nav-links a.active::after { display: none; }
}