.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    z-index: 1000;
    backdrop-filter: blur(var(--nav-blur-size));
    -webkit-backdrop-filter: blur(var(--nav-blur-size));
    box-shadow: none;
}

span {
    color: white;
}

.navbar-container {
    max-width: var(--nav-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 1rem;
    position: relative;
}

.navbar-brand {
    color: var(--nav-text-color);
    font-family: 'Jaro', sans-serif;
    font-size: 2rem;
    text-decoration: none;
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.navbar-toggler span {
    height: 2px;
    background: var(--nav-text-color);
    margin-bottom: 5px;
    border-radius: 1px;
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: var(--nav-text-color);
    text-decoration: none;
}

.nav-links a:hover {
    background: var(--nav-link-hover-color);
    border-radius: 4px;
}

#nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    .navbar-container {
        height: var(--nav-height);
    }

    .navbar-toggler {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background: var(--nav-bg);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        gap: 0;
        backdrop-filter: blur(var(--nav-blur-size));
        -webkit-backdrop-filter: blur(var(--nav-blur-size));
    }

    .nav-links a {
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    #nav-toggle:checked~.nav-links {
        max-height: 500px;
    }
}

@media (min-width: 900px) {
    .navbar {
        border-bottom: 2.5px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: flex;
        align-items: center;
        height: var(--nav-height);
        padding: 0 2rem;
        border-radius: 0;
        transition: background 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--nav-link-hover-color);
        border-radius: 0;
    }
}