  /* Custom styles — premium dark luxury medical site for Dr. Qing Ge */

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

  /* Selection color */
  ::selection {
    background-color: rgba(200, 149, 108, 0.3);
    color: #f5f0eb;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #1a1412;
  }
  ::-webkit-scrollbar-thumb {
    background: #4a2d1e;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #643d28;
  }

  /* Hero animations — only for above-the-fold, always visible by default */
  .hero-anim {
    opacity: 1;
    animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-anim:nth-child(1) { animation-delay: 0.1s; }
  .hero-anim:nth-child(2) { animation-delay: 0.25s; }
  .hero-anim:nth-child(3) { animation-delay: 0.4s; }
  .hero-anim:nth-child(4) { animation-delay: 0.55s; }
  .hero-anim:nth-child(5) { animation-delay: 0.7s; }

  @keyframes heroSlideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Scroll reveal — below the fold only, progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .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);
    }
  }

  /* Header transition */
  #header.scrolled {
    background: rgba(13, 10, 9, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 45, 30, 0.4);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  }

  /* Mobile menu transitions */
  #mobileMenu.open {
    opacity: 1;
    pointer-events: all;
  }

  /* Mobile links animation */
  .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Gold gradient text utility */
  .text-gold-gradient {
    background: linear-gradient(135deg, #e8c98a 0%, #c8956c 50%, #d4a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Subtle hover glow on cards */
  .reveal:hover {
    box-shadow: 0 8px 40px rgba(200, 149, 108, 0.06);
  }

  /* Select dropdown styling */
  select option {
    background: #1a1412;
    color: #e8ddd2;
  }

  /* Focus visible for accessibility */
  :focus-visible {
    outline: 2px solid rgba(200, 149, 108, 0.6);
    outline-offset: 2px;
  }

  /* Responsive adjustments */
  @media (max-width: 640px) {
    .font-display {
      line-height: 1.15;
    }
  }
