/* Navbar CSS */

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    text-align: right;
    background: #98DFAF;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.logo img {
    position: relative;
    height: 60px;
}

.logo {
    position: relative;
    margin: -18px;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
    text-align: center;
}

nav a.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.navbar li {
    float: left;
}

.menu-toggle {
    display:none;
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    margin-right: 10px;
    margin-top: -5px;
}

.menu-toggle.active {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    color: black;
}


@media (max-width: 800px) {
    .menu-toggle {
        display: block;
        z-index: 1001; /* above overlay */
    }

    /* Hide links initially */
    .nav-links {
        position: fixed;
        top: -16px;
        left: -40px;
        height: 100vh;
        width: 100vw;
        background-color: rgba(255, 255, 255, 1.0);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        opacity: 0;
        pointer-events: none; /* disables clicks when hidden */
        transition: opacity 0.4s ease;
    }

    /* When active, show overlay */
    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.8em;
        color: black;
        text-decoration: none;
        transition: color 0.3s ease;
    }

}

