/* Modern Header Styles */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Top Bar */
.header-top-bar {
    background: linear-gradient(135deg, #f58613 0%, #36a03cc7 100%);
    padding: 10px 0;
    color: #ffffff;
}

.header-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.contact-item {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 16px;
}

.header-social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: translateY(-3px) scale(1.1);
}

/* Main Navigation */
.main-navigation {
    background: #ffffff;
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-logo .logo-link {
    display: block;
}

.logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-menu-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1e3c72;
    background: #f8f9fa;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #1e3c72;
    padding-left: 25px;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f58615;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    color: #ffffff;
}

.btn-contact i {
    font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    padding: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .mobile-menu-content {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

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

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f1f3f5;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: #f8f9fa;
    color: #1e3c72;
    padding-left: 25px;
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-item.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-submenu li a:hover {
    background: #e9ecef;
    color: #1e3c72;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-contact-mobile {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
    .header-top-bar {
        display: none;
    }

    .nav-menu-wrapper {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-contact {
        display: none;
    }

    .nav-wrapper {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        padding: 12px 0;
    }

    .logo-img {
        height: 40px;
    }
}

/* RTL Support */
[dir="rtl"] .header-contact-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-social-links {
    justify-content: flex-start;
}

[dir="rtl"] .nav-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .mobile-menu-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .mobile-submenu li a {
    padding-right: 40px;
    padding-left: 20px;
}

