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

/*----------------------------------------*/
/*  7.1 about css start
/*----------------------------------------*/

.mtproject {

  &__thumb {
    transition: 0.7s;
    overflow: hidden;

    & img {
      width: 100%;
      height: auto;
      object-fit: cover;
      transition: .5s;
      overflow: hidden;
    }

    &::before {
      content: "";
      background: rgba(17, 17, 17, 0.5);
      width: 100%;
      height: 100%;
      position: absolute;
      z-index: 1;
    }

    &:hover {
      & .mtproject__content {
        background: var(--mt-theme-1);

        & span {
          color: var(--mt-common-black);
        }
      }

      & .mtproject__title {
        color: var(--mt-common-black);
      }

      & img {
        @include transform(scale(1.1));

      }
    }
  }

  &__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mt-common-white);
  }

  &__content {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    text-align: center;
    transition: 0.5s;
    padding: 20px 10px;
    border-bottom: 7px solid #c6f906;
    z-index: 2;

    & span {
      font-size: 16px;
      color: var(--mt-common-white);
    }
  }

  &__rotade {
    font-size: 18px;
    font-weight: 500;
    @include transform(rotate(90deg));
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 125px;
    display: inline-block;
    left: -40px;
    z-index: 2;
  }


  &__details {
    &-box {
      flex-wrap: wrap;
      gap: 120px;

      @media #{$md} {
        gap: 30px;
      }

      @media #{ $xs} {
        gap: 20px;
      }

      &-item {
        & h5 {
          font-size: 20px;
          color: var(--mt-common-black);
          margin-bottom: 5px;
        }
      }
    }

    &-award {
      & .mt-accordion-button::after {
        display: none;
      }
    }
  }
}

// showcase
.mt-portfolio {
  &-filter {
    & button {
      font-size: 16px;
      font-weight: 700;
      color: var(--mt-common-black);
      text-transform: uppercase;
    }
  }

  &-item {

    // padding: 0px 10px;
    &:hover {
      & .mt-portfolio-btnview {
        opacity: 1;
        visibility: visible;
        top: 50%;
      }

      & .mt-portfolio-content {
        opacity: 1;
        visibility: visible;
        bottom: 53px;
      }

      & .mt-portfolio-thumb {
        & img {
          @include transform(scale(1.1));
        }
      }
    }

  }

  &-thumb {
    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      background: rgba(17, 17, 17, 0.5);
      z-index: 1;
    }
  }

  &-btnview {
    position: absolute;
    top: 60%;
    left: 50%;
    @include transform(translate(-50%, -50%));
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    z-index: 2;
  }

  &-thumb {
    overflow: hidden;

    & img {
      transition: .7s;
    }
  }

  &-content {
    position: absolute;
    left: 50px;
    bottom: 50px;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 2;

    & span {
      color: var(--mt-common-white);
      margin-bottom: 7px;
      display: inline-block;
    }
  }

  &-title {
    color: var(--mt-common-white);
  }

  &-item {
    &-2 {
      & .mt-portfolio-title {
        color: var(--mt-common-black);
      }

      & .mt-portfolio-thumb {
        &::before {
          content: "";
          position: absolute;
          width: 100%;
          height: 100%;
          left: 0;
          top: 0;
          background: rgba(17, 17, 17, 0.5);
          opacity: 0;
          visibility: hidden;
          transition: 0.4s;
        }

        & img {
          @media #{$md, $xs} {
            width: 100%;
          }
        }
      }

      &:hover {
        & .mt-portfolio-thumb {
          &::before {
            opacity: 1;
            visibility: visible;
          }
        }
      }
    }

    &-3 {
      & .mt-portfolio-thumb {
        &::before {
          content: "";
          position: absolute;
          width: 100%;
          height: 100%;
          left: 0;
          top: 0;
          background: linear-gradient(0deg,
              rgba(17, 17, 17, 0.8) 11.27%,
              rgba(0, 9, 14, 0) 38.3%);
        }
      }

      &:hover {
        & .mt-portfolio-content {
          bottom: 50px;
        }
      }

      & .mt-portfolio-content {
        opacity: 1;
        visibility: visible;

        & span {
          border: 1px solid var(--mt-border-1);
          border-radius: 30px;
          padding: 5px 10px;
          margin: 0 5px;
        }
      }
    }
  }
}

.mtshowcase {
  &__main-wrap {
    // margin-top: -45px;
  }

  &__trans {
    &-title {
      font-size: 120px;
      font-weight: 900;
      color: #131617;

      @media #{$md} {
        font-size: 86px;
      }

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

  &__title {
    color: var(--mt-common-white);
    font-size: 42px;
  }

  &__content {
    & span {
      color: #f5f7f5;
      display: inline-block;
    }
  }
}

.mt-project {
  &-tab {
    &-area {
      & .mt-section-content {
        @media #{$md, $xs} {
          margin-bottom: 30px;
        }
      }
    }

    @media #{$md} {
      // @include flexbox();
      justify-content: center;
      flex-wrap: wrap;
    }

    & button {
      font-size: 52px;
      color: var(--mt-common-white);
      line-height: 1.2;
      padding: 13px 60px;
      position: relative;
      text-align: center;
      width: 100%;
      margin-bottom: 50px;

      &:last-child {
        margin-bottom: 0;
      }

      @media #{$lg} {
        padding: 20px 30px;
        display: inline-block;
        width: inherit;
        font-size: 30px;
      }

      @media #{$md, $xs} {
        padding: 16px 25px;
        display: inline-block;
        width: inherit;
        font-size: 20px;
      }

      @media #{$xs} {
        margin-bottom: 20px;
      }


      & span {
        font-size: 16px;
        @include transform(translateY(-25px));
        display: inline-block;
        margin-right: 5px;

        @media #{$md, $xs} {
          @include transform(translateY(-10px));
        }
      }

      &.active {
        color: var(--mt-common-black);
        background-color: var(--mt-theme-1);
      }
    }

    &-thumb {
      flex: 0 0 auto;

      @media #{$md, $xs} {
        padding: 0 40px;
        flex: inherit;
      }

      & img {
        width: 100%;
        // border: 3px solid var(--mt-border-1);
      }
    }

    &-content {
      &-wrap {
        @media #{$md, $xs} {
          flex-wrap: wrap;
        }
      }

      padding-left: 60px;

      @media #{$md, $xs} {
        padding-left: 0px;
      }

      & img {
        margin-bottom: 80px;

        @media #{$md, $xs} {
          margin-bottom: 20px;
        }
      }

      & p {
        color: rgba(255, 255, 255, 0.8);
      }
    }
  }
}

.mt-test-slider-space {
  margin-right: -70px;
  padding-left: 5px;
}