/* ===== FAIQ SHARED STARFIELD & PARTICLES BACKGROUND ===== */
/* Include this CSS in ALL pages for the starfield background effect */

/* ===== PARTICLES CANVAS ===== */
#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ===== STAR FIELD ===== */
.star-field {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.star {
  position: absolute; width: 2px; height: 2px;
  background: var(--gold, #D4AF37); border-radius: 50%; opacity: 0;
  animation: starTwinkle 3s ease-in-out infinite;
}
.star.bright {
  width: 3px; height: 3px;
  box-shadow: 0 0 6px rgba(212,175,55,0.6), 0 0 12px rgba(212,175,55,0.3);
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.9; transform: scale(1.3); }
}

/* ===== FLOATING ORBS (theme-adaptive) ===== */
.orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, var(--orb-center, rgba(212,175,55,0.12)) 0%, var(--orb-mid, rgba(212,175,55,0.02)) 50%, transparent 70%);
  filter: blur(20px);
}
.orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, rgba(212,175,55,0.02) 50%, transparent 70%);
  filter: blur(20px);
}
.orb:nth-child(1) { width: 300px; height: 300px; top: 10%; right: 15%; animation: floatOrb1 12s ease-in-out infinite; }
.orb:nth-child(2) { width: 200px; height: 200px; bottom: 20%; left: 10%; animation: floatOrb2 15s ease-in-out infinite; }
.orb:nth-child(3) { width: 250px; height: 250px; top: 50%; left: 30%; animation: floatOrb3 18s ease-in-out infinite; }
.orb:nth-child(4) { width: 180px; height: 180px; top: 20%; left: 50%; animation: floatOrb4 14s ease-in-out infinite; }
.orb:nth-child(5) { width: 220px; height: 220px; bottom: 10%; right: 25%; animation: floatOrb5 16s ease-in-out infinite; }
.orb:nth-child(6) { width: 150px; height: 150px; top: 60%; right: 10%; animation: floatOrb6 20s ease-in-out infinite; }

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.15); }
  66% { transform: translate(20px, -30px) scale(0.95); }
}
@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 20px) scale(1.1); }
}
@keyframes floatOrb4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, -50px) scale(0.9); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}
@keyframes floatOrb5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, 40px) scale(1.08); }
  66% { transform: translate(-30px, -20px) scale(0.92); }
}
@keyframes floatOrb6 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, -35px) scale(1.12); }
}

/* ===== MOUSE-FOLLOWING GLOW (theme-adaptive) ===== */
.mouse-glow {
  position: fixed; width: 400px; height: 400px; border-radius: 50%; pointer-events: none;
  z-index: 3; opacity: 0;
  background: radial-gradient(circle, var(--glow-center, rgba(212,175,55,0.15)) 0%, var(--glow-mid, rgba(212,175,55,0.05)) 30%, transparent 60%);
  transition: opacity 0.6s ease;
  transform: translate(-50%, -50%);
}
.mouse-glow.active { opacity: 1; }

/* ===== AMBIENT CENTER GLOW (theme-adaptive) ===== */
.ambient-glow {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%; z-index: 3; pointer-events: none;
  background: radial-gradient(circle, var(--ambient-center, rgba(212,175,55,0.06)) 0%, transparent 55%);
  animation: pulseGlow 6s ease-in-out infinite;
}
.mouse-glow {
  position: fixed; width: 400px; height: 400px; border-radius: 50%; pointer-events: none;
  z-index: 3; opacity: 0;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 30%, transparent 60%);
  transition: opacity 0.6s ease;
  transform: translate(-50%, -50%);
}
.mouse-glow.active { opacity: 1; }

/* ===== AMBIENT CENTER GLOW ===== */
.ambient-glow {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%; z-index: 3; pointer-events: none;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 55%);
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

/* ===== SACRED GEOMETRY CENTER ELEMENT (replaces logo image) ===== */
.sacred-geometry-center {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.sacred-geometry-center svg {
  width: 100%;
  height: 100%;
  animation: sacredRotate 30s linear infinite;
}
.sacred-geometry-center .sg-ring {
  transform-origin: center;
}
.sacred-geometry-center .sg-ring-outer {
  animation: sacredRotate 20s linear infinite reverse;
}
.sacred-geometry-center .sg-ring-inner {
  animation: sacredRotate 15s linear infinite;
}
.sacred-geometry-center .sg-triangle {
  animation: sacredPulse 4s ease-in-out infinite;
}
.sacred-geometry-center .sg-dot {
  animation: sacredPulse 3s ease-in-out infinite alternate;
}
@keyframes sacredRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes sacredPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Mobile: hide orbs on small screens */
@media (max-width: 768px) {
  .orb { display: none; }
  .mouse-glow { width: 250px; height: 250px; }
  .sacred-geometry-center { width: 200px; height: 200px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .star, .orb, .mouse-glow, .ambient-glow, .sacred-geometry-center svg {
    animation: none !important;
  }
}
