/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #C8A961;
  color: #0A1628;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 169, 97, 0.1);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #D4BA7A !important;
}

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

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== Hero Stat Cards ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-6deg); }
}

.hero-card-float {
  animation: float 6s ease-in-out infinite;
}

.hero-card-float-slow {
  animation: floatSlow 7s ease-in-out infinite;
}

/* ===== Menu Cards ===== */
.menu-card {
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(200, 169, 97, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-card:hover .w-20 {
  box-shadow: 0 8px 30px rgba(200, 169, 97, 0.2);
}

/* ===== Section Dividers ===== */
.section-divider {
  background: linear-gradient(90deg, transparent, rgba(200, 169, 97, 0.3), transparent);
}

/* ===== Scroll Animations ===== */
.reveal {
  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.visible {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Image Hover ===== */
.group:hover img {
  transform: scale(1.05);
}

img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Button Focus ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid #C8A961;
  outline-offset: 2px;
  border-radius: 9999px;
}

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

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

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}
