header{
    background-color: var(--color-primary);
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
}
header .container{
    display: flex;
    justify-content: space-around;
    align-items: center;
}
header img{
    width: 90px;
    height: 90px;
}
nav ul{
    display: flex;
    gap: 40px;
    align-items: center;
}
nav li{
    display: flex;
    position: relative;
}
nav li::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-additional);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
nav li:hover::after {
    width: 100%;
}

nav li:hover {
    transition: 0.3s color;
}
nav a{
    text-decoration: none;
    color: #fff;
    padding: 10px;
    transition: 0.3s color;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
}
nav a:hover{
    color: var(--color-additional);
}
.hamburger {
    display: none;
    cursor: pointer;
    position: relative;
    width: 40px;
    margin-bottom: 5px;
    gap: 5px;
    flex-direction: column;
}

.hamburger .bar {
    width: 100%;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s;
}

.hamburger:hover .bar{
    background-color: var(#ccc);
}
.hamburger.open{
    padding-left: 6px;
}
.hamburger.open .bar{
    width: 30px !important;
}

.hamburger.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    margin-right: 0;
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    margin-left: 0;
}
@keyframes slideInRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}
@keyframes slideOutRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes slideInTop {
    0% {
        transform: translateY(-110%);
    }
    100% {
        transform: translateY(0);
    }
}
@keyframes slideOutTop {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-110%);
    }
}
@media (max-width: 1060px) {
    header .container{
        justify-content: space-between;
        padding: 0 50px;
    }
    .hamburger{
        display: flex;
    }
    #nav-ul {
        display: none;
        animation: unset;
        transform: translateX(100%);
    }
    #nav-ul.active{
        border-radius: 0px 0 0 15px;
    }

    #nav-ul.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 100px;
        right: 0;
        width: 200px;
        height: auto;
        background-color: var(--color-nav);
        backdrop-filter: blur(10px);
        z-index: 10000;
        padding: 20px;
        gap: 10px;
    }
  
    #nav-ul.active li::after{
        width: 0;
        height: 2px;
        background-color: var(--color-secondary);
        transition: 0.4s;
        transform: translateX(-50%);
        left: 50%;
    }
    #nav-ul.active li:hover::after{
        width: 50%;
    }

    #nav-ul.active li:last-child {
        margin-right: 0;
        margin-left: 0;
    }
    #nav-ul.active li{
        height: 65px;
        width: 200px;
        text-align: center;
        transition: 0.2s background-color;
        cursor: pointer;
    }
    #nav-ul.active li a{
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-right li::after{
        display: none;
    }
    .nav-left{
        display: flex;
    }
    nav{
        display: flex;
        justify-content: space-between;
    }
}
@media (max-width: 768px) {
    #nav-ul.active {
        top: 100px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100% - 85px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
    }
    #nav-ul.active li:hover::after{
        width: 100%;
    }
}