/* Mengatur font utama */
body {
  font-family: "Inter", sans-serif;
}

/* === Hero Slider === */
/* Mengubah selector dari #hero menjadi #beranda */
#beranda {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}
.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.85);
  z-index: 2;
}
.hero-slide.active {
  opacity: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
}
/* Mengubah selector dari #hero-text-content menjadi #beranda-text-content jika digunakan untuk styling unik, tapi karena di HTML ID-nya masih hero-text-content, kita biarkan saja. Namun di bagian atas kita ganti yang merujuk ke ID utama. */
/* Catatan: Di index.html, ID-nya adalah 'hero-text-content', jadi di CSS kita biarkan saja. */
#hero-text-content {
  transition: opacity 0.5s ease-in-out;
}
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}
.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-dot.active {
  background-color: white;
  transform: scale(1.25);
}

/* Latar belakang dengan pola geometris untuk tema gelap */
#layanan {
  background-color: #111827; /* bg-gray-900 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%234B5563' fill-opacity='0.1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#manfaat {
  background-color: #1f2937; /* bg-gray-800 */
}

.contact-bg {
  background-color: #111827; /* bg-gray-900 */
}

/* === Styling Kartu Layanan (Tema Gelap) === */
.service-card-1,
.benefit-card,
.other-service-card {
  background: #1f2937; /* bg-gray-800 */
  border-radius: 1rem;
  border: 1px solid #374151; /* bg-gray-700 */
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100%; /* Make cards in a row same height */
}

.other-service-card {
  text-align: left;
}

.service-card-1:hover,
.benefit-card:hover,
.other-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6; /* border-blue-500 */
}

.service-card-1 p,
.benefit-card p,
.other-service-card p {
  color: #9ca3af; /* text-gray-400 */
}

/* === Styling FAQ (Tema Gelap) === */
.faq-item {
  background-color: transparent;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #374151; /* border-gray-700 */
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #3b82f6;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e0e7ff; /* Lighter blue-white */
  font-weight: 600; /* Semi-bold */
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
  color: #9ca3af;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background-color: rgba(17, 24, 39, 0.5);
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 400;
}

/* === Animasi Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active Nav Link Styling */
.nav-link.active {
  color: #3b82f6; /* blue-500 */
}
.animate-pulse-slow {
  animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

/* Efek Timbul untuk Section Proses */
.process-step-circle {
  background: linear-gradient(145deg, #121a2b, #0f1524);
  box-shadow: 8px 8px 16px #0a0e16, -8px -8px 16px #182238;
  border: 2px solid #1f2937;
  transition: all 0.3s ease;
}
.process-step-circle:hover {
  border-color: #2563eb; /* A brighter blue */
  transform: translateY(-2px);
  box-shadow: 10px 10px 20px #0a0e16, -10px -10px 20px #182238;
}

/* Animasi Putar Lambat untuk Grafis FAQ */
.animate-spin-slow {
  animation: spin 20s linear infinite;
}
.animate-spin-slower {
  animation: spin 30s linear infinite reverse;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Floating WhatsApp Button */
#whatsapp-button {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  visibility: hidden;
}

#whatsapp-button.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.whatsapp-pulse {
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
