*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background: #0e1538;
}
.contaner{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}
.contaner .box{
    position: relative;
    width: 400px;
    height: 500px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box::before,
.box::after{
    content: '';
    position: absolute;
    background: linear-gradient(315deg,#00ccff,#d400d4);
    inset: -80px 100px;
    transition: 0.5s;
    filter: hue-rotate(calc(var(--i)*120deg));
    animation: animate 8s linear infinite;
}

.box::after{
    background: linear-gradient(315deg,#ffeb3b,#e91e63);
    animation-delay: -2s;
}
@keyframes animate{
0%{
    transform: rotate(0);
}
100%{
    transform: rotate(360deg);
}
}
.box i{
    position: absolute;
    inset: 3px;
    background: #0e1538;
    z-index: 1;
}
.contaner .box .content{
    position: absolute;
    inset: 20px;
    background: #0d122c;
    border: 3px solid #070c23;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    background-size: cover;
}
.contaner .box .content img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    z-index: 1;
    transition: 0.5s;
    pointer-events: none;
}
.contaner .box:hover .content img{
    opacity: 0;
}
.contaner .box .content h2{
    position: relative;
    /* z-index: 2; */
    font-size: 1.75em;
    text-align: center;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.25em;
    text-transform: uppercase;
}
.contaner .box .content h2 span{
    font-size: 0.75em;
    font-weight: 300;
}
.contaner .box .content a{
    position: relative;
    margin-top: 10px;
    padding: 10px 20px;
    background: #fff;
    color: #070a1c;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.5s;
}
.contaner .box .content a:hover{
    letter-spacing: 0.2em;
}