/* ============================================
   Torreador Mexican Restaurant — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: #0a0f1e;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #c9a84c55;
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #d4b95e !important;
}

/* ============================================
   Hero Animations
   ============================================ */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

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

.animate-float-medium {
  animation: float-medium 4s ease-in-out infinite;
}

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

/* Hero Blobs */
.hero-blob {
  animation: blob-float 8s ease-in-out infinite;
}

.blob-1 {
  animation-delay: 0s;
}

.blob-2 {
  animation-delay: -3s;
}

.blob-3 {
  animation-delay: -5s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   Feature Items
   ============================================ */
.feature-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Menu Section
   ============================================ */
.menu-category {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.menu-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   Section Headers
   ============================================ */
section h2 {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Back to Top
   ============================================ */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.4);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
  position: relative;
  padding-left: 0;
}

/* ============================================
   Form Inputs Focus States
   ============================================ */
input:focus,
textarea:focus {
  background-color: rgba(10, 15, 30, 0.7);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  .font-display {
    line-height: 1.1;
  }
}

@media (min-width: 768px) {
  .hero-blob {
    animation-duration: 10s;
  }
}

/* ============================================
   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;
  }
}
