/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

/* Fade In Up (Scroll Reveal) */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered Delay Utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Counter Animation Utilities */
.counter-value {
  display: inline-block;
  /* Additional styles can be managed by JS if needed */
}

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

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-color);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  max-width: 90%;
  width: 600px;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.modal-close:hover {
  color: var(--text-dark);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background-color: #10b981; }
.toast.error { background-color: #ef4444; }

/* ==========================================================================
   Background Symbol Animations
   ========================================================================== */
@keyframes floatSymbol1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes floatSymbol2 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-10px) translateX(10px); }
}

@keyframes floatSymbol3 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(12px) scale(1.05); }
}

@keyframes floatSymbol4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.anim-float-1 { animation: floatSymbol1 6s ease-in-out infinite; transform-origin: center; display: inline-block; }
.anim-float-2 { animation: floatSymbol2 8s ease-in-out infinite; transform-origin: center; display: inline-block; }
.anim-float-3 { animation: floatSymbol3 7s ease-in-out infinite; transform-origin: center; display: inline-block; }
.anim-float-4 { animation: floatSymbol4 9s ease-in-out infinite; transform-origin: center; display: inline-block; }
.anim-pulse { animation: pulseOpacity 4s ease-in-out infinite; }

.delay-s1 { animation-delay: -1.5s; }
.delay-s2 { animation-delay: -3.2s; }
.delay-s3 { animation-delay: -0.8s; }
.delay-s4 { animation-delay: -4.5s; }
