.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8); /* Match your --bg with transparency */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #334155;
    z-index: 1000;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
}

.nav-logo span { color: var(--mtu-gold); }

.nav-links a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--mtu-gold); }

.nav-resume {
    border: 1px solid var(--mtu-gold);
    padding: 4px 12px;
    border-radius: 4px;
}


/* Mobile Adjustments */
@media (max-width: 600px) {
    .nav-container {
        padding: 0.8rem 15px; /* Slightly tighter padding */
    }

    .nav-logo {
        font-size: 1rem; /* Shrink logo size */
    }

    .nav-links a {
        margin-left: 0.8rem; /* Bring links closer together */
        font-size: 0.75rem;   /* Smaller font for tight spaces */
    }

    .nav-resume {
        padding: 3px 8px;    /* Compact CV button */
    }
    
    /* Optional: Shrink the H1 on mobile so it doesn't wrap awkwardly */
    h1 {
        font-size: 2rem;
    }
}
