@use "../custom" as *;

.homeIntro {
  min-height: 48.8125rem;
  width: 100%;
  position: relative;
  z-index: 2;
  padding-top: 8.25rem;
  overflow: hidden;

  @media (max-width: 1300px) {
    min-height: auto;
    padding: 8.25rem 0;
  }

  &::before {
    content: "";
    width: 100%;
    height: 100%;
    background: no-repeat url("../images/home-hero.svg");
    background-size: cover;
    background-position: center 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
  }

  &::after {
    content: "";
    width: 100%;
    height: 17.8125rem;
    top: 50%;
    transform: translateY(-50%);
    background: no-repeat url("../icons/wave.svg");
    background-size: cover;
    background-position: center;
    position: absolute;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
  }

  &__wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    @include media-breakpoint-down(lg) {
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center;
    }
  }

  &__headline {
    margin: 1rem 0 2.1875rem 0;
    color: $white;
    font-size: clamp(2rem, 5vw, 4.625rem);
    letter-spacing: -0.3rem;
    font-weight: 900;
    max-width: 46rem;
    font-family: $roobert;
    line-height: 1.3;

    @include media-breakpoint-down(xl) {
      letter-spacing: 0.03rem;
      line-height: 1.5;
    }

    @include media-breakpoint-down(lg) {
      justify-content: center;
      align-items: center;
      text-align: center;
      margin: 1rem 0 1.5rem;
      div {
        justify-content: center;
      }
    }

    .green {
      color: $green;
      font-size: 4.38rem;
      letter-spacing: -0.3rem;
      font-weight: 700;
      font-family: $roobert;
      font-size: clamp(1.5rem, 5vw, 4.38rem);

      @include media-breakpoint-down(xl) {
        letter-spacing: 0.03rem;
        line-height: 1.5;
      }
    }

    .bg-green {
      background-color: $green;
      border-radius: 100vh;
      font-family: $roobert;
      font-weight: 600;
      font-size: 2.25rem;
      letter-spacing: -0.03rem;
      color: $white;
      padding: 0.75rem 1.75rem;
      font-size: clamp(20px, 5vw, 2.25rem);

      @include media-breakpoint-down(lg) {
        padding: 4px 12px;
      }
    }

    &-heart {
      min-width: 71px !important;
      width: 71px !important;
      height: 71px !important;
      object-fit: contain;

      @include media-breakpoint-down(lg) {
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
      }
    }
  }

  &__left {
    max-width: 50rem;
    width: 100%;
    &-content {
      @media (max-width: 1300px) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
      }
    }

    &-arrow {
      min-width: 4.375rem;
      width: 4.375rem;
      height: 4.375rem;
      object-fit: cover;
      object-position: start;

      @include media-breakpoint-down(lg) {
        min-width: 34px;
        width: 34px;
        height: 34px;
        margin: auto !important;
      }
    }

    &-description {
      font-family: $roobert;
      color: $label-200;
      font-size: 1rem;
      font-weight: 400;
      max-width: 691px;
      width: 100%;
      margin: 0;

      @include media-breakpoint-down(lg) {
        text-align: center;
      }
    }

    @media (max-width: 1300px) {
      max-width: 100%;
    }
  }

  &__right {
    max-width: 750px;
    width: 100%;
    position: relative;

    &-effect {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.5);
      z-index: -2;
      width: 500px;
      min-width: 500px;
      height: 500px;
      border-radius: 100vh;
      background-color: #0caf60;
      filter: blur(90px);
      opacity: 0;
      animation: opacityef 6s infinite ease-in-out alternate-reverse;
    }

    @media (max-width: 1300px) {
      display: none;
    }
  }
}
