header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgb(0 0 0 / 50%);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.left-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    height: 35px;
    width: auto;
    display: block;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
}

/* Center Navigation */
.center-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active .nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-icon {
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.2s;
}

.nav-item.active .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 800px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nav-item.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.mega-menu-column {
    min-width: 0;
}

.mega-menu-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.mega-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-links li {
    margin: 0;
}

.mega-menu-links a {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.mega-menu-links a:hover {
    color: white;
    background: rgba(99, 102, 241, 0.1);
    padding-left: 16px;
}

/* Right Section */
.right-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-ghost {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media(max-width: 1024px) {
    .mega-menu {
        min-width: 700px;
    }

    .mega-menu-inner {
        gap: 32px;
    }
}

@media(max-width: 900px) {
    .center-section {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(24px);
        padding: 24px;
        overflow-y: auto;
        z-index: 999;
    }

    .center-section.mobile-active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 16px;
    }

    .mega-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        padding: 20px;
        border-radius: 12px;
    }

    .nav-item.active .mega-menu {
        transform: none;
    }

    .mega-menu-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-ghost {
        display: none;
    }
}

@media(max-width: 480px) {
    .header-inner {
        padding: 0 16px;
    }

    .logo-img {
        height: 30px;
    }

    .btn-primary {
        padding: 8px 14px;
        font-size: 12px;
    }
}