/* ZUDIMA — Premium Animations v2.0 */

/* ===== KEYFRAMES ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 111, 232, 0.3); }
  50%       { box-shadow: 0 0 0 16px rgba(26, 111, 232, 0); }
}

@keyframes borderPulse {
  0%, 100% { border-color: rgba(26,111,232,0.2); }
  50%       { border-color: rgba(26,111,232,0.6); }
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

/* ===== UTILITY CLASSES ===== */
.anim-float {
  animation: float 7s ease-in-out infinite;
}

.anim-float-slow {
  animation: float 12s ease-in-out infinite;
}

.anim-glow {
  animation: glowPulse 2.5s ease-in-out infinite;
}

.anim-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

.anim-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.anim-fadeInUp {
  animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

.anim-scaleIn {
  animation: scaleIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

/* ===== BG GRADIENT ANIMATED (legacy support) ===== */
.bg-gradient-animated {
  background: linear-gradient(-45deg, #F7F9FC, #e8f4fd, #e8f9f3, #F7F9FC);
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}

/* ===== NETWORK PATH ===== */
.network-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 3s ease forwards;
}

/* ===== STAGGER HELPERS ===== */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ===== PAGE ENTRY ===== */
body {
  animation: fadeIn 0.5s ease both;
}

/* ===== BUTTON RIPPLE ===== */
.btn-z, .btn-zudima {
  position: relative;
  overflow: hidden;
}

.btn-z::after, .btn-zudima::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s, opacity 0.5s;
}

.btn-z:active::after, .btn-zudima:active::after {
  opacity: 1;
  transform: scale(2.5);
  transition: 0s;
}

/* ===== CARD HOVER LIFT ===== */
.z-feature-card,
.z-testimonial-card,
.glass-card {
  will-change: transform;
}

/* ===== SMOOTH IMAGE LOADING ===== */
img {
  transition: opacity 0.4s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
