/* Custom styles for Hurr John R DDS website */

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

/* Navbar styles */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background: rgba(58, 33, 58, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Primary button - Amber on dark backgrounds */
.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #3a212e;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary button - White outline on dark backgrounds */
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Service card hover effects */
.service-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator animation */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

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

.mobile-link {
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
  color: #fbbf24;
  padding-left: 8px;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
  background: #af7b9c;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8f5578;
}

/* Reduced motion */
@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;
  }
}

/* Print styles */
@media print {
  #navbar,
  .scroll-indicator {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn-primary {
    border: 2px solid buttonborder;
  }
}
