ul {
position: relative;
transform: skewY(-15deg);
margin-right: 470px;

}

li {
  position: relative;
  list-style: none;
  width: 200px;
  padding: 15px;
  background:#507ead;
  z-index: calc(1 * var(--i));
  transition: 0.5s;



}

li:hover{

    background: #995fae;
    transform: translateX(-50px);

}

li::before {
    font-family: "Font Awesome";
    color: #ffffff;
    display: flex
;
    justify-content: center;
    align-items: center;
    content: attr(data-icon);
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    height: 100%;
    background: #507ead;
    transform-origin: right;
    transform: skewY(45deg);
    transition: 0.5s;
}

li:hover::before{

    background:#7b5190;
}

li::after{

    content:"";
    position: absolute;
    top:-40px;
    left: 0px;
    width: 100%;
    height: 40px;
    background:#507ead;
    transform-origin: bottom;
    transform: skewX(45deg);
    transition: 0.5s;

}

li:hover::after{

    background:#86589d;

}

li a {
    text-decoration: none;
    color: #ffffff;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.5s;
}

li:hover a{

    color:#fff;

}

li:last-child::after{

    box-shadow: -120px 120px 20px rgba(0, 0, 0, 0.25);

}

