/* ─── Navbar container ──────────────────────────────── */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 22px 48px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease,
                transform 0.3s ease, opacity 0.3s ease;
}

.navbar-container.scrolled {
    background: rgba(8, 11, 16, 0.92);
    border-bottom-color: #1f2630;
}

/* Over the hero image: all links go white */
/* Over the hero image: solid white fill, black text */
.navbar-container:not(.scrolled) .nav-link {
    background: rgba(12, 16, 22, 0.72);
    border-color: rgba(190, 201, 216, 0.45);
    color: #e5ebf3;
    text-shadow: none;
}

/* Active page over hero: transparent, white border + text */
.navbar-container:not(.scrolled) .nav-link.active {
    background: transparent;
    border-color: rgba(236, 242, 250, 0.95);
    color: #f7fafc;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.navbar-container.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ─── Nav bar layout ────────────────────────────────── */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links-left {
    display: flex;
    gap: 36px;
}

/* ─── Links ─────────────────────────────────────────── */
/* All buttons: solid black fill, white text */
.nav-link {
    font-size: 0.72em;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid #3a4554;
    color: #dce4ef;
    background: #131a23;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Active page: white fill, black text */
.nav-link.active {
    background: #f2f6fb;
    color: #0f141b;
    border-color: #f2f6fb;
}

/* ─── Hamburger ─────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 22px;
    height: 1.5px;
    background: #e3e8f0;
    display: block;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ─── Mobile menu (full-screen overlay) ─────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0b0f14;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 199;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    font-size: 1em;
    letter-spacing: 0.15em;
    opacity: 1;
}

/* ─── Mobile breakpoint ─────────────────────────────── */
@media (max-width: 768px) {
    .navbar-container {
        padding: 18px 24px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links-left {
        display: none;
    }
}


/* ── Ezzy Care nav button ──────────────────────────────────────────── */
.nav-link-ezzy {
    background: #25d366 !important;
    color: #111b21 !important;
    border-radius: 20px;
    padding: 5px 14px !important;
    font-weight: 700 !important;
}
.nav-link-ezzy:hover { background: #1ebe5d !important; }
