/* ============================================
   AVGOON HEADER - Enterprise Design
   Brand-Colored Mobile Menu
   ============================================ */

.avgoon-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    font-family: 'Estedad', 'Vazirmatn', system-ui, -apple-system, sans-serif;
    direction: rtl;
}

.avgoon-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.avgoon-header *,
.avgoon-header *::before,
.avgoon-header *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==================== TOP GRADIENT LINE ==================== */
.avgoon-header-topline {
    height: 3px;
    background: linear-gradient(to left, 
        transparent 0%, 
        #3A4599 30%, 
        #6C63FF 70%, 
        transparent 100%);
}

/* ==================== INNER CONTAINER ==================== */
.avgoon-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    gap: 32px;
}

/* ==================== LOGO ==================== */
.avgoon-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.avgoon-header-logo:hover {
    opacity: 0.85;
}

.avgoon-header-logo-img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s;
}

.avgoon-header-logo:hover .avgoon-header-logo-img {
    transform: scale(1.05);
}

.avgoon-header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.avgoon-header-logo-title {
    font-size: 17px;
    font-weight: 900;
    color: #0F172A;
}

.avgoon-header-logo-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: #3A4599;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==================== DESKTOP NAVIGATION ==================== */
.avgoon-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.avgoon-header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.avgoon-header-nav-link i {
    font-size: 15px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.avgoon-header-nav-link:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.avgoon-header-nav-link:hover i {
    opacity: 1;
    color: #3A4599;
}

.avgoon-header-nav-link.active {
    background: rgba(58, 69, 153, 0.08);
    color: #3A4599;
    font-weight: 600;
}

.avgoon-header-nav-link.active i {
    opacity: 1;
    color: #3A4599;
}

.avgoon-header-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #3A4599;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(58, 69, 153, 0.5);
}

/* ==================== HEADER ACTIONS ==================== */
.avgoon-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.avgoon-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Estedad', 'Vazirmatn', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.avgoon-header-btn-primary {
    background: #3A4599;
    color: #fff;
    border-color: #3A4599;
    box-shadow: 0 4px 12px rgba(58, 69, 153, 0.3);
}

.avgoon-header-btn-primary:hover {
    background: #1E2466;
    border-color: #1E2466;
    box-shadow: 0 6px 20px rgba(58, 69, 153, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.avgoon-header-btn-outline {
    background: transparent;
    color: #3A4599;
    border-color: #3A4599;
}

.avgoon-header-btn-outline:hover {
    background: #3A4599;
    color: #fff;
    transform: translateY(-2px);
}

.avgoon-header-btn i {
    font-size: 16px;
}

/* ==================== MOBILE TOGGLE BUTTON ==================== */
.avgoon-header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.avgoon-header-burger span {
    display: block;
    height: 2px;
    background: #0F172A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.avgoon-header-burger:hover {
    border-color: #3A4599;
}

.avgoon-header-burger.active {
    border-color: #3A4599;
    background: #3A4599;
}

.avgoon-header-burger.active span {
    background: #fff;
}

.avgoon-header-burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.avgoon-header-burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.avgoon-header-burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================== MOBILE MENU - BRAND COLOR ==================== */
.avgoon-header-mobile {
    display: none;
    position: fixed;
    top: 81px;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg, #1E2466 0%, #2A3577 40%, #3A4599 100%);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
}

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

.avgoon-header-mobile-inner {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mobile Menu Links */
.avgoon-header-mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    font-family: 'Estedad', 'Vazirmatn', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avgoon-header-mobile-link i {
    width: 28px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.3s ease;
}

.avgoon-header-mobile-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

.avgoon-header-mobile-link:hover i {
    color: #fff;
    transform: scale(1.1);
}

.avgoon-header-mobile-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.2);
}

.avgoon-header-mobile-link.active i {
    color: #fff;
}

/* Mobile Divider */
.avgoon-header-mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Mobile Footer */
.avgoon-header-mobile-footer {
    padding: 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.avgoon-header-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.avgoon-header-mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    direction: ltr;
    text-align: left;
}

.avgoon-header-mobile-contact-item i {
    width: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
    .avgoon-header-nav {
        display: none;
    }
    
    .avgoon-header-burger {
        display: flex;
    }
    
    .avgoon-header-mobile {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .avgoon-header-inner {
        height: 68px;
        padding: 0 20px;
        gap: 16px;
    }
    
    .avgoon-header-mobile {
        top: 71px;
    }
    
    .avgoon-header-logo-title {
        font-size: 15px;
    }
    
    .avgoon-header-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .avgoon-header-btn span {
        display: none;
    }
    
    .avgoon-header-btn {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .avgoon-header-inner {
        padding: 0 16px;
        gap: 12px;
    }
    
    .avgoon-header-logo-subtitle {
        display: none;
    }
}

/* Body class when menu is open */
body.avgoon-menu-open {
    overflow: hidden;
}