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

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

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

.card
{
    position: relative;
    width: 600px;
    height: 350px;
    /* background-color:#ccc; */
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: 0.5s;
}

.card .circle
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}


.card .circle::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5272b;
    clip-path: circle(120px at center);
    transition: 0.5s;
}

/*Card Size changes on Hovar Effect*/
.card:hover .circle:before
{
    background: #0065c3;
    clip-path: circle(400px at center);
}

.card img
{
    position: absolute;
    top: 50%;
    left: 50%;
    height: 300px;
    transform: translate(-50%,-50%);
    pointer-events: none;
    transition: 0.5s;
}

/* Image Hovar effect Size changes */
.card:hover img
{
    left: 72%;
    height: 500px;
}

.card .content
{
    position: relative;
    width: 50%;
    left: 20%;
    padding: 20px 20px 20px 40px;
    transition: 0.5s;

    /*Important point Opacity and visibility*/
    opacity: 0;
    visibility: hidden;
}

/*Content Hovar*/
.card:hover .content
{
    /*These is most important lines as actual Hovar effect is because of this*/
    left: 0;
    opacity: 1;
    visibility: visible;
}

.card .content h2
{
    color: #fff;
    text-transform: uppercase;
    font-size: 2em;
    line-height: 1em;
    margin-bottom: 5px;
}
.card .content p
{
    color: #fff;
}

.card .content a
{
    position: relative;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    background: #fff;
    color: #111;
    margin-top: 10px;
    display:inline-block;
    text-decoration: none;
    font-weight: 700;
} 


/* @media query used to make site responsive 
width max 600*/

@media (max-width:600px) 
{
    .card
    {
        width: auto;
        max-width: 350px;
        align-items:flex-start;
        margin: 10px;
    }
    .card:hover
    {
        height: 700px;
    }
    .card .content
    {
        width:100%;
        left: 0;
        padding: 30px;
    }
    .card:hover img 
    {
        top: 70%;
        left: 50%;
        height: 500px;
       
    }
}

/* width for 320max */
@media (max-width:320px) 
{
    .card:hover
    {   
        height: 620px;
    }
    .card:hover img 
    {
        height: 360px;  
    }
}