/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF9F6;
}
::-webkit-scrollbar-thumb {
  background: #2D2D2D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1A1A1A;
}

/* Text Selection */
::selection {
  background-color: #1A1A1A;
  color: #ffffff;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 100ms; }
.reveal.delay-200 { transition-delay: 200ms; }
.reveal.delay-300 { transition-delay: 300ms; }

/* Form Input Focus */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

/* Image Hover Guard */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive auto-rows helper for gallery */
@media (max-width: 768px) {
  .auto-rows-\[200px\] {
    grid-auto-rows: 180px;
  }
}

/* Navbar shadow on scroll handled via JS, this is fallback */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}