/* =========================================================================
   STYLE.CSS - TAHU SUSU GOPONG (VERSI MODULAR TANPA NPM BUILD)
   =========================================================================
   File ini berisi pengaturan font, warna, animasi tombol, dan efek scroll.
   Anda dapat mengedit file ini secara langsung menggunakan Notepad atau
   File Manager cPanel tanpa perlu menjalankan "npm run build".
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Montserrat", sans-serif;
  --gopong-red: #d71920;
  --gopong-red-hover: #ff2630;
  --gopong-dark: #5c181c;
  --gopong-muted: #9b4a50;
  --gopong-bg: #fcf8f8;
}

body {
  font-family: var(--font-sans);
  background-color: var(--gopong-bg);
  color: var(--gopong-dark);
  overflow-x: hidden;
  margin: 0;
}

.font-display {
  font-family: var(--font-display);
}

.font-sans {
  font-family: var(--font-sans);
}

/* =========================================================================
   1. ANIMASI SCROLL REVEAL (Muncul Halus Saat Di-scroll)
   ========================================================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.delay-150 {
  transition-delay: 0.15s;
}

.reveal-on-scroll.delay-200 {
  transition-delay: 0.2s;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================================
   2. ANIMASI TOMBOL BERKEDIP MERAH-PUTIH (Hero CTA, Delivery CTA, Badge)
   ========================================================================= */
@keyframes pulseColor {
  0%, 100% {
    background-color: #d71920;
    color: #ffffff;
    border-color: #d71920;
  }
  50% {
    background-color: #ffffff;
    color: #d71920;
    border-color: #d71920;
  }
}

.animate-pulse-color {
  animation: pulseColor 2.5s infinite ease-in-out;
}

/* =========================================================================
   3. ANIMASI TOMBOL MERAH BERJALAN & KILAU (Tombol Kirim WhatsApp)
   ========================================================================= */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes buttonShimmer {
  0% { transform: translateX(-150%) skewX(-20deg); }
  40%, 100% { transform: translateX(200%) skewX(-20deg); }
}

.btn-premium-red {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #d71920, #ff3f46, #b31217, #d71920) !important;
  background-size: 300% 100% !important;
  animation: gradientFlow 5s infinite linear !important;
  border: none !important;
}

.btn-premium-red::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: buttonShimmer 2.8s infinite ease-in-out;
  pointer-events: none;
}

/* =========================================================================
   4. ANIMASI TOMBOL SUPPORT MDS AGENCY (Footer)
   ========================================================================= */
@keyframes mds-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(215, 25, 32, 0.4), 0 0 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(215, 25, 32, 0.8), 0 0 35px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 1);
  }
}

@keyframes continuous-shimmer {
  0% { transform: translateX(-150%) skewX(-20deg); }
  40%, 100% { transform: translateX(150%) skewX(-20deg); }
}

.mds-shimmer-glow {
  animation: mds-glow 2.5s infinite ease-in-out;
}

.mds-shimmer-glow .shimmer-line {
  animation: continuous-shimmer 3s infinite ease-in-out;
}

/* =========================================================================
   5. ANIMASI TOMBOL WHATSAPP MELAYANG (Float & 3D Flip)
   ========================================================================= */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.wa-float-anim {
  animation: floatUpDown 3s ease-in-out infinite;
}

.perspective-1000 {
  perspective: 1000px;
}

.preserve-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}

.preserve-3d.is-flipped {
  transform: rotateY(180deg);
}

.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rotate-y-180 {
  transform: rotateY(180deg);
}

/* =========================================================================
   6. TRANSISI SLIDER & MODAL (ULTRA SMOOTH)
   ========================================================================= */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.slide-fade-in {
  animation: fadeSlideIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes scaleFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.scale-fade-in {
  animation: scaleFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* =========================================================================
   7. ANIMASI SIMPAN PERUBAHAN DI PANEL ADMIN (ULTRA SMOOTH LOADING & SUKSES)
   ========================================================================= */
@keyframes adminBackdropFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes adminCardPopIn {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes adminSpinOuter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes adminSpinInner {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes adminPopBounce {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  60% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes adminCheckDraw {
  0% {
    stroke-dashoffset: 60;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes adminRippleBurst {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@keyframes adminProgressGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes adminTabFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-save-backdrop {
  animation: adminBackdropFade 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: opacity;
}

.admin-save-card {
  animation: adminCardPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.admin-spinner-outer {
  animation: adminSpinOuter 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.admin-spinner-inner {
  animation: adminSpinInner 1.7s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.admin-success-pop {
  animation: adminPopBounce 0.48s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.admin-check-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: adminCheckDraw 0.52s 0.12s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.admin-ripple-ring {
  animation: adminRippleBurst 1.3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.admin-progress-animated {
  background: linear-gradient(90deg, #d71920, #ff4b52, #f59e0b, #d71920);
  background-size: 200% 100%;
  animation: adminProgressGlow 1.8s linear infinite;
  transition: width 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}

.admin-overlay-closing {
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0 !important;
  transform: scale(0.95) translateY(6px) !important;
  pointer-events: none !important;
}

.admin-tab-pane {
  animation: adminTabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

