/* --- NAV --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-content {
    background: rgba(26, 24, 22, 0.95);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow:
        var(--shadow-base),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    width: fit-content;
    max-width: calc(100vw - 4rem);
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-transform: lowercase;
}

.nav-logo::before {
    content: "> ";
    opacity: 0.5;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-mono);
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.03em;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--accent-primary);
    font-weight: 600;
}
.nav-links a.active::after {
    width: 100%;
    background-color: var(--accent-primary);
    height: 2px;
    box-shadow: 0 0 6px rgba(201, 168, 108, 0.5);
}

.nav-cta {
    background: var(--accent-primary);
    color: #1a1816;
    padding: 0.45rem 1.1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-decoration: none;
    transition:
        transform 0.2s,
        opacity 0.2s,
        box-shadow 0.2s;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 108, 0.3);
}

/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(15deg) scale(1.05);
}

.theme-icon-light {
    display: none;
}
.theme-icon-dark {
    display: inline;
}

[data-theme="light"] .theme-icon-light {
    display: inline;
}
[data-theme="light"] .theme-icon-dark {
    display: none;
}

/* Light theme nav */
[data-theme="light"] .nav-content {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .nav-logo {
    color: #3d2b14;
}

[data-theme="light"] .nav-links a {
    color: #5a5248;
}

[data-theme="light"] .nav-links a:hover {
    color: #1a1612;
}

[data-theme="light"] .nav-links a.active {
    color: #3d2b14;
}

[data-theme="light"] .nav-links a.active::after {
    box-shadow: 0 0 6px rgba(61, 43, 20, 0.3);
}

[data-theme="light"] .nav-cta {
    background: #3d2b14;
    color: #fff;
}

[data-theme="light"] #theme-toggle {
    border-color: rgba(0, 0, 0, 0.15);
    color: #5a5248;
}

[data-theme="light"] #theme-toggle:hover {
    border-color: #3d2b14;
    color: #3d2b14;
}
