/* Custom styles for Paterson Community Clinic */

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

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

.reveal[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}

.reveal[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

.reveal[data-reveal-delay="4"] {
  transition-delay: 0.4s;
}

.reveal[data-reveal-delay="5"] {
  transition-delay: 0.5s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08), 0 4px 20px rgba(91, 44, 111, 0.06);
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Service card hover glow */
.group:hover .group-hover\:bg-amber-400 {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

/* Custom selection color */
::selection {
  background: #fbbf24;
  color: #1a0a1f;
}

/* Form focus ring animation */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* Button press effect */
button[type="submit"] {
  active: transform: scale(0.98);
}

button[type="submit"]:active {
  transform: scale(0.98);
}

/* Image lazy load fade */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}
