/* Base Header Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 100%;
    z-index: 100;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hide checkbox and toggler on desktop */
#nav-check, .nav-toggler {
    display: none;
}



/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-toggler {
        display: block;
        cursor: pointer;
    }

    /* Hamburger Icon Drawing */
    .nav-toggler span, .nav-toggler span::before, .nav-toggler span::after {
        display: block;
        background: white;
        height: 2px;
        width: 25px;
        position: relative;
    }
    .nav-toggler span::before { content: ""; top: 8px; }
    .nav-toggler span::after { content: ""; top: -10px; }

    /* Mobile Menu Menu Sidebar */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        height: 100vh;
        width: 70%;
        background: rgba(0, 0, 0, 0.9);
        transition: 0.4s;
        padding-top: 100px;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 20px 0;
    }

    /* Toggle logic: when checkbox checked, show menu */
    #nav-check:checked ~ .nav-links {
        right: 0;
    }
}