html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('../image/bg.webp') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overscroll-behavior: none;
}

.intro {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  margin: 0;
  margin-top: 6rem;
}

.intro h2 {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 10px;
}

.intro p {
  font-size: 1.2em;
  color: white;
  margin: 5px 0;
}

.carousel-container {
  position: relative;
  width: 80%;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  flex: 0 0 100%;
}

button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

button.prev { left: 10px; }
button.next { right: 10px; }

.gambar-sawit {
  width: 400px; /* Atur ukuran gambar */
  height: 300px;
  margin: 2rem; /* Beri jarak antar gambar */
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px; /* Agar gambar punya sudut melengkung */
  transition: transform 0.3s ease; /* Efek transisi */
}

#sawit-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 gambar per baris */
  gap: 0; /* Jarak antar gambar */
  justify-items: center; /* Pusatkan gambar di dalam grid */
  margin-bottom: 3rem;
}

.gambar-sawit:hover {
  transform: scale(1.1); /* Efek perbesar saat hover */
}

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
  z-index: 1000; /* Tambahkan ini */
}

.whatsapp-btn img {
  width: 35px;
  height: 35px; /* Pastikan aspect ratio tetap */
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  position: relative; /* Tambahkan ini */
  display: block; /* Pastikan gambar terlihat sebagai block element */
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.whatsapp-btn {
  animation: bounce 1.5s infinite ease-in-out;
}

@media screen and (max-width: 768px) {
  .menu-toggle {
      display: flex;
      margin-right: 0.75rem ;
  }

  .logo {
    color: white;
    font-size:x-large;
    font-weight: 900;
  }

  nav ul {
      display: none;
      flex-direction: column;
      background-color: #AAB99A;
      position: absolute;
      top: 90px;
      left: 0;
      width: 100%;
  }
  nav ul.active {
      display: flex;
  }
  nav ul li {
      text-align: center;
      padding: 10px;
      margin-right: 2.1rem;
  }

    .intro {
      padding: 30px 15px;
      margin-top: 5rem; 
    }
  
    .intro h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.6em;
    flex-wrap: wrap;
  }
  
    .intro p {
      font-size: 1em;
    }


#nav-menu {
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  background-color: #464E2E;
  display: none;
  flex-direction: column;
  z-index: 1000;
  
}

#nav-menu.active {
  display: flex;
}

.carousel-container {
  position: relative;
  z-index: 1;
}

  #sawit-container {
    grid-template-columns: repeat(2, 1fr); /* 2 gambar per baris */
    gap: 10px; /* Tambahkan sedikit jarak antar gambar */
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .gambar-sawit {
    width: 160px; /* Kurangi ukuran gambar agar sesuai */
    height: 140px;
    margin: 3px;
  }
}

/* Gaya untuk section testimoni */
.testimoni {
  padding: 20px;
}

.testimoni-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

/* Gaya untuk card */
.card {
  background-color: transparent; /* Menyesuaikan warna latar belakang dengan section */
  border: 1px solid transparent; /* Border ringan untuk memperjelas batas card */
  border-radius: 8px;
  box-shadow: none; /* Menghilangkan bayangan agar menyatu */
  margin: 10px;
  padding: 20px;
}

.testimoni-container ul {
  list-style-type: none;
  padding: 0;
}

.testimoni-container li {
  color: white;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.5em;
  color: #FFD700;
}

.card-description {
  font-size: 1em;
  color: white
}

.card-author {
  font-style: italic;
  color: white;
}

.card-footer {
  color:white;
}

.customer-photo {
  width: 70%; /* Mengatur lebar gambar agar responsif */
  height: auto; /* Memastikan tinggi gambar otomatis sesuai proporsi */
  border-radius: 8px; /* Sudut membulat pada gambar */
  margin-bottom: 15px; /* Jarak antara gambar dan konten lainnya */
  display:grid ;
}

@media screen and (max-width: 768px) {
  .customer-photo {
    width: 100%; /* Mengatur lebar gambar agar responsif */
    height: auto; /* Memastikan tinggi gambar otomatis sesuai proporsi */
    border-radius: 8px; /* Sudut membulat pada gambar */
    margin-bottom: 15px; /* Jarak antara gambar dan konten lainnya */  
  }
}