/* =============================================
   IVEIN 2011 — Scroll Animations
   ============================================= */

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

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

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .fade-in:nth-child(8) { transition-delay: 0.7s; }

/* --- Fade In Left --- */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* --- Fade In Right --- */
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* --- Scale In --- */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* --- Image Reveal (clip-path) --- */
.reveal-image {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-image.visible {
  clip-path: inset(0 0 0 0);
}

/* --- Line Draw (for timeline) --- */
.line-draw {
  width: 0;
  transition: width 1.5s ease-in-out;
}

.line-draw.visible {
  width: 100%;
}

/* --- Counter Animation --- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.5s ease-out forwards;
}

/* --- Pulse for CTA --- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 149, 108, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(200, 149, 108, 0); }
}

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

/* --- Floating for decorative elements --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* --- Shimmer for loading states --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* --- Mobile Menu Link Animation Delays --- */
.mobile-menu__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu__link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu__link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu__link:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu__link:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu__link:nth-child(8) { transition-delay: 0.4s; }
.mobile-menu__link:nth-child(9) { transition-delay: 0.45s; }
