@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #032e06;
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.container .card {
    position: relative;
    width: 300px;
    height: 400px;
    background: #52544b;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container .card .content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 25px;
    gap: 10px;
    transition-delay: 0.5s;
    transition: 0.5s;
    opacity: 0;
}

.container .card:hover .content {
    opacity: 1;
    transition-delay: 0.5s;

}

.container .card .content h2 {
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--clr);
}

.container .card .content p {
text-align: center;
color: #fff;
}

.container .card .content a {
    color: #fff;
    background: var(--clr);
    padding: 10px 15px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1e;
}


.container .card:hover .imgBx {
    transform: translateY(-100%) rotateX(60deg);  /*translateY(-100%)  rotateX(90deg)*/
}
.container .card .imgBx,
.container .card .textBx {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    
}

.container .card .imgBx {
   background: #fff; 
   height: 130px;
   z-index: 1;
   transform-origin: top; /*top*/
}


.container .card .textBx {
    height: 330px;
    background: var(--clr);
    border-top: 8px solid #333;
    transform-origin: bottom; /*bottom*/
    transition-delay: 0.5s;
    align-items: flex-end;
    overflow: hidden;
}

.container .card:hover .textBx {
    transform: translateY(92%) rotateX(45deg);  /*translateY 100% rotateX 90deg*/
}

.container .card .textBx h2{
    color: #222;
    font-size: 1.25em;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
    background: #fff;
    padding: 5px 25px;
    box-shadow: 0 0 0 8px #333;
}

.container .card .imgBx::before {
   content: ''; 
   position: absolute;
   bottom: -70px;    /*-70px*/
   left: 50%;
   transform: translateX(-50%);
   width: 144px;
   height: 74px;
   background: #fff;
   border-bottom-left-radius: 80px;
   border-bottom-right-radius: 80px;
   z-index: 1;  /*1*/
}

.container .card .imgBx img {
    position: relative;
    top: 50px;
    z-index: 1000; /*1000*/
}

.container .card .textBx::before {
    content: '';
    position: absolute;
    top: -8px;
    width: 160px;
    height: 80px;
    background: #333;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
}





