.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 36px;
    transition: all var(--transition-smooth);
}

.header.scrolled {
    background: rgba(8, 8, 14, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 36px;
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--moon-glow);
    box-shadow: 0 0 18px rgba(200, 200, 220, 0.5);
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(200, 200, 220, 0.5); }
    50% { box-shadow: 0 0 32px rgba(200, 200, 220, 0.8); }
}

.nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav a:hover {
    color: var(--text-primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--moon-glow);
    transition: width var(--transition-fast);
}

.nav a:hover::after {
    width: 100%;
}
