/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
header {
  background: #111;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #222;
  position: relative;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-actions button {
  background: #ff9800;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}


/* Logo */
.navbar .logo {
  font-size: 22px;
  font-weight: bold;
  color: #d4a017;
}

/* Centered nav links */
.nav-links {
  display: flex;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #d4a017;
}

/* Auth buttons on right */
.auth-buttons {
  display: flex;
  gap: 10px;
  z-index: 1001;
  position: relative;
}

/* Login / Sign Up buttons */
.auth-buttons button {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.login-btn,
.signup-btn {
  background: #d4a017;
  color: white;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.login-btn:hover,
.signup-btn:hover {
  background: #b88a12;      /* Darker gold */
  transform: scale(1.05);    /* Slightly enlarge */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Add subtle shadow */
}


/* User info when logged in */
#userInfo {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: white;
}

#userInfo button {
  background: #d4a017;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Cart button */
#cartBtn {
  background: whitesmoke;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

#cartCount {
  background: #fff;
  color: #d4a017;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url("./images/1.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 1.2s ease-in-out;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  color: #fff; /* Golden */
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  animation: slideDown 1s ease forwards;
}

.hero p {
  font-size: 22px;
  max-width: 700px;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
  animation: fadeIn 1.5s ease forwards;
}

.hero .btn {
  padding: 14px 28px;
  font-size: 18px;
  border-radius: 10px; /* More curved */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background: #ffd700;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  animation: fadeIn 2s ease forwards;
}

.hero .btn:hover {
  background: #d4a017;
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}


section {
  padding: 100px 20px;
  scroll-margin-top: 80px;
}

/* Menu Section */
#menu {
  background: #fff8f0;
  text-align: center;
}

#menu h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  align-items: stretch;
}

.menu-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.menu-item .content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.menu-item h3 {
  margin-bottom: 8px;
  color: #333;
}

.menu-item p {
  color: #666;
  margin-bottom: 10px;
  flex-grow: 1;
}

.price {
  font-weight: bold;
  font-size: large;
  color: #d4a017;
  margin-bottom: 10px;
}

.menu-item .add-to-cart {
  margin-top: auto;
  background: #d4a017;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.menu-item .add-to-cart:hover {
  background: #b88a12;
  transform: scale(1.05);
}

/* Gallery Section */
.gallery {
  text-align: center;
  background: #fff;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #d4a017;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
#about {
  background: #fff3e0;
  text-align: center;
}

#about h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #d4a017;
}

#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

/* Contact Section */
#contact {
  background: #f5f5f5;
  text-align: center;
}

#contact h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #d4a017;
}

#contact p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #555;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-form button {
  background: #d4a017;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #b3860b;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

/* Modal Box */
.modal-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

/* Inputs */
.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Buttons inside modal */
.modal-content button {
  background: #d4a017;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 16px;
  transition: 0.3s;
}

.modal-content button:hover {
  background: #b88a12;
}

/* Close (X) button */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #d4a017;
}

/* Gallery Modal */
#galleryModal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

#galleryModal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#galleryModal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 3001;
}

/* Cart Modal */
#cartModal .modal-content {
  max-width: 500px;
}

#cartItems {
  list-style: none;
  margin: 15px 0;
  max-height: 300px;
  overflow-y: auto;
}

#cartItems li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  color: #333;
}

#cartItems li button {
  margin-left: 5px;
  background: #d4a017;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 6px;
  transition: background 0.3s, transform 0.2s;
}

#cartItems li button:hover {
  background: #b88a12;
  transform: scale(1.1);
}

#cartTotal {
  font-weight: bold;
  font-size: 18px;
  color: #333;
  display: inline-block;
  margin-top: 15px;
}

/* Small fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    flex-direction: column;
  }

  .nav-links {
    position: static;
    transform: none;
    margin: 15px 0;
    flex-direction: column;
    text-align: center;
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 80px 20px;
  }

  #userInfo {
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
  }
}

html {
  scroll-behavior: smooth;
}

body.modal-open {
  overflow: hidden;
}


.hidden {
  display: none !important;
}
