/* DASHBOARD */
.dashboard {
  height: 100%;
  background-image: url(../img/dashboard.svg);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: end;
}

.dashboard .konten {
  margin-bottom: 10%;
  padding: 0;
}

.dashboard .konten .text-head {
  color: white;
  font-weight: bold;
  font-size: 60px;
}

.dashboard .konten .text-mid {
  color: var(--primary-color-100);
  font-size: x-large;
}

.dashboard .konten .text-buttom {
  color: white;
}

/* END DASHBOARD */

/* END HEADER */

/* KEBUTUHAN */
#kebutuhan {
  padding: 5vh 0;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#kebutuhan h4 {
  color: var(--primary-color-300);
  font-weight: 600;
  margin-top: 1vh;
}

#kebutuhan .kebutuhan-text-mobile {
  display: none;
}
/* END KEBUTUHAN */

/* FITUR HALOGPS */
#fitur-halogps {
  height: auto;
  background-color: #fff;
  overflow: hidden;
  padding: 5vh 0;
}

#fitur-halogps h1 {
  margin-bottom: 3vh;
  font-weight: 600;
  color: var(--primary-color-300);
}

#fitur-halogps .head-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 3vh;
  row-gap: 3vh;
  width: 100%;
}

#fitur-halogps .head-card .card {
  cursor: pointer;
  border: none;
  transition: all 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  height: 35vh;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

#fitur-halogps .head-card .card img {
  width: 25%;
  margin-bottom: 2vh;
}

#fitur-halogps .head-card .card h5 {
  font-weight: 600;
  color: var(--primary-color-300);
}

/* animation hover */
#fitur-halogps .head-card .card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background-color: var(--primary-color-300);
  width: 100%;
  height: 100%;
  z-index: 10;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-weight: bold;
  padding: 3vh;
}

#fitur-halogps .head-card .card:nth-child(1):before {
  content: 'Melacak lokasi perangkat GPS tracker secara real-time';
}

#fitur-halogps .head-card .card:nth-child(2):before {
  content: 'Perangkat GPS menggunakan sinyal 2G/GSM yang menjangkau daerah-daerah terpencil';
}

#fitur-halogps .head-card .card:nth-child(3):before {
  content: 'Mematikan mesin menggunakan perintah perangkat GPS';
}

#fitur-halogps .head-card .card:nth-child(4):before {
  content: 'Nikmati fitur dan informasi lebih lengkap dengan integrasi digital input dan output';
}

#fitur-halogps .head-card .card:nth-child(5):before {
  content: 'Dapat mendeteksi batas wilayah yang diatur dari aplikasi GPS Tracking';
}

#fitur-halogps .head-card .card:nth-child(6):before {
  content: 'Beragam alarm darurat yang berfungsi pada kondisi tertentu';
}

#fitur-halogps .head-card .card:hover::before {
  transform: translate(-50%, -50%) scale(1);
}
/* END FITUR HALOGPS */

/* PERANGKAT */
#perangkat {
  background-color: var(--primary-color-100);
}

.perangkat-child {
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5vh 0;
}

.perangkat-child h1 {
  font-weight: 600;
  color: var(--primary-color-300);
}

.perangkat-child #carouselExampleFadeMobile {
  display: none;
}

.perangkat-child #carouselExampleFade {
  height: 50%;
  width: 50%;
}

.perangkat-child #carouselExampleFade .carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.perangkat-child #carouselExampleFade .carousel-inner .carousel-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.perangkat-child #carouselExampleFade .carousel-inner .carousel-item img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Fade */
.carousel-item {
  transition: transform 1.6s ease-in-out;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  transition: opacity 0s 0.2s;
}
/* END */

/* PRODUK */
#produk-halogps {
  margin: 7vh 0;
}

#produk-halogps h1 {
  font-weight: 600;
  color: var(--primary-color-300);
  margin-bottom: 3vh;
}

.carousel-wrap {
  margin: 3vh auto;
  padding: 0 5%;
  width: 80%;
  position: relative;
}
.carousel-wrap .owl-item .item {
  opacity: 0.5;
  transition: opacity 0.3s;
  text-decoration: none;
  transition: all 0.3s linear;
  position: relative;
  cursor: pointer;
}

.carousel-wrap .owl-item.active .item {
  opacity: 1;
}

.carousel-wrap .owl-item .item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background-color: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100%;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  border-radius: 5px;
}

.carousel-wrap .owl-item .item::after {
  content: 'Lihat Produk';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 50%;
  height: 20%;
  z-index: 11;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  background-color: var(--primary-color-300);
}

.carousel-wrap .owl-item .item:hover::before,
.carousel-wrap .owl-item .item:hover::after {
  opacity: 1;
  visibility: visible;
}
/* END PRODUK */

/* fix blank or flashing items on carousel */
.owl-carousel .item {
  position: relative;
  z-index: 100;
  -webkit-backface-visibility: hidden;
}

.owl-carousel .item P {
  color: var(--primary-color-300);
}

.owl-carousel .item div {
  width: 200px;
  height: 200px;
  object-fit: contain;
  box-sizing: border-box;
  overflow: hidden;
}

.owl-carousel .item div img {
  object-fit: cover;
  width: 200px;
  height: 200px;
}

.owl-prev,
.owl-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--primary-color-300);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  font-weight: bold;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.owl-prev {
  left: 10px;
  transform: translateX(-50%) translateY(-50%);
}

.owl-next {
  right: 10px;
  transform: translateX(50%) translateY(-50%);
}

/* LANGKAH */
#langkah {
  height: auto;
  margin: 5vh auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#langkah h1 {
  font-weight: 600;
  margin-bottom: 5vh;
}

.langkah-konten {
  display: flex;
  width: 100%;
  justify-content: space-between;
  overflow: hidden;
}

.langkah-konten .box {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
}

.langkah-konten .box .box-konten {
  background-color: var(--primary-color-300);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: x-large;
  border-radius: 5px;
  margin-bottom: 1vh;
}

.langkah-konten .box span {
  font-size: large;
  display: block;
  font-weight: 600;
  text-align: center;
}

.garis {
  width: calc(100% / 5);
  border-top: 2px dashed #c4b9c5;
  flex-shrink: 0;
  margin: 0;
  align-self: center;
  margin-bottom: 20px;
}

/* END LANGKAH */

/* FOOTER HEAD */
#footer-head {
  height: auto;
  background-image: url('../img/dokumentasi/header.svg');
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5vh 0;
}

#footer-head .konten-footer-head {
  width: 100%;
  height: 70%;
  background-color: #fff;
  border-radius: 10px;
  padding: 4vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer-head .konten-footer-head p span {
  font-size: large;
  font-weight: 600;
}

#footer-head .konten-footer-head .btn-hk {
  padding: 12px 20px;
}

/* END FOOTER HEAD */

/* MEDIA QUERRY */

/* Tablet Version */
@media (max-width: 1024px) {
  /* DASHBOARD */
  .dashboard {
    align-items: flex-end;
  }

  .dashboard .konten {
    margin-bottom: 35%;
    padding: 0 20px;
  }

  .dashboard .konten .text-head {
    color: white;
    font-weight: bold;
    font-size: 60px;
    margin: 0;
  }

  .dashboard .konten .text-mid {
    color: var(--primary-color-100);
    font-size: large;
  }

  .dashboard .konten .text-buttom {
    color: white;
    margin: 0;
  }

  /* END DASHBOARD */

  #kebutuhan {
    height: auto;
    padding: 5vh 0;
    box-sizing: border-box;
  }

  #kebutuhan .kebutuhan-text {
    display: none;
  }

  #kebutuhan .kebutuhan-text-mobile {
    display: block;
    font-weight: bold;
  }

  #kebutuhan img {
    width: 70px;
  }

  #kebutuhan h1 {
    font-size: x-large;
  }

  #kebutuhan h4 {
    font-size: large;
  }

  #fitur-halogps .head-card {
    grid-template-columns: 1fr 1fr;
  }

  #fitur-halogps .head-card .card {
    height: 20vh;
    width: 100%;
  }

  #fitur-halogps .head-card .card h5 {
    font-weight: bold;
    padding: 0 100%;
    font-size: large;
    text-align: center;
  }

  #footer-head .konten-footer-head {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    width: 90%;
    background-position: center;
  }

  /* card hidden hover */
  #fitur-halogps .head-card .card:hover::before {
    transform: translate(-50%, -50%) scale(0);
  }

  /* LANGKAH LANGKAH */
  .langkah-konten .box .box-konten {
    width: 45px;
    height: 45px;
  }

  .langkah-konten .box span {
    font-size: small;
    display: block;
    font-weight: bold;
  }

  .garis {
    margin-bottom: 60px;
  }

  /* PERANGKAT */
  .perangkat-child {
    height: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
    text-align: center;
    padding: 30px 40px;
  }

  .perangkat-child #carouselExampleFadeMobile {
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    gap: 30px;
    margin-top: 30px;
  }

  .perangkat-child #carouselExampleFade {
    display: none;
  }

  .perangkat-child img {
    width: 250px;
  }
}

/* MOBILE VERSION */
@media (max-width: 767px) {
  .dashboard .konten {
    margin-bottom: 50%;
  }

  #kebutuhan img {
    width: 50px;
  }

  #kebutuhan h4 {
    font-size: smaller;
  }

  #footer-head .konten-footer-head {
    padding: 3vh;
  }

  /* LANGKAH */
  .langkah-konten {
    flex-direction: column;
  }

  .connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, orange 50%, transparent 50%);
    background-size: 2px 10px;
  }

  /* LANGKAH */
  .langkah-konten {
    flex-direction: column;
    align-items: center;
  }

  .garis {
    width: 2px;
    height: 100px;
    border-top: none;
    border-left: 2px dashed #c4b9c5;
  }

  .langkah-konten {
    display: flex;
    width: 100%;
    justify-content: start;
  }

  .langkah-konten .box {
    flex-direction: row;
    gap: 2vh;
    width: 60%;
    align-items: center;
  }

  .langkah-konten .box .box-konten {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
  }

  .garis {
    margin: 0;
    margin-bottom: 0;
    width: calc(100% / 2.1);
  }
}
