// @import '../../../../scss/pages/landing/landing.scss';

@import '../../../../../node_modules/bootstrap/scss/functions';
@import '../../../../../node_modules/bootstrap/scss/variables';
@import '../../../../scss/settings/color-variables';
@import '../../../../scss/settings/bootstrap-variables';
@import '../../../../scss/settings/theme-variables';

@import '../../../../../node_modules/bootstrap/scss/mixins';

.animate__animated {
  --animate-duration: 0.9s;
}

$i: 1;
$delay: 0.1;
@while $i<=6 {
  .animate__delay {
    &-#{$i}s {
      --animate-delay: #{$delay}s;
      animation-delay: var(--animate-delay);
    }
  }
  $i: $i + 1;
  $delay: $delay + 0.1;
}

section {
  padding: 100px 0;
  background: #fbfbfb;

  &.why-mantis {
    padding: 120px 0px 120px 0px;
  }

  &.cta-block {
    background: $gray-900;
  }
}

.title {
  margin-bottom: 50px;

  h2 {
    font-weight: 600;
  }

  h5 {
    font-weight: 500;
  }
}

.landing-page {
  overflow-x: hidden;
  background: $body-bg;
}

.wrapper {
  max-width: 100%;
  overflow: hidden;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: marquee 100s linear infinite;

  .list-inline-item {
    opacity: 0.4;
  }
}

.marquee-1 {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: marquee-1 100s linear infinite;
  margin-top: 32px;

  .list-inline-item {
    opacity: 0.4;
  }
}

.marquee {
  display: inline-block;
}

.marquee-1 {
  display: inline-block;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-1 {
  0% {
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideY {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-20px);
  }
  75% {
    transform: translateY(20px);
  }
}

.marquee:hover,
.marquee-1:hover {
  animation-play-state: paused;

  .list-inline-item:hover {
    opacity: 1;
  }
}

.navbar {
  position: fixed;
  padding: 16px 0;
  width: 100%;
  background: transparent;
  z-index: 1099;
  top: 0;

  &.default {
    background: transparent;
    box-shadow: none;
  }

  &.landing-nav {
    background: $gray-900;
    box-shadow: 0 8px 6px -10px rgba(0, 0, 0, 0.5);
  }

  .theme-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition:
      background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
      box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    cursor: unset;
    outline: 0px;
    padding: 0px 4px;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: transparent;
    border: 1px solid rgba(140, 140, 140, 0.7);
    border-radius: 4px;
    margin-top: 4px;
    margin-left: 8px;
    font-size: 0.725rem;
    height: 20px;
  }

  .navbar-collapse > .navbar-nav {
    .nav-item {
      &.landing-header-title {
        .nav-link {
          color: var(--bs-white);
          &:hover {
            color: var(--bs-primary);
          }
        }
      }
    }
  }
}

.hero-content {
  padding-right: 40px;
  margin-top: -15px;

  h1 {
    line-height: 1.3;
  }

  .live-button {
    margin: 26px 0px;

    .btn {
      font-size: 16px;
    }
  }

  @media (max-width: 1024px) {
    padding-right: 0px;
  }
}

.com-btn,
.road-map-btn {
  i {
    font-size: 14px;
  }
}

header {
  overflow: hidden;
  position: relative;
  padding: 100px 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  background: #141414;

  &::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 2;
    background: linear-gradient(329.36deg, rgb(0, 0, 0) 14.79%, rgba(67, 67, 67, 0.28) 64.86%);
  }

  .img-home-mokeup {
    object-fit: cover;
    position: absolute;
    z-index: 1;
    width: 65%;
    right: -2%;
    top: 8%;
  }

  .container {
    position: relative;
    z-index: 5;
  }
}

.cta-block {
  position: relative;
  overflow: hidden;

  &:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 80%;
    bottom: 0px;
    left: 0px;
    background: linear-gradient(transparent, rgb(20, 20, 20));
  }

  .img-cta {
    width: auto;
    position: absolute;
    top: 0px;
    right: 0px;
  }

  .container {
    position: relative;
    z-index: 5;
  }
}

.img-comp-container {
  position: relative;

  .img-comp-img {
    position: relative;
    width: auto;
    height: auto;
    overflow: hidden;

    &.img-comp-overlay {
      position: absolute;
      top: 0;
    }

    img {
      width: 100vw;
      display: block;
      vertical-align: middle;
    }
  }

  .img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 50px;
    height: 50px;
    opacity: 1;
    border-radius: 50%;
    font-size: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: $white;
    border: 2px solid $white;
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.3);
  }
}

.webapp-block {
  position: relative;

  &::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 45%;
    bottom: 0px;
    left: 0px;
    background: $gray-900;
    z-index: 1;
  }

  .container {
    position: relative;
    z-index: 5;
  }

  .img-webapp-block {
    .img-msg {
      position: absolute;
      top: 3%;
      right: -17%;
      animation: 10s linear 2s infinite normal none running slideY;
    }

    .img-widget {
      position: absolute;
      bottom: 20%;
      left: -17%;
      animation: 10s linear 2s infinite normal none running slideY;
    }
  }
}

.marquee-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  white-space: nowrap;

  li {
    margin: 0 30px;
    opacity: 0.7;
    font-weight: 600;
    cursor: pointer;

    &:hover {
      opacity: 1;
    }
  }
}

.client-block {
  overflow: hidden;
}

.marquee-text {
  margin-top: 20px;
  position: relative;
  height: 36px;
  display: inline-flex;
}

.cust-slider {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  animation: marquee 10s linear infinite;

  &::-webkit-scrollbar {
    height: 6px;
    opacity: 0;

    &:hover {
      opacity: 1;
    }
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: darken($body-bg, 01%);
  }

  &::-webkit-scrollbar-thumb:hover {
    background: darken($body-bg, 05%);
  }
}

.footer-moke {
  position: relative;
  margin-top: 100px;
  padding-top: 140px;

  &::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 80%;
    bottom: 0;
    left: 0px;
    z-index: 3;
    background: linear-gradient(transparent 0%, rgb(31, 31, 31) 70%);
  }

  .container {
    position: relative;
    z-index: 5;
  }

  .img-footer {
    z-index: 1;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 55%;
    max-width: 700px;
    position: absolute;
    top: -28%;
    right: 0px;
  }
}

.pc-landing-customize {
  padding: 14px;
  position: fixed;
  right: -100px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: rgb(230, 235, 241);
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.08);
  background: $card-bg;
  transform: translateY(-50%);
  z-index: 99;
  transition: right 0.3s ease-in-out;
  border-radius: $border-radius;

  .color-checkbox {
    margin-right: 0;
    cursor: pointer;
    padding-left: 0;
    position: relative;

    .form-check-input {
      margin: 0;
      position: absolute;
      top: 0;
      z-index: 5;
      font-size: 22px;
      opacity: 0;
    }

    &:last-child {
      margin-bottom: 0;
    }

    i {
      font-size: 20px;
    }

    input:checked {
      + i {
        font-size: 27.5px;
        &:after {
          content: '\ea5e';
          font-family: tabler-icons !important;
          line-height: 1;
          font-size: 14px;
          width: 20px;
          height: 20px;
          border-radius: 50%;
          position: absolute;
          top: 4px;
          left: 4px;
          background: rgba(255, 255, 255, 0.3);
          display: flex;
          align-items: center;
          justify-content: center;
          color: #fff;
        }
      }
    }

    $i: 1;

    @each $name, $value in $preset-colors {
      > input {
        &[data-pc-value='#{$i}'] {
          + i {
            color: map-get($value, 'primary');
          }
        }
      }

      $i: $i + 1;
    }
  }

  &.active {
    right: 0px;
  }
}

@media (max-width: 1199px) {
  header {
    text-align: center;
    padding: 100px 0 50px;

    .img-home-mokeup {
      display: none;
    }
  }
}

@media (max-width: 991.98px) {
  section {
    padding: 40px 0;
  }
  .webapp-block .img-webapp-block {
    .img-msg,
    .img-widget {
      display: none;
    }
  }

  .cta-block:after {
    height: 100%;
    backdrop-filter: blur(5px);
  }
}

@media (max-width: 767.98px) {
  .footer-moke {
    margin-top: 0;

    .img-footer {
      display: none;
    }
  }
}

.contact-footer {
  position: relative;
  background: rgb(31, 31, 31);

  .container {
    max-width: 1266px;

    @media (max-width: 1199px) {
      padding-left: 24px;
      padding-right: 24px;
      max-width: 100%;
    }
    @media (max-width: 768px) {
      padding: 0px 16px;
      width: 100%;
      max-width: 100%;
    }
  }
  .top-footer {
    padding: 150px 0px 80px 0px;
  }

  .middle-footer {
    padding: 0px 0px 80px 0px;
  }
  .bottom-footer {
    padding: 10px 0;
    background: $gray-900;
    border-top: thin solid $gray-800;
  }
  .footer-link {
    a {
      margin: 14px 0;
      display: block;
      color: var(--bs-secondary-color);

      &:hover {
        color: var(--bs-primary);
      }
    }
  }
  .footer-sos-link i {
    font-size: 18px;
    opacity: 0.6;

    &:hover {
      opacity: 1;
    }
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1266px;
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 1199px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
    max-width: 100%;
  }
}
