/* General styles */
nav {
    /* background: #0f4e91; */
    background: var(--dark-purple);
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    width: 95%;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Remove underline from the link */
}

.logo-container img {
    width: 250px;
    height: auto;
    margin-right: 10px;
}



nav h1 {
    margin: 0;
    font-size: 1.5em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-left: 10px;
    display: flex;
}

nav ul li {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

nav ul li a {
    position: relative;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 5px 5px;
    overflow: hidden;
    white-space: nowrap;

}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease-in-out;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
}

body.menu-expanded {
    padding-top: 50px;
    transition: padding-top 0.3s;
}

/* Simulate iPhone 12 with 390x656 on Chrome */
@media (max-width: 699px) {
    .hamburger div {
        background-color: #fff;
        height: 3px;
        margin: 5px;
        transition: all 0.3s ease-in-out;
    }

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

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

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

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        /* padding-top: 20px; */
        margin-left: 0;
        align-items: center;
        background: var(--dark-purple);
        /* updated background color */
        position: absolute;
        top: 50px;
        left: 0;
    }

    nav ul.show {
        display: flex;
        /* Flex display to align items vertically */
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }

    nav ul li a {
        font-size: 3em;
        /* Larger text size for readability */
        padding: 4px;
        width: 100%;
        white-space: nowrap;

        /* Ensure full width clickable area */
        /* White color for better visibility */
    }

    .hamburger {
        display: block;
    }

    body.menu-expanded {
        padding-top: 100vh;
        /* Push the content down when menu is expanded */
        transition: padding-top 0.3s;
    }
}



@media (min-width: 700px) and (max-width: 850px) {
    nav ul li {
        font-size: 0.94em;
        margin-left: 9px;
    }
}

.nav-logo {
    width: 200px;
    height: 100px;
    vertical-align: middle;
}



