/* Enhanced Unified Navbar Styles */
.navbar-unified {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar-unified.transparent {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-unified.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-unified.scrolled .navbar-logo {
    transform: scale(1.05);
}

.navbar-unified.scrolled .navbar-title {
    color: #1e40af;
}

.navbar-unified.scrolled .navbar-subtitle {
    color: #64748b;
}

.navbar-unified.scrolled .navbar-link {
    color: #1f2937;
}

.navbar-unified.scrolled .navbar-link:hover {
    color: #1d4ed8;
}

/* Enhanced Logo and Title */
.navbar-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.navbar-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

/* Enhanced Navigation Links */
.navbar-link {
    position: relative;
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.navbar-link:hover {
    color: white;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-link::after {
    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%);
}

.navbar-link:hover::after {
    width: 80%;
}


/* Mobile Menu Button */
.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-menu-btn.scrolled {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.mobile-menu-btn.scrolled:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

.mobile-menu.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-link {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    margin: 4px 8px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.mobile-menu-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    transform: translateX(8px);
}

.mobile-menu-link.cta {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-align: center;
    margin: 8px;
}

.mobile-menu-link.cta:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateX(0) scale(1.02);
}

/* Enhanced Animations */
@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-unified.animate-in {
    animation: navbarFadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-title {
        font-size: 1.125rem;
    }
    
    .navbar-subtitle {
        font-size: 0.75rem;
    }
    
    .navbar-logo {
        width: 40px;
        height: 40px;
    }
}

/* RTL Support */
[dir="rtl"] .navbar-link::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .mobile-menu-link:hover {
    transform: translateX(-8px);
}

/* Accessibility */
.navbar-link:focus,
.mobile-menu-link:focus,
.navbar-cta:focus,
.mobile-menu-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .navbar-unified,
    .navbar-link,
    .navbar-cta,
    .mobile-menu-btn,
    .mobile-menu {
        transition: none;
    }
    
    .navbar-unified.animate-in {
        animation: none;
    }
}
