/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

::selection { background: rgba(200, 149, 108, 0.3); color: #FDF8F0; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111111; }
::-webkit-scrollbar-thumb { background: rgba(200, 149, 108, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 149, 108, 0.5); }

/* ===== NAV LINKS ===== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8956C;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #C8956C !important; }

/* ===== MOBILE NAV ===== */
.mobile-nav-link { position: relative; }
.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #C8956C;
  transition: width 0.3s ease;
}
.mobile-nav-link:hover::after { width: 60%; }

/* ===== HEADER SCROLLED ===== */
.header-scrolled {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 149, 108, 0.1);
}
.header-scrolled .nav-link { color: rgba(253, 248, 240, 0.7) !important; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ===== MENU CARD HOVER ===== */
.group:hover .group-hover\:scale-105 { transform: scale(1.03); }

/* ===== FOCUS ===== */
:focus-visible { outline: 2px solid rgba(200, 149, 108, 0.6); outline-offset: 2px; }

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }

/* ===== HAMBURGER ANIMATION ===== */
.menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-btn.active .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 5px; }

/* ===== SUBTLE GRAIN OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  z-index: 9999;
}
