/* ============================================
   HEADER LAYOUT
   ============================================ */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--header-gradient);
    opacity: 0.5;
    z-index: -1;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1;
}

.logo {
    max-width: 60px;
    height: auto;
    transition: transform var(--transition-bounce);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Navigation */
.nav-menu {
    flex: 1;
    margin: 0 var(--spacing-xl);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu li {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.nav-menu a:hover {
    color: #000000;
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    opacity: 1;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Responsive Header */
@media (max-width: 640px) {
    header {
        padding: var(--spacing-md);
        flex-wrap: wrap;
    }

    .nav-menu {
        order: 3;
        flex-basis: 100%;
        margin: var(--spacing-md) 0 0;
    }

    .nav-menu ul {
        justify-content: center;
        gap: var(--spacing-xs);
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .header-right {
        gap: var(--spacing-sm);
    }
}