* {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.hero {
  background: #000;
  width: 100%;
  height: 100vh;
  padding-left: 12%;
  padding-right: 12%;
  padding-top: 80px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 50px;
  font-weight: 500;
}

.row {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.col {
  flex-basis: 28%;
  text-align: center;
  position: relative;
  cursor: pointer;
  min-width: 230px;
  margin-bottom: 20px;
  z-index: 1;
}

.profile {
  width: 100%;
  height: 100%;
  background: #1e2648;
  padding: 12px;
}

.profile img {
  width: 100%;
}

.profile h2 {
  margin: 25px 0 10px;
  font-weight: 500;
}
.profile p {
  color: #ff7878;
  margin-bottom: 10px;
}

.col::before,
.col::after {
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  background: linear-gradient(135deg, #ff001d, #ddfa00);
  z-index: -1;
  animation: none;
}

.col::before {
  left: 0;
  top: -8px;
}

.col::after {
  right: 0;
  bottom: -8px;
}

.col:hover::before,
.col:hover::after {
  animation: stroke 1s linear;
  animation-fill-mode: forwards;
}

@keyframes stroke {
  0% {
    height: 8px;
    width: 0px;
  }
  50% {
    height: 8px;
    width: calc(100% + 8px);
  }
  100% {
    height: calc(100% + 16px);
    width: calc(100% + 8px);
  }
}
