*, *::before, *::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --glass-bg: rgba(40, 40, 40, 0.72);
    --glass-bg-dark:  rgba(28, 28, 28, 0.80);
    --glass-border:   rgba(255, 255, 255, 0.09);
    --glass-border2:  rgba(255, 255, 255, 0.14);
    --text-primary:   #ffffff;
    --text-secondary: rgba(255,255,255,0.55);
    --nav-active-bg:  rgba(255,255,255,0.18);
    --card-radius:    18px;
    --card-radius-sm: 14px;
}
/*===================================================
                        navbar     
===================================================*/
.navbar{
    padding: 0 1.5rem;
    min-height: 62px;
    background: rgb(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255,255,255,0.07);
    box-shadow: 0 1.5px 5px rgb(255, 255, 255, 0.65);

}

.navbar-logo{
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02rem;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-menu {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    list-style: none;
    margin: 0; 
    padding: 0;

    align-items: center;
    
}

.navbar-menu li a{
    display: block;
    padding: 6px 18px;
    border-radius: 45px;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 7px rgb(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.5s;
    white-space: nowrap;
}

.navbar-menu li a:hover{
    background: rgba(255,255,255,0.9);
    color: var(--glass-bg);
    font-weight: bold;
}

.navbar-menu li a.active{
    background: rgba(255,255,255,0.9);
    color: var(--glass-bg);
    font-weight: bold;
    border-color: rgba(255, 255, 255, 0.932);
}

.navbar-toggler{
    border: 1px solid rgba(255,255,255,0.02);
    padding: 4px 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.navbar-toggler-icon{
    filter: invert(1);
}

.navbar-collapse{
    background: rgba(255,255,255,0.02);
    border-radius: 0 0 14px 14px;
    padding: 0.15rem 0.5rem;
    display: flex;
    justify-content: center; 
    width: 100%;
}

.navbar-toggler:focus, .navbar-toggler:active, .navbar-toggler-icon:focus{
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25); 
    border-color: rgba(255, 255, 255, 0.5);
}

/* navbar collapse animations*/
.collapsing {
    transition: height 0.4s ease-in-out; 
}

.collapse.show {
    opacity: 1;
    transition: height 0.4s ease-in-out; 
}

@media (min-width: 992px) {
    .navbar .container-fluid {
        position: relative; 
    }

    .navbar-collapse {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        justify-content: center;
    }
}


@media (max-width: 1100px){
    .navbar-collapse {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.15rem 0.5rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-collapse::-webkit-scrollbar {
        height: 4px;
    }

    .navbar-collapse::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .navbar-menu {
        flex-wrap: nowrap;
        width: fit-content;
    }

    .navbar-menu li a{
        padding: 4px 14px;
        font-size: 0.74rem;
        border-radius: 30px;
        flex-shrink: 0;
    }
    .navbar-collapse.show .navbar-menu li {
        animation: slideIn 0.6s ease forwards;
    }

    @keyframes slideIn {
        from {
            opacity: 0.5;
            transform: translateY(0px);
        }
        to {
            opacity: 1;
            transform: translateY(0px);
        }
    }
}
