/* ─── Keyframe Animations ─────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes gradientX {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.2); }
  50%      { box-shadow: 0 0 40px rgba(14, 165, 233, 0.4); }
}

/* ─── Animation Classes ───────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}
.fade-in--left  { transform: translateX(40px); }
.fade-in--right { transform: translateX(-40px); }
.fade-in--down  { transform: translateY(-40px); }

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

/* Staggered delays */
.fade-in--d1 { transition-delay: 0.1s; }
.fade-in--d2 { transition-delay: 0.2s; }
.fade-in--d3 { transition-delay: 0.3s; }
.fade-in--d4 { transition-delay: 0.4s; }
.fade-in--d5 { transition-delay: 0.5s; }
.fade-in--d6 { transition-delay: 0.6s; }

/* Utility animations */
.animate-pulse    { animation: pulse 2s ease-in-out infinite; }
.animate-spin     { animation: spin 1s linear infinite; }
.animate-float    { animation: float 3s ease-in-out infinite; }
.animate-glow     { animation: glow 2s ease-in-out infinite; }
.animate-gradient { background-size: 200% auto; animation: gradientX 4s ease infinite; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
