#hero {
  position: relative;
  margin: 120px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;

  > h1,
  > h2 {
    text-align: center;
  }

  .video-blur {
    position: absolute;
    width: max(40vw, 400px);
    height: max(40vw, 400px);
    min-width: 200px;
    margin: -10vw;
    min-height: 200px;
    top: -2vw;
    animation:
      1s ease 0s 1 heroLightingMove forwards,
      1s ease 0s 1 heroLightingBlur forwards;
    filter: blur(15px);
    -webkit-filter: blur(15px);
    /* Trigger gpu acceleration */
    transform: translate3d(0, 0, 0);
  }

  .hero-lighting {
    width: 100%;
    height: 100%;
  }

  .x {
    position: absolute;
    width: 20vw;
    min-width: 200px;
    height: 20vw;
    min-height: 200px;
    top: -2vw;
    animation:
      1s ease 0s 1 heroLightingMove forwards,
      1s ease 0s 1 heroLightingBigBlur forwards;
    background: linear-gradient(315deg, #9004ff, #50018f);
    background-size: 200% 200%;
    filter: blur(75px);
    -webkit-filter: blur(75px);
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1;
    animation: fadeIn 1.4s ease;
  }

  .video-wrapper {
    position: relative;
    margin: 120px 0;
    overflow: hidden;
    border-radius: 36px;

    &:not(:has(video)) {
      background-position: center center;
      background-size: cover;
      width: 100%;
      aspect-ratio: 16 / 9;

      /* only solutions pages will use these anyways */
      background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/assets/solutions/splash.webp') center center / cover no-repeat;
    }

    .over-video {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 1;
      background-color: #00000033;
      padding: 24px;
      transition:
        background-color 0.3s,
        backdrop-filter 0.3s;

      &:hover {
        background-color: #00000066;
        backdrop-filter: blur(15px);
      }

      > h1 {
        font-size: 36px;
      }
    }

    video {
      width: 100%;
      max-width: 1200px;
      animation: fadeIn 1.4s ease;
    }

    .controls {
      position: absolute;
      bottom: 24px;
      right: 18px;

      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      z-index: 1;

      icon-button {
        opacity: 0.7;
      }
    }
  }

  > .card-nav {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;

    @media screen and (max-width: 600px) {
      justify-content: center;
      gap: 8px;
    }

    > a {
      flex: 0 0 18%;
      aspect-ratio: 1;

      @media screen and (max-width: 600px) {
        flex: 0 0 30%;
      }

      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 16px;

      border-radius: 25%;
      border: 1px solid #58476f;
      background-color: rgba(17, 3, 37, 0.7);
      box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
      backdrop-filter: blur(5px);
      text-align: center;

      transition: 120ms background-color ease;

      &.active,
      &:hover {
        background-color: rgba(92, 24, 189, 0.7);
      }

      &:active {
        background-color: rgba(92, 24, 189, 0.9);
      }

      > img {
        height: 40%;
        max-height: 88px;
        aspect-ratio: 1;
      }
    }
  }
}

@media screen and (max-width: 1200px) {
  #hero {
    margin: 80px 0;
  }
}

#hero .actions {
  margin-top: calc(48px - 16px);

  display: flex;
  align-items: center;
  gap: 16px;
}

@media screen and (max-width: 1200px) {
  #hero carousel2 {
    margin-top: calc(60px - 16px);
  }
}

#hero carousel2 img {
  pointer-events: none;
  flex: 0 0 auto;
  user-select: none;
  opacity: 0.8;
  max-width: 80px;
  max-height: 80px;
}

@media screen and (min-width: 1200px) {
  #hero span {
    margin-bottom: 32px;
  }
}

#hero .property {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;

  gap: 16px;
  height: 50px;

  > .img-holder {
    width: 160px;
    animation: 1000ms floatFromLeft ease;

    > img {
      height: 50px;
      float: right;
    }
  }

  > div {
    font-size: 14px;
    font-weight: 500;
    width: 160px;
    animation: 1000ms floatFromRight ease;
  }
}

@keyframes floatFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  30% {
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes floatFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  30% {
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    transform: translate(0, 70px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes heroLightingMove {
  0% {
    transform: translate(0, -70%);
    filter: blur(150px);
    -webkit-filter: blur(150px);
  }
  100% {
    transform: translate(0, 0);
    filter: blur(15px);
    -webkit-filter: blur(15px);
  }
}

@keyframes heroLightingBlur {
  0% {
    filter: blur(150px);
    -webkit-filter: blur(150px);
  }
  100% {
    filter: blur(15px);
    -webkit-filter: blur(15px);
  }
}

@keyframes heroLightingBigBlur {
  0% {
    filter: blur(400px);
    -webkit-filter: blur(400px);
  }
  100% {
    filter: blur(75px);
    -webkit-filter: blur(75px);
  }
}

@keyframes heroLightingPulsate {
  0% {
    background-position: 0 2%;
  }
  50% {
    background-position: 100% 99%;
  }
  100% {
    background-position: 0 2%;
  }
}
