/* Navigation Bar */
#navbar-container{
    min-height: 75px;
}

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);

    padding: 0 5%;
    box-sizing: border-box;

    z-index: 9999;

    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    transition: opacity 0.25s ease, backdrop-filter 0.3s ease;
    opacity: 0;
}

.navbar.visible{
    opacity: 1;
}

.logo img{
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.logo img.loaded{
    opacity: 1;
}

/* Logo */
.logo{
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition: opacity 0.3s ease;
}

.logo:hover{
    opacity: 0.8;
}

.logo span{
    color: #fff;
    white-space: nowrap;
}

/* Navigation */
nav{
    margin-left: auto;
}

.nav-links{
    display: flex;
    align-items: center;
    gap: 40px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li{
    margin: 0;
}

.nav-links a{
    position: relative;

    color: #fff;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: .8rem;
    font-weight: 500;

    transition: color 0.3s ease;
}

/* Underline Animation 
.nav-links a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: #3b99c5; /* Blue accent *//*
    transition: width 0.3s ease;
}*/
.nav-links a:hover
/*.nav-links a.active*/{
    color: #3bbcc5;
}

.nav-links a:hover::after,
.nav-links a.active::after{
    width: 100%;
}

/* Hide hamburger on desktop */
.menu-toggle{
    display:none;
    color:#fff;
    font-size:2rem;
    cursor:pointer;
    user-select:none;
}

/*Responsive for devices below 768px width*/

/* Tablet & Mobile */
@media (max-width:768px){

    .navbar{
        height:65px;
        padding:0 20px;
    }

    .logo img{
        width:42px;
        height:42px;
    }

    .logo span{
        font-size:1.2rem;
    }

    /* Show hamburger */
    .menu-toggle{
        display:block;
        font-size:2rem;
        margin-left: auto;
        color:#fff;
        cursor:pointer;
        line-height:1;
    }

    /* Hide menu initially */
    nav{
        position:absolute;
        top:65px;
        left:0;
        width:100%;

        background:#000;

        display:none;

        box-shadow:0 10px 30px rgba(0,0,0,.35);
    }

    /* Show when active */
    nav.active{
        display:block;
    }

    .nav-links{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:0;

        width:100%;
        margin:0;
        padding:10px 0;
    }

    .nav-links li{
        width:100%;
        list-style:none;
    }

    .nav-links li:not(:last-child){
        border-bottom:1px solid rgba(255,255,255,.08);
    }

    .nav-links a{
        display:block;
        width:100%;

        padding:18px 0;

        text-align:center;
        font-size:1rem;
    }

    /* Remove desktop underline animation */
    .nav-links a::after{
        display:none;
    }
}