/* TubeMe Animations */

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

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

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

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

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

@keyframes neonGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(0,212,255,0.3); }
  50% { box-shadow: 0 0 24px rgba(123,97,255,0.5); }
}

.fade-in { animation: fadeIn 0.3s var(--ease-out); }
.slide-up { animation: slideUp 0.35s var(--ease-out); }
.scale-in { animation: scaleIn 0.3s var(--ease-spring); }

/* Stagger animation */
.stagger > * {
  opacity: 0;
  animation: slideUp 0.4s var(--ease-out) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.40s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.50s; }
.stagger > *:nth-child(n+11) { animation-delay: 0.55s; }

/* Ripple */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), opacity 0.4s;
  opacity: 0;
}
.ripple:active::after {
  width: 220%;
  height: 220%;
  opacity: 1;
}
