/* Background blur animation: */
/*  */
@keyframes moveBlur {
  0% {
    transform: translate(50%, -50%);
  }
  50% {
    transform: translate(calc(-100vw + 500px), -50%);
  }
  100% {
    transform: translate(50%, -50%);
  }
}

.blur-animation {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 1000px;
  height: 800px;
  transform: translate(50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, #f6f0e6 0%, transparent);
  pointer-events: none;
  animation: moveBlur 12s ease-in-out infinite;
}

/*  */
/* Spinning animation: */
/*  */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*  */
/* Home page contact button animation:  */
/*  */
@keyframes pulsation {
  0% {
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

.pulse-animation__1,
.pulse-animation__2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(0, 204, 88, 0) 0%,
    rgba(0, 204, 88, 0.1) 100%
  );
  border-radius: 50%;
  animation: pulsation 3s infinite;
  pointer-events: none;
}

.pulse-animation__1 {
  animation-delay: 0.8s;
}

.pulse-animation__2 {
  animation-delay: 1.5s;
  border: 1px solid #00cc581a;
}

@media (max-width: 768px) {
  .pulse-animation__1,
  .pulse-animation__2 {
    display: none;
    animation: none;
  }
}

/*  */
/* Home page title animation:  */
/*  */
.title-animation-container {
  display: flex;
  overflow: hidden;
  font-family: "Poppins", serif;
  font-weight: 600;
  font-size: 59px;
  letter-spacing: 0.04em;
  position: relative;
  margin-bottom: 64px;
  line-height: 1.3;
  height: 75px;

  @media (max-width: 1280px) {
    font-size: 48px;
    height: 62px;
  }

  @media (max-width: 768px) {
    font-size: 34px;
    height: 44px;
  }
}

.title-animation {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
  transition: transform 0.5s ease-in-out;
}

.title-animation__slide {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-family: "Poppins", serif;
  font-weight: 600;
  font-size: 59px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.5s ease;

  &.active {
    opacity: 1;
  }

  &:first-child {
    lottie-player {
      width: 40px;
      height: 40px;
      margin: 4px 3px 0;
    }

    &.windows {
      lottie-player {
        margin-top: 12px;
      }
    }
  }

  &:nth-child(2) {
    lottie-player {
      width: 46px;
      height: 60px;
      margin-bottom: 10px;
    }

    &.windows {
      lottie-player {
        margin-bottom: 0;
      }
    }
  }

  &:nth-child(3) {
    lottie-player {
      width: 42px;
      height: 42px;
      margin: 8px 3px 0;
    }

    &.windows {
      lottie-player {
        margin-top: 15px;
      }
    }
  }

  &:nth-child(4) {
    lottie-player {
      width: 48px;
      height: 48px;
    }

    &.windows {
      lottie-player {
        margin-top: 8px;
      }
    }
  }

  &:nth-child(5) {
    lottie-player {
      width: 56px;
      height: 56px;
      margin-inline: -4px;
    }

    &.windows {
      lottie-player {
        margin-top: 8px;
      }
    }
  }

  &:nth-child(6) {
    lottie-player {
      width: 28px;
      height: 31px;
      margin-inline: 5px;
    }

    &.windows {
      lottie-player {
        margin-top: 8px;
      }
    }
  }

  @media (max-width: 1280px) {
    font-size: 48px;

    &:first-child {
      lottie-player {
        width: 30px;
        height: 30px;
        margin: 4px 3px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 9px;
        }
      }
    }

    &:nth-child(2) {
      lottie-player {
        width: 34px;
        height: 45px;
        margin-bottom: 6px;
      }

      &.windows {
        lottie-player {
          margin-bottom: 2px;
        }
      }
    }

    &:nth-child(3) {
      lottie-player {
        width: 32px;
        height: 32px;
        margin: 8px 3px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 12px;
        }
      }
    }

    &:nth-child(4) {
      lottie-player {
        width: 37px;
        height: 37px;
        margin: -1px 1px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 5px;
        }
      }
    }

    &:nth-child(5) {
      lottie-player {
        width: 42px;
        height: 42px;
        margin: 0 -3px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 5px;
        }
      }
    }

    &:nth-child(6) {
      lottie-player {
        width: 21px;
        height: 23px;
        margin: 1px 5px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 6px;
        }
      }
    }
  }

  @media (max-width: 768px) {
    font-size: 34px;

    &:first-child {
      lottie-player {
        width: 22px;
        height: 22px;
        margin: 3px 2px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 6px;
        }
      }
    }

    &:nth-child(2) {
      lottie-player {
        width: 24px;
        height: 32px;
        margin-bottom: 8px;
        margin-inline: 1px;
      }
    }

    &:nth-child(3) {
      lottie-player {
        width: 23px;
        height: 23px;
        margin: 5px 1px 0;
      }
    }

    &:nth-child(4) {
      lottie-player {
        width: 26px;
        height: 26px;
        margin: -1px 1px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 3px;
        }
      }
    }

    &:nth-child(5) {
      lottie-player {
        width: 30px;
        height: 30px;
        margin: 0 -3px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 4px;
        }
      }
    }

    &:nth-child(6) {
      lottie-player {
        width: 15px;
        height: 16px;
        margin: 0 3px 0;
      }

      &.windows {
        lottie-player {
          margin-top: 4px;
        }
      }
    }
  }
}

/*  */
/* Home page image animation:  */
/*  */
.img-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 200px;
  width: 40%;

  .img-animation__step {
    position: absolute;

    &:first-child {
      width: 430px;
      height: 301px;
    }

    &:nth-child(2) {
      width: 400px;
      height: 372px;
      top: -25px;
    }

    &:nth-child(3) {
      width: 515px;
      height: 328px;
    }
  }

  @media (max-width: 1024px) {
    .img-animation__step {
      &:first-child {
        width: 286px;
        height: 200px;
      }

      &:nth-child(2) {
        width: 266px;
        height: 248px;
        top: -25px;
      }

      &:nth-child(3) {
        width: 380px;
        height: 218px;
      }
    }
  }

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