/* Custom styles for Turner Family Dentistry */

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(107, 47, 91, 0.08);
}

#navbar.scrolled .nav-text {
  color: #4a1f41;
}

/* Mobile menu animation */
#mobileMenu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenu.open .menu-line:nth-child(2) {
  opacity: 0;
}

#mobileMenu.open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.4rem;
}

/* Service card hover glow */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  box-shadow: 0 20px 40px rgba(107, 47, 91, 0.1);
}

/* Hero image gradient overlay */
#hero img {
  transition: transform 0.6s ease;
}

#hero:hover img {
  transform: scale(1.02);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

/* Testimonial card hover */
#testimonials .bg-white\/10 {
  transition: all 0.3s ease;
}

#testimonials .bg-white\/10:hover {
  transform: translateY(-4px);
}

/* Input focus styles */
input:focus, select:focus, textarea:focus {
  border-color: #6B2F5B;
  box-shadow: 0 0 0 3px rgba(107, 47, 91, 0.15);
}

/* Section reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle pattern for background */
.bg-pattern {
  background-image: radial-gradient(circle, rgba(107, 47, 91, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #d9a8c4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6B2F5B;
}

/* Mobile menu link animation */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(107, 47, 91, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Ensure images don't cause layout shift */
img {
  max-width: 100%;
  height: auto;
}
