/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Section Layanan Kami */
.layanan-kami {
  padding: 60px 20px;
  text-align: center;
  background-image: url('background.jpg'); /* Ganti dengan gambar Anda */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.kategori-buttons {
  margin-bottom: 20px;
}

.kategori-buttons button {
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.kategori-buttons button.active {
  background:rgba(255, 69, 0, 0.9);
}

.kategori-buttons button:hover {
  background: orangered;
}

.layanan-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.layanan-item {
  background-color: #222 ;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.layanan-item.visible {
  opacity: 1;
}

.layanan-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gambar-layanan img {
  width: 10rem; /* Sesuaikan ukuran gambar */
  height: 10rem; /* Sesuaikan ukuran gambar */
  border-radius: 50%;
  border: 3px solid orangered;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.layanan-item:hover .gambar-layanan img {
  transform: scale(1.1); /* Efek zoom saat hover */
}

.layanan-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: orangered;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.layanan-item p {
  font-size: 1rem;
  color: white;
  text-align:justify;
}

/* Animasi Scroll */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsif */
@media (max-width: 768px) {
  .layanan-container {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .layanan-container {
      grid-template-columns: 1fr;
  }

  .kategori-buttons button {
      width: 100%;
      margin: 5px 0;
  }
}

/* Section Kenapa Harus Memilih Kami */
.kenapa-kami {
  padding: 60px 20px;
  background-color: #d1ecf1;
}

.kenapa-kami-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.judul-kiri {
  flex: 1;
}

.judul-kiri h2 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}

.poin-kanan {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.poin-item {
  background-color: #222;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poin-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.ikon-poin {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 10px;
}

.poin-item h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
}

.poin-item p {
  font-size: 1rem;
  color: white;
}

/* Responsif */
@media (max-width: 768px) {
  .kenapa-kami-container {
      flex-direction: column;
  }

  .poin-kanan {
      grid-template-columns: 1fr;
  }
}