/* Reset + Layout */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f8f8f8;
  color: #333;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth; /* smooth scrolling */
}

main {
  flex: 1; /* pushes footer down */
}

/* Hero Section */
.hero {
  position: relative;
  background: url('images/hero.jpg') no-repeat center center/cover;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero .overlay {
  background: none;
  padding: 20px 40px;
  text-align: center;
  border-radius: 10px;
}

.hero h1 {
  font-size: 28px;
}

.hero p {
  font-size: 16px;
}

/* Hero Section Animation */
.hero-line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-line.show {
  opacity: 1;
  transform: translateY(0);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: #f0f0f0;
}

.lang-toggle button {
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  background: #006400;
  color: white;
  transition: background 0.3s;
}

.lang-toggle button:hover {
  background: #004d00;
}

.lang-toggle button.active {
  background: #004d00;
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  padding: 10px;
  background: #fafafa;
}

.search-bar input {
  width: 90%;
  max-width: 400px;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #006400;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: #004d00;
  box-shadow: 0 0 6px rgba(0, 100, 0, 0.4);
}

/* No Results Message */
#noResults {
  font-size: 18px;
  color: #a00;
  text-align: center;
  margin: 15px;
  display: none;
}

/* Highlighted search match */
.highlight {
  background: yellow;
  font-weight: bold;
  padding: 0 2px;
  border-radius: 3px;
}

/* Category Navigation */
.menu-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: #006400;
  padding: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-nav a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}

/* Hover effect */
.menu-nav a:hover {
  background: #004d00;
}

/* Active nav link */
.menu-nav a.active {
  background: #ffffff;
  color: #006400;
}

/* Smooth underline for active link */
.menu-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 3px;
  background-color: #006400;
  border-radius: 2px;
  animation: underlineExpand 0.3s forwards;
}

/* Underline animation */
@keyframes underlineExpand {
  from { transform: translateX(-50%) scaleX(0); }
  to   { transform: translateX(-50%) scaleX(1); }
}

/* Bounce animation for nav links */
@keyframes linkBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.85); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.menu-nav a.clicked {
  animation: linkBounce 0.4s ease;
}

/* Section Title */
.section-title {
  text-align: center;
  margin: 30px 0 10px;
  font-size: 28px;
  color: #006400;
}

/* Menu Container */
.menu-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Menu Item Card */
.menu-item {
  background: #fff;
  border-radius: 12px;
  width: 260px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
  opacity: 0;                /* start hidden */
  transform: translateY(30px);
}

.menu-item.show {
  animation: slideUp 0.3s ease forwards;
}

/* Slide-up animation */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item:hover {
  transform: translateY(-8px);
}

.menu-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.menu-item h3 {
  margin: 10px 0;
}

/* Price Badge */
.price {
  display: inline-block;
  margin-top: 8px;
  font-weight: bold;
  color: #fff;
  background: #006400;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Dish Badges */
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.badge.special {
  background: #ff9800; /* orange for chef’s special */
}

.badge.bestseller {
  background: #e91e63; /* pink/red for best seller */
}

.badge.new {
  background: #4caf50; /* green for new items */
}

/* Footer */
footer {
  text-align: center;
  background: #006400;
  color: white;
  padding: 15px;
  margin-top: auto;
}

.footer-line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-line.show {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: #006400;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;              /* hidden by default */
  pointer-events: none;    /* not clickable when hidden */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.4s ease;
  z-index: 2000;
}

/* Fade + bounce when showing */
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  animation: bounceIn 0.6s ease;
}

/* Hover effect */
#backToTop:hover {
  background: #004d00;
  transform: translateY(-3px);
}

/* Bounce animation when appearing */
@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  80%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Bounce animation when clicked */
@keyframes clickBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.85); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#backToTop.clicked {
  animation: clickBounce 0.4s ease;
}

/* Lightbox Popup */
.lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 70%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 18px;
  text-align: center;
  max-width: 80%;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  color: #ff4444;
}

/* ---------------- Responsive Design ---------------- */

/* Mobile (iPhones < 600px) */
@media (max-width: 550px) {
  .hero {
    height: 180px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero p {
    font-size: 14px;
  }
  .menu-container {
    flex-direction: column;
    align-items: center;
  }
  .menu-item {
    width: 90%; /* full width on mobile */
  }
  .menu-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .menu-nav a {
    font-size: 14px;
    padding: 5px 10px;
  }
}

/* Tablets (small & medium tablets 600px–1024px) */
@media (min-width: 550px) and (max-width: 1024px) {
  .menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px;
  }

  .menu-item {
    width: calc(40% - 20px); /* TRUE 2 per row */
    max-width: 360px;        /* prevents huge cards */
  }
}
/* Desktop (1025px and above) */
@media (min-width: 1025px) {
  .menu-item {
    width: 260px; /* fixed card size */
  }
}
.hero-logo {
  max-width: 300px;   /* adjust size */
  height: auto;
  margin-bottom: 20px;
  animation: fadeIn 1s ease forwards;
}
.menu-option {
  width: 100%;
  padding: 6px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.option-label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}


