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

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

body {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(253deg, #a62dda, #21958f);
  transition: all 1s ease-in-out;
}

.container {
  height: 400px;
  min-width: 400px;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.icon-image {
  position: relative;
  height: 70px;
  width: 70px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);

}
.icon-image img {
  position: absolute;
  height: 95%;
  width: 95%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #034cd3;
}

.hover-image {
  position: absolute;
  height: 350px;
  width: 300px;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 25px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
  z-index: 0;
  transition: transform 0.5s, z-index 0s, left 0.5s;
  transition-delay: 0s, 0.5s ,0.5s;
  pointer-events: none;
}
.icon-image:hover .hover-image{
    left: -200px;
    z-index: 12;
    transform: translateX(80px);
    transition: left 0.5s, z-index 0s , transform 0.5s;
    transition-delay: 0s , 0.5s ,0.5s;


}

.hover-image img{
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 25px;
}

.content{
  position: absolute;
  width: 100%;
  bottom: -10px;
  left: 0;
  padding: 0 10px;
}
.content:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    background: #fff;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.content .details {
  position: relative;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
}
.icon-image:hover .details {
    opacity: 1;
    transform: translateY(4px);
    transition: all 0.3s ease;
    transition-delay: 0.9s;
}

.content .details:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  background: #fff;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.details .name {
  font-size: 20px;
  font-weight: 500;
}

.details .job {
  font-size: 17px;
  columns: #0396ff;
  margin: -3px 0 5px 0;
}

.last .hover-image{
    transition: none;
}
.last:hover .hover-image{
    transition: none;
}
.last:hover .details{
    transition-delay: 0s;
}



@media (max-width:550px) {
    body{
        justify-content: center;
        /* align-items:normal; */
        background: rgb(225, 0, 255);
        transition: background 0.5s ease-in-out;
        
    }
    .icon-image{
        width: 50px;
        height: 50px;
    }
    .hover-image{
        height: 225px;
        width: 200px;
        bottom: 80px;
    }
    .details .job{
        font-size: 8px;
    }
    
    .details .name{
        font-size: 15px;
        font-weight: 500;
    }
    .img4,.img5{
        display: none;
    }
    /* content   */
    .container{
        position: absolute;
        left: 33%;
    }
    .content:before{
        left: 30%;
    }
    .content{
        position: absolute;
        width: 85%;
        bottom: -10px;
        left: 50px;
        padding: 0 10px;
    }
}