/* navbar.css */
.header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    white-space: nowrap;
}

.logo i {
    margin-right: 10px;
    color: var(--primary-color);
}

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

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--gray-medium);
    border-radius: 20px;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-left: 20px;
    white-space: nowrap;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links,
    .language-switcher,
    .whatsapp-btn {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .navbar {
        padding: 0 15px;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-medium);
}

.menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.mobile-menu-links li {
    margin-bottom: 15px;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-size: 1.1rem;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: var(--gray-light);
    color: var(--primary-color);
}

.mobile-language-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* أنماط شريط التنقل للموبايل */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6a11cb;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        width: 250px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px;
        width: 100%;
    }
    
    .overlay {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 998;
    }
    
    .overlay.active {
        display: block;
    }
}

/* أنماط شريط التنقل للموبايل */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6a11cb;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
        order: 2;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 0 0 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .language-switcher {
        display: flex;
        margin: 20px 0;
        justify-content: center;
    }
    
    .whatsapp-btn {
        margin-top: 20px;
        width: 80%;
        justify-content: center;
    }
}

/* أنماط القائمة المتنقلة */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #6a11cb;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
}

/* طبقة التعتيم */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* استجابة للشاشات الصغيرة */
@media only screen and (max-width: 992px) {
    .mobile-menu-btn {
        display: block !important; /* إجبار الظهور */
    }
    
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -300px !important; /* خارج الشاشة */
        width: 280px !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 80px 20px 30px !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15) !important;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        z-index: 999 !important;
        margin: 0 !important;
        display: flex !important;
    }
    
    .nav-links.active {
        right: 0 !important; /* داخل الشاشة */
    }
    
    .nav-links li {
        margin: 0 0 15px 0 !important;
        width: 100% !important;
    }
    
    .nav-links a {
        display: block !important;
        padding: 15px 20px !important;
        width: 100% !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
        transition: all 0.3s !important;
        border: none !important;
        text-align: right !important;
    }
    
    .nav-links a:hover {
        background: #f8f9fa !important;
        transform: translateX(-5px) !important;
    }
    
    .nav-links a.active {
        background: #6a11cb !important;
        color: white !important;
    }
    
    /* إخفاء زر واتساب في الموبايل إذا كان يأخذ مساحة */
    .whatsapp-btn {
        margin-left: auto !important;
    }
}

@media only screen and (max-width: 480px) {
    .nav-links {
        width: 85% !important;
    }
}

/* تحديث القائمة */
.nav-links li:nth-child(3)::after {
    content: "عرض خاص";
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 5px;
}