/**
 * Style animacji dla PremiumOpinie.pl
 * Dodaje efekty pojawiania się elementów podczas przewijania
 */

/* Podstawowy efekt dla wszystkich animowanych elementów */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Różne opóźnienia dla różnych elementów */
.masthead__overview.animate-on-scroll {
  transition-delay: 0.1s;
}

.masthead__form.animate-on-scroll {
  transition-delay: 0.3s;
}

.introduction__content.animate-on-scroll {
  transition-delay: 0.2s;
}

.introduction__hero.animate-on-scroll {
  transition-delay: 0.4s;
}

/* Efekt kaskadowy dla elementów it-work */
.it-work__item:nth-child(1).animate-on-scroll,
.it-work__item:nth-of-type(1).animate-on-scroll {
  transition-delay: 0.1s;
}

.it-work__item:nth-child(2).animate-on-scroll,
.it-work__item:nth-of-type(2).animate-on-scroll {
  transition-delay: 0.3s;
}

.it-work__item:nth-child(3).animate-on-scroll,
.it-work__item:nth-of-type(3).animate-on-scroll {
  transition-delay: 0.5s;
}

/* Efekt dla przycisków */
.button.animate-on-scroll {
  transition-delay: 0.6s;
}

/* Efekt dla nagłówków sekcji */
.section__heading.animate-on-scroll {
  transition-delay: 0.1s;
}

/* Efekty dla kart cenowych */
.pricing__card.animate-on-scroll {
  transition-delay: 0.2s;
  transition-duration: 0.8s;
}

.pricing__card:nth-child(2).animate-on-scroll {
  transition-delay: 0.4s;
}

.pricing__card:nth-child(3).animate-on-scroll {
  transition-delay: 0.6s;
}

/* Efekt dla testimoniali */
.testimonials.animate-on-scroll {
  transition-delay: 0.3s;
  transition-duration: 0.8s;
}