nav {
    position: fixed !important;
    inset: 0 0 auto 0;
    width: auto;
    padding-top: 10px;
    z-index: 99 !important;
    transition: 0.35s ease;
}
nav.scrolled {
    padding-top: 12px;
    padding-bottom: 12px;
    background-image: linear-gradient(to left, var(--main-color), var(--second-color));
    box-shadow: 0 5px 25px rgba(0,0,0,10%);
    box-shadow: 0 5px 25px rgb(255, 255, 255, 10%);
    border-radius: 0 0 30px 30px;
}
nav.scrolled .menu-fab {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
nav > * {
    z-index: 9;
}
.navbar ul.links {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}
.navbar .lang {
    padding: 5px 20px;
    background-color: var(--white-color);
    color: var(--main-color);
    border-radius: 20px;
}
.navbar .logo img {
    object-fit: contain;
    width: 170px;
}
.navbar ul.links li a {
    position: relative;
    padding: 0 20px;
}
.navbar ul.links li:not(:last-child) a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 20px;
    transform: translateY(-50%);
    width: 2px;
    background-color: var(--white-color);
}
.lang-user {
    background-color: var(--white-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0px 8px;
    gap: 10px;
}
.lang-toggle {
    position: relative;
    width: 35px;
    height: 22px;
    cursor: pointer;
}
.lang-toggle input {
    display: none;
}
.toggle {
    position: absolute;
    inset: 0;
    border: 2px solid #60756c;
    border-radius: 30px;
    transition: 0.3s;
}
.toggle::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #60756c;
    border-radius: 50%;
    transition: 0.3s;
}
.lang-toggle input:checked+.toggle {
    background-color: #60756c;
}
.lang-toggle input:checked+.toggle::before {
    left: 20px;
    background-color: var(--white-color);
}
.user-icon {
    color: #60756c;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-check {
    display: none;
}
.menu-fab {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--main-color);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}
.menu-fab .icon-close {
    display: none;
}
.menu-check:checked~.navbar .menu-fab {
    background-color: #60756c;
    color: var(--white-color);
    transform: rotate(90deg);
}
.menu-check:checked~.navbar .menu-fab .icon-bars {
    display: none;
}
.menu-check:checked~.navbar .menu-fab .icon-close {
    display: block;
}
.menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    z-index: 90;
    opacity: 0;
    transition: 0.3s;
}
.menu-check:checked~.menu-backdrop {
    display: block;
    opacity: 1;
}
.menu-card {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-15px) scale(0.9);
    width: 90%;
    background: linear-gradient(160deg, var(--main-color), var(--second-color));
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.close-menu {
    position: absolute;
    bottom: 102%;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
    border: 1px solid #ffffff70;
}
.close-menu:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}
.menu-card {
    position: fixed;
}
.menu-check:checked~.menu-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}
.menu-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.menu-card ul li {
    opacity: 0;
    transform: translateX(15px);
    transition: 0.3s ease;
}
.menu-check:checked~.menu-card ul li {
    opacity: 1;
    transform: translateX(0);
}
.menu-check:checked~.menu-card ul li:nth-child(1) {
    transition-delay: 0.1s;
}
.menu-check:checked~.menu-card ul li:nth-child(2) {
    transition-delay: 0.15s;
}
.menu-check:checked~.menu-card ul li:nth-child(3) {
    transition-delay: 0.2s;
}
.menu-check:checked~.menu-card ul li:nth-child(4) {
    transition-delay: 0.25s;
}
.menu-card ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--white-color);
    font-size: 18px;
    border-radius: 14px;
    transition: 0.25s;
}
.menu-card ul li a i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    font-size: 15px;
    flex-shrink: 0;
    transition: 0.25s;
}
.menu-card ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    padding-right: 25px;
}
.menu-card ul li a:hover i {
    background-color: var(--white-color);
    color: var(--main-color);
    transform: scale(1.1);
}
.menu-card ul li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.menu-fab {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--main-color);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    flex-shrink: 0;
}
.menu-fab .icon-close {
    display: none;
}
.menu-check:checked~.navbar .menu-fab {
    background-color: #60756c;
    color: var(--white-color);
    transform: rotate(90deg);
}
.menu-check:checked~.navbar .menu-fab .icon-bars {
    display: none;
}
.menu-check:checked~.navbar .menu-fab .icon-close {
    display: block;
}

@media (max-width: 992px) {
    .navbar ul.links {
        display: none;
    }
    .menu-fab {
        display: flex;
    }
    .navbar ul.links {
        display: none;
    }
    .menu-fab {
        display: flex;
    }
}

@media (max-width: 576px) {
    .navbar .logo img {
        width: 130px;
    }
    .menu-card {
        top: 80px;
        width: 92%;
    }
        .nav-actions {
        gap: 10px;
    }
}


