@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500&family=Poppins:wght@400;600&display=swap");

:root {
  --primary-color: #ff5722; /* Fiery Orange */
  --dark-bg: #121212;
  --card-bg: #1e1e1e;
  --text-color: #e0e0e0;
  --heading-font: "Oswald", sans-serif;
  --body-font: "Poppins", sans-serif;
  --veg-color: #2ecc71; /* Green */
  --non-veg-color: #e74c3c; /* Red */
}

/* --- Modern CSS Reset & Body Defaults --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
}

/* --- Header, Footer & Navigation --- */
header,
footer {
  background: #000;
  color: white;
  padding: 1.5em 1em;
  text-align: center;
  border-bottom: 3px solid var(--primary-color);
}

footer {
  border-bottom: none;
  border-top: 3px solid var(--primary-color);
  margin-top: 2em;
}

nav {
  background: #1c1c1c;
  padding: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 0;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

nav .nav-action-button::after {
  display: none !important;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?q=80&w=1974&auto=format&fit=crop")
      center/cover no-repeat;
  background-attachment: fixed;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
  font-family: var(--heading-font);
  text-align: center;
}

/* --- Menu Buttons & Titles --- */
.menu-category-buttons {
  text-align: center;
  margin: 2.5em 0 1em;
  display: flex;
  justify-content: center;
  gap: 2em;
}

.main-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.category-btn {
  margin: 0.5em;
  padding: 0.8em 2em;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 50px;
  font-weight: bold;
  font-family: var(--heading-font);
  transition: all 0.3s ease;
  width: 200px;
}

.category-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.category-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 15px var(--primary-color);
}

.sub-category {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}

.sub-category-btn {
  background: #333;
  color: #ccc;
  border: 1px solid #555;
  padding: 0.5em 1.5em;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-category-btn:hover,
.sub-category-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.menu-section-title {
  text-align: center;
  margin: 2em 0 1em 0;
  font-size: 2.2em;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  font-family: var(--heading-font);
}

/* --- Responsive Menu Grid & Cards --- */
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  padding: 1em;
}

.menu-card {
  width: 280px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  position: relative; /* Needed for the indicator */
}

/* NEW: Veg/Non-Veg Indicator */
.food-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.food-indicator.veg {
  background-color: var(--veg-color);
}
.food-indicator.non-veg {
  background-color: var(--non-veg-color);
}

.menu-card:nth-child(odd) {
  animation-delay: 0.1s;
}
.menu-card:nth-child(even) {
  animation-delay: 0.2s;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.menu-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.2);
  background-color: #333;
}

.menu-content {
  padding: 1.2em;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu-title {
  font-size: 1.3em;
  font-weight: 600;
  color: white;
  font-family: var(--heading-font);
  margin-bottom: 0.5em;
  padding-right: 25px; /* Make space for indicator */
}

.menu-price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 1em;
}

.menu-price-options,
.menu-action-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  margin-top: 0.5em;
}

.menu-price-options span {
  font-weight: bold;
  color: var(--primary-color);
}

.menu-action button,
.menu-action-options button {
  width: 100%;
  padding: 0.8em;
  background: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.menu-action-options button {
  padding: 0.6em;
  font-size: 0.9em;
}

.menu-action button:hover,
.menu-action-options button:hover {
  background: #e64a19;
}

/* --- Cart, Order, & Confirmation Sections --- */
.cart-section,
.order-section,
.confirmation-section {
  max-width: 700px;
  margin: 2em auto;
  background: var(--card-bg);
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-top: 4px solid var(--primary-color);
  animation: fadeInUp 0.5s ease forwards;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 0;
  border-bottom: 1px solid #444;
}

.cart-controls button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.4em 0.8em;
  margin: 0 0.3em;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.cart-controls button:hover {
  background: #e64a19;
}

/* --- Form & CAPTCHA Styles --- */
form input {
  width: 100%;
  padding: 1em;
  margin: 0.5em 0;
  background-color: #333;
  border: 1px solid #555;
  color: white;
  border-radius: 4px;
}

form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

.captcha-container {
  margin-top: 1.5em;
  margin-bottom: 1em;
  padding: 1em;
  background-color: #f9f9f9;
  color: #121212;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  border: 1px solid #ddd;
}

.captcha-container label {
  font-weight: bold;
  font-family: var(--body-font);
}

.captcha-container input {
  background-color: #ffffff;
  color: #121212;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.8em;
  width: auto;
  flex-grow: 1;
  max-width: 150px;
  margin: 0;
}

.captcha-container input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

.nav-btn,
form button[type="submit"] {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1em;
  cursor: pointer;
  width: 100%;
  margin-top: 1em;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.nav-btn:hover,
form button[type="submit"]:hover {
  background: #e64a19;
}

/* --- Floating Cart Button & Toast --- */
.fixed-order-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1em;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: pulse 2s infinite;
  transition: transform 0.3s;
}

.fixed-order-btn:hover {
  transform: scale(1.1);
  animation: none;
}

.toast {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #2ecc71;
  color: white;
  padding: 1em 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 9999;
  animation: fadeInUp 0.5s forwards;
}

/* --- Contact Section --- */
#contact {
  padding: 2em;
  background: var(--dark-bg);
  text-align: center;
}

iframe {
  width: 100%;
  max-width: 800px;
  height: 350px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  margin-top: 1.5em;
}

/* --- Utility Classes --- */
.hidden {
  display: none !important;
}

/* --- Custom Alert Modal --- */
.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.alert-box {
  background: var(--card-bg);
  padding: 2em;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.3s ease;
}

.alert-box p {
  margin-bottom: 1.5em;
  color: var(--text-color);
  line-height: 1.5;
  font-size: 1.1em;
}

.alert-box button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8em 2.5em;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.alert-box button:hover {
  background: #e64a19;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 87, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
  }
}

/* --- Responsive Adjustments for ALL screen sizes --- */
@media (max-width: 768px) {
  .hero {
    font-size: 2em;
    height: 30vh;
  }
  nav {
    gap: 1.5em;
  }
  .menu-section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 1em;
    justify-content: space-around;
    flex-wrap: wrap; /* Allow items to wrap on very small screens */
  }
  nav a {
    font-size: 0.9em;
    padding: 0.5em 0.2em;
  }
  .menu-category-buttons {
    flex-direction: column;
    gap: 1em;
  }
  .category-btn {
    width: 80%;
  }
  .hero {
    font-size: 1.5em;
  }
  .fixed-order-btn {
    padding: 0.8em;
    font-size: 0.9em;
  }
}

.nav-action-button {
  background: var(--primary-color);
  color: white !important;
  border: none;
  padding: 0.6em 1.5em;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-action-button:hover {
  background: #e64a19;
  transform: scale(1.05);
  color: white !important;
}

#adminDashboardBtn {
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: var(--card-bg);
  padding: 2.5em;
  border-radius: 12px;
  text-align: center;
  max-width: 90%;
  width: 450px;
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.4s ease;
  position: relative;
}

.modal-box h2 {
  margin-bottom: 0.5em;
  font-family: var(--heading-font);
  font-size: 1.8em;
}

.modal-box p {
  margin-bottom: 1.5em;
  color: #ccc;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 2em;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: white;
}

.google-btn {
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  transition: background-color 0.3s;
}

.google-btn:hover {
  background-color: #357ae8;
}

.google-btn img {
  height: 24px;
  width: 24px;
  background: white;
  border-radius: 50%;
  padding: 2px;
}

.admin-login-link {
  margin-top: 2em;
  font-size: 0.9em;
}

.admin-login-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.admin-login-link a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .modal-box {
    padding: 2em 1.5em;
  }
  .modal-box h2 {
    font-size: 1.5em;
  }
  .google-btn {
    padding: 10px 16px;
    font-size: 0.9em;
  }
}
