/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, currentColor 15%, transparent);
}

/* ========== NAV SCROLL STATE ========== */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: color-mix(in srgb, currentColor 60%, transparent);
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

/* ========== HERO FLOATS ========== */
.hero-float {
  animation: float 6s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

.float-1 { animation-delay: 0s; }
.float-2 { animation-delay: -1.5s; }
.float-3 { animation-delay: -3s; }
.float-4 { animation-delay: -4.5s; }
.float-5 { animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-16px) rotate(3deg); }
  66% { transform: translateY(8px) rotate(-2deg); }
}

/* ========== HERO BLOBS ========== */
.hero-blob {
  animation: blob-drift 12s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -4s; }
.blob-3 { animation-delay: -8s; }

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ========== MENU CARDS ========== */
.menu-card {
  transform: translateY(0);
  will-change: transform, box-shadow;
}

.menu-card:hover {
  transform: translateY(-4px);
}

/* ========== GALLERY ========== */
.gallery-item {
  cursor: pointer;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0.4rem;
  left: 0;
  width: 0;
  height: 2px;
  background: color-mix(in srgb, currentColor 40%, transparent);
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 2rem;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 70%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

::-webkit-scrollbar-track {
  background: color-mix(in srgb, currentColor 5%, transparent);
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, currentColor 30%, transparent);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.1;
  }
}
