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

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

::selection {
  background-color: #1B4332;
  color: #FAF8F5;
}

/* Floating Card Animations */
.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;
}

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

/* Menu Card Hover */
.menu-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.15);
}

/* Navbar Scroll State */
nav.scrolled {
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

/* Section Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Image Hover Zoom */
.menu-card img,
section img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8fb89a;
}

/* Mobile Menu Transition */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  transition: color 0.3s ease;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #1B4332;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Button Press Effect */
a:active,
button:active {
  transform: scale(0.98);
}
