/* ===================================================
   HEADER.CSS — Navigation cố định, active state
=================================================== */

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Khi cuộn xuống: thêm bóng đổ */
header.scrolled {
    border-bottom-color: var(--card-border);
    box-shadow: 0 4px 20px rgba(27, 47, 78, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    height: 66px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-initials {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--navy);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    transition: background 0.25s;
}

.logo:hover .logo-initials {
    background: var(--teal);
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.01em;
}

/* ===== NAV LINKS ===== */
.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 15px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--navy);
    background: var(--teal-light);
}

/* Active link khi đang ở section đó */
.nav-link.active {
    color: var(--teal);
    background: var(--teal-light);
    font-weight: 600;
}

/* ===== RESPONSIVE: ẩn tên logo trên mobile nhỏ ===== */
@media (max-width: 500px) {
    .logo-name { display: none; }
    .nav-link { padding: 7px 10px; font-size: 0.82rem; }
}
