/* === Custom Styles for Treasure House === */

/* Base & Utilities */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Navbar */
#navbar {
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 47, 69, 0.08);
}

#navbar.scrolled {
  background: rgba(250, 248, 244, 0.95);
  box-shadow: 0 1px 20px rgba(13, 27, 42, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C8A44E;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Hero */
.hero-headline {
  letter-spacing: -0.02em;
}

/* Category Cards */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.category-card img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover img {
  transform: scale(1.08);
}

/* About Image Grid */
.about-img {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.15);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.hidden-reveal { opacity: 1; transform: none; }
  .category-card img { transition: none; }
  .category-card:hover img { transform: none; }
  .about-img { transition: none; }
  .about-img:hover { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #C8A44E;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF8F4;
}
::-webkit-scrollbar-thumb {
  background: #1A2F45;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0D1B2A;
}
