/* ===========================================
   TRADERWERK - Animations
   Subtle, Clean Animation Effects
   =========================================== */

/* ===== KEYFRAME ANIMATIONS ===== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes lineGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

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

/* ===== SCROLL-TRIGGERED FADE IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--easing-smooth), transform 0.6s var(--easing-smooth);
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== HERO ANIMATIONS ===== */
.hero-content {
  animation: fadeInUp 1s var(--easing-smooth) forwards;
}

.hero-logo {
  animation: fadeIn 0.8s var(--easing-smooth) 0.2s both;
}

.hero-tagline {
  animation: fadeInUp 0.8s var(--easing-smooth) 0.4s both;
}

.hero-cta {
  animation: fadeInUp 0.8s var(--easing-smooth) 0.6s both;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator::after {
  animation: lineGrow 1s var(--easing-smooth) 1.2s forwards;
  transform-origin: top;
}

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

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
