/* ═══════════════════════════════════════════════════════════
   Animations — Floating orbs, scroll reveal, glows
   ═══════════════════════════════════════════════════════════ */

/* ── Floating Gradient Orbs ───────────────────────────── */
.hero-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px; top: -10%; right: -5%;
  background: radial-gradient(circle, #ea580c 0%, transparent 70%);
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px; bottom: -15%; left: -10%;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  animation-delay: -7s;
}
.orb-3 {
  width: 350px; height: 350px; top: 30%; left: 50%;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ── Scroll Reveal ────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }
.animate-in:nth-child(5) { transition-delay: 0.35s; }
.animate-in:nth-child(6) { transition-delay: 0.4s; }

/* ── Pulse ────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ── Slide In Up (for toast) ──────────────────────────── */
@keyframes slideInUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Button glow pulse ────────────────────────────────── */
.btn-glow {
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(234, 88, 12, 0.25); }
  50% { box-shadow: 0 0 40px rgba(234, 88, 12, 0.45); }
}

/* ── Navbar scroll state ──────────────────────────────── */
.navbar.scrolled {
  background: rgba(11, 19, 37, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   Geometric Background Shapes — rotating, floating, parallax
   ═══════════════════════════════════════════════════════════ */

.hero-shapes {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  will-change: transform; transform: translateZ(0);
}

.shape {
  position: absolute;
  opacity: 0.06;
  will-change: transform;
  transform: translateZ(0);
}

/* ── Ring (circle outline) ────────────────────────────── */
.shape-ring {
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}
.shape-1 {
  width: 300px; height: 300px;
  top: 8%; right: 10%;
  animation: spinSlow 60s linear infinite;
}
.shape-2 {
  width: 200px; height: 200px;
  bottom: 15%; left: 8%;
  border-color: rgba(234, 88, 12, 0.4);
  animation: spinSlow 45s linear infinite reverse;
}

/* ── Square (rotated outline) ─────────────────────────── */
.shape-square {
  width: 120px; height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}
.shape-3 {
  top: 25%; left: 15%;
  animation: spinSlow 50s linear infinite;
}

/* ── Triangle (CSS triangle) ──────────────────────────── */
.shape-triangle {
  width: 0; height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(234, 88, 12, 0.15);
}
.shape-4 {
  bottom: 25%; right: 15%;
  animation: spinSlow 45s linear infinite reverse, floatShape 16s ease-in-out infinite 4s;
}

/* ── Dot grid cluster ─────────────────────────────────── */
.shape-dots {
  width: 80px; height: 80px;
  background-image: radial-gradient(rgba(255,255,255,0.3) 2px, transparent 2px);
  background-size: 16px 16px;
}
.shape-5 {
  top: 60%; left: 20%;
  animation: spinSlow 70s linear infinite;
}

/* ── Cross shape ──────────────────────────────────────── */
.shape-cross {
  width: 60px; height: 60px;
  position: relative;
}
.shape-cross::before,
.shape-cross::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}
.shape-cross::before {
  width: 2px; height: 100%;
  left: 50%; transform: translateX(-50%);
}
.shape-cross::after {
  width: 100%; height: 2px;
  top: 50%; transform: translateY(-50%);
}
.shape-7 {
  top: 15%; left: 40%;
  animation: spinSlow 25s linear infinite, floatShape 13s ease-in-out infinite 7s;
}

/* ── Keyframes for shapes ─────────────────────────────── */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatShape {
  0%, 100% { transform: rotate(var(--spin, 0deg)) translate3d(0, 0, 0); }
  50% { transform: rotate(var(--spin, 0deg)) translate3d(15px, -20px, 0); }
}

/* ═══════════════════════════════════════════════════════════
   Parallax — mouse-driven subtle movement
   ═══════════════════════════════════════════════════════════ */

.parallax-layer {
  transition: transform 0.15s ease-out;
  will-change: transform;
}
