/* Hamburger Menu Styles */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 9999;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFEF1;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease-in-out;
    z-index: 9998;
}

.overlay ul {
    list-style: none;
    text-align: center;
}

.overlay ul li {
    margin: 20px 0;
    font-family: "Playfair Display", serif !important;
    color: #000000;
}

.overlay ul li a {
    text-decoration: none;
    color: #000;
    font-size: 130px;
    font-style: italic;
    transition: color 0.3s;
}

.overlay ul li a:hover {
    color: rgb(48, 48, 48);
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Transform Hamburger Menu to Cross when Active */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

@media only screen and (max-width: 1100px) {
    .overlay ul li a {
        font-size: 45px;
    }
}