/* Fade In */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.55s; }
.stagger-children.visible > *:nth-child(13) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(14) { transition-delay: 0.65s; }
.stagger-children.visible > *:nth-child(15) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(16) { transition-delay: 0.75s; }
.stagger-children.visible > *:nth-child(17) { transition-delay: 0.8s; }
.stagger-children.visible > *:nth-child(18) { transition-delay: 0.85s; }
.stagger-children.visible > *:nth-child(19) { transition-delay: 0.9s; }
.stagger-children.visible > *:nth-child(20) { transition-delay: 0.95s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax-like hover for cards */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Image Reveal */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: 1;
  transform: translateX(0);
  transition: transform 0.8s ease;
}

.image-reveal.revealed::before {
  transform: translateX(100%);
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Button pulse */
.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 122, 187, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(2, 122, 187, 0); }
}

/* Shimmer loading */
.shimmer {
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-bg-card) 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Float animation */
.float {
  animation: float 6s ease-in-out infinite;
}

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

/* Glow */
.glow {
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px rgba(2, 122, 187, 0.2); }
  to { box-shadow: 0 0 20px rgba(2, 122, 187, 0.4); }
}
