/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered Animations - apply only to scroll animations */
.staggered-item:nth-child(1) { transition-delay: 0.1s; }
.staggered-item:nth-child(2) { transition-delay: 0.2s; }
.staggered-item:nth-child(3) { transition-delay: 0.3s; }
.staggered-item:nth-child(4) { transition-delay: 0.4s; }
.staggered-item:nth-child(5) { transition-delay: 0.5s; }
.staggered-item:nth-child(6) { transition-delay: 0.6s; }

/* Navigation Menu Animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Slideshow Animation */
@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  53.33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Service Card Hover Animation */
.service-card {
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.service-card:hover .service-icon {
  background-color: rgba(var(--color-primary-rgb), 0.2);
  transition: all 0.3s ease-in-out;
}

/* Button Hover Animation */
.btn {
  position: relative;
  overflow: hidden;
}

/* Lucide Icon Animation */
[data-lucide] {
  transition: transform 0.3s ease;
}

.service-icon [data-lucide] {
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon [data-lucide] {
  transform: scale(1.1) rotate(5deg);
}

.social-icon:hover [data-lucide] {
  transform: scale(1.2);
}

/* Gallery Item Hover Animation */
.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-overlay {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Testimonial Dots Animation */
.testimonial-dot {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.testimonial-dot:hover, 
.testimonial-dot.active {
  transform: scale(1.2);
}

/* Form Input Focus Animation */
.form-group input,
.form-group textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

/* Float Animation for Accent Elements */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.about-image::before {
  animation: float 6s ease-in-out infinite;
}

/* Scroll to Top Button Animation */
.scroll-to-top button {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top button:hover {
  transform: translateY(-5px);
}

.scroll-to-top button [data-lucide] {
  transition: transform 0.3s ease;
}

.scroll-to-top button:hover [data-lucide] {
  transform: translateY(-2px);
}

/* Page Load Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.header-content,
.hero-content {
  animation: fadeIn 1s ease-out;
}

/* Social Icons Hover Effect */
.social-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Section Header Underline Animation */
.section-header h2::after {
  width: 0;
  transition: width 0.6s ease;
}

.section-header.show h2::after {
  width: 50px;
}

/* Contact Info Cards Hover Effect */
.info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-card:hover [data-lucide] {
  transform: scale(1.1);
}

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 1);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--color-primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0);
  }
}

.gallery-cta .btn-primary {
  animation: pulse 2s infinite;
}