/* Base & Utilities */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #db95b8;
  color: #4a1d32;
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(107, 58, 94, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a04070, #f97316);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

.menu-line.active:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.menu-line.active:nth-child(2) {
  opacity: 0;
}
.menu-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 5rem;
}

/* Floating Cards Animation */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 5s;
}

.floating-card:nth-child(4) {
  animation-delay: -1s;
  animation-duration: 8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* Menu Tabs */
.menu-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: 1.5px solid #e8d5e0;
  background: transparent;
  color: #6b3a5e;
  transition: all 0.3s ease;
}

.menu-tab:hover {
  border-color: #a04070;
  background: #faf0f4;
}

.menu-tab.active {
  background: linear-gradient(135deg, #a04070, #843058);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(160, 64, 112, 0.3);
}

/* Menu Card */
.menu-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-card:hover .menu-card-img {
  transform: scale(1.05);
}

.menu-card-img {
  transition: transform 0.6s ease;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Decorative Pattern */
.spice-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(160, 64, 112, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf0f4;
}
::-webkit-scrollbar-thumb {
  background: #db95b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a04070;
}
