/**
 * Animations Stylesheet für Baden Umzüge & Logistik
 * Version: 1.0.0
 */

/* Hero Service Slider — canonical definition is in main.css */

/* Fade In Animation */
@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

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

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Fade In Animation for Success Messages */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.3s ease-out;
}
  
/* Slide In From Left Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
  
/* Slide In From Right Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
  
/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
  
/* Animate On Scroll Base Class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
  
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
  
/* Left Animation Variant */
.animate-left {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
  
.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}
  
/* Right Animation Variant */
.animate-right {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
  
.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}
  
/* Scale Animation Variant */
.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
  
.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}
  
/* Delay Utility Classes */
.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;
}
  
/* Duration Utility Classes */
.duration-300 {
  transition-duration: 300ms;
}
  
.duration-500 {
  transition-duration: 500ms;
}
  
.duration-700 {
  transition-duration: 700ms;
}
  
.duration-1000 {
  transition-duration: 1000ms;
}
  
/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-position 0.1s ease-out;
}
  
/* Button Hover Animation */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
}
  
.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); /* White overlay effect */
  transition: left var(--transition-speed) ease;
}
  
.btn-hover-effect:hover::before {
  left: 100%;
}
  
/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
  
.animate-pulse {
  animation: pulse 2s infinite;
}

/* Process Flow Animations */
@keyframes arrowPulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
}

.process-arrow-animate {
  animation: arrowPulse 2s infinite;
  color: var(--neutral-500);
}

.process-step {
  position: relative;
  z-index: 20;
  transition: transform var(--transition-speed) ease;
  background-color: var(--background-light);
}

/* Process Step Icons */
.icon-circle {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, rgba(255, 83, 61, 0.08) 0%, rgba(171, 152, 122, 0.15) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.icon-circle i {
  font-size: 24px;
  color: var(--neutral-500);
}

.small-icon-circle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: radial-gradient(circle, rgba(255, 83, 61, 0.08) 0%, rgba(171, 152, 122, 0.15) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.small-icon-circle i {
  font-size: 18px;
  color: var(--neutral-500);
}

.process-step:hover {
  transform: translateY(-2px);
}

.process-arrow {
  width: 120px;
  height: 50px;
  text-align: center;
  z-index: 30 !important;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 8px 15px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--neutral-500);
  position: absolute;
}

/* Team Image Hover Effects */
.team-image-hover {
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed) ease;
}

.team-image-hover img {
  transition: transform 0.5s ease;
}

.team-image-hover:hover img {
  transform: scale(1.1);
}

/* Team Card Stagger Animation */
@keyframes teamCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.team-card-animate {
  animation: teamCardIn 0.6s ease-out forwards;
  opacity: 0;
}

/* Stagger Delays for Team Cards */
.team-card-animate:nth-child(1) { animation-delay: 0ms; }
.team-card-animate:nth-child(2) { animation-delay: 100ms; }
.team-card-animate:nth-child(3) { animation-delay: 200ms; }
.team-card-animate:nth-child(4) { animation-delay: 300ms; }
.team-card-animate:nth-child(5) { animation-delay: 400ms; }
.team-card-animate:nth-child(6) { animation-delay: 500ms; }
.team-card-animate:nth-child(7) { animation-delay: 600ms; }
.team-card-animate:nth-child(8) { animation-delay: 700ms; }
.team-card-animate:nth-child(9) { animation-delay: 800ms; }

/* Image Loading Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.image-loading-shimmer {
  background: linear-gradient(
    to right,
    #f0f0f0 8%,
    #f8f8f8 18%,
    #f0f0f0 33%
  );
  background-size: 800px 104px;
  animation: shimmer 1.2s ease-in-out infinite;
}

/* Staggered Reveal — children of [data-stagger] containers */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

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

/* Auto-stagger delays for up to 12 children (80ms increment) */
[data-stagger].visible > *:nth-child(1)  { transition-delay: 0ms; }
[data-stagger].visible > *:nth-child(2)  { transition-delay: 80ms; }
[data-stagger].visible > *:nth-child(3)  { transition-delay: 160ms; }
[data-stagger].visible > *:nth-child(4)  { transition-delay: 240ms; }
[data-stagger].visible > *:nth-child(5)  { transition-delay: 320ms; }
[data-stagger].visible > *:nth-child(6)  { transition-delay: 400ms; }
[data-stagger].visible > *:nth-child(7)  { transition-delay: 480ms; }
[data-stagger].visible > *:nth-child(8)  { transition-delay: 560ms; }
[data-stagger].visible > *:nth-child(9)  { transition-delay: 640ms; }
[data-stagger].visible > *:nth-child(10) { transition-delay: 720ms; }
[data-stagger].visible > *:nth-child(11) { transition-delay: 800ms; }
[data-stagger].visible > *:nth-child(12) { transition-delay: 880ms; }

/* Accessibility: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-scroll,
  .animate-bounce,
  .animate-fade-in,
  .animate-pulse,
  .process-arrow-animate,
  .team-card-animate,
  .image-loading-shimmer {
    animation: none;
  }

  .animate-on-scroll,
  .animate-left,
  .animate-right,
  .animate-scale,
  [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-hover-effect::before {
    transition: none;
  }

  .parallax {
    background-attachment: scroll;
    transition: none;
  }

  .team-image-hover img {
    transition: none;
  }
}