/* Visual Enhancements - Background Patterns, Scrollspy, Smooth Transitions */

/* Subtle Background Patterns */
.about-with-bg::after,
.therapies-with-bg::after,
.specialties-with-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(74, 144, 164, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(232, 180, 184, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Dot Pattern for Stats Section */
.stats-section {
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(74, 144, 164, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

/* Scrollspy Navigation - Active State */
.navmenu a.active {
  color: var(--accent-color) !important;
  font-weight: 600;
  position: relative;
}

.navmenu a {
  transition: all var(--transition-normal);
}

.navmenu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  transition: width var(--transition-normal);
}

.navmenu a.active::after,
.navmenu a:hover::after {
  width: 100%;
}

/* Enhanced Smooth Transitions for All Interactive Elements */
.btn,
button,
a,
.card,
.specialty-card,
.stats-card,
.testimonial-item,
.service-item,
.pricing-item {
  transition: all var(--transition-normal);
}

/* Enhanced Button Shadows */
.btn-primary {
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* Card Shadows Enhancement */
.glass-card {
  transition: all var(--transition-slow);
}

.glass-card:hover {
  box-shadow: var(--shadow-2xl);
}

/* Stats Cards Enhanced Shadow */
.stats-card {
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.stats-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px) scale(1.03);
}

/* Service Items Enhanced */
.service-item {
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Testimonial Avatar Enhanced */
.testimonial-avatar {
  transition: all var(--transition-normal);
}

/* Training/Pricing Cards */
.pricing-item {
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.pricing-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.pricing-item.featured {
  box-shadow: var(--shadow-lg);
}

.pricing-item.featured:hover {
  box-shadow: var(--shadow-2xl);
}

/* FAQ Accordion Enhanced */
.faq-container .faq-item {
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.faq-container .faq-item:hover {
  box-shadow: var(--shadow-md);
}

/* Scroll-triggered Animations */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced Form Inputs */
input,
textarea,
select {
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

/* Read Article Button Enhancement */
.read-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
}

.read-article-btn span {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.read-article-btn i {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal);
  font-size: 1.1rem;
}

.read-article-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.4));
  transition: left var(--transition-slow);
  z-index: 1;
}

.read-article-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: #f8f9fa;
}

.read-article-btn:hover::before {
  left: 100%;
}

.read-article-btn:hover i {
  transform: translateX(4px);
}

.read-article-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Disable hover animations on mobile (performance) */
  .specialty-card:hover,
  .stats-card:hover,
  .service-item:hover,
  .pricing-item:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
  }

  /* Keep tap feedback for mobile */
  .specialty-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .stats-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Simplify background patterns on mobile */
  .about-with-bg::after,
  .therapies-with-bg::after,
  .specialties-with-bg::after {
    opacity: 0.5;
  }

  .stats-section::before {
    opacity: 0.3;
  }

  /* Reduce shadow complexity on mobile */
  .glass-card:hover,
  .testimonial-item:hover {
    box-shadow: var(--shadow-md);
  }

  /* Optimize transitions for mobile */
  * {
    transition-duration: 0.2s !important;
  }

  /* Read Article button mobile */
  .read-article-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .read-article-btn:hover {
    transform: none;
  }

  .read-article-btn:active {
    transform: scale(0.96);
  }
}
