/* ============================================================
   Bizgifts — Animations & Keyframes
   ============================================================ */

/* ---- Keyframes ---- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.15); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-4deg); }
  50%       { transform: translateY(-16px) rotateX(-4deg) rotateY(4deg); }
}

@keyframes waveFloat {
  0%   { transform: translateX(0) translateZ(0) scaleY(1); }
  50%  { transform: translateX(-25%) translateZ(0) scaleY(.8); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  70%  { transform: scale(1.12) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(.97); }
}

/* ---- Wave Background ---- */
.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  border-radius: 42%;
  opacity: .04;
}

.wave-1 {
  background: linear-gradient(135deg, #008060, #00a47c);
  top: -80%;
  left: -50%;
  animation: waveFloat 22s ease-in-out infinite;
}

.wave-2 {
  background: linear-gradient(135deg, #004c3f, #008060);
  top: -60%;
  left: -50%;
  animation: waveFloat 28s ease-in-out infinite reverse;
  animation-delay: -8s;
  opacity: .03;
}

.wave-3 {
  background: linear-gradient(135deg, #008060, #00a47c);
  top: -40%;
  left: -50%;
  animation: waveFloat 34s ease-in-out infinite;
  animation-delay: -16s;
  opacity: .025;
}

/* Orb animation */
.orb-1 { animation: orbDrift 18s ease-in-out infinite; }
.orb-2 { animation: orbDrift 24s ease-in-out infinite reverse; }

/* ---- Utility Animation Classes ---- */
.animate-fade-in {
  animation: fadeIn 600ms ease-out both;
}

.animate-slide-up {
  animation: slideUp 600ms cubic-bezier(.22,1,.36,1) both;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pop {
  animation: pop 600ms cubic-bezier(.22,1,.36,1) both;
}

/* ---- Delays ---- */
.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 240ms; }
.delay-3 { animation-delay: 360ms; }
.delay-4 { animation-delay: 480ms; }

/* ---- Button hover glow ---- */
.btn-primary {
  position: relative;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-primary);
  filter: blur(10px);
  opacity: 0;
  z-index: -1;
  transition: opacity 220ms ease;
}
.btn-primary:hover::before { opacity: .5; }

/* ---- Shimmer skeleton (for loading states) ---- */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04) 0%,
    rgba(255,255,255,.1) 50%,
    rgba(255,255,255,.04) 100%
  );
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

/* ---- Smooth scroll ---- */
html { scroll-behavior: smooth; }

/* ---- Focus ring ---- */
:focus-visible {
  outline: 2px solid rgba(0,128,96,.7);
  outline-offset: 3px;
}

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
