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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(10, 15, 30, 0.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-scrolled #navbar {
  background: rgba(10, 15, 30, 0.95) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #B85446;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a34538;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #B85446;
  outline-offset: 2px;
}

/* Image loading placeholder */
img {
  background-color: #F2E0C4;
}

/* Selection color */
::selection {
  background-color: rgba(184, 84, 70, 0.3);
  color: #0f172a;
}
