/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    color: #fff;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar-toggler {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: rgba(255, 255, 255, 0.55);
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--nav-link-color);
    padding: 0.5rem;
    transition: color 0.15s;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--nav-link-hover);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        transition: right 0.3s ease-in-out;
        z-index: 1050;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-item {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
    }

    .mobile-close-btn {
        align-self: flex-end;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        margin-bottom: 1rem;
        display: block;
    }

    /* Screen Overlay */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1045;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        backdrop-filter: blur(2px);
    }

    .overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (min-width: 769px) {
    .mobile-close-btn {
        display: none;
    }
}