/* Key West Sandwich Shop — Custom Styles */

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(255, 107, 63, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #15151d;
}
::-webkit-scrollbar-thumb {
  background: #3d3d4c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff6b3f;
}

/* Navbar transitions */
#navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(12, 12, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 63, 0.1);
}

/* Nav link hover underline */
.nav-link {
  position: relative;
}

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

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

/* Mobile nav links */
.mobile-nav-link {
  position: relative;
  display: block;
}

.mobile-nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #ff6b3f;
  transition: width 0.3s ease;
  margin-top: 4px;
}

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

/* Floating card animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

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

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

.animate-float-1 {
  animation: float1 5s ease-in-out infinite;
}

.animate-float-2 {
  animation: float2 6s ease-in-out infinite;
}

.animate-float-3 {
  animation: float3 4.5s ease-in-out infinite;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* 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 !important;
    transform: none !important;
  }
}

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid #ff6b3f;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Image aspect ratios */
img {
  max-width: 100%;
  height: auto;
}

/* Button ripple effect on hover */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Print styles */
@media print {
  #navbar, .animate-float-1, .animate-float-2, .animate-float-3 {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
