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

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

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

.hexagon {
  position: relative;
  width: 350px;
  height: 400px;
  /* background: blue; */
  cursor: pointer;
}

.hexagon:hover::before {
  opacity: 0.8;
  transform: scale(0.8);
}

.hexagon::before {
  position: absolute;
  content: "";
  bottom: -70px;
  height: 60px;
  width: 100%;
  background: radial-gradient(rgba(0, 0, 0, 0.5), transparent, transparent);
  border-radius: 50%;
  transition: 0.5s;
}

.hexagon .shape {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: red;
  clip-path: polygon(52% 0, 100% 25%, 100% 80%, 50% 100%, 0 79%, 0 25%);
  transition: 0.5s;
}

.hexagon:hover .shape {
  transform: translateY(-30px);
}

.hexagon .shape img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hexagon .shape .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: linear-gradient(45deg, #0b8c4c, rgba(11, 140, 76, 0.5));
  color: #fff;
  /* opacity: 0; */
  transition: 0.5s;
}

.hexagon:hover .shape .content{
  opacity: 1;
}
