/* Custom Styles for ADC Kids Dentistry */

:root {
  --emerald-600: #047857;
  --emerald-700: #065f46;
  --emerald-800: #064e3b;
  --emerald-900: #062e25;
  --lime-400: #a3e635;
  --lime-500: #84cc16;
  --offwhite: #fafaf9;
  --darkgray: #1f2937;
}

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

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

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

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

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

::-webkit-scrollbar-track {
  background: var(--offwhite);
}

::-webkit-scrollbar-thumb {
  background: var(--emerald-600);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-700);
}

/* Reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Geometric shapes animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-5deg); }
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 400px;
}

/* Button hover effects */
.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-800));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(4, 120, 87, 0.3);
}

/* Card hover effects */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--emerald-600);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Custom selection color */
::selection {
  background: var(--lime-400);
  color: var(--emerald-900);
}
