*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #222;
    
}
.container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px 0;
    gap: 60px;
    /* border: 1px solid red; */
}
.container .box{
    position: relative;
    width: 300px;
    height: 350px;
    background: #2e2e2e;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container .box::before{
    content: '';
    position: absolute;
    inset:-10px 50px ;
    border-top: 4px solid var(--clr);
    border-bottom: 4px solid var(--clr);
    z-index: -1;
    transform: skewY(15deg);
    transition: 0.5s ease-in-out;
}
.container .box:hover::before{
    transform: skewY(0);
}
.container .box::after{
    content: '';
    position: absolute;
    inset:60px -10px ;
    border-left: 4px solid var(--clr);
    border-right: 4px solid var(--clr);
    z-index: -1;
    transform: skewX(15deg);
    transition: 0.5s ease-in-out;
}
.container .box:hover::after{
    transform: skewY(0);
}
.container .box .content{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 20px;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}
.container .box .content .icon {
    color: var(--clr);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 4px #2e2e2e,
    0 0 0 6px var(--clr);
    font-size: 2.5em;
    background: #2e2e2e;
    transition: 0.5s ease-in-out;
}
.container .box:hover .content .icon {
    box-shadow: 0 0 0 4px #2e2e2e,
    0 0 0 300px var(--clr);
    color: #2e2e2e;
    background: var(--clr);
}
.container .box .content .text h3{
    font-size: 1.5em;
    color: #fff;
    font-weight: 500;
    transition: 0.5s ease-in-out;
}
.container .box:hover .content .text h3{
    color: #2e2e2e;
    font-weight: 500;
}
.container .box .content .text p{
    color: #777;
}
.container .box:hover .content .text p{
    color: #2e2e2e;
}
.container .box .content .text a{
    position: relative;
    background: var(--clr);
    color: #2e2e2e;
    padding: 8px 15px;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: 0.5s ease-in-out;
}
.container .box:hover .content .text a{
    background: #2e2e2e;
    color: var(--clr);
}
