@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --teal-700: #0d9488;
  --teal-800: #115e59;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111827;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Hero entrance animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#home h1 {
  animation: slideInUp 0.9s ease-out;
}

#home p:first-of-type {
  animation: slideInUp 1s ease-out 0.1s both;
}

#home .flex {
  animation: slideInUp 1.1s ease-out 0.2s both;
}

/* Button hover effect */
button, a[class*="bg-teal"], input[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

button:hover, a[class*="bg-teal"]:hover, input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

/* Form inputs */
input, textarea, select {
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  transform: translateY(-2px);
}

/* Service cards hover */
[class*="group"]:hover {
  transform: translateY(-4px);
}

/* Testimonial card animations */
[class*="bg-white"][class*="rounded-xl"][class*="border"] {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[class*="bg-white"][class*="rounded-xl"][class*="border"]:hover {
  border-color: #0d9488;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

/* Marquee effect for section headers */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Mobile nav animation */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobileMenu.hidden {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Responsive text sizing */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
}

/* Link underline animation */
a {
  position: relative;
  text-decoration: none;
}

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

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

/* Smooth transitions for all interactive elements */
* {
  --tw-transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
  --tw-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  --tw-transition-duration: 300ms;
}

/* Accessibility: reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

