/* ===================================
   ANIMATIONS & EFFECTS
   =================================== */

/* FADE UP ANIMATION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

/* SMOOTH REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* PULSE ANIMATION FOR BUTTONS */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(125, 47, 61, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(125, 47, 61, 0.4);
  }
}

.btn-primary:hover {
  animation: pulse 2s ease-in-out infinite;
}

/* GRADIENT ANIMATION */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* SHAKE ANIMATION (for form errors) */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease;
}

/* LOADING SPINNER */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* UNDERLINE DRAW EFFECT */
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.underline path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.5s ease forwards;
  animation-delay: 0.5s;
}
