/* Hamburger button styling */
.hamburger {
    position: relative;
    display: block !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 30px;
    height: 24px;
    top: 20px;
    z-index: 9999;
    outline: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: opacity 0.3s ease;
    opacity: 1;
    margin-bottom: 20px;
}

/* Hamburger button lines */
.line {
    display: block; 
    width: 30px; 
    height: 3px;
    margin: 5px 0;
    background-color: white; 
    border-radius: 12px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 1;
}

/* Hamburger to "X" transformation */
.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hide large screen nav on mobile */
@media (max-width: 767px) {
    #nav-links-large-screens {
        display: none !important;
    }
}

/* Mobile menu base styles */
#nav-links-mobile {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    box-shadow: 4px -4px 4px #888888;
    position: fixed;
    top: 0;
    left: -100%; /* Hidden by default */
    width: 65%;
    height: 75vh;
    z-index: 1001;
    padding-top: 50px;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    list-style: none;
    text-align: center;
    margin: 10px 0;
    overflow: auto;
    transition: opacity 0.3s ease, left 0.5s ease;
    border-bottom: 2px solid #888888; /* Add the bottom border */
}

/* Active state - menu slides in */
#nav-links-mobile.active {
    left: 0;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile nav list items */
#nav-links-mobile li {
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Mobile nav links */
#nav-links-mobile a {
    font-family: 'Hollywood Hills', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    display: block;
    padding: 10px 20px;
    transition: color 0.3s ease-in-out;
    font-size: 2.5rem;
    width: 100%;
}

#nav-links-mobile a:hover {
    color: #611510;
}

/* Backdrop */
#backdrop {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Active backdrop */
#backdrop.active {
    display: block;
    opacity: 1;
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Desktop - hide hamburger and mobile menu */
@media (min-width: 768px) {
    .hamburger {
        display: none !important;
    }

    #nav-links-mobile {
        display: none !important;
    }

    #backdrop {
        display: none !important;
    }
}