/* ============================================
   PREMIUM HEADER V2 - Industrial Corporate
   ============================================ */

.header-premium {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: top 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    will-change: background, box-shadow, top;
}

.header-premium.scrolled {
    top: 0;
    background: rgba(10, 14, 26, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(251, 191, 36, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Navbar */
.navbar-premium { padding: 0.5rem 0; }
.header-premium.scrolled .navbar-premium { padding: 0.35rem 0; }

.navbar-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo */
.logo-premium {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: auto;
}

.logo-image-premium {
    height: 52px;
    width: auto;
    filter: brightness(1.05);
    transition: height 0.3s, filter 0.3s;
}

.header-premium.scrolled .logo-image-premium { height: 46px; }
.logo-premium:hover .logo-image-premium { filter: brightness(1.2) drop-shadow(0 0 12px rgba(251,191,36,0.3)); }

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.65rem 0.75rem;
    position: relative;
    transition: color 0.2s;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-link-premium svg { opacity: 0.4; transition: opacity 0.2s, transform 0.2s; }
.nav-dropdown:hover .nav-link-premium svg { opacity: 0.8; transform: rotate(180deg); }

.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: #fbbf24;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link-premium:hover { color: #fff; }
.nav-link-premium:hover::after { transform: scaleX(1); }

/* Mega Dropdown */
.nav-dropdown { position: relative; }

.dropdown-premium {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(15, 20, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 280px;
    border-radius: 0.75rem;
    padding: 0;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    z-index: 2000;
}

.nav-dropdown:hover .dropdown-premium {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-inner { padding: 0.5rem 0; }

.dropdown-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    transition: background 0.15s, padding-left 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: rgba(251, 191, 36, 0.06);
    border-left-color: #fbbf24;
    padding-left: 1.5rem;
}

.dropdown-link-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-link:hover .dropdown-link-name { color: #fbbf24; }

.dropdown-link-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.3;
}

.dropdown-link-all {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.dropdown-link-all .dropdown-link-name {
    color: #fbbf24;
    font-size: 0.78rem;
}

/* Header CTA Buttons */
.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-cta svg { flex-shrink: 0; }

.nav-cta-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.nav-cta-outline:hover {
    border-color: #fbbf24;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.06);
}

.nav-cta-primary {
    background: #fbbf24;
    color: #0a0e1a;
    border: 1px solid #fbbf24;
}

.nav-cta-primary:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 2001;
}

.mobile-toggle:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
    position: absolute;
}

.mobile-toggle span:nth-child(1) { transform: translateY(-6px); }
.mobile-toggle span:nth-child(2) { transform: translateY(0); }
.mobile-toggle span:nth-child(3) { transform: translateY(6px); }

.mobile-toggle.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .nav-cta-group { display: none; }
    .nav-links { gap: 0; }
    .nav-link-premium { padding: 0.6rem 0.5rem; font-size: 0.78rem; }
}

@media (max-width: 900px) {
    .mobile-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.active { right: 0; }

    .nav-link-premium {
        font-size: 1rem;
        font-weight: 600;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-link-premium::after { display: none; }

    .dropdown-premium {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.02);
        min-width: 0;
        width: 100%;
        border-radius: 0.5rem;
        margin: 0.25rem 0 0.5rem;
        border: none;
        box-shadow: none;
    }

    .nav-dropdown .dropdown-premium { display: none; }
    .nav-dropdown.active .dropdown-premium { display: block; }

    .dropdown-link { padding: 0.5rem 1rem; }
    .dropdown-link:hover { padding-left: 1.25rem; }

    .nav-cta-group {
        display: flex;
        flex-direction: column;
        margin: 1.5rem 0 0;
        gap: 0.5rem;
    }

    .nav-cta { justify-content: center; padding: 0.65rem 1rem; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .logo-image-premium { height: 42px; }
    .header-premium.scrolled .logo-image-premium { height: 38px; }
}
