/* ============================================
   JUPITER PLANET XXL - DARK GREEN INDUSTRIAL
   Design 5: header.css
   ============================================ */

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-card);
    z-index: var(--z-navbar);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 15, 20, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom-color: var(--accent-primary);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ── Logo ── */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: var(--fw-extrabold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    clip-path: var(--clip-tag);
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-brand .brand-name {
    font-family: var(--font-heading);
    font-weight: var(--fw-extrabold);
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.navbar-brand .brand-tagline {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

/* ── Nav Links ── */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    height: var(--navbar-height);
    color: var(--text-body);
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 200, 83, 0.05);
    border-left-color: var(--accent-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
}

/* ── Nav CTA Button ── */
.nav-cta {
    margin-left: var(--space-md);
    padding: 10px 24px;
    background: var(--accent-primary);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    clip-path: var(--clip-tag);
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: #00e676;
    color: var(--text-dark);
    box-shadow: var(--shadow-glow);
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: var(--z-hamburger);
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile ── */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 2px solid var(--accent-primary);
        flex-direction: column;
        align-items: stretch;
        padding-top: calc(var(--navbar-height) + var(--space-xl));
        gap: 0;
        transition: right var(--transition-base);
        z-index: var(--z-overlay);
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        height: auto;
        padding: var(--space-lg) var(--space-xl);
        border-left: 3px solid transparent;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-link:hover,
    .nav-link.active {
        border-left-color: var(--accent-primary);
        background: rgba(0, 200, 83, 0.05);
    }

    .nav-cta {
        margin: var(--space-xl);
        text-align: center;
        display: block;
    }
}

/* ── Mobile Overlay ── */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: calc(var(--z-overlay) - 1);
}

.nav-overlay.active {
    display: block;
}
