:root {
  --primary: #c19a6b;
  --primary-dark: #a88356;
  --bg-color: #0b0c10;
  --surface-color: #1a1c23;
  --text-light: #f8f9fa;
  --text-muted: #a0a4b8;
  --border-color: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}
h1,
h2,
h3,
.navbar-logo {
  font-family: "Lora", serif;
}

/* === ANIMASI SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === SPLASH SCREEN === */
.splash-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}
.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash-logo {
  font-size: 3.5rem;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
.splash-logo span {
  color: var(--primary);
  font-style: italic;
}
.splash-content p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  width: 0;
  animation:
    typing 1.5s steps(22, end) 0.5s forwards,
    blink 0.7s step-end infinite;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 22ch;
  }
}
@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary);
  }
}

/* === UTILITIES === */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Plus Jakarta Sans", sans-serif;
  gap: 8px;
}
.btn-primary {
  background-color: var(--primary);
  color: #000;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-primary:disabled {
  background-color: #444;
  color: #888;
  cursor: not-allowed;
  transform: none;
}
.w-100 {
  width: 100%;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.section-title span {
  color: var(--primary);
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: auto;
}

/* === NAVBAR & CART === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 7%;
  background-color: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}
.navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.navbar-logo span {
  color: var(--primary);
  font-style: italic;
}
.navbar-nav a {
  color: var(--text-muted);
  margin: 0 1.2rem;
  font-weight: 500;
  transition: 0.3s;
}
.navbar-nav a:hover {
  color: var(--primary);
}
.navbar-extra {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.navbar-extra a {
  color: var(--text-light);
  position: relative;
  transition: 0.3s;
}
.navbar-extra a:hover {
  color: var(--primary);
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hamburger-menu {
  display: none;
}

.search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  width: 400px;
  height: 3.5rem;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.3s ease;
  margin-top: 10px;
}
.search-form.active {
  transform: scaleY(1);
}
.search-form input {
  width: 100%;
  height: 100%;
  background: none;
  color: #fff;
  padding: 0 1.5rem;
  font-size: 1rem;
}
.search-form label {
  padding: 0 1rem;
  color: var(--text-muted);
  cursor: pointer;
}

.shopping-cart {
  position: absolute;
  top: 100%;
  right: -100%;
  width: 400px;
  height: calc(100vh - 75px);
  background: var(--bg-color);
  border-left: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.shopping-cart.active {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.close-btn {
  cursor: pointer;
  color: var(--text-muted);
  transition: 0.3s;
}
.close-btn:hover {
  color: #fff;
}
.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
}
.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  background: var(--surface-color);
  padding: 10px;
  border-radius: 8px;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-item-info {
  flex-grow: 1;
}
.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.cart-item-info p {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.qty-controller {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}
.qty-btn {
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}
.remove-item {
  color: #ff4757;
  cursor: pointer;
  padding: 5px;
}
.cart-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.empty-cart-msg {
  text-align: center;
  color: var(--text-muted);
  margin-top: 3rem;
}

/* === SECTIONS === */
.hero {
  min-height: 100vh;
  background-image: url("https://images.unsplash.com/photo-1497935586351-b67a49e012bf?w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-overlay {
  height: 100vh;
  width: 100%;
  background: linear-gradient(to right, rgba(11, 12, 16, 0.95) 0%, rgba(11, 12, 16, 0.3) 100%);
  display: flex;
  align-items: center;
  padding: 0 7%;
}
.hero .content {
  max-width: 600px;
}
.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  color: var(--primary);
  font-style: italic;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.about,
.menu,
.products,
.gallery,
.testimonial,
.contact {
  padding: 5rem 7%;
}
.products,
.testimonial {
  background: var(--bg-color);
}
.menu,
.about,
.gallery,
.contact {
  background: var(--surface-color);
}

.about .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* === FILTER BUTTONS === */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
  font-weight: 500;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text-light);
}
.filter-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* === CARDS GRID === */
.row#menu-list,
.row#products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(193, 154, 107, 0.05);
}
.card-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #000;
  height: 220px;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: 0.5s;
}
.card:hover .card-img-wrapper img {
  opacity: 1;
  transform: scale(1.05);
}
.card-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.action-btn {
  width: 35px;
  height: 35px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}
.action-btn:hover {
  background: var(--primary);
  color: #000;
}
.card-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.card-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}
.price {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
}
.add-btn {
  background: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: 0.3s;
}
.add-btn:hover {
  color: var(--primary);
}

/* === GALLERY & TESTIMONIAL === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.4s;
  filter: grayscale(50%);
  cursor: pointer;
}
.gallery-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testi-card {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}
.stars {
  color: #ffb800;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.stars svg {
  width: 18px;
  fill: transparent;
}
.stars .star-filled {
  fill: #ffb800;
}
.testi-card p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.testi-card h4 {
  color: var(--primary);
}

/* === CONTACT === */
.contact .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.input-group {
  margin-bottom: 1.5rem;
}
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
}
.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--primary);
}
.map-container {
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  min-height: 350px;
  border: 1px solid var(--border-color);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === FOOTER === */
footer {
  background: var(--surface-color);
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}
footer .socials a {
  color: var(--text-muted);
  margin: 0 1rem;
  transition: 0.3s;
}
footer .socials a:hover {
  color: var(--primary);
}
footer .credit {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.modal-container {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  padding: 2rem;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.close-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.close-icon:hover {
  color: #fff;
}
.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.modal-content img {
  width: 100%;
  border-radius: 12px;
}
.modal-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.modal-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.modal-price {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* === TOAST NOTIFICATION === */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.toast.show {
  bottom: 30px;
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: #000;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .about .row,
  .contact .row,
  .modal-content {
    grid-template-columns: 1fr;
  }
  .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background: var(--surface-color);
    width: 300px;
    height: 100vh;
    flex-direction: column;
    padding: 2rem;
    border-left: 1px solid var(--border-color);
    transition: 0.3s;
  }
  .navbar-nav.active {
    right: 0;
  }
  .navbar-nav a {
    display: block;
    margin: 1.5rem 0;
    font-size: 1.2rem;
  }
  #hamburger-menu {
    display: block;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .shopping-cart {
    width: 100%;
  }
}
