/* General styles */
body {
    margin: 0;
    font-family: 'Abel', sans-serif;
    color: #000;
    text-align: center;
    background-color: #ede8e8;
}

/* Header and Navigation styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.5);
    transition: top 0.3s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 1em;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 1em;
}

nav ul li.logo {
    margin-right: 2em;
}

nav ul li a {
    font-family: 'Adobe Garamond Pro', serif;
    font-size: 1rem; /* Paragraph 3 size */
    font-weight: 400;
    text-decoration: none;
    color: #fff;
    line-height: 1.4em; /* Heading line height */
    letter-spacing: 0em; /* Heading letter spacing */
    position: relative;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #E6E8E6; /* Change text color on hover */
}

nav ul li.logo a img {
    max-height: 50px;
    transition: transform 0.3s ease-in-out;
}

nav ul li.logo a img:hover {
    transform: scale(1.1); /* Enlarge the logo on hover */
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    position: absolute;
    top: 1em;
    right: 1em;
    cursor: pointer;
}

.mobile-menu div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
}

.mobile-logo img {
    display: none;
    max-height: 50px;
    transition: transform 0.3s ease-in-out;
    width: auto;
    height: auto;
    max-width: 150px;
}

.mobile-logo img:hover {
    transform: scale(1.1); /* Enlarge the logo on hover */
}

/* Media Query for Mobile Devices */
@media (max-width: 750px) {

    header {
        padding: .75em 1.25em;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        line-height: 3.5rem;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .mobile-logo {
        max-width: 100px;
    }
    
    .mobile-logo img {
        display: block;
        max-height: 40px;
    }

    header nav ul.show {
        opacity: 1;
        visibility: visible;
    }

    header nav ul::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('https://lh3.googleusercontent.com/d/1lq4KMRd9C4Umdad5I-sCyRs-Teara5LQ') no-repeat center center;
        background-size: cover;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        z-index: -2;
    }
    header nav ul::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        z-index: -1;
    }
    header nav ul.show::before,
    header nav ul.show::after {
        opacity: 1;
    }
    header nav ul li {
        position: relative;
        z-index: 1;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        transition-delay: 0.1s;
    }
    header nav ul.show li {
        opacity: 1;
        transform: translateY(0);
    }
    header nav ul li:nth-child(2) { transition-delay: 0.2s; }
    header nav ul li:nth-child(3) { transition-delay: 0.3s; }
    header nav ul li:nth-child(4) { transition-delay: 0.4s; }
    header nav ul li:nth-child(5) { transition-delay: 0.5s; }
    header nav ul li a {
        font-size: 1.5rem;
        color: #ffffff;
        padding: 1em 0;
        line-height: 2em;
    }
    .mobile-menu {
        display: block;
        position: fixed;
        top: 1em;
        right: 1em;
        margin: 0;
        z-index: 1002;
    }
    .mobile-menu-close {
        display: none;
        position: fixed;
        font-size: 2em;
        cursor: pointer;
        z-index: 1003;
        top: 1em;
        right: 1em;
    }

    .mobile-menu-close.show::before,
    .mobile-menu-close.show::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .mobile-menu-close.show::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .logo-img {
        height: 160px;
    }
}
