/* =====================================
   HEADER & NAVIGATION STYLES
   ===================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 2rem; /* Reduced from 1rem 2rem */
    background: transparent;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, background, border-radius, padding;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 2rem;
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    margin: 1.5rem auto 0;
    max-width: calc(100% - 3rem);
    width: fit-content;
    min-width: 800px;
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: fadeInGlassCenter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 30px;
    pointer-events: none;
    opacity: 0.6;
}

.header.scrolled::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 25%,
        transparent 75%, 
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 31px;
    z-index: -1;
    opacity: 0.7;
    animation: borderGlow 3s ease-in-out infinite;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    min-height: 50px; /* Reduced from 60px */
}

.header.scrolled .header-content {
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    min-height: 55px;
    width: auto;
    position: relative;
    z-index: 2;
    display: flex;
    padding: 0.25rem 0.5rem;
    animation: contentFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    white-space: nowrap;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .header.scrolled .header-content {
        justify-content: center;
        gap: 0;
        padding: 0.2rem 0.3rem;
    }
}

.header-nav-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.header.scrolled .header-nav-section {
    gap: 2rem;
    width: auto;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
