/* ============================================
   ShiftPx — Animations
   ============================================ */

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

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

@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Staggered card animations */
.hero-tool-card:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s both; }
.hero-tool-card:nth-child(2) { animation: fadeInUp 0.5s ease 0.2s both; }
.hero-tool-card:nth-child(3) { animation: fadeInUp 0.5s ease 0.3s both; }
.hero-tool-card:nth-child(4) { animation: fadeInUp 0.5s ease 0.4s both; }

/* Preview card stagger */
.preview-card {
  animation: scaleIn 0.3s ease both;
}

/* PDF page card stagger */
.pdf-page-card {
  animation: scaleIn 0.3s ease both;
}

/* Logo — static, professional */
.logo-icon {
  /* No animation — clean and professional */
}

/* Gradient text animation — handled by premium-effects.css */

/* Upload zone pulse on drag */
.upload-zone.drag-over .upload-zone-icon {
  animation: pulse 1s ease infinite;
}

/* Smooth page transitions */
.tool-page {
  animation: fadeInUp 0.4s ease;
}

/* Button ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 10%, transparent 10%);
  background-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size 0.5s ease;
}

.btn:active::after {
  background-size: 300% 300%;
  transition: background-size 0s;
}
