body::-webkit-scrollbar {
  display: none;
}
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-service {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://st5.depositphotos.com/77845178/64800/i/450/depositphotos_648002328-stock-photo-business-service-online-digital-technology.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 4px solid var(--primary-yellow);
  z-index: 10;
}

.service-scroll-track {
  position: relative;

  height: 400vh;
  background: #fff;
  margin-bottom: 0;
}

.sticky-viewport {
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
  width: 100%;
  overflow: hidden;
}

.visual-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.visual-slide.active {
  opacity: 1;
  z-index: 2;
}

.bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transform: scale(1);
  transition: transform 10s ease;
}

.visual-slide.active .bg-image {
  transform: scale(1.1);
}

.visual-caption {
  position: absolute;
  bottom: 80px;
  left: 60px;
  z-index: 3;
}

.text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  padding: 0 15%;
}

.text-slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 5;
}

.slide-dots {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  transition: 0.3s;
}

.dot.active {
  background: var(--primary-yellow);
  transform: scale(1.5);
  box-shadow: 0 0 10px var(--primary-yellow);
}

footer {
  position: relative;
  z-index: 20;
  /* background-color: var(--industrial-black); */
}

@media (max-width: 991.98px) {
  .service-scroll-track {
    height: auto;
    margin-bottom: 50px;
  }
  .sticky-viewport {
    position: relative;
    height: auto;
    top: 0;
    overflow: visible !important;
  }

  .sticky-viewport .container-fluid,
  .sticky-viewport .row {
    height: auto !important;
  }

  .sticky-viewport .row {
    flex-direction: column;
  }

  .col-lg-6,
  .col-lg-6.d-flex {
    display: contents !important;
  }

  .visual-slide,
  .text-slide {
    position: relative !important;
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    height: auto !important;
    flex: 0 0 auto !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 0;
  }

  .visual-slide {
    height: 300px !important;
    overflow: hidden;
  }
  .visual-caption h1 {
    font-size: 2rem;
  }

  .text-slide {
    padding: 30px 20px !important;
    background: #fff;
    border-bottom: 1px solid #eee;
  }

  .slide-dots {
    display: none;
  }

  .visual-slide[data-index="0"] {
    order: 1;
  }

  .text-slide[data-index="0"] {
    order: 2;
  }

  .visual-slide[data-index="1"] {
    order: 3;
  }

  .text-slide[data-index="1"] {
    order: 4;
  }

  .visual-slide[data-index="2"] {
    order: 5;
  }

  .text-slide[data-index="2"] {
    order: 6;
  }

  .visual-slide[data-index="3"] {
    order: 7;
  }

  .text-slide[data-index="3"] {
    order: 8;
  }
}
