@import "../_variables";

.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 - 108px);
        background: url("../../assets/green-dots.svg") repeat-x center center
          fixed;

        .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.6);
          background: var(--navbar-bg);
          box-shadow: 0px 0px 6px 0.5px #c3c3c380,
            0px 0px 6px 0.5px #c3c3c380 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: 4rem;
        height: 4rem;
        border-radius: 50%;

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

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

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

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

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

      .planet1 {
        background: #d74d00;
        top: 50%;
        left: 0;
        box-shadow: 0px 0px 20px 4px #d74d00aa;
      }

      .planet2 {
        background: #b9d700;
        top: 50%;
        right: 0;
        transform: translate(50%, -50%);
        box-shadow: 0px 0px 20px 4px #b9d700aa;
      }
      .planet3 {
        background: #da08ec;
        top: 50%;
        left: 0;
        box-shadow: 0px 0px 20px 4px #da08ecaa;
      }
      .planet4 {
        background: #089aec;
        top: 50%;
        right: 0;
        transform: translate(50%, -50%);
        box-shadow: 0px 0px 20px 4px #089aecaa;
      }
      .planet6 {
        background: #d7c100;
        top: 50%;
        left: 0;
        box-shadow: 0px 0px 20px 4px #d7c100aa;
      }

      .planet5 {
        background: #00d7a3;
        top: 50%;
        left: 0;
        box-shadow: 0px 0px 20px 4px #00d7a3aa;
      }

      .fadeforeground {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 120vh;
        background: linear-gradient(
          180deg,
          #0b0b12 0%,
          rgba(11, 11, 18, 0.05) 50%,
          #0b0b12 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: 6rem;
            font-weight: 500;
            background: linear-gradient(90deg, #ca00aa -2.59%, #05c3ff 105.63%);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
            margin-bottom: 1rem;

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

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

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

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

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

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

          p {
            text-align: center;
            color: var(--primary-text);
            font-size: 1.3rem;
            font-weight: 300;
            line-height: 1.6;
            margin-bottom: 2rem;
            max-width: 40rem;
            padding: 0 1.5rem;

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

          .tagline {
            color: #cacaca;
            text-align: center;
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: 0.3rem;

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

          .cc {
            color: #cacacad2;
            text-align: center;
            font-size: 1rem;
            font-weight: 500;
            margin-top: 1.4rem;
            margin-bottom: 1rem;

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

          .viewOptions {
            display: flex;
            gap: 1rem;

            .ctaBtn {
              min-width: 10.5rem;
            }

            @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;
              }
            }
          }

          // change scrollbar css
          &::-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.8rem;
            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: 4rem;
                  color: #fff;
                  background-color: rgba(#fff, 0.1);
                  border: 0.5px solid #fff;
                  display: flex;
                  align-items: center;

                  &::placeholder {
                    color: rgba(#fff, 0.5);
                  }
                }
              }
            }

            .joinButton {
              border-radius: 4rem;
              height: 2.8rem;
              padding: 0 2rem;
              font-size: 1rem;
              border: 0.5px solid #fff;
              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: 5rem;
          height: 5rem;
          display: flex;
          z-index: 10;
          border-radius: 50%;
          align-items: center;
          justify-content: center;
          background-color: var(--primary-purple);
        }

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

          h1 {
            color: var(--primary-text);
            font-size: nth($fontSize, 5);
          }
          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: 6rem;
              font-weight: 700;
              margin-bottom: 1rem;
            }

            h1 {
              color: var(--primary-text);
              font-size: 2rem;
              font-weight: 700;
              margin-bottom: 1rem;
            }

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

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

              h1 {
                font-size: 1.5rem;
              }

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

      .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: 5rem;
            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: 4rem;
        font-weight: 700;
        margin-bottom: 0.5rem; // make this a common style h1 and p

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

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

        @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;

      // -webkit-background-clip: border-box;
      // -webkit-text-fill-color: transparent;
      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.2);
    top: 16rem;
    left: -5rem;
    filter: blur(100px);
    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(90px);
  }

  .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: 0.06rem;
  width: 1px;
  position: relative;

  background: linear-gradient(
    to bottom,
    transparent,
    var(--filled-pink) 10%,
    var(--primary-purple) 50%,
    var(--filled-pink) 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%; /* Initial and final state */
  }
  50% {
    background-size: 100% 100%; /* Expanded state */
  }
}

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