
header {
    position: fixed;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 900;
    background-color: transparent;
    transition: background-color 0.4s ease;
}

header.scrolled {
    background-color: var(--main-color);
}

.desktop-menu {
    display: none;
}

.desktop-menu ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

.desktop-menu li:last-of-type {
    margin-right: 20px;
}

.desktop-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    position: relative;
}

.hamburger-menu-icon {
    width: 35px;
    height: 35px;
    cursor: pointer;
    margin-right: 20px;
    transform: translateX(60px);
    transition: transform 0.4s ease;
}

.hamburger-menu-icon.scrolled {
    transform: translateX(0);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--main-color);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 800;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 25px 0;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
}

.mobile-menu.open {
    transform: translateY(70px);
}


@media (min-width: 425px) {

    header {
        height: 80px;
    }

    .hamburger-menu-icon {
        width: 45px;
        height: 45px;
    }

}

@media (min-width: 768px) {

    header {
        height: 85px;
    }
}

/*When the width of the screen is greater than or equal to 1024px (desktop size)*/
@media (min-width: 1024px) {

    .hamburger-menu-icon {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .desktop-menu {
        display: flex;
        transform: translateX(700px);
    }

    .desktop-menu.scrolled {
        transform: translateX(0);
    }

    .desktop-menu li a:hover {
        color: var(--orange-color);
        transition: color 0.3s ease;
    }

    header {
        height: 90px;
    }

}


