/* Efek scroll smooth */
html {
  scroll-behavior: smooth;
  overflow-y: scroll; /* Pastikan tetap bisa scroll */
  scrollbar-width: none; /* Untuk Firefox */
  -ms-overflow-style: none; /* Untuk Internet Explorer */
  scroll-snap-type: y mandatory;
 
  body::-webkit-scrollbar {
    display: none; /* Sembunyikan scrollbar di Chrome, Safari */
}
}
/* Reset default margin dan padding */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

/* Warna tema */
:root {
  --cyan: #87ceeb;
  --orange: orangered;
  --text-dark: #222;
  --text-light: #fff;
  --btn-color:  #18d26e;
  --cyan-light: #23AAF2;
}

/* Gaya umum */
body {
  font-family: 'Futura Md BT', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #d1ecf1;
}
@font-face {
  font-family: 'Futura Md BT';
  src: url('/font/futura_md_bt_medium-webfont.woff2') format('woff2'),
       url('/font/futura_md_bt_medium-webfont.woff') format('woff');
}


/* Kontainer */
.container {
  width: 90%;
  max-width: 75rem;
  margin: 0 auto;
}

/*Pengaturan Logo*/
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.3s ease;
  transform-origin: left
}

.logo img {
  height: 3.75rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  transform-origin: left;
}

.logo img:hover {
  transform: scale(1.1);
}
/* Gaya umum untuk setiap section */
section {
  /*min-height: 100vh;  Tinggi penuh minus tinggi navbar */
  display: flex; /* Untuk menengahkan konten */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;  /* Tambahkan padding untuk menghindari overlap */
  scroll-margin-top: calc(1rem + 16px);  /* Untuk menghindari overlap dengan navbar */
}

/* Menyesuaikan scroll offset agar tidak terpotong oleh navbar */
section {
  scroll-margin-top: calc(1rem + 16px);
  /* Sesuaikan dengan tinggi navbar */
}
/* ----------- Set Awal End ----------------*/

/* ----------- Navbar Default Start ----------------*/
.hamburger {
  display: none; /* Default: Sembunyikan di layar besar */
  font-size: 1.75rem;
  color: var(--text-light);
  cursor: pointer;
}

/* Responsive: Tampilkan hamburger di layar kecil */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .hamburger:hover{
    color: var(--orange);
  }

  .nav-links {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 4.5rem;
    right: 0;
    width: 100%;
    background: #222;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    transition:  0.5s ease, visibility 0.5s ease;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    display: flex; /* Munculkan menu saat tombol diklik */
  }
}

.navbar {
  position: fixed; /* Tetap di atas layar */
  top: 0;
  width: 100%;
  background-color: black; /* Awal transparan */
  color: var(--text-light);
  padding: 0.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Shadow saat solid */
  z-index: 1000;
  transition: all 0.5s ease-in-out;

}


.logo-img {
  max-height: 3rem;
  transition: all 0.5s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo img {
  content: url('/img/logo-girasi-nav1.png');
  max-height: 5rem;
  transition: all 0.5s ease;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light);
}

.navbar .nav-links {
  font-family: 'Poppins', sans-serif;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li {
  position: relative;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: bold;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
}

/* Efek hover border bawah */
.navbar .nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;  /* Letakkan tepat di bawah navbar */
  left: 50%;  /* Awal efek dari tengah */
  width: 0;  /* Awal tanpa lebar */
  height: 3px;  /* Ketebalan border */
  background-color: whitesmoke;  /* Warna border */
  transition: all 0.5s ease;  /* Transisi untuk efek */
  transform: translateX(-50%);
}

.navbar .nav-links li a:hover::after {
  width: 100%;  /* Border memanjang ke kedua sisi */
}

/* Menambahkan warna teks menjadi orange saat hover */
.navbar .nav-links li a:hover {
  color: var(--orange);  /* Mengubah warna teks menjadi orange */
  width: 100%;
}
/* ----------- Navbar End ----------------*/

/* ------ Elemen Whatsapp Start-----*/
/* Popup WhatsApp */
.whatsapp-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  width: 320px;
  max-width: 90%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
  z-index: 1000;

}

/* Saat popup muncul */
.whatsapp-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-header {
  background-color: #25d366;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.whatsapp-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.whatsapp-header span {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
}

.whatsapp-body {
  padding: 16px;
  font-size: 0.9rem;
  color: #333;
}
.whatsapp-body a{
  text-decoration: none; 
  color: inherit;
}

.whatsapp-contact {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.3s;
}

.whatsapp-contact:last-child {
  border-bottom: none;
}

.whatsapp-contact i {
  font-size: 1.5rem;
  color: #25d366;
  margin-right: 12px;
  text-decoration: none;
  
}

.whatsapp-contact:hover {
  background-color: #3ae97acc;
}

/* Tombol Mengambang WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float i {
  font-size: 1.8rem;
  
}

/* Responsif */
@media (max-width: 768px) {
  .whatsapp-popup {
    width: 90%;
    right: 5%;
  }
}

/* ------ Elemen Whatsapp Start-----*/
  /* Banner About */
   /* Reset aturan umum hanya untuk section About */
  .about-banner {
    min-height: unset !important; /* Override aturan global */
    height: 30vh; /* Pastikan tingginya hanya 20vh */
    max-height: 30vh;
    background-color: var(--orange); /* Warna latar oranye */
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hindari tambahan tinggi */
    padding: 5rem;
    margin: 0;
  }
  
  
  /* Kontainer di dalam banner */
  .about-banner .container {
    max-width: 1100px;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* Judul utama */
  .about-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.3rem; /* Kurangi margin agar tidak menambah tinggi */
    text-transform: uppercase;
    padding-top: 4rem;
  }
  
  /* Garis putih di bawah teks "ABOUT US" */
  .underline {
    width: 4rem;
    height: 4px;
    background-color: var(--text-light);
    margin: 5px auto;
  }
  
  /* Subjudul */
  .about-subtitle {
    font-size: 2rem;
    font-weight: bold;
    color: black;
    margin-top: 5px;
  }
  
  /* 🌟 RESPONSIVE ABOUT BANNER */
  
  /* Untuk Tablet & layar sedang (max 1024px) */
  @media (max-width: 1024px) {
    .about-banner {
        height: 35vh; /* Sedikit dikurangi agar lebih proporsional */
        padding: 8rem; /* Kurangi padding agar tidak terlalu besar */
    }
  
    .about-title {
        font-size: 1.8rem; /* Ukuran judul sedikit dikurangi */
    }
  
    .about-subtitle {
        font-size: 1.6rem;
    }
  }
  
  /* Untuk HP & layar kecil (max 768px) */
  @media (max-width: 768px) {
    .about-banner {
        height: 30vh; /* Kurangi tinggi */
        padding: 6rem; /* Sesuaikan padding */
    }
  
    .about-title {
        font-size: 1.6rem;
        padding-top: 2rem;
    }
  
    .about-subtitle {
        font-size: 1.4rem;
    }
  }
  
  /* Untuk HP sangat kecil (max 480px) */
  @media (max-width: 480px) {
    .about-banner {
        height: 25vh; /* Lebih kecil agar pas di layar HP */
        padding: 4rem; /* Kurangi padding */
    }
  
    .about-title {
        font-size: 1.4rem;
        padding-top: 4rem;
    }
  
    .about-subtitle {
        font-size: 1.2rem;
    }
  }
  
/* Gaya untuk tombol Top Page */
.top-page {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 3.4rem;
  height: 3.4rem;
  background: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: none;
  transition: all 0.3s ease-in-out;
}
.top-page i {
  font-size: 1.6rem;
  color: whitesmoke;
}
.top-page:hover {
  transform: scale(1.1);
}
