/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 48px;
    height: 28px;
    background: var(--toggle-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px var(--accent-glow);
}

[data-theme="light"] .theme-toggle::after {
    left: 23px;
    background: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.theme-icon.moon {
    right: 6px;
    opacity: 1;
}

.theme-icon.sun {
    left: 6px;
    opacity: 0;
}

[data-theme="light"] .theme-icon.moon {
    opacity: 0;
}

[data-theme="light"] .theme-icon.sun {
    opacity: 1;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
