/* Custom styles for 818 Asian Fusion Restaurant */

:root {
  --charcoal-900: #1a1a2e;
  --charcoal-800: #2d2d44;
  --coral-500: #FF6B6B;
  --coral-400: #FF8787;
}

html {
  scroll-behavior: smooth;
}

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

/* Smooth transitions for interactive elements */
a, button {
  transition: all 0.2s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--charcoal-900);
}
::-webkit-scrollbar-thumb {
  background: var(--coral-500);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--coral-400);
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Geometric shape animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Scroll reveal animations (below the fold only) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Image hover effects */
img {
  max-width: 100%;
  height: auto;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--coral-500);
  outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 400px;
}
