/* Scroll Animation Styles */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

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

/* Staggered animation for children */
.fade-in-section.is-visible .stagger-item {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.fade-in-section.is-visible .stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in-section.is-visible .stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-section.is-visible .stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in-section.is-visible .stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

/* Scale animation variant */
.fade-scale-section {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-scale-section.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Slide from left animation */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

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

/* Slide from right animation */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

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

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Hero Area Animations - Page Load */
.hero-image-animate {
  opacity: 0;
  transform: scale(0.8);
  animation: heroImageFadeIn 1s ease-out 0.3s forwards;
}

.hero-heading-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextSlideUp 0.8s ease-out 0.6s forwards;
}

.hero-subtitle-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextSlideUp 0.8s ease-out 0.9s forwards;
}

.hero-buttons-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextSlideUp 0.8s ease-out 1.2s forwards;
}

/* Hero Background Animation */
.hero-area {
  animation: heroBgFadeIn 1.2s ease-out forwards;
}

/* Keyframes for Hero Animations */
@keyframes heroImageFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroTextSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Hover Effects for Hero Elements */
.hero-image-animate:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.hero-btn a {
  transition: all 0.3s ease;
}

.hero-btn a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in-section,
  .fade-scale-section,
  .slide-in-left,
  .slide-in-right,
  .hero-image-animate,
  .hero-heading-animate,
  .hero-subtitle-animate,
  .hero-buttons-animate,
  .hero-area {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  
  .fade-in-section .stagger-item {
    animation: none;
    opacity: 1;
  }
}
