@use "../../utils" as *;

/*----------------------------
space overview section design
------------------------------*/

.td-space-overview {
  background: rgba(253, 215, 2, 0.19);
  padding: 100px 0 100px 0;
  position: relative;

  &-wrapper {
    position: relative;
    z-index: 2;
  }

  @media #{$xl} {
    padding: 80px 0 80px 0;
  }

  @media #{$lg,$md} {
    padding: 70px 0 50px 0;
  }

  @media #{$xs} {
    padding: 50px 0 10px 0;
  }

  &-slider {
    margin: 0 120px;
    margin-top: 50px;

    @media #{$xxlm,$xl,$lg} {
      margin-top: 20px;
    }
    @media #{$md} {
      margin-top: 15px;
    }

    @media #{$xs} {
      margin-top: 20px;
      margin-inline-start: 15px;
      margin-inline-end: 15px;
    }
    @media #{$sm} {
      margin-top: 0px;
      margin-inline-start: 15px;
      margin-inline-end: 15px;
    }
  }

  &-card {
    text-align: center;
    transition: transform 0.3s ease, margin 0.3s ease, box-shadow 0.3s ease;

    img {
      border-radius: 8px;
    }

    h3 {
      color: var(--td-theme-bg-color);
      font-size: 16px;
      font-weight: 700;
      text-transform: capitalize;
      margin-top: 15px;

      @media #{$xs} {
        font-size: 10px;
      }

      @media #{$lg,$md,$sm} {
        font-size: 12px;
      }
    }
  }

  &-element {
    &-1 {
      position: absolute;
      top: 15px;
      inset-inline-start: 30px;
      z-index: 1;
      animation: move-bottom-top 5s infinite ease-in-out;
    }

    &-2 {
      position: absolute;
      bottom: 80px;
      inset-inline-end: 60px;
      z-index: 1;
      animation: rotate-infinite 25s infinite ease-in-out;
    }
  }
}

.owl-stage {
  display: flex;
  align-items: center;
}

.td-space-overview-slider .owl-item {
  transition: transform 0.3s ease, flex 0.3s ease, z-index 0.3s ease;
  flex: 0 0 auto;

  &.zoomed {
    transform: scale(1);
    flex: 1;
    z-index: 2;

    h3 {
      font-size: 24px;

      @media #{$xl} {
        font-size: 18px;
      }

      @media #{$xs} {
        font-size: 12px;
      }

      @media #{$lg,$md,$sm} {
        font-size: 14px;
      }
    }
  }

  &:not(.zoomed) {
    transform: scale(0.9);
    flex: 0.9;
    z-index: 0;
  }
}

.client-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.td-space-overview-slider .owl-stage{
  height: 460px;
  @media #{$xxlm} {
    height: 400px;
  }
  @media #{$xl} {
    height: 310px;
  }
  @media #{$lg} {
    height: 350px;
  }
  @media #{$md} {
    height: 300px;
  }
  @media #{$xs} {
    height: 570px;
  }
  @media #{$sm} {
    height: 310px;
  }
}