.hero-section {
  position: relative;
  z-index: 10;
  display: flex;
  height: 100vh;

  .hero-content {
    margin-top: 150px;
    width: 100%;
    position: absolute;
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .hero-title-wrapper {
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 48px;

      .hero-title {
        font-size: 120px;
        font-weight: bold;
        line-height: 120%;
        color: var(--white);

        b {
          color: var(--main-blue);
        }
      }
    }

    .hero-subtitle {
      display: flex;
      flex-direction: column;
      gap: 16px;
      width: fit-content;

      .subtitle-number {
        display: flex;
        flex-direction: row;
        font-size: 16px;
        gap: 8px;

        div {
          color: var(--white);
        }
      }
      .progress-bar {
        display: flex;
        flex-direction: row;
        gap: 4px;

        .progress {
          height: 4px;
          border-radius: 10000px;
          background-color: var(--gray-200);
          width: 24px;
          overflow: hidden;

          transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);

          &.active {
            position: relative;
            width: 80px;

            .filled {
              position: absolute;
              background-color: var(--white);
              width: 0%;
              height: 4px;

              transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
              z-index: 100;
            }
          }
        }
      }
    }
  }

  /* .hero-video {
    object-fit: cover;
    width: 100vw;
    height: 100%;
  } */

  .video-container {
    width: 100vw;
    overflow: hidden;

    .video-dim {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 100%
      );
    }

    video {
      object-fit: cover;
      min-width: 100%;
      height: 100vh;
    }
  }
}

.slogan-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 150px;
  gap: 48px;
  width: 100%;

  .slogan-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;

    .slogan-title {
      display: flex;
      flex-direction: column;
      gap: 24px;

      .title-wrapper {
        text-align: center;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 16px;

        .title-static {
          font-size: 52px;
          font-weight: bold;
        }

        .title-typed {
          .title {
            font-size: 52px;
            font-weight: bold;
            display: inline-block;
            text-align: center;
            line-height: 1;
            color: var(--main-blue);
          }
          .typed-cursor {
            font-size: 52px;
            display: inline-block;
            line-height: 1;
            color: var(--main-blue);
          }
        }
      }

      .subtitle {
        font-size: 24px;
        font-weight: 400;
        line-height: 140%;
        text-align: center;
      }
    }
  }

  .slogan-images {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow: hidden;

    .image-container {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 524px;
      border-radius: 4px;
      overflow: hidden;
      position: relative;
      transition: all 0.3s ease;

      img {
        object-fit: cover;
        width: 100%;
        height: 100%;
      }

      &.active {
        width: 60%;
        flex-shrink: 0;

        .slogan-overlay {
          opacity: 1;
          visibility: visible;
        }
      }

      .slogan-overlay {
        position: absolute;
        display: flex;

        z-index: 2;
        text-align: center;

        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        justify-content: center;
        align-items: center;
        background: linear-gradient(
          0deg,
          rgba(0, 0, 0, 0.4) 0%,
          rgba(0, 0, 0, 0) 100%
        );
        transition: opacity 0.2s ease, visibility 0.2s ease;

        .slogan-overlay-title-wrapper {
          display: flex;
          flex-direction: column;
          gap: 48px;
          max-width: 640px;

          .slogan-overlay-title {
            font-size: 48px;
            font-weight: 700;
            color: var(--white);
          }
          .slogan-overlay-desc {
            font-size: 24px;
            font-weight: 400;
            line-height: 150%;
            color: var(--white);
          }
        }
      }
    }
  }

  .pagination-wrapper {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;

    .pagination {
      width: 64px;
      display: flex;
      justify-content: center;
      cursor: pointer;

      span {
        font-size: 18px;
        color: var(--gray-200);
        text-align: center;

        &:hover {
          color: var(--gray-300);
        }
      }

      &.active {
        span {
          font-weight: 700;
          color: var(--black);
        }
      }
    }
  }
}

.about-section {
  display: flex;
  padding-top: 150px;
  padding-bottom: 150px;

  .about-content {
    display: flex;
    flex-direction: row;
    gap: 120px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;

    .about-title-wrapper {
      display: flex;
      flex-direction: column;
      gap: 48px;
      flex: 2.5;

      .about-title {
        font-size: 52px;
        font-weight: 700;
        line-height: 110%;
        width: 100%;
      }
      .about-desc {
        font-size: 20px;
        font-weight: 400;
        line-height: 150%;
        width: 100%;
      }
    }

    .about-image {
      display: flex;
      flex: 2;
      border-radius: 4px;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
      }
    }
  }

  .button-line-wrapper {
    &.mobile {
      display: none;
    }
  }
}

.solution-section {
  padding-top: 150px;

  .solution-content-wrapper {
    .solution-content {
      width: 100%;
      max-width: 1000px;
      display: flex;
      flex-direction: column;
      margin: 0 auto;
      gap: 84px;

      .solution-content-title {
        font-size: 52px;
        font-weight: bold;
        text-align: center;
        line-height: 120%;
      }

      .solution-list {
        .solution-item {
          position: relative;
          height: 400px;
          width: 100%;
          border-radius: 4px;
          overflow: hidden;
          perspective: 1000px;
          cursor: pointer;

          .inner {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transition: transform 0.6s;

            .arrow {
              position: absolute;
              top: 24px;
              right: 24px;
              z-index: 22;
            }

            &.clicked {
              transform: rotateY(180deg);
              .side {
                .overlay {
                  .arrow.left {
                    display: none;
                  }
                }
              }
            }

            .side {
              position: absolute;
              width: 100%;
              height: 100%;
              backface-visibility: hidden;
              display: flex;
              justify-content: center;
              align-items: center;

              .overlay {
                position: absolute;
                background-color: rgba(0, 0, 0, 0.1);

                width: 100%;
                height: 100%;
                display: flex;
                justify-content: center;
                align-items: center;

                .title-wrapper {
                  width: fit-content;
                  display: flex;
                  flex-direction: column;
                  align-items: center;
                  gap: 16px;

                  .title {
                    font-size: 32px;
                    font-weight: 700;
                    text-align: center;
                    color: var(--white);
                  }

                  .desc {
                    font-size: 16px;
                    line-height: 140%;
                    color: var(--white);
                  }
                }
                .arrow {
                  position: absolute;
                  width: 40px;
                  height: 40px;
                  top: 16px;
                  right: 16px;
                  z-index: 99999999999;

                  :hover {
                    transform: scale(1.2);
                    transition: transform 0.2s ease-in-out;
                  }
                }
              }

              &.front {
                background: #fff;

                &.hidden {
                  display: none;
                }
              }

              &.back {
                background: #f7f7f7;
                transform: rotateY(180deg);
                .overlay {
                  background-color: rgba(0, 0, 0, 0.4);

                  .container {
                    padding: 24px;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    width: 100%;
                    height: 100%;

                    .desc {
                      text-align: center;
                    }
                  }
                }
              }
            }
          }
        }

        &.grid {
          display: grid;
          grid-template-columns: repeat(3, minmax(0, 1fr));
          gap: 16px;
        }

        &.horisontal {
          display: none;
        }
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .hero-section {
    .hero-content {
      margin-top: 112px;

      .hero-title-wrapper {
        max-width: 960px;

        .hero-title {
          font-size: 96px;
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .hero-section {
    .hero-content {
      margin-top: 112px;

      .hero-title-wrapper {
        max-width: 960px;
        gap: 16px;

        .hero-title {
          font-size: 72px;
        }
      }
    }
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    min-width: 360px;
    width: 100vw;

    .hero-content {
      margin-top: 172px;
      padding: 0 24px;

      .hero-title-wrapper {
        max-width: 100%;
        gap: 120px;

        .hero-title {
          font-size: 56px;
        }

        .hero-subtitle {
          gap: 16px;
          .subtitle-number {
            font-size: 18px;
          }
        }
        .progress-bar {
          .progress {
            height: 4px;
            &.active {
              width: 64px;
            }
          }
        }
      }
    }
  }

  .slogan-section {
    gap: 24px;
    min-width: 360px;
    padding: initial;
    padding-top: 64px;
    gap: 64px;

    .slogan-content {
      padding: 0 24px;

      .slogan-title {
        .title-wrapper {
          height: initial;
          text-align: center;
          flex-direction: column;
          gap: 8px;

          .title-static {
            font-size: 32px;
          }

          .title-typed {
            .title {
              font-size: 32px;
              font-weight: bold;
              display: inline-block;
              text-align: center;
            }
            .typed-cursor {
              font-size: 32px;
              display: inline-block;
              line-height: 1;
            }
          }
        }

        .subtitle {
          font-size: 16px;
          line-height: 150%;
        }
      }
    }

    .slogan-images {
      display: flex;
      flex-direction: row;
      overflow: hidden;
      width: 100%;

      .image-container {
        width: 100%;
        display: none;
        justify-content: center;
        align-items: center;
        position: relative;
        transition: all 0.3s ease;
        border-radius: unset;

        &.active {
          display: flex;
          width: 100%;
          flex-shrink: 0;

          .slogan-overlay {
            opacity: 1;
            visibility: visible;
          }
        }

        .slogan-overlay {
          .slogan-overlay-title-wrapper {
            width: 100%;
            padding: 0 24px;

            .slogan-overlay-title {
              font-size: 32px;
              line-height: 140%;
              color: white;
              width: 100%;
              height: 100%;
            }
            .slogan-overlay-desc {
              font-size: 18px;
            }
          }
        }
      }
    }

    .pagination-wrapper {
      overflow-x: auto;
      display: flex;
      gap: unset;
      justify-content: center;
      margin-top: unset;

      .pagination {
        width: 64px;
        height: 40px;
        font-size: 16px;
        display: flex;
        justify-items: center;
        align-items: center;

        cursor: pointer;

        span {
          color: var(--gray-200);
        }

        &:active {
          background-color: #efefef;
          border-radius: 100px;
        }

        &.active {
          span {
            font-weight: 700;
            color: var(--black);
          }
        }
      }
    }
  }

  .about-section {
    min-width: 360px;
    width: 100vw;
    padding: 96px 0;

    .about-content {
      gap: 32px;
      flex-direction: column;

      .about-title-wrapper {
        padding: 0 24px;
        flex: unset;
        gap: 24px;

        .about-title {
          font-size: 32px;
          font-weight: bold;
        }

        .about-desc {
          font-size: 14px;
        }
      }

      .about-image {
        flex: unset;

        img {
          width: 100%;
          height: 100%;
        }
      }
    }

    .button-line-wrapper {
      display: none;

      &.mobile {
        display: flex;
      }
    }
  }

  .solution-section {
    position: relative;
    padding: initial;
    padding-top: 96px;

    .solution-content-wrapper {
      .solution-content {
        gap: 32px;
        .solution-content-title {
          padding: 0 24px;
          font-size: 32px;
          text-align: left;
        }

        .solution-list {
          .swiper-wrapper {
            .solution-item {
              width: 74.67%;
              height: 400px;

              .inner {
                .side {
                  .button-line-wrapper {
                    padding: initial;
                    .button-line {
                      width: 100%;

                      .button-arrow {
                        width: 32px;
                        height: 32px;
                      }
                    }
                  }

                  .overlay {
                    background-color: rgba(0, 0, 0, 0.2);
                    .title-wrapper {
                      .desc {
                        padding: 24px 0;
                        text-align: center;
                      }
                    }
                  }

                  &.back {
                    .overlay {
                      .container {
                        .desc {
                          padding: initial;
                          font-size: 14px;
                          text-align: center;
                        }
                      }
                    }
                  }
                }
              }

              img {
                width: 100%;
                height: 100%;
                border-radius: 4px;
              }
            }
          }
          &.grid {
            display: none;
          }

          &.horisontal {
            display: flex;
            padding: 0 24px;
          }
        }
      }
    }
  }
}
