/* ===== CUSTOM STYLES FOR FIESTA TACO 2.0 ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

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

#navbar.scrolled {
  background: rgba(15, 19, 25, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Floating card animations */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

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

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

.floating-card {
  animation: float-1 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float-2 5s ease-in-out infinite;
}

.floating-card-3 {
  animation: float-3 4.5s ease-in-out infinite;
}

/* Scroll reveal base — content is always visible by default */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS adds .revealed class */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .floating-card-2,
  .floating-card-3 {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none;
  }
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1319;
}
::-webkit-scrollbar-thumb {
  background: #3d0606;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a1e1e;
}

/* Selection color */
::selection {
  background: rgba(154, 30, 30, 0.4);
  color: #fff;
}
