/* Additional styles for Swaasthya Healing website */

/* Smooth scrolling for the entire page and prevent horizontal scroll */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

/* Hover effects for service cards */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(27, 82, 127, 0.15);
}

/* Animated underline effect for navigation links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #f9eef3;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(27, 82, 127, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(27, 82, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(27, 82, 127, 0);
  }
}

.pulse-button:hover {
  animation: pulse 1.5s infinite;
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Custom styling for form elements */
input:focus, textarea:focus {
  border-color: #1b527f;
  box-shadow: 0 0 0 3px rgba(27, 82, 127, 0.2);
}

/* Mobile menu styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: #f9eef3;
  z-index: 50;
  padding: 2rem;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  right: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Testimonial card hover effect */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(27, 82, 127, 0.15);
}

/* Testimonial carousel */
.testimonial-slide {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  width: 100%;
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f9eef3;
}

::-webkit-scrollbar-thumb {
  background: #1b527f;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 82, 127, 0.8);
}

/* Call to Action Section Styles */
#call-to-action {
  position: relative;
  overflow: hidden;
  width: 100%;
}

#call-to-action::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 30%;
  width: 500px;
  height: 400px;
  background-image: url(images/flower.svg);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.05;
  transform: rotate(15deg);
  z-index: 1;
}

#call-to-action .content-wrapper {
  position: relative;
  z-index: 2;
}
