*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #010615;
}
.container{
    width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.container .box{
    position: relative;
    width: 300px;
    height: 300px;
    margin: 40px;
}
.container .box .boxImg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .4s ease-in-out;
    z-index: 2;
}
.container .box:hover .boxImg{
    transform: translate(-35px, -35px);
}
.container .box .boxImg img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.container .box .content{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transition: .5s ease-in-out;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 15px;
}
.container .box:hover .content{
    transform: translate(35px, 35px);
}
.container .box .content h2{
    font-size: 20px;
    color: #111;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 1px;
    text-align: center;
}
.container .box .content h2 span{
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    color: orange;
}
@media screen and (max-width : 768px) {
    .container .box:hover .boxImg{
        transform: translate(0, -35px);
    }
    .container .box:hover .content{
        transform: translate(0, 35px);
    }
}