/* =========================================================
   THEME TOKENS — Compact Dark UI (Dominan Merah)
   Letakkan di: styles/core.css
   ========================================================= */
:root {
  --wa: #DC2626;          /* merah utama (Tailwind red-600) */
  --wa-dark: #B91C1C;     /* merah gelap untuk hover/active */
  --bg: #0a0a0a;          /* latar global */
  --text: #f5f5f5;        /* teks utama */
  --muted: #aaa;          /* teks sekunder */
  --card-bg: #111827;     /* kartu/section gelap kebiruan */
  --border-color: rgba(255, 255, 255, 0.1);
  --mouse-x: 50%;         /* posisi spotlight awal */
  --mouse-y: 50%;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* pola grid halus */
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.03) 1px, transparent 0);
  background-size: 20px 20px;
  position: relative;
}

/* =========================================================
   GLOBAL EFFECTS — Spotlight + Partikel
   Letakkan di: styles/effects.css
   ========================================================= */

/* Spotlight yang ngikutin mouse (aurora halus) */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
    rgba(220, 38, 38, 0.06), transparent 80%);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity .3s ease;
}
@media (hover: hover) {
  body:hover::before { opacity: 1; }
}

/* Kanvas partikel interaktif (di belakang konten) */
#particle-canvas {
  position: absolute; inset: 0;
  z-index: 1;
}

/* =========================================================
   SCROLL/REVEAL ANIMATIONS
   Letakkan di: styles/animations.css
   ========================================================= */

/* Split text (per huruf) — hindari FOUC */
.split-text-reveal { opacity: 0; }
.split-text-reveal > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(.9);
  animation: reveal-letter .5s cubic-bezier(.215,.61,.355,1) forwards;
}
@keyframes reveal-letter { to { opacity: 1; transform: translateY(0) scale(1); } }

/* Split kata (word by word) */
.split-words { opacity: 0; }
.split-words > span{
  display:inline-block;
  opacity:0;
  transform: translateY(16px) scale(.96);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation: ax-word .5s cubic-bezier(.215,.61,.355,1) forwards;
  margin-right: .35ch;
}
.split-words > span:last-child{ margin-right: 0; }
@keyframes ax-word { to { opacity:1; transform: translateY(0) scale(1); } }

/* Fade-in-up on scroll (gunakan .is-visible via JS/IO) */
.fade-in-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.33,1,.68,1),
             transform .6s cubic-bezier(.33,1,.68,1);
}
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }
/* Stagger sederhana */
.fade-in-up:nth-child(3n+1){ transition-delay: .05s; }
.fade-in-up:nth-child(3n+2){ transition-delay: .1s; }
.fade-in-up:nth-child(3n+3){ transition-delay: .15s; }

@media (prefers-reduced-motion: reduce){
  .split-words, .split-text-reveal, .fade-in-up { opacity: 1 !important; transform: none !important; }
  .split-words > span, .split-text-reveal > span { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   HERO GRADIENTS
   Letakkan di: styles/hero.css
   ========================================================= */

/* Gradient anim jalan kiri-kanan */
.ax-hero{
  background-image: linear-gradient(
    90deg,
    rgba(239,68,68,1) 0%,
    rgba(255,234,234,1) 35%,
    rgba(239,68,68,1) 70%,
    rgba(148,163,184,1) 100%
  );
  background-size: 200% 200%;
  animation: ax-gradient-x 6s ease-in-out infinite;
  text-shadow: 0 2px 14px rgba(239,68,68,.25), 0 1px 0 rgba(0,0,0,.35);
}
@keyframes ax-gradient-x{
  0%{ background-position: 0% 50% }
  50%{ background-position: 100% 50% }
  100%{ background-position: 0% 50% }
}

/* Text gradient lembut yang tetap kebaca di dark */
.ax-gradient{
  color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg,#f87171 0%,#fecaca 28%,#f3f4f6 50%,#fecaca 72%,#ef4444 100%);
  background-size: 200% 100%;
  animation: ax-grad-shift 10s ease-in-out infinite;
}
.hero-title{ text-shadow: 0 1px 1px rgba(0,0,0,.35), 0 8px 24px rgba(220,38,38,.22); }
@keyframes ax-grad-shift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@media (prefers-reduced-motion: reduce){ .ax-gradient{ animation: none; } }



/* Header utama + state saat discroll */

/* =========================================================
   INTERACTIVE CARDS (Tilt) — optional
   Letakkan di: styles/components.css
   ========================================================= */
.interactive-card{
  transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s cubic-bezier(.25,.8,.25,1);
  transform-style: preserve-3d;
}
.interactive-card.is-tilting{ transition: none; }

/* =========================================================
   WHATSAPP FLOAT BUTTON
   Letakkan di: styles/components.css
   ========================================================= */
#whatsapp-popup{
  position: fixed; bottom: 20px; right: 20px; z-index: 99;
}
#whatsapp-popup button{
  background: var(--wa); color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-size: 16px; font-weight: 500; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  transition: all .3s ease;
  display:flex; align-items:center; gap: 8px;
}
#whatsapp-popup button:hover{
  transform: scale(1.05) translateY(-2px);
  background: var(--wa-dark);
  box-shadow: 0 8px 20px rgba(220,38,38,.3);
}
#whatsapp-popup img, #whatsapp-popup svg{
  width: 22px; height: 22px; vertical-align: middle; fill: currentColor;
}
