/* =========================================================
   DHIRA CREATIVE — Animated Background
========================================================= */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.site-bg__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
  opacity: 0.7;
}

.site-bg__glow {
  position: absolute;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(214, 173, 85, 0.14) 0%,
    rgba(214, 173, 85, 0.05) 28%,
    transparent 68%
  );
  left: var(--mouse-x);
  top: var(--mouse-y);
  transform: translate(-50%, -50%);
  transition: left 0.9s var(--ease), top 0.9s var(--ease);
  will-change: left, top;
}

.site-bg__ambient {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 85, 0.08), transparent 70%);
  animation: ambientDrift 16s ease-in-out infinite alternate;
}

.site-bg__ambient--secondary {
  width: 360px;
  height: 360px;
  left: -100px;
  top: 18%;
  right: auto;
  bottom: auto;
  background: radial-gradient(circle, rgba(229, 200, 120, 0.05), transparent 70%);
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

.site-bg__particles {
  position: absolute;
  inset: 0;
}

.site-bg__particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(214, 173, 85, 0.55);
  animation: particleFloat var(--duration, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.45;
}

.site-bg__particle:nth-child(1) { left: 12%; top: 22%; --duration: 14s; --delay: 0s; }
.site-bg__particle:nth-child(2) { left: 28%; top: 68%; --duration: 18s; --delay: 1.2s; }
.site-bg__particle:nth-child(3) { left: 48%; top: 18%; --duration: 16s; --delay: 0.6s; }
.site-bg__particle:nth-child(4) { left: 66%; top: 42%; --duration: 20s; --delay: 2s; }
.site-bg__particle:nth-child(5) { left: 78%; top: 72%; --duration: 15s; --delay: 0.4s; }
.site-bg__particle:nth-child(6) { left: 88%; top: 28%; --duration: 17s; --delay: 1.8s; }
.site-bg__particle:nth-child(7) { left: 18%; top: 48%; --duration: 19s; --delay: 2.4s; }
.site-bg__particle:nth-child(8) { left: 55%; top: 82%; --duration: 13s; --delay: 0.9s; }

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(72px, 72px, 0); }
}

@keyframes ambientDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-80px, -60px, 0) scale(1.12); }
  100% { transform: translate3d(40px, -120px, 0) scale(0.92); }
}

@keyframes particleFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.25; }
  50% { transform: translate3d(0, -24px, 0); opacity: 0.7; }
}
