@import "../_variables";

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wholeWrap {
  background: var(--navbar-bg);
  position: relative;
  overflow: hidden;

  .fadeInTop {
    position: absolute;
    height: 25vh;
    width: calc(100vw);
    z-index: 1;
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0%,
      var(--navbar-bg) 50%
    );
  }

  .contentWrapper {
    margin: 0 auto;
    .container {
      height: 130vh;
      position: relative;
      background: var(--navbar-bg);

      .orbitContainer {
        position: relative;
        height: calc(100vh - 64px);
        background: url("../../assets/green-dots.svg") repeat-x center center
          fixed;
        opacity: 0.7;

        .fadeBottom {
          left: 0;
          bottom: 0;
          width: 100%;
          height: 8rem;
          position: absolute;
          background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 0%,
            var(--navbar-bg) 90%
          );
        }

        .orbit {
          position: absolute;
          top: 40%;
          left: 50%;
          transform: translate(-50%, -50%);
          background: none;
          border-radius: 50%;
          border: 0.5px solid rgba(#fff, 0.06);
          background: var(--navbar-bg);
          box-shadow: 0px 0px 4px 0.5px rgba(#c3c3c3, 0.15),
            0px 0px 4px 0.5px rgba(#c3c3c3, 0.15) inset;
        }

        .orbit1 {
          background: none;
          width: 95em;
          height: 95em;
          transform: translate(-50%, -50%) rotate(0deg);

          @include responsive(tablet3) {
            width: 85em;
            height: 85em;
          }

          @include responsive(tablet1) {
            width: 60em;
            height: 60em;
          }
        }

        .orbit2 {
          background: none;
          width: 81.25em;
          height: 81.25em;
          transform: translate(-50%, -50%) rotate(10deg);
          animation: orbit2Rotation infinite linear 120s;

          @include responsive(tablet3) {
            width: 71.25em;
            height: 71.25em;
          }

          @include responsive(tablet1) {
            width: 50em;
            height: 50em;
          }

          @keyframes orbit2Rotation {
            0% {
              transform: translate(-50%, -50%) rotate(10deg);
            }
            100% {
              transform: translate(-50%, -50%) rotate(370deg);
            }
          }
        }

        .orbit3 {
          background: none;
          width: 67.5em;
          height: 67.5em;
          transform: translate(-50%, -50%) rotate(-30deg);
          animation: orbit3Rotation infinite linear 100s;

          @include responsive(tablet3) {
            width: 57.5em;
            height: 57.5em;
          }

          @include responsive(tablet1) {
            width: 40em;
            height: 40em;
          }

          @keyframes orbit3Rotation {
            0% {
              transform: translate(-50%, -50%) rotate(-30deg);
            }
            100% {
              transform: translate(-50%, -50%) rotate(330deg);
            }
          }
        }

        .orbit4 {
          background: none;
          width: 53.75em;
          height: 53.75em;
          transform: translate(-50%, -50%) rotate(-145deg);
          animation: orbit4Rotation infinite linear 80s;

          @include responsive(tablet3) {
            width: 43.75em;
            height: 43.75em;
          }

          @include responsive(tablet1) {
            width: 30em;
            height: 30em;
          }

          @keyframes orbit4Rotation {
            0% {
              transform: translate(-50%, -50%) rotate(-145deg);
            }
            100% {
              transform: translate(-50%, -50%) rotate(215deg);
            }
          }
        }

        .orbit5 {
          background: none;
          width: 40em;
          height: 40em;
          transform: translate(-50%, -50%) rotate(-15deg);
          animation: orbit5Rotation infinite linear 60s;

          @include responsive(tablet3) {
            width: 30em;
            height: 30em;
          }

          @include responsive(tablet1) {
            width: 20em;
            height: 20em;
          }

          @keyframes orbit5Rotation {
            0% {
              transform: translate(-50%, -50%) rotate(-15deg);
            }
            100% {
              transform: translate(-50%, -50%) rotate(345deg);
            }
          }
        }
      }

      .copilotFeatureInit {
        display: flex;
        justify-content: center;
        position: relative;
        z-index: 8;

        .titleSection {
          padding-bottom: 5rem;
          background: var(--navbar-bg);
          backdrop-filter: brightness(0%);
          box-shadow: 0 0 20px 70px var(--navbar-bg),
            0 0 40px 50px var(--navbar-bg);
          border-radius: 5rem;
        }
      }

      .planet {
        position: absolute;
        transform: translate(-50%, -50%);
        width: 3rem;
        height: 3rem;
        border-radius: 50%;

        @include responsive(tablet1) {
          width: 2.5em;
          height: 2.5em;
        }

        .planetRing {
          width: 2.5rem;
          height: 2.5rem;
          border-radius: 50%;
          border: 0.5px solid rgba(#fff, 0.4);
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);

          @include responsive(tablet1) {
            width: 2em;
            height: 2em;
          }

          .planetIcon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 1.2rem;

            @include responsive(tablet1) {
              font-size: 1rem;
            }
          }
        }
      }

      .planet1 {
        background: #d74d00;
        top: 50%;
        left: 0;
        box-shadow: 0px 0px 16px 3px rgba(#d74d00, 0.4);
      }

      .planet2 {
        background: #b9d700;
        top: 50%;
        right: 0;
        transform: translate(50%, -50%);
        box-shadow: 0px 0px 16px 3px rgba(#b9d700, 0.4);
      }
      .planet3 {
        background: #da08ec;
        top: 50%;
        left: 0;
        box-shadow: 0px 0px 16px 3px rgba(#da08ec, 0.4);
      }
      .planet4 {
        background: #089aec;
        top: 50%;
        right: 0;
        transform: translate(50%, -50%);
        box-shadow: 0px 0px 16px 3px rgba(#089aec, 0.4);
      }
      .planet6 {
        background: #d7c100;
        top: 50%;
        left: 0;
        box-shadow: 0px 0px 16px 3px rgba(#d7c100, 0.4);
      }

      .planet5 {
        background: #00d7a3;
        top: 50%;
        left: 0;
        box-shadow: 0px 0px 16px 3px rgba(#00d7a3, 0.4);
      }

      .fadeforeground {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 120vh;
        background: linear-gradient(
          180deg,
          #000000 0%,
          rgba(0, 0, 0, 0.05) 50%,
          #000000 100%
        );
        z-index: 1;
      }

      .mainContainer {
        position: absolute;
        top: -35px;
        left: 0;
        z-index: 10;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;

        .wrapper {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          transform: translateY(-10%);

          @include responsive(tablet3) {
            transform: translateY(-20%);
          }

          h1 {
            font-size: 5rem;
            font-weight: 700;
            letter-spacing: -0.04em;
            background: linear-gradient(
              135deg,
              #ffffff 0%,
              #ffffff 40%,
              var(--primary-purple) 100%
            );
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
            margin-bottom: 1rem;
            animation: fadeInUp 0.8s ease forwards;

            @media only screen and (min-width: 1600px) {
              font-size: 5rem;
            }

            @include responsive(tablet3) {
              font-size: 3.5rem;
            }

            @include responsive(tablet2) {
              font-size: 3rem;
            }

            @include responsive(tablet1) {
              font-size: 2.5rem;
            }

            @include responsive(mobile4) {
              font-size: 2.5rem;
            }

            @media only screen and (max-width: 360px) {
              margin-bottom: 0.5rem;
            }
          }

          p {
            text-align: center;
            color: var(--secondary-text);
            font-size: 1.125rem;
            font-weight: 400;
            line-height: 1.7;
            margin-bottom: 2rem;
            max-width: 36rem;
            padding: 0 1.5rem;
            letter-spacing: -0.01em;
            animation: fadeInUp 0.8s ease 0.15s both;

            @include responsive(tablet3) {
              font-size: 1rem;
            }
          }

          .tagline {
            color: var(--secondary-text);
            text-align: center;
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            animation: fadeInUp 0.8s ease 0.05s both;

            @include responsive(tablet2) {
              font-size: 0.8rem;
            }
          }

          .cc {
            color: rgba(#fff, 0.35);
            text-align: center;
            font-size: 0.8rem;
            font-weight: 400;
            margin-top: 1.2rem;
            margin-bottom: 1rem;
            animation: fadeInUp 0.8s ease 0.35s both;

            @include responsive(tablet2) {
              font-size: 0.8rem;
            }
          }

          .viewOptions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
            animation: fadeInUp 0.8s ease 0.25s both;

            .ctaBtn {
              min-width: 10.5rem;
            }

            .githubStarBtn {
              display: flex;
              align-items: center;
              gap: 0.5rem;
              padding: 0 1.25rem;
              height: 2.75rem;
              border-radius: 2rem;
              font-size: 0.9rem;
              font-weight: 500;
              color: rgba(255, 255, 255, 0.85);
              background: rgba(255, 255, 255, 0.06);
              border: 1px solid rgba(255, 255, 255, 0.2);
              text-decoration: none;
              transition: all 0.2s ease;

              &:hover {
                color: #fff;
                background: rgba(255, 255, 255, 0.12);
                border-color: rgba(255, 255, 255, 0.3);
              }
            }

            @include responsive(tablet2) {
              flex-direction: column;
              gap: 1rem;
              height: 5rem;
            }
            @include responsive(mobile2) {
              flex-direction: column;
              gap: 1rem;
              height: 5rem;
            }
          }

          .arrow {
            margin-top: 4rem;
            cursor: pointer;
            animation: bounce 2s infinite;
            @include responsive(tablet2) {
              display: none;
            }
          }
        }

        .eggCard {
          max-width: 70rem;
          max-height: 78vh;
          overflow-y: auto;
          transform: translate(-50%, -48%);
          color: #fff;

          :global(.ant-result .ant-result-title) {
            color: #fff;
          }

          &::-webkit-scrollbar {
            width: 0.1rem;
          }

          &::-webkit-scrollbar-track {
            background: none;
          }

          &::-webkit-scrollbar-thumb {
            background: #e5e5e53a;
          }

          &::-webkit-scrollbar-thumb:hover {
            background: #555;
          }

          p {
            width: 100%;
          }

          .shareBtn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            height: 2.4rem;
            border-radius: 6px;
            color: #fff;
            border: none;
            width: 12rem;
          }

          .shareForm {
            margin-top: 4rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;

            .formTitle {
              color: #fff;
              font-size: 1.2rem;
              margin-bottom: 1rem;
              font-weight: bold;
            }

            .formItem {
              justify-self: center;

              :global(.ant-input) {
                padding: 0rem 1.5rem;
                height: 2.5rem;
                width: 30rem;
                max-width: 70vw;
                font-size: 1rem;
                border-radius: 2rem;
                color: #fff;
                background-color: rgba(#fff, 0.06);
                border: 0.5px solid rgba(#fff, 0.15);
                display: flex;
                align-items: center;
              }
              :global(.ant-input::placeholder) {
                color: rgba(#fff, 0.4);
              }
            }

            .joinButton {
              border-radius: 2rem;
              height: 2.4rem;
              padding: 0 2rem;
              font-size: 1rem;
              border: 0.5px solid rgba(#fff, 0.15);
              cursor: pointer;
              display: flex;
              align-items: center;
              justify-content: center;
              font-weight: 500;
            }
          }
        }
      }
    }

    .copilotFeatures {
      width: 100%;
      position: relative;
      background: var(--navbar-bg);
      margin-bottom: 5rem;

      .carouselCards {
        padding: 2rem 6rem;

        .carouselImage {
          padding-top: 1rem;

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

        @include responsive(tablet1) {
          padding: 2rem;
        }

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

        @include responsive(tablet3) {
          padding: 2.5rem;
        }
      }

      .copilotFeaturesImg {
        display: flex;
        margin: 0 auto;
      }

      @include responsive(tablet1) {
        margin-bottom: 0;
      }
    }

    .copilotProcesses {
      display: flex;
      gap: 1rem;
      margin-bottom: 15rem;
      position: relative;
      justify-content: center;
      background-color: var(--navbar-bg);
      z-index: 8;

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

      .sectionLeft,
      .sectionRight {
        display: flex;
        gap: 12.5rem;
        margin-top: 2.8rem;
        flex-direction: column;

        .featureBox {
          min-height: 10rem;
        }
      }

      .absoluteBox {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 80%);
      }
    }

    .copilotProcessMobile {
      display: none;
      margin-bottom: 5rem;
      justify-content: center;
      background-color: var(--navbar-bg);

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

      .featureBox {
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--navbar-bg);

        .featureIcon {
          width: 4rem;
          height: 4rem;
          display: flex;
          z-index: 10;
          border-radius: 50%;
          align-items: center;
          justify-content: center;
          background-color: var(--filled-purple);
        }

        .featureContent {
          text-align: center;
          padding: 0 1rem;
          max-width: 30rem;

          h1 {
            color: var(--primary-text);
            font-size: nth($fontSize, 5);
            font-weight: 600;
          }
          p {
            color: var(--secondary-text);
            font-size: nth($fontSize, 3);
          }
        }
      }
    }

    .copilotSteps {
      width: 100%;
      max-width: 1600px;
      position: relative;
      margin: 0 auto;
      padding: 0 2rem;
      margin-bottom: 5rem;
      background: var(--navbar-bg);

      .copilotFeatureSlider {
        display: none;

        @include responsive(laptop1) {
          display: unset;
        }

        .featureSlide {
          flex: 1;
          gap: 2rem;
          height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          min-height: 26rem;

          @include responsive(tablet4) {
            flex-direction: column-reverse;
            gap: 1rem;
            min-height: 39rem;

            .slideContent {
              text-align: center;
            }
          }

          @include responsive(tablet3) {
            min-height: 45rem;
          }

          .slideImage {
            padding: 0 2rem;
          }

          .slideContent {
            padding: 0 1rem;
            .slideNum {
              color: var(--primary-purple);
              font-size: 5rem;
              font-weight: 700;
              margin-bottom: 1rem;
            }

            h1 {
              color: var(--primary-text);
              font-size: 1.75rem;
              font-weight: 700;
              margin-bottom: 1rem;
              letter-spacing: -0.02em;
            }

            p {
              color: var(--secondary-text);
              font-size: 1rem;
              font-weight: 500;
            }

            @include responsive(tablet4) {
              .slideNum {
                font-size: 4rem;
              }

              h1 {
                font-size: 1.5rem;
              }

              p {
                font-size: 0.9rem;
              }
            }
          }
        }
      }

      .stepsSection {
        margin: 12rem 0;
        padding: 0 8rem;

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

        .step {
          display: flex;
          align-items: center;
          gap: 1rem;

          .stepNumber {
            color: var(--primary-purple);
            text-align: center;
            font-size: 4rem;
            font-weight: 700;
          }

          .stepTextBox {
            max-width: 21rem;
            h1 {
              color: var(--primary-text);
            }
          }
        }

        &:hover {
          .step {
            .stepNumber {
              color: var(--primary-purple);
            }
          }
        }
      }

      .processSection {
        padding: 3rem 0;
        display: flex;
        justify-content: center;

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

    .titleSection {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      h1 {
        color: var(--primary-text);
        text-align: center;
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        letter-spacing: -0.03em;

        @include responsive(tablet4) {
          padding: 0 1rem;
          font-size: 2.5rem;
        }
      }

      p {
        text-align: center;
        color: var(--secondary-text);
        font-size: nth($fontSize, 4);
        max-width: 40rem;
        font-weight: 500;

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

    .bbLogoText {
      background-color: #ca4246;

      background-image: linear-gradient(
        45deg,
        #ca4246 16.666%,
        #e16541 16.666%,
        #e16541 33.333%,
        #f18f43 33.333%,
        #f18f43 50%,
        #8b9862 50%,
        #8b9862 66.666%,
        #476098 66.666%,
        #476098 83.333%,
        #a7489b 83.333%
      );

      background-size: 100%;
      background-repeat: repeat;

      animation: rainbow-text-simple-animation-rev 0.75s ease forwards;

      &:hover {
        animation: rainbow-text-simple-animation 0.5s ease-in forwards;
      }

      @keyframes rainbow-text-simple-animation-rev {
        0% {
          background-size: 650%;
        }
        40% {
          background-size: 650%;
        }
        100% {
          background-size: 100%;
        }
      }

      @keyframes rainbow-text-simple-animation {
        0% {
          background-size: 100%;
        }
        80% {
          background-size: 650%;
        }
        100% {
          background-size: 650%;
        }
      }
    }
  }

  .purpleBlurCircle1 {
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: rgba(#a100f2, 0.1);
    top: 16rem;
    left: -5rem;
    filter: blur(120px);
    z-index: 10;

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

  .purpleBlurCircle2 {
    @extend .purpleBlurCircle1;
    top: -5rem;
    left: unset;
    right: -10rem;
  }

  .purpleBlurCircle3 {
    @extend .purpleBlurCircle1;
    top: 80rem;
    left: -3rem;
    height: 35rem;
    width: 15rem;
    filter: blur(110px);
  }

  .purpleBlurCircle4 {
    @extend .purpleBlurCircle1;
    top: 70rem;
    left: unset;
    right: -15rem;
  }

  .purpleBlurCircle5 {
    @extend .purpleBlurCircle1;
    top: 150rem;
    right: unset;
    height: 35rem;
    width: 20rem;
  }

  .purpleBlurCircle6 {
    @extend .purpleBlurCircle1;
    top: 230rem;
    left: unset;
    right: 0;
    height: 45rem;
    width: 25rem;
  }

  .purpleBlurCircle7 {
    @extend .purpleBlurCircle1;
    top: 290rem;
    left: 0;
    height: 45rem;
    width: 20rem;
    z-index: 0;

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

.gradientBox {
  height: 25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

.gradientBoxBottom {
  @extend .gradientBox;
  height: 18rem;
}

.line {
  height: 20rem;
  width: 1px;
  position: relative;

  background: linear-gradient(
    to bottom,
    transparent,
    var(--filled-purple-50) 10%,
    var(--primary-purple) 50%,
    var(--filled-purple-50) 90%,
    transparent
  );
  animation: gradientAnimation 3s ease-in-out infinite;
}

.longLine {
  @extend .line;
  height: 25rem;
  align-self: flex-end;
}

@keyframes gradientAnimation {
  0%,
  100% {
    background-size: 100% 120%;
  }
  50% {
    background-size: 100% 100%;
  }
}

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