/* Import Sedgwick Ave Display graffiti font */
@import url('https://fonts.googleapis.com/css2?family=Sedgwick+Ave+Display&display=swap');

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #FF9800;
  --primary-light: #FFD54F;
  --primary-dark: #F57C00;
  --secondary-color: #2E7D32;
  --text-light: #ffffff;
  --text-dark: #212121;
  --bg-dark: #121212;
  --bg-light: #1a1a1a;
  --overlay-color: rgba(0, 0, 0, 0.7);
  --transition: all 0.3s ease-in-out;
  --border-radius: 8px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --font-heading: 'Sedgwick Ave Display', cursive;
  --font-body: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Disable text selection globally */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-touch-callout: none;
}

/* Global background image for desktop */
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  background-image: url('hangout.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mobile-specific background using a different technique */
@media (max-width: 768px) {
  body {
    background-image: none; /* Remove background image */
    position: relative;
  }
  
  /* Add a pseudo-element for mobile background */
  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hangout2.png');
    background-size: cover;
    background-position: center;
    z-index: -2; /* Below the overlay */
  }
}


body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
  position: relative;
  background-color: var(--bg-dark);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 #000;
  position: relative;
  width: 100%;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--text-light);
  animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; right: 0; left: auto; }
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  border: none;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.primary-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

.secondary-btn {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.secondary-btn:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-light);
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.logo::after {
  content: 'HANGOUT';
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary-light);
  text-shadow: 2px 2px 0 #000;
  width: 100%;
  overflow: hidden;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu li a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-light);
  transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary-light);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 10000; /* Very high z-index to ensure it's above everything */
  position: relative;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: var(--text-light);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  background-color: transparent;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  padding-top: 300px;
}

.main-title {
  font-family: var(--font-heading);
  font-size: 6rem;
  letter-spacing: 2px;
  margin-bottom: 60px;
  text-shadow: 3px 3px 0 #000;
  color: var(--primary-light);
  position: relative;
  display: inline-block;
  width: 100%;
  white-space: nowrap;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 60px;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 1;
  margin-top: 30px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===== MENU SECTION ===== */
.menu-section {
  background-color: rgba(18, 18, 18, 0.9);
  position: relative;
}

.menu-filter-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 40px;
  padding-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

.menu-filter-container:active {
  cursor: grabbing;
}

.menu-filter-container::-webkit-scrollbar {
  display: none;
}

.menu-filter {
  display: flex;
  gap: 10px;
  min-width: max-content;
  padding: 5px;
  transition: transform 0.1s ease;
  will-change: transform;
}

.filter-btn {
  padding: 8px 20px;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Modified menu container for smaller thumbnails */
.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Reduced from 300px to 200px */
  gap: 20px; /* Reduced from 30px to 20px */
  position: relative;
  z-index: 1;
}

.menu-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(5px);
  cursor: pointer; /* Added to indicate clickable */
}

.menu-item:hover {
  transform: translateY(-5px); /* Reduced from -10px to -5px */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Smaller thumbnail images */
.menu-item-image {
  height: 150px; /* Reduced from 200px to 150px */
  position: relative;
  overflow: hidden;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-image img {
  transform: scale(1.1);
}

/* Smaller content for thumbnails */
.menu-item-content {
  padding: 15px; /* Reduced from 20px to 15px */
}

.menu-item-title {
  font-size: 1rem; /* Reduced from 1.2rem to 1rem */
  font-weight: 600;
  margin-bottom: 5px; /* Reduced from 8px to 5px */
  color: var(--text-light);
}

.menu-item-description {
  font-size: 0.8rem; /* Reduced from 0.9rem to 0.8rem */
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px; /* Reduced from 15px to 10px */
  line-height: 1.3; /* Reduced from 1.4 to 1.3 */
  /* Limit to 2 lines of text */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem; /* Reduced from 1.1rem to 1rem */
}

/* Added magnifying glass icon to indicate clickable thumbnails */
.menu-item::after {
  content: "\f002"; /* Font Awesome magnifying glass icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  background: rgba(0,0,0,0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.menu-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== FEATURED SECTION ===== */
.featured-section {
  background-color: rgba(245, 124, 0, 0.2);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  padding: 30px 0;
  margin-bottom: 40px;
}

.featured-section .section-title {
  color: var(--text-light);
}

.featured-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.featured-slider {
  position: relative;
  margin: 0 -15px;
  padding: 20px 0;
  overflow: hidden;
  touch-action: pan-y;
}

.featured-track {
  display: flex;
  transition: transform 0.3s ease;
  cursor: grab;
  will-change: transform;
  touch-action: pan-y; /* Allow vertical scrolling but capture horizontal */
}

.featured-track:active {
  cursor: grabbing;
}

/* Smaller featured items */
.featured-item {
  flex: 0 0 280px; /* Reduced from 350px to 280px */
  padding: 0 10px; /* Reduced from 15px to 10px */
  box-sizing: border-box;
}

.featured-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer; /* Added to indicate clickable */
}

/* Smaller featured images */
.featured-image {
  height: 180px; /* Reduced from 250px to 180px */
  position: relative;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Added magnifying glass icon to indicate clickable featured items */
.featured-card::after {
  content: "\f002"; /* Font Awesome magnifying glass icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  background: rgba(0,0,0,0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.featured-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-light);
  color: var(--text-dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-content {
  padding: 15px; /* Reduced from 20px to 15px */
}

.featured-title {
  font-size: 1.1rem; /* Reduced from 1.3rem to 1.1rem */
  font-weight: 600;
  margin-bottom: 8px; /* Reduced from 10px to 8px */
}

.featured-description {
  font-size: 0.8rem; /* Reduced from 0.9rem to 0.8rem */
  margin-bottom: 12px; /* Reduced from 15px to 12px */
  opacity: 0.9;
  /* Limit to 2 lines of text */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-price {
  font-weight: 700;
  color: var(--primary-light);
  font-size: 1.1rem; /* Reduced from 1.2rem to 1.1rem */
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.prev-btn, .next-btn {
  background-color: var(--primary-light);
  color: var(--text-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.prev-btn:active, .next-btn:active {
  transform: scale(0.95);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: rgba(18, 18, 18, 0.9);
  color: var(--text-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 4px solid var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-bottom: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  font-weight: 300;
  line-height: 1.8;
}

.about-features {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.about-features li {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.about-features li i {
  color: var(--primary-light);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: rgba(18, 18, 18, 0.9);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-light);
}

.info-item p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-map {
  height: 100%;
  min-height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-light);
  text-shadow: 1px 1px 0 #000;
}

.footer-brand p {
  margin-bottom: 20px;
  font-weight: 300;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-bottom p {
  margin: 5px 0;
}

/* Hamtech link styling */
.hamtech-link {
  color: var(--primary-light);
  text-decoration: underline;
  font-weight: 500;
  transition: var(--transition);
}

.hamtech-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ===== DRINK MODAL ===== */
.drink-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 9000;
}

.drink-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-dark);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-50px);
  transition: var(--transition);
  border: 1px solid var(--primary-dark);
}

.drink-modal.active .modal-content {
  transform: translateY(0);
}

/* Fix for close modal button */
.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  z-index: 9999; /* High z-index to ensure visibility */
  background-color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 30px;
}

.modal-image {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.modal-category {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.7;
  margin-bottom: 15px;
}

.modal-description {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-light);
}

.modal-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Visual indicator for draggable areas */
.menu-filter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.3;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--primary-light);
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  gap: 5px;
}

/* Disable touch action to prevent scrolling conflicts */
.menu-filter-container {
  touch-action: pan-y;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  /* Adjust thumbnail grid for tablets */
  .menu-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  /* Fix mobile nav menu z-index */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  }
  .menu-toggle {
    display: flex;
  }

  
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 9998; /* Just below the menu toggle button */
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .main-title {
    font-size: 4rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-map {
    min-height: 300px;
  }
  
  /* Adjust thumbnail grid for mobile */
  .menu-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  /* Smaller featured items for mobile */
  .featured-item {
    flex: 0 0 240px;
  }
  
  .featured-image {
    height: 150px;
  }
  
  /* Smaller menu item images for mobile */
  .menu-item-image {
    height: 120px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  
  .main-title {
    font-size: 3rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  /* Even smaller thumbnails for small mobile screens */
  .menu-container {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  
  .menu-item-content {
    padding: 10px;
  }
  
  .menu-item-title {
    font-size: 0.9rem;
  }
  
  .menu-item-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
  }
  
  .menu-item-price {
    font-size: 0.9rem;
  }
}

/* ===== THUMBNAIL HOVER EFFECTS ===== */
.menu-item:hover .menu-item-image::before,
.featured-card:hover .featured-image::before {
  content: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 5px 0;
  text-align: center;
  transform: translateY(100%);
  animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

/* Add a subtle border to make thumbnails look more clickable */
.menu-item, .featured-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover, .featured-card:hover {
  border-color: var(--primary-color);
}

/* Category Headers for "All" view */
.category-header {
  width: 100%;
  text-align: center;
  margin: 40px 0 20px;
  position: relative;
  grid-column: 1 / -1;
}

.category-header:first-of-type {
  margin-top: 0;
}

.category-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-light);
  display: inline-block;
  padding: 0 20px;
  position: relative;
  background-color: rgba(18, 18, 18, 0.9);
  z-index: 2;
  text-transform: uppercase;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 152, 0, 0.3);
  z-index: 1;
}
