/* === BASE & RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* === NAVBAR === */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(123, 45, 59, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
}

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

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

/* === MOBILE MENU === */
.mobile-link {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* === SCROLL REVEAL (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .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; }
}

/* === GALLERY HOVER === */
.grid-cols-2 .rounded-2xl img,
.grid-cols-4 .rounded-2xl img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === BUTTON RIPPLE EFFECT === */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* === SELECTION === */
::selection {
  background: #E8A0A0;
  color: #3a1219;
}

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

::-webkit-scrollbar-track {
  background: #fafaf8;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }
}
