/* ============================================
   EBC - ANIMATIONS & TRANSITIONS
   Fade In, Slide Up, Scale Effects
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In from Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In from Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale Up */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

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

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-up {
  animation: scaleUp 0.6s ease-out;
}

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

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

/* ============================================
   STAGGERED ANIMATIONS
   ============================================ */

.animate-stagger > * {
  animation: slideUp 0.6s ease-out;
  opacity: 0;
}

.animate-stagger > *:nth-child(1) {
  animation-delay: 0.1s;
}

.animate-stagger > *:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-stagger > *:nth-child(3) {
  animation-delay: 0.3s;
}

.animate-stagger > *:nth-child(4) {
  animation-delay: 0.4s;
}

.animate-stagger > *:nth-child(5) {
  animation-delay: 0.5s;
}

.animate-stagger > *:nth-child(6) {
  animation-delay: 0.6s;
}

/* ============================================
   SCROLL REVEAL (Intersection Observer)
   ============================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

.hover-color {
  transition: color 0.3s ease;
}

.hover-color:hover {
  color: var(--primary-main);
}

/* ============================================
   TEXT EFFECTS
   ============================================ */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-main), var(--secondary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  transition: opacity 0.3s ease;
}

/* ============================================
   LOADER ANIMATION
   ============================================ */

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

.loader {
  border: 4px solid var(--bg-gray);
  border-top: 4px solid var(--primary-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: rotate 1s linear infinite;
}

/* ============================================
   MODAL BACKDROP
   ============================================ */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
  z-index: 1000;
}

.modal {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  animation: scaleUp 0.3s ease-out;
  z-index: 1001;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease-out;
  z-index: 2000;
  max-width: 400px;
}

.toast.success {
  border-left: 4px solid var(--secondary-green);
}

.toast.error {
  border-left: 4px solid #EF4444;
}

.toast.info {
  border-left: 4px solid var(--primary-main);
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
