/* شريط التنقل الأساسي */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* تأثير عند التمرير */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* حاوي شريط التنقل */
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* الشعار */
.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

/* قائمة التنقل */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* إخفاء عنصر اللغة المتنقل على الشاشات الكبيرة */
.mobile-lang-item {
    display: none;
}

/* عناصر القائمة */
.nav-item {
    position: relative;
}

.nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* تأثيرات الهوفر */
.nav-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* خط تحت الرابط عند الهوفر */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 80%;
}

/* تأثير موجة عند النقر */
.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.nav-link:active::after {
    width: 200px;
    height: 200px;
}

/* زر تبديل اللغة */
.language-toggle {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.language-toggle:active {
    transform: translateY(0) scale(0.98);
}

/* تأثير لمعان على زر اللغة */
.language-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.language-toggle:hover::before {
    left: 100%;
}

/* قائمة الهامبرغر للشاشات الصغيرة */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 2.5rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navbar-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: 1rem;
        text-align: center;
    }
    
    /* إخفاء زر اللغة للسطح المكتب على الموبايل */
    .desktop-lang-toggle {
        display: none;
    }
    
    /* عرض عنصر اللغة في القائمة المتنقلة */
    .mobile-lang-item {
        display: block;
    }
    
    .mobile-language-toggle {
        width: 100%;
        background: #3b82f6;
        color: white;
        border: none;
        padding: 1rem;
        font-size: 1.125rem;
        text-align: center;
    }
}

/* تأثيرات إضافية للحركة */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: fadeInDown 0.6s ease;
}

/* تأثير النبض للعناصر النشطة */
.nav-link.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* تأثير التدرج المتحرك */
.navbar-brand {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}