/* =========================================
   HEADER STYLES
========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 86px; /* متناسق مع padding السكاشن بتاعتك */
}

.main-header .logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--pure-white);
    text-decoration: none;
    letter-spacing: 1px;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-orange);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0; /* right بدل left عشان الاتجاه عربي */
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.header-cta {
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    background: linear-gradient(90deg, #ff5722 0%, #ff9800 100%);
    color: var(--pure-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--pure-white);
    cursor: pointer;
}

/* =========================================
   RESPONSIVE HEADER & FOOTER
========================================= */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .main-nav, .header-cta {
        display: none; /* إخفاء المنيو في الموبايل لحد ما تعملها بالـ JS */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        text-align: center;
    }
    
    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-col ul li {
        justify-content: center;
    }
    
    .brand-col p {
        margin: 0 auto 25px;
    }
}


/* الإعدادات الأساسية */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
}

.hamburger {
    display: none; /* مخفي في الديسكتوب */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.4s;
    border-radius: 3px;
}

/* شاشات الموبايل (أقل من 768px) */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* يظهر هنا */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%; /* المنيو مخفية بره الشاشة على اليمين */
        top: 0;
        flex-direction: column;
        background: rgba(13, 2, 3, 0.98); /* نفس روح ألوان الـ Hero */
        width: 70%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0; /* المنيو تظهر */
    }

    /* حركة التحويل لعلامة X عند الضغط */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}