/* Base styles */
body {
  font-family: "Inter", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Container for consistent width */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Header specific styles */
#header {
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0; /* Start hidden */
}

/* Staggered animation for cards */
.card-stagger-1 {
  animation-delay: 0.1s;
}
.card-stagger-2 {
  animation-delay: 0.2s;
}
.card-stagger-3 {
  animation-delay: 0.3s;
}
.card-stagger-4 {
  animation-delay: 0.4s;
}
.card-stagger-5 {
  animation-delay: 0.5s;
}
.card-stagger-6 {
  animation-delay: 0.6s;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideInUp {
  animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

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

.card-hover-optimized:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* GPU acceleration for smoother animations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Specific styles for sections */
#hero {
  background-image: url("/assets/images/hero-background.svg"); /* Example background */
  background-size: cover;
  background-position: center;
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #10b981; /* green-500 */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #059669; /* green-600 */
}

/* Utility classes for smooth scroll */
.smooth-scroll {
  cursor: pointer;
}

/* Custom styles for the WhatsApp button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366; /* WhatsApp green */
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #1da851;
}

.whatsapp-button i {
  width: 30px;
  height: 30px;
}

/* Styles for the payment modal */
#payment-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#payment-modal.hidden {
  opacity: 0;
  visibility: hidden;
}

#payment-modal .bg-white {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

#payment-modal.hidden .bg-white {
  transform: translateY(20px);
}

/* Styles for the service modal */
#service-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#service-modal.hidden {
  opacity: 0;
  visibility: hidden;
}

#service-modal .bg-white {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

#service-modal.hidden .bg-white {
  transform: translateY(20px);
}
