/* Custom styles for Ted Camesano DMD */

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

/* Ensure no flash of hidden content - progressive enhancement for reveals */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Always visible fallback for reduced motion or no-JS */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* No-JS fallback - content is always visible */
.no-js .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Navbar active state */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf7f2;
}
::-webkit-scrollbar-thumb {
  background: #d4a052;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b5452a;
}

/* Selection color */
::selection {
  background: #f8c4b4;
  color: #64271c;
}
