/* ═══════════════════════════════════════════════════════════
   base.css — Variables, Reset, Body
   Theme: Electric Blue / Cyan on #080810 (Mathaoduoyu)
═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:          #080810;
  --bg-card:     #0A0D1A;
  --bg-card2:    #0D1020;
  --blue:        #3B82F6;
  --cyan:        #06B6D4;
  --blue-light:  #60A5FA;
  --cyan-light:  #38BDF8;
  --green:       #25D366;
  --white:       #FFFFFF;
  --gray-1:      rgba(255,255,255,0.85);
  --gray-2:      rgba(255,255,255,0.55);
  --gray-3:      rgba(255,255,255,0.30);
  --gray-4:      rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(59,130,246,0.22);
  --grad-blue:   linear-gradient(135deg, #3B82F6, #06B6D4);
  --grad-card:   linear-gradient(135deg, #090D17, #0A1020);
  --shadow-blue: 0 0 32px rgba(59,130,246,0.18);
  --radius:      16px;
  --radius-sm:   10px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --ease-smooth: cubic-bezier(0.25,0.46,0.45,0.94);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Proteksi konten dasar ──────────────────────────────── */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

img, video {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Boleh select text di area yang memang perlu di-copy paste,
   misal kalau nanti ada kode/teks yang sengaja mau dibagikan.
   Tambahin class ini manual kalau perlu. */
.allow-select {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.30); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.55); }

/* ── Keyframes ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseGlow {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes borderGlow {
  0%,100% { box-shadow: 0 0 8px rgba(59,130,246,0.14); }
  50%      { box-shadow: 0 0 18px rgba(59,130,246,0.28), 0 0 30px rgba(6,182,212,0.08); }
}

@keyframes blobDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-20px,15px) scale(0.97); }
}

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

@keyframes barFill {
  from { width: 0%; }
  to   { width: 100%; }
}

@keyframes rippleOut {
  0%   { transform: scale(0); opacity: 0.35; }
  100% { transform: scale(4); opacity: 0; }
}

/* ── Shared utilities ──────────────────────────────────── */
.text-shimmer {
  background: linear-gradient(90deg, #3B82F6, #38BDF8, #06B6D4, #2563EB, #3B82F6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

.hidden { opacity: 0; pointer-events: none; }
.visible { opacity: 1; pointer-events: auto; }

/* ── Ambient background ──────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.06;
  will-change: transform;
}

.blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #3B82F6, transparent 70%);
  top: -100px; left: -100px;
  animation: blobDrift 24s ease-in-out infinite;
}

.blob-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  bottom: 100px; right: -80px;
  animation: blobDrift 30s ease-in-out infinite reverse;
}

/* blob-3 dihapus — 3 blob simultan terlalu berat di HP kentang */

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Main app ──────────────────────────────────────────── */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  transition: opacity 0.6s var(--ease-smooth);
}

#app.hidden  { opacity: 0; }
#app.visible { opacity: 1; }

/* ── Reveal animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s var(--ease-smooth) var(--delay, 0s),
    transform 0.55s var(--ease-smooth) var(--delay, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.3s ease; transform: none; }
  .ambient-blob { animation: none; }
  .text-shimmer { animation: none; }
  .avatar-ring { animation: none; }
  .badge-dot { animation: none; box-shadow: none; }
  .avatar-status { animation: none; }
  .tagline-accent { animation: none; }
  .banner-stats { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.15ms !important; }
}
