header {
    position: absolute;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s;
    z-index: 98;
    backdrop-filter: blur(1px);
    background: linear-gradient(to bottom, #ffffff21 10%, transparent);
}

nav {
    width: 100%;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .3s;
}

nav ul {
    display: flex;
    gap: 5rem;
}

nav ul li a {
    position: relative;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

nav ul li a.actives::after {
    content: '';
    position: absolute;
    bottom: -13px; 
    /* bottom: -6px; */
    left: 50%;
    transform: translate(-50%, 0);
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 100%;
    /* width: 100%;
    height: 2px; */
    background-color: var(--main-color);
}

.actives {
    color: var(--main-color) !important;
    font-weight: 700 !important;
}

header input,
header label,
.mobile-menu {
    display: none;
}

.logo, .logo-w {
    width: 180px;
    max-width: 180px;
    padding-top: 4px;
}

.Fixed {
    position: fixed;
    top: 0;
    background-color: #ffffffce;
    /* background: linear-gradient(to bottom, #ffffffc5, transparent); */
    /* backdrop-filter: blur(4px); */
}

.dark-nav {
    color: #222;
    font-weight: 600;
    
}

.active {
    display: none;
}



/*=========================================================*/
@media (max-width: 980px) {
    header {
        height: 75px;
        padding: 0 20px;
    }

    .Fixed {
        box-shadow: 0 0 5px rgba(0, 0, 0, .1);
        
    }

    .logo, .logo-w {
        width: 160px;
    }

    nav {
        padding: 0;
    }

    nav ul {
        display: none;
    }

    header label {
        display: flex;
    }

    .menuBtns {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        cursor: pointer;
        z-index: 999;
    }

    .mobile-menu {
        position: relative;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        padding-left: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background-color: var(--sub-color);
        touch-action: none;
        transition: all .3s;
        opacity: 0;
        visibility: hidden;
        z-index: 998;
    }
    
    .logo-m {
        position: absolute;
        top: 18px; 
        left: 20px;
        width: 160px;
        padding-top: 4px;
    }

    .mobile-menu li a {
        color: #fff;
        font-size: 27px;
        font-weight: 600;
    }

    .bar1,
    .bar3 {
        width: 28px;
        height: 2px;
        background-color: #fff;
        transition: .3s ease;
    }

    .bar2 {
        width: 22px;
        height: 2px;
        background-color: #fff;
        transition: .3s ease;
    }

    .change .bar1 {
        -webkit-transform: rotate(-45deg) translate(-9px, 5px);
        transform: rotate(-45deg) translate(-9px, 5px);
        background-color: #fff;
    }

    .change .bar2 {
        opacity: 0;
    }

    .change .bar3 {
        -webkit-transform: rotate(45deg) translate(-9px, -5px);
        transform: rotate(45deg) translate(-9px, -5px);
        background-color: #fff;
    }

    .bar-color {
        background-color: #222;
    }
    
    #check:checked ~ .mobile-menu {opacity: 1; visibility: visible;}
    #check:checked ~ .overlay {
        opacity: 1;
        visibility: visible;
        touch-action: none;
    }
}


@media (max-width: 560px) {
    header {
        height: 60px;
    }
    .Fixed{
        background-color: #fff;
    }


    .logo, .logo-w {
        width: 140px;
    }

    .logo-m {
        top: 12px;
        width: 140px;
    }

    .menuBtns {
        display: block;
    }
    
    .bar1,
    .bar2,
    .bar3 {
        width: 24px;
        height: 2px;
        margin: 3px 0;
        transition: .3s ease;
    }

    .bar2 {
        opacity: 0;
        visibility: hidden;
    }

    .change .bar1 {
        -webkit-transform: rotate(-45deg) translate(-5px, 2px);
        transform: rotate(-45deg) translate(-3px, 3px);
    }

    .change .bar3 {
        -webkit-transform: rotate(45deg) translate(-9px, -6px);
        transform: rotate(45deg) translate(-4px, -4px);
    }
}
@media (max-width: 450px) {
    .Fixed{
        background-color: #fff;
    }
}

