header {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .3);
    transition: all .3s ease;
    z-index: 98;
}

nav {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav label {
    display: none;
}

nav ul {
    display: flex;
    gap: 4rem;
}

nav ul li a {
    position: relative;
    color: #fff;
    padding: 30px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: all .3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
}

nav ul li a:hover::after {
    width: 100%;
}

.logo {
    width: 160px;
    margin-top: 2px;
    transition: all .3s ease;
}

.Fixed {
    position: fixed;
    height: 65px;
    background: rgb(15,155,231);
    background: linear-gradient(90deg, rgba(15,155,231,1) 0%, rgba(54,215,157,1) 100%);
    box-shadow: none;
}

header.Fixed .logo {
    width: 135px;
}

header.Fixed nav ul li a {
    padding: 23px 0;
    font-size: 15px;
}

#check {
    display: none;
}

.menuBtns {
    display: none;
}

.overlay {
    display: none;
}



/*==================================================*/
@media (max-width: 1250px) {
    nav {
        width: 100%;
        padding: 0 20px;
    }
}


@media (max-width: 768px) {
    header {
        height: 75px;
        box-shadow: none;
    }

    nav label {
        display: flex;
        z-index: 8;
    }

    .logo {
        margin-top: 4px;
    }

    .menuBtns {
        display: inline-block;
        cursor: pointer;
    }

    nav ul {
        position: absolute;
        top: 50px; right: 20px;
        padding: 22px 26px;
        flex-direction: column;
        justify-content: center;
        background-color: #fff;
        touch-action: none;
        border-radius: 7px;
        box-shadow: 0 0 10px rgba(0, 0, 0, .1);
        transition: all .2s;
        z-index: 7;
        gap: 1.2rem;
        opacity: 0;
        visibility: hidden;
    }

    nav ul li a {
        padding: 0;
        color: #222;
        font-size: 16px;
        font-weight: 400;
    }

    nav ul li a::after {
        display: none;
    }

    header.Fixed nav ul li a {
        padding: 0;
    }

    .overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        display: block;
        background-color: rgba(0, 0, 0, 0);
        transition: all .3s;
        opacity: 0;
        visibility: hidden;
        z-index: 6;
    }

    .bar1,
    .bar2,
    .bar3 {
        width: 24px;
        height: 2px;
        background-color: #fff;
        margin: 6px 0;
        transition: .3s ease;
    }

    .change .bar1 {
        -webkit-transform: rotate(-45deg) translate(-5px, 2px);
        transform: rotate(-45deg) translate(-5px, 2px);
        background-color: #fff;
    }

    .change .bar2 {
        opacity: 0;
    }

    .change .bar3 {
        -webkit-transform: rotate(45deg) translate(-9px, -6px);
        transform: rotate(45deg) translate(-9px, -6px);
        background-color: #fff;
    }
    
    #check:checked ~ ul,
    #check:checked ~ .overlay {
        opacity: 1;
        visibility: visible;
    }
}


@media (max-width: 550px) {
    header {
        height: 60px;
    }
    
    .logo {
        width: 120px;
        margin-top: 0;
    }

    .Fixed {
        height: 60px;
    }

    header.Fixed .logo {
        width: 120px;
        margin-top: 2px;
    }
    
    .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);
    }
}