@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Typography Defaults */
body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Header */
.glass-nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(255, 255, 255, 0.85);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled {
  background-color: rgba(15, 23, 42, 0.95); /* Dark theme shift on scroll for high-end look, or we can keep it light. Let's make it clean white with shadow */
}

.glass-nav-light.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Transitions */
.transition-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Micro-animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}
.animate-pulse-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

/* WhatsApp Floating Button Pulse Animation */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
.animate-whatsapp {
  animation: pulse-whatsapp 2s infinite;
}

/* Scroll Fade In */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Specialties Hover Effects */
.specialty-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.specialty-card:hover::before {
  opacity: 1;
}

/* Custom testimonial slides */
.testimonial-slide {
  display: none;
}
.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Dropdown styling */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Conversational Chatbot Widget */
.chatbot-chat-window {
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chatbot-chat-window.active {
  transform: translateY(0) scale(1);
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Typing Indicator Animation */
.dot-bounce {
  animation: dot-bounce 1.4s infinite ease-in-out both;
}
.dot-bounce:nth-child(1) { animation-delay: -0.32s; }
.dot-bounce:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Custom Chat Bubble Transitions */
.chat-msg-appear {
  animation: chat-msg-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes chat-msg-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

