/* Premium Micro-Interactions for Award-Winning UX */

/* Ripple Effect for Buttons */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  animation: ripple 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Touch Active State */
.touch-active {
  transform: scale(0.97) !important;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Staggered Animation for List Items */
@keyframes staggerFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-Triggered Animations */
.animate-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Headers Animation */
.section-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Feature Items Animation */
.feature-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              background-color 0.3s ease;
}

.feature-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Info Cards Animation */
.info-card {
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.info-card:hover::after,
.info-card:active::after {
  opacity: 1;
}

/* Subtle Hover States */
.btn, button:not(.mobile-nav-toggle) {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease;
}

.btn:hover, button:not(.mobile-nav-toggle):hover {
  transform: translateY(-2px);
}

.btn:active, button:not(.mobile-nav-toggle):active {
  transform: translateY(1px);
}

/* WhatsApp Float Animation */
.whatsapp-float {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Service Tabs Hover Effect */
.service-tab:hover {
  transform: translateY(-2px);
}

.service-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(101, 184, 145, 0.2) 0%, rgba(101, 184, 145, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

.service-tab:hover::before {
  opacity: 1;
}

/* Back to Top Button Animation */
#back-to-top {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease,
              background-color 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Scroll Progress Indicator Enhancement */
#scroll-progress {
  transition: width 0.1s linear, box-shadow 0.3s ease;
}

/* Mobile Navigation Toggle Enhancement */
.mobile-nav-toggle {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.3s ease;
}

.mobile-nav-toggle:hover {
  transform: rotate(5deg);
}

/* Hero Content Animation */
.hero-content h1,
.hero-content h2,
.hero-content .hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
  animation-delay: 0.2s;
}

.hero-content h2 {
  animation-delay: 0.4s;
}

.hero-content .hero-cta {
  animation-delay: 0.6s;
}
