* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.warp {
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    width: 500px;
    height: 250px;
    position: relative;
    margin-right: 60px;
}

.rolebg {
    width: 500px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 0px 30px 20px rgba(255, 255, 255, 0.05);
    transform-origin: bottom;
    transition: 2s;
}

.rolebg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role {
    width: 460px;
    height: 250px;
    position: absolute;
    bottom: 0px;
    transform-origin: bottom;
    transition: 2s;
}

.role img {
    width: 100%;
    height: 100%;
}

.solgan {
    background: linear-gradient( rgb(1,64,153), rgb(184,13,16));
    width: 440px;
    padding: 10px;
    -webkit-background-clip: text;
    color: transparent;
    position: absolute;
    bottom: -0px;
    opacity: 0;
    transition: 2s;
}

.solgan h1 {
    font-weight: 200;
}

.solgan p {
    font-weight: 200;
    padding-top: 10px;
    font-size: 14px;
}

.card:hover .rolebg{
    transform: perspective(1000px) rotateX(30deg) skewX(-20deg);
}

.card:hover .role {
    transform: scale(1.8);
}

.card:hover .solgan {
    opacity: 1;
    transform: translateY(120px);
}