* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #aba;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
    background: linear-gradient(to left, purple, gold, purple);
    color: gold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);

    position: sticky;
    top: 0;
    z-index: 10000;
}


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

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}


/* ============================================================
   LOGO
   ============================================================ */

.logo {
    font-size: clamp(1.1rem, 3vw + 1.2rem, 3rem);
    text-decoration: none;
    font-family: Impact;
    color: #fff;
    line-height: 0.1;
    white-space: nowrap;
}


/* ============================================================
   NAVIGATION LINKS
   ============================================================ */

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    display: inline-block;
    color: maroon;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}


/* ============================================================
   NAV LINK HOVER
   ============================================================ */

.nav-links a:hover,
.nav-links a:focus-visible {
    background-color: purple;
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}


/* ============================================================
   ACTIVE NAV LINK
   ============================================================ */

.nav-links a.active {
    background-color: purple;
    color: #fff !important;
    font-weight: 700;
}


/* ============================================================
   HAMBURGER
   ============================================================ */

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    z-index: 1001;
}


/* ============================================================
   OVERLAY
   ============================================================ */

.overlay {
    display: none;
}

/* ============================================================
   NAV LOGO IMAGE
   ============================================================ */
.nav-logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
    display: block;
    vertical-align: middle;
}

/* ============================================================
   LOGO LINK - Remove text styles
   ============================================================ */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE LOGO
   ============================================================ */
@media (max-width: 768px) {
    .nav-logo-img {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .nav-logo-img {
        height: 28px;
    }
}

@media (max-width: 360px) {
    .nav-logo-img {
        height: 24px;
    }
}
/* ============================================================
   TABLET / MOBILE
   ============================================================ */

@media (max-width: 1390px) {

    /* --------------------------------------------
       HAMBURGER
       -------------------------------------------- */

    .hamburger {
        display: block;
        font-size: 1.5rem;
        padding: 0.2rem;
    }



    .nav-links {
    position: fixed;
    top: 0;
    right: -210px;
    width: 200px;
    height: auto; /* Auto height based on content */
    max-height: 90vh; /* Max height with scroll if needed */
    border-radius: 1.5rem;
    background-color: gold;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3.5rem 0.6rem 0.75rem;
    gap: 0.5rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto; /* Scroll if content exceeds max-height */
}




    /* --------------------------------------------
       OPEN MOBILE MENU
       -------------------------------------------- */

    .nav-links.active {
        right: 0;
    }


    /* --------------------------------------------
       MOBILE NAV ITEMS
       -------------------------------------------- */

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
    }


    /* --------------------------------------------
       MOBILE NAV LINKS
       -------------------------------------------- */

    .nav-links a {
        display: flex;
        align-items: center;

        width: 100%;

        padding: 0.55rem 0.7rem;

        font-size: 0.9rem;
        line-height: 1.2;

        border-radius: 0.35rem;
    }


    /* --------------------------------------------
       MOBILE HOVER
       -------------------------------------------- */

    .nav-links a:hover,
    .nav-links a:focus-visible {
        transform: none;
    }


    /* --------------------------------------------
       MOBILE OVERLAY
       -------------------------------------------- */

    .overlay {
        display: block;

        position: fixed;
        inset: 0;

        background-color: rgba(0, 0, 0, 0.5);

        z-index: 999;

        opacity: 0;
        visibility: hidden;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }


    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .nav-links {
        width: 190px;
        right: -190px;

        padding: 3.25rem 0.5rem 0.6rem;

        gap: 0.1rem;
    }

    .nav-links a {
        padding: 0.48rem 0.65rem;
        font-size: 0.84rem;
    }
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 360px) {

    .nav-links {
        width: 180px;
        right: -180px;

        padding-top: 3rem;
    }

    .nav-links a {
        padding: 0.42rem 0.6rem;
        font-size: 0.8rem;
    }
}


/* ============================================================
   MOBILE TOUCH DEVICES
   ============================================================ */

@media (hover: none) and (pointer: coarse) {

    .nav-links a:hover {
        transform: none;
    }
}