@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Roboto:wght@400;700&display=swap");

:root {
  --primary-color: #FF0000;
  --text-dark: #333333;
  --text-light: #767268;
  --extra-light: #f0efef;
  --white: #fcfcfc;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

header .section__header {
  font-size: 2rem;
  padding-top: 20px;
}
header .section__description {
  padding-bottom: 20px;
}

.section__description {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  line-height: 1.75rem;
}

.section__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.btn {
  outline: none;
  border: none;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  color: black;
  background-color: var(--white);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
}

.btn i {
  font-size: 1.5rem;
  margin: 0%;
  padding: 0%;
}


.btn:hover {
  background-color: var(--white);
}

.btn-reverse {
  position: fixed; /* Makes the button stay in the same spot on the screen */
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 999; /* Ensure it stays on top of other content */
  /* opacity: 0; Initially hidden */
  /* transition: opacity 0.3s ease, transform 0.3s ease; */
  transform: scale(0.8); /* Slightly smaller when hidden */
  font-family: "Roboto", sans-serif;
  color: white;
  background-color: #25D366;
  transition: 0.3s;
  cursor: pointer;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 0.3rem solid var(--white);
}

.btn-reverse a {
  text-decoration: none;
  color: var(--white);
}

.btn-reverse a i {
  font-size: 4rem;
  margin: 0%;
  padding: 0%;
}


/* .btn-reverse:hover {
  background-color: var(--primary-color);
  color: #fff;
  outline: none;
  border: none;
} */

/* Class to make the button visible and animate it */
.btn-reverse.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--white);
}

header {
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Define the keyframes for the slow zoom effect */
@keyframes backgroundZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1); /* Slow zoom to 110% of the original size */
  }
}

/* Define the keyframes for changing the background image */
@keyframes changeBackground {
  0% {
    background-image: url("assets/headercable.png");
  }
  20% {
    background-image: url("assets/kabel_1.png");
  }
  40% {
    background-image: url("assets/kabel_2.png");
  }
  60% {
    background-image: url("assets/kabel_3.png");
  }
  80% {
    background-image: url("assets/Proyek\ Listrik.png");
  }
  100% {
    background-image: url("assets/Putih.png");
  }
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
  padding-inline: 1rem;
  padding-block: 1rem;
  font-weight: bolder;
  background-color: var(--white);
}

.nav__header {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  z-index: 5;
}

.nav__logo a {
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo .company-name {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  font-weight: 1000;
  font-size: 1rem;
}
  
  /* .nav__logo .company-name .highlight {
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: 0.8rem;
  } */

.nav__logo a img {
  overflow: hidden;
  width: 75px;
  height: 70px;
  transform: scale(1);
  padding-left: 3px;
 }

.nav__menu__btn {
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--white);
  transition: transform 0.5s;
  z-index: 3;
  padding: 1rem;
  font-size: small;
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__links a {
  font-weight: 600;
  color: black;
  white-space: nowrap;
}

/* --- Styling untuk Dropdown (Versi Mobile, berlaku secara default) --- */
.dropdown {
  position: relative;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: bold;
}

.dropdown-link {
  color: black;
  text-decoration: none;
}

.dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  /* display: flex;
  align-items: center;
  gap: 0.25rem; */
  color: black;
  /* font-weight: bold; */
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  background-color: var(--white);
  z-index: 100;
  text-align: center;
  
  /* Aturan untuk mobile: disembunyikan dengan display: none */
  display: none;
}

.dropdown-menu li a {
  color: black;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Gunakan class .open untuk menampilkan dropdown saat diklik di mobile */
.dropdown-menu.open {
  display: block;
}

.header__container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  padding-top: 102px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 2rem;
    overflow: hidden;
}

.carousel-slide-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    text-align: center;
    padding: 20px;
    position: absolute;
    bottom: -30px;
    width: 100%;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative; /* Penting: agar tombol overlay dapat diposisikan secara absolut */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Menghilangkan spasi ekstra di bawah gambar */
}

/* Gaya untuk tombol overlay */
.slide1-button {
    position: absolute;
    /* Sesuaikan nilai 'left', 'bottom', 'width', dan 'height'
       sesuai dengan posisi dan ukuran tombol "Selengkapnya" di gambar Anda.
       Anda mungkin perlu sedikit penyesuaian di browser. */
    left: 50%; /* Contoh: sesuaikan horizontal */
    bottom: 5%; /* Contoh: sesuaikan vertikal */
    width: 400px; /* Contoh: sesuaikan lebar */
    height: 180px; /* Contoh: sesuaikan tinggi */
    transform: translateX(-50%); /* Untuk memusatkan jika menggunakan left: 50% */
    background-color: transparent; /* Pastikan transparan agar gambar tombol terlihat */
    z-index: 5; /* Pastikan di atas gambar */
    /* Opsional: tambahkan border atau box-shadow untuk visualisasi saat pengembangan */
    /* border: 1px solid red; */
    /* box-shadow: 0 0 0 2px red; */
}

.slide3-button {
    position: absolute;
    /* Sesuaikan nilai 'left', 'bottom', 'width', dan 'height'
       sesuai dengan posisi dan ukuran tombol "Selengkapnya" di gambar Anda.
       Anda mungkin perlu sedikit penyesuaian di browser. */
    left: 10.5%; /* Contoh: sesuaikan horizontal */
    bottom: 0%; /* Contoh: sesuaikan vertikal */
    width: 400px; /* Contoh: sesuaikan lebar */
    height: 180px; /* Contoh: sesuaikan tinggi */
    transform: translateX(-50%); /* Untuk memusatkan jika menggunakan left: 50% */
    background-color: transparent; /* Pastikan transparan agar gambar tombol terlihat */
    z-index: 5; /* Pastikan di atas gambar */
    /* Opsional: tambahkan border atau box-shadow untuk visualisasi saat pengembangan */
    /* border: 1px solid red; */
    /* box-shadow: 0 0 0 2px red; */
}

/* Jika ingin efek hover pada tombol transparan */
.slide-button:hover {
    cursor: pointer;
    /* Anda bisa menambahkan efek visual jika diinginkan,
       misalnya, mengubah kursor atau sedikit bayangan */
    background-color: rgba(255, 0, 0, 0.1);
}

.header__content .section__description {
  margin-bottom: 2rem;
  color: var(--white);
  text-align: left;
}

.header__btns {
  display: flex;
  align-items: start;
  justify-content: left;
  gap: 1rem;
}

.header__btns .btn {
  padding: calc(0.75rem - 4px) calc(1.5rem - 4px);
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  width: 15rem;
  height: 4rem;
  color: var(--white);

}

/* .header__btns .btn:nth-child(1) {
  color: var(--white);
  background-color: #25D366;
} */

.header__btns .btn:nth-child(1):hover {
  color: var(--white);
  background-color: transparent;
}

.achievement-section {
  padding: 2rem;
}

.achievement-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: auto;
}

.achievement-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  text-align: center;
  border: 2px solid rgba(128, 128, 128, 0.5);
  border-radius: 10px;
  color: #ff3131;
  padding: 1rem;
}

.achievement-box i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.achievement-box p {
  font-size: 1rem;
  font-weight: bolder;
  color: var(--primary-color);
}

.achievement-box:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.achievement-box:hover p {
  font-size: 1rem;
  font-weight: bold;
  color: var(--white);
}

.achievement-box:hover p .highlight {
  color: var(--white);
}

/* --- Bagian Pilihan Kabel Terbaik --- */
.kabellistrik__container {
    width: 100%;
    padding: 0;
}

/* Mengubah grid menjadi 2x2 tanpa celah */
.kabellistrik__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0; /* Menghilangkan semua jarak antar kartu */
    margin: 0;
    padding: 0;
}

.kabellistrik__card {
    position: relative; /* Penting untuk overlay */
    overflow: hidden;
    aspect-ratio: 2 / 1; /* Memastikan setiap kartu berbentuk persegi */
    text-decoration: none; /* Menghilangkan garis bawah dari tautan */
    display: block;
    padding: 0;
    margin: 0;
}

.kabellistrik__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Gaya overlay */
.kabellistrik__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Opasitas awal 0.3 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.kabellistrik__overlay h4 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* Efek hover */
.kabellistrik__card:hover .kabellistrik__overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Opasitas menjadi 0.5 saat di-hover */
}

.kabellistrik__card:hover img {
    transform: scale(1.05); /* Gambar sedikit membesar saat di-hover */
}

.steps__grid { 
  display: grid;
  gap: 2rem 0.5rem;
  margin-top: 4rem;
  grid-template-columns: repeat(1, 1fr);  
} 

.steps__card {
  border-radius: 0.75rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  
}

.steps__card img,
.steps__card h4,
.steps__card p {
  cursor: pointer;
}

.steps__card img {
  max-width: 300px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.steps__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

/* .inspiration {
  padding-block: 5rem;
  background-color: var(--white);
  overflow: hidden;
}

.inspiration :is(.section__header, .section__description) {
  padding-inline: 1rem;
  margin-bottom: 1rem;
}

.inspiration__wrapper {
  margin-top: 4rem;
  width: max-content;
  display: flex;
  align-items: center;

  animation: scroll-left 45s linear infinite;
}

.inspiration__card {
  padding-inline: 1rem;
  text-align: center;
}

.inspiration__card img {
  margin-bottom: 1rem;
  max-width: 225px;
  border-radius: 100%;
  border: 0.375rem solid var(--white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.inspiration__card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.inspiration__card p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
} */

@keyframes scroll-left {
  to {
    transform: translateX(calc(-50%));
  }
}

.property .property__container .section__header {
  font-size: 2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.property__container .section__header {
  margin-bottom: 1rem;
}

.property__card {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.property__card__content {
  padding: 1rem;
}

.property__card__content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.property__card__content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.property__card__content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.property__card__content h5 span {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 3px 6px;
  border-radius: 0.25rem;
}

.client__card {
  position: relative; 
  overflow: hidden; 
  cursor: pointer; 
  display: flex; 
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  /* Hapus flex-shrink dan scroll-snap-align dari sini */
}

.client__card img {
  display: block;
  width: 100%;
  height: 15rem; /* Pastikan tinggi fleksibel */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property__card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-radius: 0.75rem;
}

.property__card__overlay h4 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 1rem;
}

/* Hover Effect */
.client__card:hover .property__card__overlay {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.client__card:hover img {
  transform: scale(1.05);
}

/* --- Gaya Grid Baru --- */
.documentation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default 2 kolom untuk mobile */
  gap: 1.5rem;
  margin-top: 2rem;
}


.trip__grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem 1rem;
}

.trip__card {
  max-width: 400px;
  margin-inline: auto;
}

.trip__card img {
  margin-bottom: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.trip__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.trip__card p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.discount {
  position: relative;
  isolation: isolate;
}

.discount::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  height: 50%;
  width: 100%;
  background-color: var(--white);
  z-index: -1;
}

.discount__container {
  padding: 5rem 1rem;
  display: grid;
  gap: 2rem;
  background-image: linear-gradient(
      to right,
      rgba(255, 0, 0, 0.9),
      rgba(255, 0, 0, 0.9)
    ),
    url("assets/discount.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.discount__content .section__header {
  margin-bottom: 1rem;
  color: var(--white);
}

.discount__content .section__description {
  color: var(--white);
}

.discount__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.discount__btns .btn {
  padding: 1.5rem 4rem;
  border: 2px solid var(--white);
  color: black;
}
.discount__btns .btn a {
    color: #000000; /* Merubah warna teks link menjadi hitam */
    text-decoration: none; /* Opsional: Menghilangkan garis bawah pada link */
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__description-socials {
    display: flex;
    gap: 0.5rem; /* Jarak antar kotak */
    margin-top: 0.5rem; /* Jarak dari deskripsi di atasnya */
}

.footer__description-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px; /* Ukuran lebar kotak */
    height: 38px; /* Ukuran tinggi kotak */
    background-color: var(--white); /* Latar belakang warna cokelat/maroon gelap */
    color: black; /* Warna ikon putih */
    border-radius: 4px; /* Sedikit lengkungan pada sudut */
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid black;
}

.footer__description-socials a i {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    padding-top: 10px;
}

.footer__description-socials a:hover {
    background-color: var(--primary-color); /* Ubah ke warna highlight/merah saat di-hover */
    color: var(--white);
    border: none;
}

.footer__col a,
.footer__col h4,
.footer__col div {
  padding-bottom: 0.8rem;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

.footer__description {
  padding-top: 13px;
}

.highlight {
  color: var(--primary-color);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  font-size: 1rem;
  color: var(--text-dark);
}

.footer__links a:hover {
  color: var(--primary-color);
}

.footer__socials a i {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__socials a i:hover {
  color: var(--primary-color);
}

.footer__bar {
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
}

/* --- MODAL STYLES --- */
.modal-overlay {
  position: fixed; /* Stays fixed relative to the viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
  display: flex;
  align-items: center; /* Vertically center the modal content */
  justify-content: center; /* Horizontally center the modal content */
  z-index: 1000; /* Ensure it's on top of everything else */

  /* Initially hidden */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  border-radius: 0.75rem; /* This border radius should now be fully visible */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  position: relative; /* Essential for positioning the close button relative to this */
  color: var(--text-dark);
  padding: 1.5rem;

  /* Crucial for Scrollbar & Content Padding */
  max-height: 80vh; /* Limits the modal height to 80% of viewport height */
  overflow: hidden; /* Hide overflow on the main content box */
  display: flex; /* Use flex to layout title, close button, and scrollable content */
  flex-direction: column; /* Stack items vertically */
}

.modal-close-btn {
  position: absolute; /* Positioned relative to .modal-content */
  top: 0.75rem; /* Distance from the top */
  right: 0.75rem; /* Distance from the right (will not be pushed by scrollbar) */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  z-index: 10; /* Ensure it's above other content */
}

.modal-close-btn:hover {
  background-color: var(--extra-light);
}

.modal-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 0;
}

/* NEW: Inner scrollable content wrapper */
.modal-scroll-content {
  flex-grow: 1; /* Allows this content to fill remaining vertical space */
  overflow-y: auto; /* This is where the scrollbar will now appear */
  padding: 0 2rem 1.5rem; /* Apply padding here for text spacing */
  text-align: left;
  /* Add extra right padding to visually compensate for the scrollbar width (typically 15-17px) */
  padding-right: calc(2rem + 17px);
}

/* Optional: If scrollbar is overlaying (e.g., Mac Chrome), you might not need the extra right padding */
@media screen and (-webkit-min-device-pixel-ratio:0) and (hover: hover) {
  .modal-scroll-content {
    padding-right: 2rem; /* Revert to normal padding if scrollbar overlays */
  }
}

/* Optional: Custom Scrollbar Styles (for Webkit browsers like Chrome/Safari) */
.modal-scroll-content::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}
.modal-scroll-content::-webkit-scrollbar-track {
    background: var(--extra-light); /* Color of the scrollbar track */
    border-radius: 10px;
}
.modal-scroll-content::-webkit-scrollbar-thumb {
    background: var(--primary-color); /* Color of the scrollbar thumb */
    border-radius: 10px;
}
.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color); /* Color of the thumb on hover */
}

@media (width > 540px) {
  .achievement-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .kabellistrik__overlay h4 {
    font-size: 4rem;
}
}

@media (width > 880px) {
  nav {
    position: fixed;
    z-index: 9;
    padding-inline: 3.5rem;
    padding-block: 1rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: var(--white);
  }

  .nav__header {
    flex: 1;
    background-color: var(--white);
  }

  .nav__logo .company-name {
    height: 100%;
    font-size: 1.43rem;    
  }

  /* .nav__logo .company-name .highlight {
    font-size: 1.2rem;
    letter-spacing: 0.7rem;
  } */
/* 
      .nav__logo .company-name {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: 100%;
    } */
  
  .nav__logo a {
    gap: 1rem;
  }
    
  .nav__logo a img {
    padding-left: 0;
    overflow: hidden;
    width: 75px;
    height: 70px;
    transform: scale(1.3);
    padding-left: 3px;
  }

  .nav__logo a {
    font-size: 1.75rem;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    width: fit-content;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none !important;
    background-color: var(--white);
  }

  .nav__links a {
    color: black; /* Pastikan tautan berwarna hitam di desktop */
  }

  .nav__links a:hover {
    color: var(--secondary-color); /* Efek hover untuk desktop */
  }

  .dropdown-link,
  .dropdown-toggle {
    color: black;
  }

  .dropdown-menu {
    left: -40%;
    transform: none;
    /* background-color: var(--primary-color); */
    text-align: left;
    padding-top: 1.6rem;
    
    /* Gunakan opacity/visibility untuk efek hover di desktop */
    display: block; /* Tampilkan elemen, tapi sembunyikan dengan opacity */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .dropdown-menu li a {
    color: black;
  }

  .dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
  }

  /* Memastikan dropdown-menu berada di bawah */
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Efek hover untuk link dan tombol */
  .dropdown:hover .dropdown-link,
  .dropdown:hover .dropdown-toggle {
    color: var(--secondary-color);
  }

  /* .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  } */
  
  .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .dropdown-link:hover {
    color: var(--secondary-color);
  }

  .header__content {
    z-index: 3;
  }

  .header__content .section__description {
    text-align: left;
    padding-top: 1rem;
    width: 50%;
    }

  header .section__header {
  font-size: 2.5rem;
}

  .achievement-container {
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: 1200px;
  }

  .kabellistrik__grid {
        grid-template-columns: repeat(2, 1fr);
  }

    /* .steps__grid {
    grid-template-columns: repeat(3, 1fr);
  } */

  .property .property__container .section__header {
    font-size: 3rem;
  }

  .documentation-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 kolom untuk desktop */
  }

  .trip__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .discount__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .discount__btns .btn {
    padding: 1.5rem 8rem;
  }

  .discount__btns {
    justify-content: flex-end;
  }


  .header__btns {
    justify-content: flex-start;
  }
  }

  .discount__content :is(.section__header, .section__description) {
    text-align: left;
  }

  .discount__btns {
    justify-content: center;
  }

@media (width > 880px) and (width < 897px) {
  .nav__links li:nth-last-child(1) {
    display: none;
  }
}

@media (width > 1024px) {

  .steps__grid {
    gap: 1.5rem;
  }

  .trip__grid {
    gap: 1.5rem;
  }

  .discount__container {
    padding-inline: 4rem;
  }
}
