.service {
  &.section {
    .service-title {
    }
  }
  &__items {
    border-top: 1px solid rgba($color-white, 0.14);
  }
  &__item {
    .service-link {
      @extend %p-relative;
      perspective: 1000px;
      background-color: transparent;
      flex-flow: column;
      justify-content: space-between;
      align-items: stretch;
      display: flex;
      transition: none;
    }
    .service-box {
      border-bottom: 1px solid rgba($color-4, 0.14);
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      width: 100%;
      height: 200px;
      padding-bottom: 30px;

      .service-number {
        margin-right: 75px;
      }
      .service-title {
        @include breakpoint(xl) {
          font-size: 100px;
        }
      }
    }
    .service-box-hover {
      border-bottom: 1px solid $color-primary;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      @include add-prefix(transform-style, preserve-3d);
      @extend %p-absolute;
      @include transform(rotateX(-180deg) rotateY(0) rotateZ(0));
      width: 100%;
      height: 200px;
      padding-bottom: 30px;

      @include breakpoint(max-lg) {
        position: relative;
        @include transform(rotate(-0deg));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        padding-block: 30px;
      }
      @include breakpoint(max-sm) {
        background-color: $color-2;
        padding: 20px;
      }

      .service-number {
        position: relative;
        @include breakpoint(max-lg) {
          position: absolute;
        }
        @include breakpoint(max-sm) {
          position: relative;
        }
      }

      .service-title {
        @include breakpoint(max-lg) {
          text-align: right;
        }
        @include breakpoint(max-sm) {
          text-align: left;
          grid-column: 1 / -1;
        }
      }
      img {
        @include breakpoint(max-lg) {
          grid-column: 1 / -1;
          width: 100%;
          margin-block: 15px;
        }
      }
      p {
        max-width: 319px;
        width: 100%;
        @include breakpoint(max-lg) {
          width: 100%;
        }
        @include breakpoint(max-sm) {
          grid-column: 1 / -1;
        }
      }
      .agx-btn2 {
        background-color: $color-primary;
        @extend %shrink-0;

        @include breakpoint(max-lg) {
          margin-left: auto;
        }
        @include breakpoint(max-md) {
          margin-top: 15px;
        }
        @include breakpoint(max-sm) {
          grid-column: 1 / -1;
          margin-left: 0;
        }
      }
    }
  }
}

.service2 {
  &.section {
  }
  &__box {
    @extend %d-flex, %justify-between, %item-center, %p-relative;
    @include transition($transition);
    border-bottom: 1px solid rgba($color-white, 0.14);
    padding: 27px 0 25px;

    @include breakpoint(max-lg) {
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      text-align: center;
      gap: 15px;
    }
    .service-title {
      max-width: 380px;
      @include breakpoint(max-xxl) {
        max-width: 350px;
      }
      @include breakpoint(max-xl) {
        max-width: 300px;
      }
      @include breakpoint(max-lg) {
        max-width: 100%;
      }
    }
    .service-thumb {
      @extend %p-absolute, %shrink-0;
      @include transition($transition);
      @include transform(translateY(0%) rotate(-0deg) scale(0.5));
      margin-inline: 50px 70px;
      max-width: 220px;
      width: 100%;
      height: 246px;
      opacity: 0;
      left: 30%;
      top: 50%;
      border-radius: 10px;
      overflow: hidden;

      @include breakpoint(max-xxl) {
        max-width: 180px;
        height: 150px;
        left: 35%;
      }
      @include breakpoint(max-xl) {
        left: 30%;
      }
      @include breakpoint(max-lg) {
        position: relative;
        max-width: 100%;
        height: auto;
        opacity: 1;
        left: unset;
        margin: 0;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
      }

      img {
        border-radius: 10px;
      }
    }

    .service-info {
      max-width: 520px;
      width: 100%;

      @include breakpoint(max-xxl) {
        max-width: 400px;
      }
      @include breakpoint(max-xl) {
        max-width: 350px;
      }
      @include breakpoint(max-lg) {
        max-width: 100%;
      }
    }
    .service-link {
      @extend %p-absolute;
      inset: 0;
    }
    &:hover {
      border-color: $color-primary;
      .service-thumb {
        opacity: 1;
        @include transform(translateY(-50%) rotate(-10deg) scale(1));
      }

      @include breakpoint(max-lg) {
        .service-thumb {
          opacity: 1;
          @include transform(translateY(0%) rotate(0deg) scale(1));
        }
      }
    }
  }
}

.service3 {
  .section {
    &-header {
      padding-bottom: 26px;
    }
  }
  &__box {
    @extend %d-flex, %justify-between, %item-center;
    gap: 30px;
    padding-block: 44px 34px;
    border-top: 1px solid rgba($color-white, 0.14);

    @include breakpoint(max-lg) {
      flex-wrap: wrap;
    }

    &:last-of-type {
      border-bottom: 1px solid rgba($color-white, 0.14);
    }

    .service-content {
      max-width: 400px;
      width: 100%;

      @include breakpoint(max-lg) {
        max-width: calc(50% - (15px));
      }
      @include breakpoint(max-sm) {
        max-width: 100%;
      }

      .service-number {
        color: $color-white;
        @include transition($transition);
        opacity: 0.14;
        margin-block-end: 16px;
      }
      .service-title {
        margin-block-end: 72px;

        a {
          &:hover {
            color: $color-primary;
          }
        }

        @include breakpoint(max-xl) {
          margin-block-end: 50px;
        }
        @include breakpoint(max-md) {
          margin-block-end: 30px;
        }
        @include breakpoint(max-sm) {
          margin-block-end: 20px;
        }
      }
    }

    .service-thumb {
      @extend %shrink-0, %d-grid, %place-center;
      @include transition($transition);
      border-radius: 14px;
      width: 330px;
      height: 240px;
      background-color: $color-1;

      @include breakpoint(max-lg) {
        max-width: calc(50% - (15px));
        width: 100%;
      }
      @include breakpoint(max-sm) {
        max-width: 100%;
      }

      img {
        @include transition(all 0.9s);
      }
    }

    .service-info {
      max-width: 320px;
      width: 100%;

      @include breakpoint(max-lg) {
        max-width: 100%;
      }

      ul {
        li {
          @extend %p-relative, %d-flex, %item-center, %no-wrap;
          gap: 14px;

          &::before {
            font: var(--fa-font-regular);
            content: "\e404";
          }

          &:not(:last-of-type) {
            margin-bottom: 12px;

            @include breakpoint(max-lg) {
              margin-bottom: 10px;
            }
            @include breakpoint(max-md) {
              margin-bottom: 6px;
            }
          }
        }
      }
    }

    &.active,
    &:hover {
      .service-content {
        .service-number {
          opacity: 1;
        }
      }
      .service-thumb {
        background-color: $color-primary;
        perspective: 1000px;

        img {
          @include transform(rotateY(360deg));
        }
      }
    }
  }
}

.service4 {
  &.section {
  }
  &__thumb {
    &-container {
      @extend %p-relative;
    }
    border-radius: 14px;
    padding: 30px;
    z-index: 1;
    opacity: 1;
    @include transform(scale(1));
    @include transition($transition);

    &:not(.active) {
      @extend %p-absolute;
      inset: 0;
      @include transform(scale(0.5));
      z-index: -999;
      opacity: 0;
    }
    @include breakpoint(max-md) {
      padding: 20px;
    }

    .thumb-wrapper {
      @extend %p-relative;
      margin-top: 48px;
      border-radius: 14px;

      @include breakpoint(max-lg) {
        margin-top: 35px;
      }
      @include breakpoint(max-md) {
        margin-top: 30px;
      }

      .tags {
        @extend %p-absolute, %d-flex, %item-center;
        gap: 15px;
        left: 30px;
        bottom: 25px;
        @include breakpoint(max-sm) {
          left: 15px;
          bottom: 10px;
        }
        span {
          @extend %d-inline-block;
          font-family: $ff-rubik;
          line-height: 1;
          border-radius: 20px;
          border: 1px solid rgba($color-white, 0.3);
          background: rgba($color-white, 0.1);
          padding: 5px 20px;

          @include breakpoint(max-sm) {
            padding: 2px 10px;
            font-size: $fs-16;
          }
        }
      }
    }
  }
  &__info {
    @extend %p-absolute;
    top: 0;
    left: 0;
  }
  &__content {
    @extend %d-flex, %flex-col;
    gap: 30px;
    height: 100%;

    .service-btn {
      width: max-content;
      margin-top: auto;
    }
  }
  &__list {
    @extend %flex-grow-1;
    .list-item {
      @extend %d-flex, %justify-between, %item-center, %p-relative;
      border-top: 1px solid $color-white;
      padding-block: 22px;
      @include transition($transition);
      cursor: pointer;
      z-index: 1;

      @include breakpoint(max-xl) {
        padding-block: 15px;
      }

      &:last-of-type {
        border-bottom: 1px solid $color-white;
      }

      .service-title {
        @include transition($transition);
      }
      .agx-btn2 {
        width: 45px;
        height: 45px;
        z-index: 2;

        @include breakpoint(max-md) {
          width: 35px;
          height: 35px;
        }
      }

      &:hover,
      &.active {
        border-top-color: $color-primary;
        border-bottom-color: $color-primary;
        & + .list-item {
          border-top-color: $color-primary;
        }
        .service-title {
          color: $color-primary;
        }
        .agx-btn2 {
          border-color: $color-primary;
          background-color: $color-primary;

          span {
            color: $color-1;
          }
        }
      }
    }
  }
}

.service5 {
  &.section {
  }
  &__content {
    @extend %d-flex;

    @include breakpoint(max-lg) {
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      gap: 25px;
    }
  }
  &__box {
    @extend %d-flex, %justify-center, %flex-1;
    border-left: 1px solid rgba($color-white, 0.1);
    transition: 0.5s;
    padding-block: 30px;
    padding-inline: 50px;
    cursor: context-menu;
    &:last-of-type {
      border-right: 1px solid rgba($color-white, 0.1);
    }

    @include breakpoint(max-xxxl) {
      padding-block: 20px;
      padding-inline: 30px;
    }
    @include breakpoint(max-xxl) {
      padding-block: 40px;
      padding-inline: 20px;
    }
    @include breakpoint(max-lg) {
      display: block;
      border: none;
      background: $color-1;
      border-radius: 14px;
    }

    .title {
      -webkit-writing-mode: vertical-rl;
      -ms-writing-mode: tb-rl;
      writing-mode: vertical-rl;
      -webkit-text-orientation: mixed;
      text-orientation: mixed;
      transition: 0.5s;
      text-align: center;
      @include transform(scale(-1));

      @include breakpoint(max-lg) {
        -webkit-writing-mode: unset;
        -ms-writing-mode: unset;
        writing-mode: unset;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid $color-white;
        @include transform(scale(1));
      }
      @include breakpoint(max-md) {
        margin-bottom: 10px;
        padding-bottom: 10px;
      }
    }
    .main-content-wrapper {
      width: 0;
      transition: 0.5s;
      overflow: hidden;

      @include breakpoint(max-lg) {
        width: 100%;
      }
    }
    .main-content {
      width: 373px;
      opacity: 0;
      @include transform(translateX(100%));
      @include transition($transition);

      @include breakpoint(max-lg) {
        text-align: center;
      }

      .content-title {
        color: $color-primary;
      }
      p {
        font-size: 16px;
        line-height: 162.5%;
        margin-top: 15px;

        @include breakpoint(max-md) {
          margin-top: 10px;
        }
      }
      .figure-container {
        @extend %d-grid, %place-center, %p-relative;
        margin-top: 35px;
        width: 100%;
        min-height: 400px;
        border-radius: 14px;
        background: $color-primary;

        @include breakpoint(max-lg) {
          margin-top: 45px;
        }
        @include breakpoint(max-sm) {
          min-height: 350px;
        }

        .service-link {
          @extend %p-absolute, %d-grid, %place-center;
          left: 50%;
          top: -35px;
          width: 70px;
          height: 70px;
          border-radius: 100%;
          background-color: $color-primary;
          color: $color-1;
          border: 3px solid $color-1;
          font-size: 28px;
          @include transform(translateX(-50%));
        }
      }
      @include breakpoint(max-lg) {
        width: 100%;
        padding-left: 0;
        opacity: 1;
        @include transform(translateX(0));
      }
    }

    &:hover,
    &.active {
      width: auto;
      padding-inline: 50px 30px;
      border-radius: 14px;
      background: $color-1;
      border: none !important;
      @include breakpoint(max-xxl) {
        padding-block: 40px;
        padding-inline: 20px;
      }

      + .service5__box {
        border: none !important;
      }

      .main-content-wrapper {
        width: 373px;
        @include breakpoint(max-lg) {
          width: 100%;
        }
      }
      .main-content {
        padding-left: 40px;
        @include transform(translateX(0));
        opacity: 1;

        @include breakpoint(max-lg) {
          padding-left: 0;
        }
      }
    }
  }
}

.service6 {
  &.section {
  }
  &__row {
    @extend %p-relative;
    --bs-gutter-y: 5rem;
    z-index: 1;

    &::before,
    &::after {
      @extend %p-absolute;
      border-radius: 100%;
      opacity: 0.3;
      filter: blur(157.61019897460938px);
      z-index: -1;
      @include transition($transition);
    }

    &::before {
      width: 293.872px;
      height: 302.235px;
      background: $color-primary;
      top: 50%;
      left: 50%;
      @include transform(translateY(-50%));
    }
    &::after {
      width: 455.483px;
      height: 468.445px;
      background: rgba(127, 255, 57, 0.5);
      top: 50%;
      right: 50%;
      @include transform(translateY(-50%));
    }

    @include breakpoint(max-lg) {
      --bs-gutter-y: 2.5rem;
    }
    @include breakpoint(max-md) {
      --bs-gutter-y: 1.5rem;
    }
  }
  &__box {
    background: $color-2;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid $color-2;
    z-index: 1;
    @include transition($transition);

    @include breakpoint(max-lg) {
      border-radius: 10px;
      padding: 25px;
    }

    .title {
      margin-bottom: 120px;
    }
    .icon {
      svg {
        width: 150px;
        height: 150px;
        color: $color-9;
        @include transition($transition);

        @include breakpoint(max-lg) {
          width: 100px;
          height: 100px;
        }
      }
    }

    &:hover,
    &.active {
      // margin-top: -31.65px;
      border-color: $color-primary;
      @include transform(scaleY(1.15));

      @include breakpoint(max-lg) {
        -webkit-transform: scaleY(1.1);
        -ms-transform: scaleY(1.1);
        transform: scaleY(1.1);
      }
      @include breakpoint(max-md) {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
      }
      .title {
        // margin-bottom: 183.3px;
      }
      .icon {
        svg {
          color: $color-primary;
        }
      }
    }
  }
}
