* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: consolas;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 110vh;
  background-image: url("fota2.jpg");
}

.title {
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  font-size: 55px;
  top: -250px;
  bottom: 0px;
  right: 0px;
  left: 300px;
  text-align: center;
  position: absolute;
  border-radius: 10px;
  width: 500px;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(315deg, #ff6600, #000000);
  -webkit-box-shadow: 0px 0px 53px -3px rgba(255, 102, 0, 1);
  -moz-box-shadow: 0px 0px 53px -3px rgba(255, 102, 0, 1);
  box-shadow: 0px 0px 53px -3px rgba(255, 102, 0, 1);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 50px 0;
}

.container .box {
  position: relative;
  width: 320px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 30px;
  transition: 0.5s;
}
.container .box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
}

.container .box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
  filter: blur(30px);
  transition: 0.5s;
}

.container .box:hover:before,
.container .box:hover:after {
  transform: skewX(0deg);
  left: 20px;
  width: calc(100% - 90px);
}

.container .box:nth-child(1):before,
.container .box:nth-child(1)::after {
  background: linear-gradient(315deg, #003af8, #000000);
}

.container .box:nth-child(2):before,
.container .box:nth-child(2)::after {
  background: linear-gradient(315deg, #04f52c, #000000);
}

.container .box:nth-child(3):before,
.container .box:nth-child(3)::after {
  background: linear-gradient(315deg, #f80901, #000000);
}

.container .box span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  pointer-events: none;
}

.container .box span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.5s;
  animation: animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.container .box:hover span::before {
  top: -85px;
  left: 30px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.container .box span::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.5s;
  animation: animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  animation-delay: -1s;
}

.container .box:hover span::after {
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

@keyframes animate {
  0%,
  100% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.container .box .content {
  position: relative;
  left: 0;
  padding: 10px 40px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  z-index: 1;
  transform: 0.5s;
  color: rgb(255, 255, 255);
  font-family: "Montserrat", sans-serif;
}

.container .box:hover .content {
  left: -25px;
  padding: 15px 40px;
}

.container .box .content h2 {
  font-size: 2em;
  color: #fff;
  margin-bottom: 10px;
}

.container .box .content p {
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.2em;
}

.container .box .content a {
  display: inline-block;
  font-size: 1.1em;
  color: #111;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 5px;
}

@media screen and (max-width: 1650px) {
  .container {
    height: 80%;
  }
}

@media screen and (max-width: 1366px) {
  .title {
    left: 250px;
    width: 400px;
    height: 120px;
    font-size: 40px;
    top: -230px;
  }
  .container .box {
    width: 250px;
    height: 330px;
    top: 100px;
  }
  .content {
    width: 95%;
    height: 95%;
  }
  .container .box .content h2 {
    font-size: 25px;
    color: #fff;
    margin-bottom: 10px;
  }
  .container .box .content p {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.2em;
  }
  .container .box:hover span::after {
    width: 70px;
    height: 70px;
    bottom: -70px;
  }
  .container .box:hover span::before {
    top: -50px;
    left: 30px;
    width: 70px;
    height: 70px;
    opacity: 1;
  }
}

@media screen and (max-width: 1080px) {
  .title {
    left: 250px;
    width: 400px;
    height: 120px;
    font-size: 40px;
    top: -230px;
  }
  .container {
    height: 80%;
  }
}

@media screen and (max-width: 930px) {
  .container {
    height: 80%;
  }
  .title {
    left: 90px;
    width: 400px;
    height: 120px;
    font-size: 40px;
  }
  .container .box {
    width: 250px;
    height: 330px;
    top: 200px;
  }
}

@media screen and (max-width: 414px) {
  .container {
    height: 80%;
  }
  .title {
    left: -20px;
    width: 300px;
    height: 100px;
    font-size: 30px;
    top: -230px;
  }
}
