/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
    /* Ensure it's above the menu */
    position: relative;
    /* Ensure z-index applies */
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #462850;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 1500;
        gap: 20px;
    }

    .menu.active {
        right: 0;
    }

    .menu>li {
        width: 100%;
        text-align: center;
    }

    .menu>li>a {
        display: block;
        padding: 15px;
        font-size: 18px;
    }

    /* Hamburger Animation when active */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
}