/* =====================================================
   ANIMATIONS & KEYFRAMES
   ===================================================== */

/* Video Loader Animations */
@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }

  99% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes slideInCenter {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hero Section Animations */
@keyframes fadeInHero {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Animations */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
  }

  50% {
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.8);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Form Animations */
@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Input Focus Animation */
@keyframes focusGlow {
  from {
    box-shadow: 0 0 0 rgba(220, 20, 60, 0);
  }

  to {
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
  }
}

/* Loading Spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Fade In Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Bounce Animation */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Text Shadow Animation */
@keyframes textGlow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
  }

  50% {
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.8);
  }
}

/* NEW ANIMATIONS FOR HOME PAGE CARDS */
@keyframes slideOutFromCenterLeft {
  0% {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideOutFromCenterRight {
  0% {
    opacity: 0;
    transform: translateX(-100px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes zoomInCenter {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-left {
  animation: slideOutFromCenterLeft 1s ease-out forwards;
}

.animate-center {
  animation: zoomInCenter 1s ease-out forwards;
}

.animate-right {
  animation: slideOutFromCenterRight 1s ease-out forwards;
}


/* Utility Animation Classes */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

.animate-slideInBottom {
  animation: slideInBottom 0.6s ease-out;
}

.animate-textGlow {
  animation: textGlow 2s ease-in-out infinite;
}

/* Legacy Slide In Left & Right Animations - Keeping for other pages */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out;
}

/* Pop In Animation */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  70% {
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-popIn {
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}