/* ========== RESET & WARNA DASAR ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fffaf8;
  color: #222;
  overflow-x: hidden;
  padding-top: 80px;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 999;
  backdrop-filter: blur(8px);
}

.logo {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.5px;
}

.brand-main { color: #222; }
.brand-accent { color: #c0392b; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #c0392b;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #c0392b;
}

/* ========== HERO ========== */
.hero {
  height: 100vh;
  background: url('background.webp') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 600px;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  animation: fadeIn 1.5s ease;
}

.hero h1 span { color: #f4d03f; }

.hero p {
  margin: 20px 0 30px;
  font-size: 16px;
  opacity: 0.9;
}

.hero button {
  background-color: #c0392b;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s;
}

.hero button:hover {
  background-color: #a93226;
  transform: translateY(-2px);
}

/* ========== MENU SECTION ========== */
.collections {
  padding: 100px 20px;
  text-align: center;
  background-color: #fffaf8;
}

.collections h2 {
  font-size: 32px;
  color: #c0392b;
  margin-bottom: 40px;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.gallery img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}


.gallery .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.gallery img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}


.gallery p {
  padding: 12px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

/* ========== POPUP DETAIL MENU ========== */
.menu-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.menu-popup.active {
  opacity: 1;
  pointer-events: all;
}

.popup-content {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  animation: fadeUp 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.popup-content img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.popup-content h3 {
  color: #c0392b;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
}

.popup-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.popup-content span {
  display: block;
  font-weight: 600;
  color: #a93226;
  margin-bottom: 15px;
}

#closePopupBtn {
  background-color: #c0392b;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

#closePopupBtn:hover {
  background-color: #a93226;
}

/* ========== FORM PEMESANAN ========== */
.rebumi {
  padding: 100px 20px;
  background-color: #f9e6e6;
  text-align: center;
}

.rebumi h2 {
  font-size: 32px;
  color: #a93226;
  margin-bottom: 25px;
}

.order-form {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.menu-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.menuSelect,
.quantity,
.spice,
.note {
  flex: 1 1 45%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.removeMenu {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
}

#addMenu,
.order-form button[type="submit"] {
  display: block;
  margin: 20px auto;
  background-color: #c0392b;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#addMenu:hover,
.order-form button[type="submit"]:hover {
  background-color: #a93226;
}

.total-box {
  margin-top: 15px;
  background-color: #fff5f5;
  border: 1px solid #f1c5c5;
  border-radius: 10px;
  padding: 10px 15px;
  text-align: center;
  font-size: 16px;
  color: #a93226;
  font-weight: 600;
}

/* ========== FOOTER ========== */
footer {
  background-color: #fff;
  text-align: center;
  padding: 25px;
  font-size: 13px;
  color: #777;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar { padding: 0 25px; }
  .hero h1 { font-size: 34px; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }

  .hero {
    height: 85vh;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero button {
    padding: 10px 20px;
    font-size: 13px;
  }

  .menu-item {
    flex-direction: column;
  }
}

