  /* Custom styles for Nephrology Associates */

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

  /* Selection color */
  ::selection {
    background-color: rgba(52, 212, 168, 0.3);
    color: #f0fdf8;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0a1628;
  }
  ::-webkit-scrollbar-thumb {
    background: #162d47;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #34d4a8;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(4, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Nav links */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #34d4a8, #5eead4);
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  /* Mobile menu */
  .mobile-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 0;
  }

  /* Scroll reveal base — visible by default for progressive enhancement */
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  /* Only apply hidden state when JS is enabled and reduced motion is not preferred */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(24px);
    }
    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Gold shimmer animation for accents */
  @keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
  }

  /* Pulse animation for live indicator */
  @keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  .animate-pulse {
    animation: softPulse 2s ease-in-out infinite;
  }

  /* Form focus styles */
  input:focus, select:focus, textarea:focus {
    border-color: rgba(52, 212, 168, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.1) !important;
  }

  /* Card hover lift */
  .group:hover {
    transform: translateY(-2px);
  }
  .group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Print styles */
  @media print {
    header, footer, #contactForm, #successMessage {
      display: none;
    }
    body {
      background: white;
      color: black;
    }
  }
