/* =============================================================
   animations.css — Keyframes, Transitions, Scroll-triggered FX
   AQCore © 2026
   ============================================================= */

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

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

@keyframes popIn {
  0%   { transform: scale(0.85); opacity: 0; }
  70%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

/* ── SCROLL-TRIGGERED FADE ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children when parent becomes visible */
.fade-in.visible > *:nth-child(1) { transition-delay: 0s;    }
.fade-in.visible > *:nth-child(2) { transition-delay: 0.06s; }
.fade-in.visible > *:nth-child(3) { transition-delay: 0.12s; }
.fade-in.visible > *:nth-child(4) { transition-delay: 0.18s; }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: popIn 0.3s ease both;
  pointer-events: none;
  white-space: nowrap;
}

.toast-success {
  background: var(--accent);
  color: #0A192F;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

.toast-green {
  background: #10B981;
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.toast.hide {
  opacity: 0;
  transition: opacity 0.3s ease;
}
