/* Shared Lightcone header. This file is loaded after page styles so the
   Foundation and Institute pages cannot drift apart visually. */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 102px;
    padding: 0;
    background: rgba(10, 10, 15, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

#navbar .site-header__inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

#navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

#navbar .nav-logo svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

#navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 58px;
    list-style: none;
}

#navbar .nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.03em;
    position: relative;
}

#navbar .nav-links a:hover,
#navbar .nav-links a.active {
    color: var(--text-primary);
}

#navbar .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
}

#navbar .nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

#navbar .nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    #navbar .site-header__inner {
        padding: 0 24px;
    }

    #navbar .nav-mobile-toggle {
        display: flex;
    }

    #navbar .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(12, 12, 18, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 28px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border);
    }

    #navbar .nav-links.open {
        right: 0;
    }

    #navbar .nav-links a {
        font-size: 17.6px;
        line-height: 29.92px;
    }
}

@media (max-width: 480px) {
    #navbar .site-header__inner {
        padding: 0 20px;
    }
}
