nav {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 85px;
    z-index: 9999;
}

nav .logo {
    position: relative;
    left: 50px;
    margin-top: 15px;
    width: 250px;
}

nav ul {
    position: absolute;
    top: 35px;
    right: 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
    margin-right: 15px;
    font-family: var(--t-title-font-family);
    font-weight: 400;
    font-size: 20px;
}

nav ul li a {
    color: var(--color-white);
    text-shadow: var(--shadow);
    text-decoration: none;
    
}

nav ul li a span {
    position: relative;
    top: 13px;
    letter-spacing: 2px;
}

nav ul li a span:hover {
    text-decoration: underline;
    cursor: pointer;
    text-underline-offset: 10px;
    text-decoration-color: var(--color-gold);
}

nav button {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: 15px;
    cursor: pointer;
    margin-right: 50px;
    font-family: var(--t-title-font-family);
    font-weight: 400;
    font-size: 20px;
    background: var(--color-gold);
    border: 1px solid var(--color-gold);
    color: var(--color-black);
    transition: 0.5s ease all;
    box-shadow: var(--shadow);
}

nav button:hover {
    background: transparent;
    color: var(--color-white);
}

/* --- Desktop Adjustments --- */
.menu-toggle, .menu-btn {
    display: none; /* Hide toggle on desktop */
}

/* Fix: Put the button inside a list item for better alignment */
nav ul li:last-child {
    margin-right: 0;
}

/* --- Mobile Navigation (Below 1100px) --- */
@media screen and (max-width: 1100px) {
    nav .logo {
        left: 20px;
        width: 180px;
    }

    /* The Hamburger Icon */
    .menu-btn {
        display: block;
        position: absolute;
        right: 65px;
        top: 30px;
        cursor: pointer;
        z-index: 10001;
        width: 30px;
        height: 20px;
    }

    .menu-btn span, 
    .menu-btn span::before, 
    .menu-btn span::after {
        content: "";
        display: block;
        background: var(--color-white);
        height: 2px;
        width: 100%;
        position: absolute;
        transition: 0.3s ease-in-out;
    }

    .menu-btn span::before { top: -8px; }
    .menu-btn span::after { top: 8px; }

    /* The Navigation Drawer */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 20px 0;
        font-size: 24px;
    }

    nav button {
        margin: 20px 0 0 0;
        width: 250px;
    }

    /* Open State (When checkbox is checked) */
    .menu-toggle:checked ~ ul {
        right: 0;
    }

    /* Animate Hamburger to "X" */
    .menu-toggle:checked ~ .menu-btn span {
        background: transparent;
    }

    .menu-toggle:checked ~ .menu-btn span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle:checked ~ .menu-btn span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

@media screen and (max-width: 810px) {
    nav {
        background: rgba(0, 0, 0, 1); /* Adds contrast against the background video */
        height: 70px; /* Slimmer for mobile */
        display: flex;
        align-items: center;
        padding: 0 20px;
    }

    nav .logo {
        width: 180px; /* Smaller to prevent overlapping */
        left: 0;
        margin-top: 0;
    }

    .menu-btn {
        top: 35px; /* Re-center vertically */
        right: 65px;
    }
}