/* Custom CSS for LadingProAI */

/* Google Fonts - Inter is already linked in HTML */

/* Custom Variables for consistent dark mode colors */
:root {
  --neon-blue: #00e0ff; /* A bright, slightly greenish blue */
  --green-400: #4ade80; /* Tailwind green-400 */
  --yellow-400: #facc15; /* Tailwind yellow-400 */
  --purple-400: #c084fc; /* Tailwind purple-400 */
  --dark-bg-main: #0a0a0a; /* Sangat gelap, mendekati black */
  --dark-bg-secondary: #1f2937; /* Tailwind bg-gray-800 */
  --light-text-color: #f3f4f6; /* Tailwind text-gray-100 */
  --lighter-text-color: #f9fafb; /* Tailwind text-gray-50 */
}

/* Base Styles - Memaksa latar belakang body menjadi gelap */
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--dark-bg-main) !important; /* Pastikan body gelap total */
  color: var(--light-text-color); /* Pastikan teks dasar cerah */
}

/* Header background - Memaksa header menjadi gelap dan sedikit transparan */
#main-header {
  background-color: var(--dark-bg-main) !important; /* Paksa warna gelap */
  background-color: rgba(10, 10, 10, 0.9) !important; /* Paksa opacity */
  /* backdrop-filter dan shadow-lg dari Tailwind masih diterapkan via HTML class */
}

/* Neon Blue Highlight for consistency */
.text-neon-blue {
  color: var(--neon-blue);
}

/* CTA Button Styles (Hero Section) */
.cta-button {
  background-image: linear-gradient(to right, var(--neon-blue) 0%, #007bff 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 9999px; /* Full rounded */
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px rgba(0, 224, 255, 0.3); /* Softer blue shadow */
}

.cta-button:hover {
  background-position: right center; /* Moves gradient on hover */
  box-shadow: 0 15px 20px rgba(0, 224, 255, 0.4);
  transform: translateY(-2px);
}

/* CTA Button Styles (Header - slightly smaller) */
.cta-button-header {
  background-image: linear-gradient(to right, var(--neon-blue) 0%, #007bff 100%);
  color: white;
  padding: 0.75rem 1.5rem; /* Adjust padding for header */
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 224, 255, 0.2);
}

.cta-button-header:hover {
  background-position: right center;
  box-shadow: 0 6px 8px rgba(0, 224, 255, 0.3);
  transform: translateY(-1px);
}

/* Price Highlight */
.price-highlight {
  color: var(--neon-blue); /* Consistent with brand color */
  font-weight: 900;
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.6); /* Glow effect */
}

/* Order CTA Buttons (Harga Section) */
.order-cta-button {
  color: white;
  font-weight: 700;
  text-align: center;
  border-radius: 9999px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  /* Fallback/Override untuk tombol PESAN JASA SEKARANG! (paket 50rb) */
  background-image: linear-gradient(to right, var(--neon-blue) 0%, #007bff 100%) !important;
}

/* Hover effect for the general order-cta-button (will be overridden by specific ones if present) */
.order-cta-button:hover {
    background-position: right center; /* Moves gradient on hover */
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.4); /* General shadow change */
}

/* Floating WhatsApp Button */
.floating-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* WhatsApp Green */
  border-radius: 50%;
  box-shadow: 0 8px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 18px rgba(37, 211, 102, 0.6);
}

.floating-wa svg {
  width: 32px;
  height: 32px;
}

/* --- Animations --- */

/* Fade In Up */
@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0; /* Hidden by default */
  animation: fadeInFromBottom 0.8s ease-out forwards;
}

/* Delay for fade-in-up animations */
.animate-fade-in-up.delay-1 { animation-delay: 0.2s; }
.animate-fade-in-up.delay-2 { animation-delay: 0.4s; }
.animate-fade-in-up.delay-3 { animation-delay: 0.6s; }
.animate-fade-in-up.delay-4 { animation-delay: 0.8s; }
.animate-fade-in-up.delay-5 { animation-delay: 1.0s; }
.animate-fade-in-up.delay-6 { animation-delay: 1.2s; }


/* Fade In Left */
@keyframes fadeInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-left {
  opacity: 0;
  animation: fadeInFromLeft 0.8s ease-out forwards;
}

/* Delay for fade-in-left animations */
.animate-fade-in-left.delay-1 { animation-delay: 0.2s; }
.animate-fade-in-left.delay-2 { animation-delay: 0.4s; }
.animate-fade-in-left.delay-3 { animation-delay: 0.6s; }
.animate-fade-in-left.delay-4 { animation-delay: 0.8s; }
.animate-fade-in-left.delay-5 { animation-delay: 1.0s; }


/* Fade In Right */
@keyframes fadeInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-right {
  opacity: 0;
  animation: fadeInFromRight 0.8s ease-out forwards;
}

/* Delay for fade-in-right animations */
.animate-fade-in-right.delay-1 { animation-delay: 0.2s; }
.animate-fade-in-right.delay-2 { animation-delay: 0.4s; }
.animate-fade-in-right.delay-3 { animation-delay: 0.6s; }
.animate-fade-in-right.delay-4 { animation-delay: 0.8s; }
.animate-fade-in-right.delay-5 { animation-delay: 1.0s; }
.animate-fade-in-right.delay-6 { animation-delay: 1.2s; }

/* Sticky Header effect */
.sticky-header {
  padding-top: 0.75rem; /* Smaller padding when sticky */
  padding-bottom: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Optional: Add some padding to body to prevent content from hiding under fixed header */
body {
  padding-top: 70px; /* Adjust based on header height */
}

@media (max-width: 768px) {
  body {
    padding-top: 80px; /* Adjust for smaller screens if header height changes */
  }
  .hero-content {
    flex-direction: column;
  }
  .hero-text, .hero-image {
    width: 100%;
  }
  .hero-image {
    margin-top: 3rem;
  }
}

/* --- START: Perbaikan Kontras untuk Keunggulan & Testimoni (dengan !important) --- */

/* Bagian Keunggulan (section background) */
#keunggulan {
  background-color: var(--dark-bg-main) !important; /* Paksa warna background main untuk section ini */
}

/* Kartu Keunggulan (feature-item) */
.feature-item {
  background-color: var(--dark-bg-secondary); /* Warna bg-gray-800 */
}
.feature-item p {
  color: var(--light-text-color); /* text-gray-100 */
}

/* Bagian Testimoni (section background) */
/* Tidak perlu aturan eksplisit di sini karena sudah ada di HTML dan body rule global */

/* Kartu Testimoni (testimonial-card) */
.testimonial-card {
  background-color: var(--dark-bg-secondary); /* Warna bg-gray-800 */
}

.testimonial-card blockquote {
  color: var(--light-text-color); /* text-gray-100 for quote */
}

.testimonial-card p.font-semibold {
  color: var(--lighter-text-color); /* text-gray-50 for name */
}

/* --- END: Perbaikan Kontras untuk Keunggulan & Testimoni --- */

/* NEW: Styles for the final strong CTA button */
.cta-button-final {
  /* Using Tailwind classes for background gradient directly in HTML,
     but if you want to force specific CSS gradient, uncomment and use this: */
  /* background-image: linear-gradient(to right, var(--green-400) 0%, #3B82F6 100%) !important; */ /* Forcing new colors */
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.3); /* Darker shadow from button */
  color: #1f2937; /* Tailwind text-gray-900 */
}
.cta-button-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
}

/* NEW: Styles for the Discount Pop-up */
#discountPopup {
  backdrop-filter: blur(5px); /* Add blur effect to background */
}

#popupContent {
  animation: slideIn 0.5s ease-out forwards; /* Entry animation for popup */
}

@keyframes slideIn {
  from {
    transform: translateY(-50px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Animation for the discount text in popup */
@keyframes bounce-custom {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.animate-bounce-custom {
  animation: bounce-custom 1s infinite alternate; /* Custom bounce for effect */
}

/* CTA button inside popup */
.cta-button-popup {
  background-image: linear-gradient(to right, #25D366 0%, #1DA1F2 100%); /* Green to Twitter Blue */
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

.cta-button-popup:hover {
  background-position: right center;
  box-shadow: 0 8px 12px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* Footer Background - Ensure it's dark */
footer {
  background-color: var(--dark-bg-main) !important; /* Forces the main dark background */
}

/* --- NEW: FAQ Accordion Styles --- */
.faq-question {
  cursor: pointer;
  padding: 0.5rem 0; /* Padding inside the button */
}

.faq-question:hover .faq-icon {
  color: white; /* Icon turns white on hover */
}

.faq-answer {
  /* Initial state: hidden */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  padding-top: 0; /* No padding when closed */
}

.faq-answer p {
  padding-bottom: 0.5rem; /* Padding for the text itself */
}

.faq-item.active .faq-answer {
  /* Active state: expanded */
  max-height: 500px; /* Cukup besar untuk menampung konten */
  padding-top: 1rem; /* Padding after the line */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Mengubah + menjadi X (atau jadi tanda panah ke atas) */
  color: white; /* Icon stays white when active */
}

