/* ARMCYBERSEC Executive Header & Navigation */

.main-header {
    height: 82px;
    background: rgba(7, 13, 19, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: height 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.main-header.scrolled {
    height: 72px;
    background: rgba(6, 11, 17, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.main-header .container {
    gap: 24px;
}

.main-header .logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.main-header .main-logo {
    height: 54px;
    width: 54px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(40, 147, 110, 0.28));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.main-header.scrolled .main-logo {
    height: 48px;
    width: 48px;
}

.main-header .logo a:hover .main-logo {
    transform: scale(1.04);
    filter: drop-shadow(0 0 18px rgba(56, 189, 142, 0.42));
}

/* Center executive navigation rail */
.main-header .main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    margin: 0;
    background: rgba(14, 24, 34, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 20px rgba(0, 0, 0, 0.22);
}

.main-header .main-nav li {
    list-style: none;
    margin: 0;
}

.main-header .main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 15px;
    border-radius: 7px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #95a4b3;
    text-shadow: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.main-header .main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #36c493;
    box-shadow: 0 0 8px rgba(54, 196, 147, 0.55);
    transform: translateX(-50%);
    transition: width 0.22s ease, opacity 0.22s ease;
    opacity: 0;
}

.main-header .main-nav a:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.055);
    text-shadow: none;
}

.main-header .main-nav a:hover::after {
    width: 0;
    opacity: 0;
}

.main-header .main-nav a.active {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(40, 147, 110, 0.22) 0%, rgba(40, 147, 110, 0.09) 100%);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 142, 0.28);
    text-shadow: none;
}

.main-header .main-nav a.active::after {
    width: 20px;
    opacity: 1;
}

/* Refined Partners badge (replaces loud glowing neon pill) */
.main-header .main-nav .nav-partners {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.main-header .nav-new-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(40, 147, 110, 0.14);
    border: 1px solid rgba(56, 189, 142, 0.34);
    color: #4ad3a3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
    box-shadow: none;
    animation: none;
}

/* Refined Academy link (replaces neon magenta) */
.main-header .main-nav a.academy-link {
    color: #b4c5d4 !important;
    font-weight: 500 !important;
}

.main-header .main-nav a.academy-link .nav-ext-icon {
    width: 11px;
    height: 11px;
    opacity: 0.62;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex: 0 0 11px;
}

.main-header .main-nav a.academy-link:hover {
    color: #4ad3a3 !important;
    background: rgba(40, 147, 110, 0.10);
}

.main-header .main-nav a.academy-link:hover .nav-ext-icon {
    opacity: 1;
    transform: translate(1.5px, -1.5px);
}

/* Right actions — uniform 40px height */
.main-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header .lang-current {
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 24, 34, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    color: #dbe4ed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.main-header .lang-current .lang-code {
    line-height: 1;
    color: #d6e0ea;
}

.main-header .lang-current i {
    font-size: 9px;
    color: #7d8e9e;
    transition: transform 0.2s ease, color 0.2s ease;
}

.main-header .lang-dropdown:hover .lang-current {
    border-color: rgba(56, 189, 142, 0.42);
    background: rgba(40, 147, 110, 0.09);
}

.main-header .lang-dropdown:hover .lang-current i {
    transform: rotate(180deg);
    color: #4ad3a3;
}

.main-header .lang-list {
    top: calc(100% + 8px);
    min-width: 116px;
    background: #0c1620;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58);
}

.main-header .lang-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9aa9b8;
}

.main-header .lang-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.main-header .lang-list a.active {
    background: rgba(40, 147, 110, 0.14);
    color: #4ad3a3;
}

/* Solid executive CTA button */
.main-header .header-actions .btn.btn-primary {
    height: 40px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    background: linear-gradient(180deg, #279972 0%, #1d7a5b 100%);
    border: 1px solid rgba(74, 211, 163, 0.34);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 18px rgba(24, 130, 94, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.main-header .header-actions .btn.btn-primary:hover {
    background: linear-gradient(180deg, #2db083 0%, #218c68 100%);
    border-color: rgba(94, 232, 184, 0.50);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px rgba(24, 130, 94, 0.36);
}

.main-header .header-actions .btn.btn-primary::before,
.main-header .header-actions .btn.btn-primary::after {
    display: none;
}

/* Tablet tightening */
@media (max-width: 1180px) {
    .main-header .main-nav a {
        padding: 0 12px;
        font-size: 13px;
    }
    .main-header .header-actions .btn.btn-primary {
        padding: 0 16px;
        font-size: 12px;
    }
}

/* Mobile executive drawer */
@media (max-width: 1024px) {
    .main-header,
    .main-header.scrolled {
        height: 68px;
    }

    .main-header .main-logo,
    .main-header.scrolled .main-logo {
        height: 44px;
        width: 44px;
    }

    .main-header .main-nav {
        background: rgba(7, 13, 19, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 20px 20px 26px;
    }

    .main-header .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .main-header .main-nav a {
        width: 100%;
        height: 44px;
        padding: 0 14px;
        border-radius: 8px;
        font-size: 14.5px;
        font-weight: 600;
        letter-spacing: 0.01em;
        text-transform: none;
        color: #b4c1ce;
    }

    .main-header .main-nav a::before,
    .main-header .main-nav a::after {
        display: none;
        content: none;
    }

    .main-header .main-nav a:hover,
    .main-header .main-nav a.active {
        padding-left: 14px;
        color: #ffffff;
    }

    .main-header .header-actions .btn.btn-primary {
        height: 36px;
        padding: 0 14px;
        font-size: 11.5px;
    }

    .main-header .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(14, 24, 34, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.09);
        padding: 0;
    }

    .main-header .mobile-menu-toggle span {
        width: 18px;
        height: 1.8px;
        border-radius: 2px;
    }
}
