/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 860px;
    z-index: 999;
}

.navbar-inner {
    background: #596669;
    border-radius: 999px;
    padding: 15px 50px 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* LOGO TEXT - sans serif font */
.navbar-logo {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
    color: #fff;
    white-space: nowrap;
}

.navbar-logo:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* DESKTOP LINKS */
.navbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.2s ease, transform 0.2s ease;
    padding-bottom: 4px;
    display: inline-block;
    position: relative;
}

.navbar-links li a:hover {
    color: #b9d8d1;
    transform: translateY(-2px);
}

/* ACTIVE CLASS FOR DESKTOP */
.navbar-links li a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* HAMBURGER — hidden on desktop */
.navbar-hamburger {
    display: none;
}

/* ===== HAMBURGER STYLES ===== */
.navbar-hamburger .background {
    mix-blend-mode: normal;
    box-shadow: none;
    backdrop-filter: blur(15px);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.navbar-hamburger .background:hover {
    transform: scale(1.05);
}

.menu__icon {
    width: 25px;
    height: 25px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu__icon span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.menu__icon span+span {
    margin-top: 0;
}

/* Active/Open state for hamburger */
.menu__icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

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

/* MOBILE MENU — hidden by default */
.mobile-menu {
    display: none;
    background: #000;
    border-radius: 20px;
    margin-top: 12px;
    padding: 20px 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    width: auto;
    float: right;
    clear: both;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    padding-bottom: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-menu ul li a:hover {
    color: #b9d8d1;
    transform: translateX(5px);
}

/* ACTIVE CLASS FOR MOBILE */
.mobile-menu ul li a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
    .navbar {
        width: calc(100% - 32px);
        max-width: 700px;
    }

    .navbar-links {
        gap: 24px;
    }

    .navbar-links li a {
        font-size: 13px;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 767px) {

    .navbar {
        width: calc(100% - 24px);
        top: 12px;
    }

    .navbar-inner {
        padding: 10px 20px 10px 20px;
    }

    /* LOGO TEXT - smaller on mobile */
    .navbar-logo {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* HIDE desktop links */
    .navbar-links {
        display: none;
    }

    /* SHOW hamburger */
    .navbar-hamburger {
        display: flex;
        align-items: center;
    }

    /* Mobile menu right aligned container */
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .navbar-inner {
        width: 100%;
    }

    .mobile-menu {
        width: 200px;
    }

    /* Mobile menu link hover */
    .mobile-menu ul li a:hover {
        transform: translateX(5px);
    }
}