/* General styles for navigation */
nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.logo img {
    width: 60px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

/* Desktop navigation - normal behavior (no sliding) */
.nav-links a {
    display: block;
    padding: 15px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-family: Roboto;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    background-color: #000;
}

.nav-links .nav-cta-button {
    padding: 10px 18px;
    margin-left: 16px;
    border: #000 solid 2px;
    border-radius: 50px;
}

.nav-links .nav-cta-button:hover {
    background-color: #000;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 34px;
}

.hamburger .bar {
    flex-basis: 100%;
    height: 4px;
    background-color: #fff;
    margin: 3px;
}

/* Mobile Navigation Styles (Hidden by default) */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
        flex-wrap: wrap;
        right: 10px;
        position: absolute;
    }

    .logo {
        height: 80px;
        margin-left: -7px;
    }

    /* Position the nav off-screen completely when closed */
    .nav-links {
        position: fixed;  /* Fixed positioning to make sure it does not affect the page layout */
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: #111;
        flex-direction: column;
        padding-top: 20px;
        transform: translateX(100%); /* Start off-screen */
        transition: transform 0.5s ease-in-out; /* Smooth transition */
        z-index: 9999; /* Ensure it's on top */
    }

    /* .nav-links li {
        flex-basis: 100%;
    } */

    .nav-links a {
        text-align: center;
        font-size: 28px;
    }

    .nav-links a:hover {
        background-color: #000;
    }

    .nav-links .nav-cta-button {
        padding: 30px 16px;
        margin-left: 0;
        border: none;
        border-radius: 0;
        margin-bottom: 20px;
    }

    .nav-links .nav-cta-button:hover {
        background-color: #000;
    }
}

/* Keyframes for opening and closing the mobile navigation */
@keyframes slideIn {
    0% {
        transform: translateX(100%); /* Start off-screen */
    }
    100% {
        transform: translateX(0); /* End at visible position */
    }
}

@keyframes slideOut {
    0% {
        transform: translateX(0); /* Start from visible */
    }
    100% {
        transform: translateX(100%); /* End off-screen */
    }
}
