html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
#loader {
  background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
}

/* ========================================
   NAVBAR
   ======================================== */
#navbar {
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  overflow-x: hidden;
}

#navbar.bg-green-600 {
  background: rgba(22, 163, 74, 0.98) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar:not(.bg-green-600) {
  background: rgba(22, 163, 74, 0.85) !important;
}

#mobile-menu {
  backdrop-filter: blur(20px);
}

/* Mobile Menu Button */
#menu-btn {
  padding: 8px;
  margin-right: -8px;
  position: relative;
  z-index: 100;
}

#menu-btn span {
  transform-origin: center;
  display: block;
  backface-visibility: hidden;
}

/* Mobile Menu Container */
#mobile-menu {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.98) 0%, rgba(74, 222, 128, 0.98) 100%);
  overflow-x: hidden;
  max-width: 100vw;
  will-change: opacity;
}

/* Mobile Menu Links */
#mobile-menu .mobile-link {
  padding: 1.25rem 2rem;
  text-align: center;
  border-radius: 16px;
  margin: 0.5rem 0;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#mobile-menu .mobile-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  transform: scale(1.05);
  color: #86efac;
}

/* Mobile Menu CTA Button - Highlighted Green */
#mobile-menu .mobile-link-cta {
  display: block;
  padding: 1.25rem 2rem;
  text-align: center;
  border-radius: 16px;
  margin: 1rem 0 0.5rem 0;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

#mobile-menu .mobile-link-cta:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Close button animation - Improved transforms */
#menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  background: linear-gradient(135deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-image,
.hero-product {
  display: block !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.3));
  border-radius: 1.5rem !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
  mask-image: radial-gradient(white, black) !important;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-product.active {
  opacity: 1 !important;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
}

.hero-product:not(.active) {
  opacity: 0;
  z-index: 1;
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ========================================
   COUNTER SECTION
   ======================================== */
.counter-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.counter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(74, 222, 128, 0.3);
}

.counter {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   KALKULATOR SECTION
   ======================================== */
#kalkulator-form select,
#kalkulator-form input[type="number"] {
  font-size: 1rem;
  max-width: 100%;
}

#kalkulator-form select:focus,
#kalkulator-form input[type="number"]:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Fix kalkulator mobile overflow */
@media (max-width: 768px) {
  #kalkulator-form .flex {
    flex-wrap: wrap;
  }
  
  #kalkulator-form select,
  #kalkulator-form input[type="number"] {
    width: 100%;
  }
}

/* Radio button styling for fase pertumbuhan */
input[name="fase"]:checked + div {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #22c55e !important;
  color: #166534;
}

/* ========================================
   MASALAH SECTION
   ======================================== */
.masalah-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.masalah-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.masalah-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(239, 68, 68, 0.15);
}

.masalah-card:hover::before {
  transform: scaleX(1);
}

.masalah-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.masalah-card:hover .masalah-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: white;
}

/* ========================================
   SOLUSI SECTION
   ======================================== */
.solusi-image {
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.2));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.solusi-image:hover {
  transform: scale(1.05) rotate(2deg);
}

.solusi-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.solusi-list li:hover {
  transform: translateX(10px);
  background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%);
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.2);
}

.solusi-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

/* ========================================
   PRODUK SECTION
   ======================================== */
.product-scroll-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.product-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

.product-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Scroll indicator for mobile */
@media (max-width: 768px) {
  .product-scroll-wrapper {
    position: relative;
    overflow: visible;
    padding: 0 1rem;
  }
  
  .product-scroll-container {
    position: relative;
    scroll-padding-left: 1rem;
    padding: 1rem 0 !important;
    margin: 0 !important;
  }
  
  .product-scroll-container::after {
    content: 'Geser untuk lihat produk';
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
    animation: fadeOut 4s forwards;
    animation-delay: 1.5s;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    white-space: nowrap;
    letter-spacing: 0.025em;
  }
  
  /* Navigation arrows - FIXED position, Larger & Better */
  .product-scroll-prev,
  .product-scroll-next {
    display: flex !important;
    position: fixed !important;
    top: 50% !important;
    left: 0.25rem !important;
    right: auto !important;
    z-index: 100 !important;
    opacity: 1 !important; /* Always visible on mobile */
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    background: white !important;
  }

  .product-scroll-next {
    left: auto !important;
    right: 0.25rem !important;
  }

  /* Hover effect - scale only, maintain Y position */
  .product-scroll-prev:hover,
  .product-scroll-next:hover {
    transform: translateY(-50%) scale(1.1) !important;
  }

  /* Touch feedback */
  .product-scroll-prev:active,
  .product-scroll-next:active {
    transform: translateY(-50%) scale(0.95) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
  }

  /* Desktop - hide arrows, show on hover */
  @media (min-width: 769px) {
    .product-scroll-prev,
    .product-scroll-next {
      position: absolute !important;
      opacity: 0 !important;
      transition: opacity 0.3s ease, transform 0.2s ease !important;
    }

    .product-scroll-prev {
      left: 1rem !important;
    }

    .product-scroll-next {
      right: 1rem !important;
    }

    .product-scroll-wrapper:hover .product-scroll-prev,
    .product-scroll-wrapper:hover .product-scroll-next {
      opacity: 1 !important;
    }

    /* Desktop hover - scale only, maintain Y position */
    .product-scroll-prev:hover,
    .product-scroll-next:hover {
      transform: translateY(-50%) scale(1.1) !important;
    }

    .product-scroll-prev:active,
    .product-scroll-next:active {
      transform: translateY(-50%) scale(0.95) !important;
    }
  }
}

@keyframes fadeOut {
  0% { 
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% { 
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
  }
}

.produk-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.produk-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(34, 197, 94, 0.25);
}

.produk-image {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.produk-card:hover .produk-image {
  transform: scale(1.05) rotate(-3deg);
}

/* Warning Box - Improved Styling */
.warning-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fee2e2 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.warning-box:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.warning-box .flex {
  width: 100%;
  max-width: 100%;
}

.warning-box .flex-1 {
  min-width: 0;
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.warning-box p {
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Bulk Product Cards - Enhanced Visual Hierarchy */
.produk-card.border-4 {
  border-width: 4px !important;
  position: relative;
  overflow: visible;
}

.produk-card .absolute.top-0 {
  z-index: 30;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.9);
  }
}

/* Price Display - More Prominent */
.produk-card .text-3xl.font-bold.text-green-600 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
}

/* Product Card Image Container - Better Presentation */
.produk-card .bg-gradient-to-br.from-green-100 {
  position: relative;
  overflow: hidden;
}

.produk-card .bg-gradient-to-br.from-green-100::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.produk-card:hover .bg-gradient-to-br.from-green-100::before {
  opacity: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ========================================
   KEUNGGULAN SECTION
   ======================================== */
.keunggulan-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.keunggulan-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.keunggulan-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(34, 197, 94, 0.15);
}

.keunggulan-card:hover::after {
  transform: scaleX(1);
}

.keunggulan-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.keunggulan-card:hover .keunggulan-icon {
  transform: scale(1.15) rotate(-5deg);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

/* ========================================
   BEFORE/AFTER SLIDER
   ======================================== */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
}

.before-after-slider::before {
  content: attr(data-before);
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  border-right: 3px solid white;
  z-index: 2;
  overflow: hidden;
}

.before-after-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  pointer-events: none;
}

.slider-handle::before {
  content: '↔';
  font-size: 1.2rem;
  color: #374151;
}

/* ========================================
   TESTIMONI SECTION
   ======================================== */
.testimoni-card {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimoni-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 4rem;
  color: rgba(34, 197, 94, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimoni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.15);
}

.testimoni-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dcfce7;
  transition: all 0.4s ease;
}

.testimoni-card:hover .testimoni-img {
  border-color: #22c55e;
  transform: scale(1.05);
}

.testimoni-rating {
  display: flex;
  gap: 2px;
}

.testimoni-rating span {
  animation: starPulse 2s ease-in-out infinite;
}

.testimoni-rating span:nth-child(2) { animation-delay: 0.1s; }
.testimoni-rating span:nth-child(3) { animation-delay: 0.2s; }
.testimoni-rating span:nth-child(4) { animation-delay: 0.3s; }
.testimoni-rating span:nth-child(5) { animation-delay: 0.4s; }

/* Testimoni Slider Navigation */
#prev-testimoni,
#next-testimoni {
  opacity: 1;
  transition: opacity 0.3s ease;
}

#prev-testimoni:hover,
#next-testimoni:hover {
  background: #f3f4f6;
  transform: scale(1.1);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-item {
  background: white;
  border-radius: 16px;
  padding: 0;
  border: 2px solid #e5e7eb;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.faq-item:hover {
  border-color: #4ade80;
  box-shadow: 0 10px 40px rgba(74, 222, 128, 0.2);
}

.faq-toggle {
  padding: 1.5rem 1.5rem;
  font-weight: 600;
  color: #15803d;
  transition: all 0.3s ease;
}

.faq-toggle:hover {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
}

.faq-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle:hover .faq-icon {
  transform: rotate(90deg);
}

.faq-icon.rotate-180 {
  transform: rotate(180deg);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.5rem;
  background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    padding 0.4s ease;
}

.faq-content.active {
  opacity: 1;
  padding: 1.5rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.5);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
}

/* ========================================
   WHATSAPP WIDGET
   ======================================== */
.whatsapp-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#wa-options {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
  transform-origin: bottom center;
  will-change: opacity, transform;
}

#wa-options.hidden {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  visibility: hidden;
}

#wa-options:not(.hidden) {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    visibility: hidden;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
  }
}

.whatsapp-float {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  will-change: transform;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 50px rgba(34, 197, 94, 0.6);
}

.whatsapp-float.active {
  animation: none;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: rotate(90deg);
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-animate {
  animation: floatBounce 2.5s ease-in-out infinite;
}

/* ========================================
   EXIT POPUP
   ======================================== */
#exit-popup {
  animation: fadeIn 0.3s ease;
  overflow-x: hidden;
  max-width: 100vw;
}

#exit-popup .bg-white {
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: calc(100vw - 2rem);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   FADE SECTION ANIMATIONS
   ======================================== */
.fade-section {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-section .stagger {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-section.show .stagger {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards */
.fade-section.show .stagger:nth-child(1) { transition-delay: 0.1s; }
.fade-section.show .stagger:nth-child(2) { transition-delay: 0.2s; }
.fade-section.show .stagger:nth-child(3) { transition-delay: 0.3s; }
.fade-section.show .stagger:nth-child(4) { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  /* Fix overflow horizontal */
  html, body {
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }

  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  /* Hero Section Mobile - Fix height */
  .hero-section {
    min-height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }
  
  /* Hero Content Layout Mobile */
  .hero-content {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .hero-content > div {
    width: 100% !important;
  }
  
  /* Hero Image Container Mobile */
  .hero-section .max-w-md,
  .hero-section .relative.w-full {
    max-width: 280px !important;
    height: 280px !important;
    min-height: 280px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 auto !important;
  }
  
  /* Hero Product Images Mobile - Native Size */
  .hero-product {
    width: auto !important;
    height: auto !important;
    max-width: 280px !important;
    max-height: 280px !important;
    min-height: auto !important;
    margin: 0 auto !important;
  }

  /* Product Scroll Container Mobile - Horizontal Scroll */
  .product-scroll-wrapper {
    padding: 0 1rem !important;
  }
  
  .product-scroll-container {
    padding: 1rem 0 !important;
    margin: 0 -1rem !important;
  }
  
  .product-scroll-container .flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    width: max-content !important;
    max-width: none !important;
  }
  
  .product-scroll-container .produk-card {
    width: calc(100vw - 3.5rem) !important;
    max-width: calc(100vw - 3.5rem) !important;
    min-width: calc(100vw - 3.5rem) !important;
    margin: 0 !important;
    scroll-snap-align: center !important;
    flex-shrink: 0 !important;
  }

  /* Product card mobile optimizations */
  .produk-card .p-6 {
    padding: 1rem !important;
  }

  .produk-card .text-xl {
    font-size: 1.125rem !important;
  }

  .produk-card .h-64 {
    height: 10rem !important;
  }

  .produk-card .py-4 {
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
  }
  
  /* Warning box mobile - IMPROVED */
  @media (max-width: 768px) {
    .warning-box {
      padding: 0.875rem !important;
      margin: 0.875rem 0 !important;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      overflow: visible !important;
    }

    .warning-box .flex {
      flex-direction: column !important;
      gap: 0.5rem !important;
      width: 100% !important;
      max-width: 100% !important;
    }

    .warning-box .flex-1 {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
    }

    .warning-box .text-xs,
    .warning-box p,
    .warning-box span {
      line-height: 1.6 !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      word-break: break-word !important;
      overflow-wrap: break-word !important;
      hyphens: auto !important;
      max-width: 100% !important;
    }
  }

  /* Bulk card border mobile - Keep visible */
  .produk-card.border-4 {
    border-width: 3px !important;
  }

  /* Bulk badge mobile - More visible */
  .produk-card .absolute.top-0 {
    transform: translate(-50%, -30%) !important;
    padding: 0.5rem 1rem !important;
  }

  .produk-card .px-6 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .produk-card .text-8xl {
    font-size: 5rem !important;
  }

  /* Better card shadows for depth */
  .produk-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
  }

  .produk-card:hover {
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.15) !important;
  }

  /* Product card mobile spacing improvements */
  .produk-card .p-6 {
    padding: 1.25rem !important;
  }

  .produk-card .h-64 {
    height: 12rem !important;
  }

  /* Better spacing for product info elements */
  .produk-card .mb-4 {
    margin-bottom: 1rem !important;
  }

  .produk-card .mb-6 {
    margin-bottom: 1.5rem !important;
  }

  /* Warning box mobile optimizations */
  .produk-card .warning-box {
    padding: 0.875rem !important;
    margin: 0.875rem 0 !important;
  }

  /* Hero Slider Mobile */
  .hero-section .max-w-md {
    max-width: 280px;
  }
  
  #hero-prev,
  #hero-next {
    opacity: 1;
    padding: 2px;
  }
  
  #hero-prev svg,
  #hero-next svg {
    width: 20px;
    height: 20px;
  }

  .counter-card {
    padding: 1.5rem 1rem;
  }

  .masalah-card,
  .keunggulan-card,
  .testimoni-card {
    padding: 2rem 1.5rem;
  }

  .whatsapp-widget {
    bottom: 12px;
    right: 12px;
  }

  .whatsapp-float {
    padding: 3px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  /* Fix animasi widget di mobile - tidak terpotong */
  #wa-options {
    margin-bottom: 8px;
  }

  /* Navbar Mobile Improvements */
  #navbar .max-w-6xl {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  #menu-btn {
    padding: 10px;
    flex-shrink: 0;
  }

  /* Hero Section Mobile */
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  /* Trust badges mobile */
  .hero-content .flex.flex-wrap {
    gap: 0.5rem;
  }

  .hero-content .flex.flex-wrap > div {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.75rem;
  }

  /* Buttons mobile */
  .hero-content a {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 0.9rem;
  }

  /* Live stats mobile */
  .hero-content .text-sm {
    font-size: 0.75rem;
  }

  /* Section padding mobile */
  section.py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  section.py-24 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Kalkulator mobile */
  #kalkulator-form select,
  #kalkulator-form input[type="number"] {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* FAQ mobile */
  .faq-toggle {
    font-size: 0.95rem;
    padding: 1rem;
  }

  /* Footer mobile */
  footer .flex.flex-col.md\:flex-row {
    gap: 1rem;
  }

  footer .flex.space-x-6 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  /* Fix container padding */
  .max-w-6xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Fix image overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .counter {
    font-size: 2rem;
  }

  .testimoni-card {
    padding: 1.5rem;
  }

  /* Fix overflow untuk galeri dan grid lainnya */
  .grid {
    overflow: hidden;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .max-w-6xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ========================================
   LIVE STATS ANIMATION
   ======================================== */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ========================================
   FORM STYLING
   ======================================== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}
