/* Animations for the landing page */

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

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* Animation 2: Slide In From Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

/* Animation 3: Slide In From Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

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

.bounce {
  animation: bounce 1s infinite;
}

/* Animation 5: Pulse */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(118, 44, 122, 0.4);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 15px rgba(118, 44, 122, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(118, 44, 122, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Animation 6: Rotate */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 4s linear infinite;
}

/* Apply animations to elements */
.hero-title {
  animation: fadeIn 1s ease-out;
}

.hero-subtitle {
  animation: fadeIn 1s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeIn 1s ease-out 0.4s both;
}

.feature-card {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.5s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.7s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.9s;
}

.feature-card:nth-child(4) {
  animation-delay: 1.1s;
}

.feature-card:nth-child(5) {
  animation-delay: 1.3s;
}

.feature-card:nth-child(6) {
  animation-delay: 1.5s;
}

.step {
  opacity: 0;
  animation: slideInLeft 0.6s ease-out 0.3s forwards;
}

.step:nth-child(2) {
  animation-delay: 0.6s;
}

.step:nth-child(3) {
  animation-delay: 0.9s;
}

.step:nth-child(4) {
  animation-delay: 1.2s;
}

.pricing-card {
  opacity: 0;
  animation: fadeIn 0.7s ease-out forwards;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.4s;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.8s;
}

.pricing-card:nth-child(3) {
  animation-delay: 1.2s;
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0px 6px 16px rgba(118, 44, 122, 0.3);
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1);
}

.nav-brand {
  animation: slideInLeft 0.8s ease-out;
}

.hamburger {
  animation: fadeIn 1s ease-out 0.3s both;
}

/* Language-specific animations */
body.lang-pl .feature-card {
  /* Polish version can have specific animation characteristics if needed */
}

body.lang-en .feature-card {
  /* English version can have specific animation characteristics if needed */
}

/* Add more language-specific animations as needed */