@import "../_variables";

.aiContainer {
  width: 100%;
  background: var(--navbar-bg);

  .heroSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: relative;
    transform: translate(0, -10%);

    .arrow {
      cursor: pointer;
      animation: bounce 2s infinite;
    }

    .leftCircle1 {
      position: absolute;
      width: 30rem;
      height: 38rem;
      border-radius: 50%;
      background: rgba(#a100f2, 0.5);
      top: -7%;
      left: -7%;
      filter: blur(100px);
    }

    .title {
      color: var(--primary-text);
      text-align: center;
      font-size: 6rem;
      font-weight: 600;
    }

    .description {
      color: var(--primary-grey);
      text-align: center;
      font-size: nth($fontSize, 5);
      font-weight: 500;
      width: 50%;

      padding-bottom: 2rem;
    }

    @include responsive(mobile4) {
      padding: 0 0.5rem;
      .title {
        font-size: 5rem;
      }

      .description {
        width: 80%;
      }
    }

    @include responsive(mobile3) {
      .title {
        font-size: 4rem;
      }

      .description {
        width: 80%;
      }
    }
  }

  .aiWorkContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0rem 5rem;
    position: relative;

    width: 100%;
    padding-bottom: 14rem;

    @include responsive(tablet4) {
      gap: 3rem;
      padding: 2rem 2rem;
    }

    @include responsive(mobile4) {
      padding: 1rem;
    }

    .leftCircle2 {
      position: absolute;
      width: 25rem;
      height: 36rem;
      border-radius: 50%;
      background: rgba(#a100f2, 0.2);
      filter: blur(100px);
      top: -7%;
      right: -8%;
    }

    .leftCircle3 {
      position: absolute;
      width: 20rem;
      height: 40rem;
      border-radius: 50%;
      background: rgba(#a100f2, 0.2);
      filter: blur(90px);
      top: 40%;
      left: -10%;
    }

    .leftCircle4 {
      position: absolute;
      width: 20rem;
      height: 30rem;
      border-radius: 50%;
      background: rgba(#a100f2, 0.2);
      filter: blur(50px);
      right: -10%;
      bottom: 0;
    }

    .section {
      display: flex;
      gap: 2rem;
      z-index: 2;

      align-items: flex-end;
      justify-content: flex-end;

      @include responsive(tablet4) {
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
      }

      @include responsive(tablet3) {
        justify-content: center;
      }

      .icon {
        position: relative;
        margin-right: 1rem;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 13rem;
        height: 13rem;

        .purpleCircle {
          width: 13rem;
          height: 13rem;

          display: flex;
          align-items: center;
          justify-content: center;

          position: absolute;
          top: 0;
          left: 0;

          animation: rotate 40s linear infinite;
        }

        .whiteCircle {
          width: 12rem;
          height: 12rem;

          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 100px;
          background: var(--primary-text);

          position: absolute;
          top: 8px;
          left: 8px;
        }

        @include responsive(mobile3) {
          margin-left: -4.2rem;
        }
      }

      .text {
        display: flex;
        align-items: center;

        gap: 2rem;
        position: relative;

        .arrowRight {
          font-size: 1.5rem;
          color: var(--primary-purple);
          margin-left: 2rem;
          margin-bottom: 3.5rem;

          @include responsive(tablet4) {
            display: none;
          }
        }

        .arrowLeft {
          @extend .arrowRight;
          margin-right: 2rem;
        }

        .feature {
          max-width: 38rem;

          h1 {
            color: var(--primary-text);
            font-size: 1.75rem;
            font-weight: 600;
          }

          p {
            color: var(--primary-grey);
            font-size: nth($fontSize, 3);
            font-weight: 400;
          }

          @include responsive(tablet3) {
            h1,
            p {
              text-align: center !important;
            }
          }
        }
      }

      .textReverse {
        flex-direction: row-reverse;
      }
    }

    .connector {
      z-index: 0;
      margin: -6.5rem;
      @include responsive(tablet4) {
        display: none;
      }
    }

    .connectorReverse {
      @extend .connector;
      margin: -7rem;
      transform: rotate(4.5deg);
    }

    .sectionReverse {
      display: flex;
      flex-direction: row-reverse;
      align-items: flex-end;
      justify-content: flex-end;

      @include responsive(tablet4) {
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
      }

      @include responsive(tablet3) {
        flex-direction: row;
        justify-content: center;
      }

      .icon {
        margin-left: -1.8rem;

        @include responsive(mobile3) {
          margin-left: -3rem;
          margin-right: 2rem;
        }
      }
    }
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
