/* ===== Navbar Styles ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; /* smaller and balanced */
    width: 110px;
    cursor: pointer;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid #fff;
    padding-bottom: 4px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* =========================
   MOBILE & TABLETS NAVBAR
   ========================= */
@media (max-width: 768px) {

    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
        z-index: 100;
    }

    .logo img {
        height: 60px; /* keeps logo visible */
        width: auto;
        cursor: pointer;
    }

    /* Hamburger / Menu Toggle */
    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #fff;
        z-index: 110;
    }

    /* Nav Links Fullscreen Overlay */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;        /* full screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000;
        padding: 0;
        margin: 0;
        gap: 30px;
        transform: translateX(-100%); /* hidden offscreen */
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.show {
        transform: translateX(0);    /* slide in full screen */
    }

    .nav-links a {
        font-size: 22px;
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        text-align: center;
        border: none;                 /* remove border */
        width: 100%;
        padding: 15px 0;
    }

    .nav-links a:hover {
        opacity: 0.7;
    }

    /* Close Button (X) */
    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 32px;
        cursor: pointer;
        color: #fff;
    }
}

/* =========================
   MOBILE & TABLETS NAVBAR
   ========================= */
@media (max-width: 768px) {

    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 20px 20px;
        position: relative;
        z-index: 200; /* higher than nav-links */
    }

    .logo img {
        height: 80px; /* keeps logo visible */
        width: auto;
        cursor: pointer;
        z-index: 210; /* stay on top of sidebar */
        position: relative;
    }

    /* Hamburger / Menu Toggle */
    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #fff;
        z-index: 210; /* stay on top */
        position: relative;
    }

    /* Nav Links Fullscreen Overlay */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;        
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000;
        padding: 0;
        margin: 0;
        gap: 30px;
        transform: translateX(-100%); 
        transition: transform 0.3s ease-in-out;
        z-index: 100; /* below logo and menu toggle */
    }

    .nav-links.show {
        transform: translateX(0);    
    }

    .nav-links a {
        font-size: 22px;
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        text-align: center;
        border: none;
        width: 100%;
        padding: 15px 0;
    }

    .nav-links a:hover {
        opacity: 0.7;
    }

    .nav-links a.active {
        border: none;
        font-weight: 500;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .logo img {
        height: 80px;
        width: auto;
    }

    .menu-toggle {
        font-size: 28px;
    }

    .nav-links a {
        
        font-size: 23px;
    }
}
