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

/*----------------------------------------*/
/*  7.1 Fact css start
/*----------------------------------------*/

.mthero {
  &__bg {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  &-bg-wrap {
    padding-top: 180px;
    padding-bottom: 431px;
  }

  &__space {
    padding-top: 190px;
    padding-bottom: 0px;
  }

  &__section-title {
    @media #{$xs} {
      margin-bottom: 0;
    }
  }

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

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

  &__content {
    &-wrap {
      padding: 50px 30px 40px 30px;
      margin-bottom: -220px;
      z-index: 2;
      position: relative;

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

  &__text {
    &-border {
      border-bottom: 1px solid var(--mt-border-2);
    }

    & p {
      line-height: 34px;
    }

    & h4 {
      color: var(--FFFFFF, #fff);
      font-family: "DM Sans";
      font-size: 16px;
      font-weight: 600;
    }
  }

  &__video {
    &-wrapper {
      @media #{$lg,$md,$xs} {
        text-align: center !important;
        margin-bottom: -330px;
        z-index: 2;
        margin-top: 83px;
      }
    }

    &-thumb {
      position: relative;
      margin-right: 27px;

      & img {
        border-radius: 100%;

        &::after {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background-color: var(--mt-common-black);
          opacity: 0.3;
          z-index: 1;
        }
      }
    }

    &-play {
      position: absolute;
      top: 50%;
      left: 69%;
      @include transform(translate(-50%, -50%));

      z-index: 2;

      @media #{$lg,$md,$xs} {
        left: 50%;
      }

      & a {
        width: 60px;
        height: 60px;
        background: var(--mt-common-black);
        line-height: 60px;
        border-radius: 100%;
        text-align: center;
        display: block;
        color: var(--mt-common-white);
        &::before {
          position: absolute;
          content: "";
          left: 50%;
          top: 50%;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.247);
          animation: borderanimate2 2.7s linear infinite;
          border-radius: 50%;
        }

        &::after {
          position: absolute;
          content: "";
          left: 50%;
          top: 50%;
          width: 100%;
          height: 100%;
          border: 1px solid rgba(255, 255, 255, 0.205);
          animation: borderanimate2 2.3s linear infinite;
          border-radius: 50%;
        }
      }
    }
  }

  &__shape {
    position: absolute;
    right: 0;
    bottom: -205px;

    @media #{$lg} {
      right: 35%;
    }

    @media #{$md} {
      right: 30%;
    }

    @media #{$xs} {
      right: 6%;
    }
  }

  &__trans {
    position: absolute;
    bottom: 40px;

    &-title {
      font-size: 105px;
      font-weight: 900;
      text-transform: uppercase;
      background: linear-gradient(180deg, #1c2021 21.92%, #0e1112 76.95%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;

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

      @media #{$lg} {
        font-size: 75px;
      }

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

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

  // style 2
  &__2 {
    & .mthero__title {
      font-size: 42px;

      @media #{$xs} {
        & br {
          display: none;
        }
      }
    }
  }

  &__scroll {
    position: absolute;
    bottom: 0;
    left: 50%;
    @include transform(translateX(-50%));


    &-icon {
      background-color: #fff;
      width: 100px;
      height: 65px;
      border-radius: 70px 70px 0px 0px;

      & a {
        width: 60px;
        height: 60px;
        line-height: 60px;
        background: var(--mt-theme-1);
        border-radius: 100%;
        display: inline-block;
        text-align: center;
        @include transform(translateX(20px));
        margin-top: 5px;
      }
    }
  }

  // style 3
  &__3 {
    & .mthero__3-trans-title {
      font-size: 160px;
      color: var(--mt-common-black);
      text-align: center;

      @media #{$xxl} {
        font-size: 140px;
      }

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

      @media #{$lg} {
        font-size: 130px;
      }

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

      @media #{$xs} {
        font-size: 62px;
      }
    }
    & .mthero__3-thumb{
      padding-top: 300px;
      padding-bottom: 300px;
    }
    & .mthero__wrap-info {
      @media #{$lg,$md,$xs} {
        margin-left: 0px;
      }
    }

    & .mthero__title {
      color: var(--mt-common-black);
      font-size: 42px;

      @media #{$md,$xs} {
        & br {
          display: none;
        }
      }
    }

    &-shape {
      position: absolute;
      left: -30px;
      top: -255px;
      z-index: -1;
    }

    &-thumb {
      position: relative;

      &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: linear-gradient(180deg, #0e1112 0%, rgba(0, 0, 0, 0) 100%);
      }

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

  // style 4
  &__4 {
    & .mthero__title {
      font-size: 200px;
      font-weight: 800;
      text-transform: uppercase;
      line-height: 1.2;

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

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

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

    & .mthero__content-wrap {
      @media #{$lg,$md,$xs} {
        margin-left: 0px;
        margin-right: 0;
        flex-wrap: wrap;
        gap: 20px;
      }
    }

    & .mthero__subtitle {
      font-size: 52px;
      font-weight: 600;
      color: var(--mt-common-white);

      @media #{$lg} {
        font-size: 45px;
      }

      @media #{$md} {
        font-size: 50px;
        line-height: 1.5;
      }

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

      & span {
        background: var(--mt-theme-1);
        color: var(--mt-common-black);
        font-size: 100px;
        padding: 15px 20px;
        margin: 0 10px;
        text-align: center;

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

        @media #{$lg} {
          font-size: 70px;
        }

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

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

    & .mthero__text {
      font-size: 16px;
      font-weight: 600;
      text-transform: capitalize;
      display: block;
      padding-right: 150px;
      line-height: 1.3;
    }

    & .mthero__text-wrap {
      display: inline-block;
      width: 350px;
      position: relative;

      @media #{$xs} {
        margin-top: 70px;
      }

      & img {
        position: absolute;
        top: -60px;
      }
    }

    & .mthero__image {
      flex: 0 0 auto;
    }

    & .mthero__content p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 16px;
      font-weight: 500;
    }
  }

  // style 5
  &__5 {
    & .mthero {
      &__subtitle {
        color: var(--mt-common-white);
        font-size: 28px;
        font-weight: 700;
        margin-left: 130px;

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


      &__title {
        font-size: 150px;
        font-weight: 900;
        text-align: center;

        @media #{$lg} {
          font-size: 100px;
        }

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

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

        & .mt-btn-wrap {
           @include transform(translateY(-20px));
          display: inline-block;

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

          & span {
            margin: 0 -16px;
            display: inline-block;

            @media #{$lg} {
              margin: 0 -11px;
            }

            @media #{$md} {
              margin: 0 -9px;
            }

            @media #{$xs} {
              margin: 0 -8px;
            }
          }
        }
      }
    }
  }
}