/* ============================================
   FROSTAPP WEBSITE — ANIMATIONS
   ============================================ */

/* === KEYFRAMES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.25; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.15), 0 0 40px rgba(0, 198, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.3), 0 0 60px rgba(0, 198, 255, 0.15);
  }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(0, 198, 255, 0.15); }
  50% { border-color: rgba(0, 198, 255, 0.35); }
}

@keyframes vipShine {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

@keyframes vipGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), 0 0 40px rgba(255, 215, 0, 0.08);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 0 60px rgba(255, 215, 0, 0.15);
  }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 100% { border-color: var(--accent-start); }
  50% { border-color: transparent; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes morphBlob {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* === FLOATING LABEL / TAG ANIMATION === */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float 6s ease-in-out infinite 2s;
}

.animate-pulse-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

.animate-border-glow {
  animation: borderGlow 3s ease-in-out infinite;
}

/* === GRADIENT TEXT ANIMATION === */
.gradient-text-animated {
  background: linear-gradient(
    90deg,
    var(--accent-start),
    var(--accent-end),
    #a78bfa,
    var(--accent-start)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === TILT EFFECT CLASS === */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* === STAGGER CHILDREN === */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 50ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 100ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 150ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 200ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 250ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 300ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 350ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 400ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 450ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 500ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 550ms; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(n+13) { transition-delay: 600ms; opacity: 1; transform: none; }

/* Once stagger animation is done, restore individual component transitions */
.stagger-children.visible > *:hover {
  transition-delay: 0ms;
  transition-duration: 0ms;
}

/* === MAGNETIC BUTTON HOVER EFFECT === */
.btn-magnetic {
  transition: transform 200ms ease;
}

/* === PARALLAX HELPER === */


/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* === SMOOTH PAGE TRANSITIONS === */
.page-transition-enter {
  animation: fadeInUp 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-transition-exit {
  animation: fadeIn 300ms ease reverse both;
}
