#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 2.5%;

    &.scrolled {
        background-color: rgba(20, 20, 20, 0.9);
    }
}

#mainHeader .logo {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;

    span {
        span {
            color: var(--color-red);
        }
    }
}

#mainHeader ul {
    display: flex;
    list-style: none;
    align-items: right;
    gap: 16px;
}

#mainHeader ul li {
    cursor: pointer;
    text-align: right;
    position: relative;
    font-weight: 500;

    a {
        span {
            display: inline-block;
            position: relative;

            &:before {
                content: '';
                position: absolute;
                left: -10%;
                top: -10%;
                width: 120%;
                height: 120%;
                background-color: var(--color-red);
                transform: scaleX(0);
                transform-origin: right;
                transition: transform 0.3s ease-in-out;
                z-index: -1;
            }
        }

        &:hover {
            span:before {
                transform: scaleX(1);
                transform-origin: left;
            }
        }
    }
}

#mainHeader ul li i {
    margin-right: 8px;
}


@media (max-width: 768px) {
    #mainHeader {
        padding: 16px 5%;
        justify-content: center;
    }

    #mainHeader nav {
        display: none;
    }
}