/* Custom styles beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(254, 252, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}

/* Active nav link */
.nav-link.active {
  color: #e85d38;
  background: rgba(232, 93, 56, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefcf7;
}
::-webkit-scrollbar-thumb {
  background: #e8c4b0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d14528;
}

/* Selection color */
::selection {
  background: rgba(232, 93, 56, 0.15);
  color: #6e251d;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e85d38;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image lazy loading fade */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}
img[loading="lazy"] {
  opacity: 0;
}
