:root {
  --primary: #b6895b;
  --bg: #010101;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(1, 1, 1, 0.8);
  border-bottom: 1px solid #513c28;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.navbar .navbar-logo span {
  color: var(--primary);
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.3rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav a::after {
  content: '';
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: #fff;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#hamburger-menu {
  display: none;
}

/* Navbar search form */
.navbar .search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #fff;
  width: 50rem;
  height: 5rem;
  display: flex;
  align-items: center;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.3s;
}

.navbar .search-form.active {
  transform: scaleY(1);
}

.navbar .search-form input {
  height: 100%;
  width: 100%;
  font-size: 1.6rem;
  color: var(--bg);
  padding: 1rem;
}

.navbar .search-form label {
  cursor: pointer;
  font-size: 2rem;
  margin-right: 1.5rem;
  color: var(--bg);
}

/* Shopping Cart */
.shopping-cart {
  position: absolute;
  top: 100%;
  right: -100%;
  height: 100vh;
  width: 35rem;
  padding: 0 1.5rem;
  background-color: #fff;
  color: var(--bg);
  transition: 0.3s;
}

.shopping-cart.active {
  right: 0;
}

.shopping-cart .cart-item {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #666;
  position: relative;
}

.shopping-cart img {
  height: 6rem;
  border-radius: 50%;
}

.shopping-cart h3 {
  font-size: 1.6rem;
  padding-bottom: 0.5rem;
}

.shopping-cart .item-price {
  font-size: 1.2rem;
}

.shopping-cart .remove-item {
  position: absolute;
  right: 1rem;
  cursor: pointer;
}

.shopping-cart .remove-item:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../img/header-bg.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero .mask-container {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.15) 100%);
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
  position: relative;
  text-align: left;
  margin-top: 8rem; 
}

.hero .content h1 {
  font-size: 5em;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

/* About Section */
.about,
.menu,
.products,
.contact {
  padding: 8rem 7% 1.4rem;
}

.about h2,
.menu h2,
.products h2,
.contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.about h2 span,
.menu h2 span,
.products h2 span,
.contact h2 span {
  color: var(--primary);
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 45rem;
}

.about .row .about-img img {
  width: 100%;
  -webkit-mask-image: url('../img/menu/splash.svg');
  -webkit-mask-size: 50%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../img/menu/splash.svg');
  mask-size: 50%;
  mask-repeat: no-repeat;
  mask-position: center;
}

.about .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.about .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Menu Section */
.menu h2,
.products h2,
.contact h2 {
  margin-bottom: 1rem;
}

.menu p,
.products p,
.contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-weight: 400;
  line-height: 1.6;
}

.menu .row {
  display: flex;
  flex-wrap: nowrap;         
  overflow-x: auto;         
  scroll-behavior: smooth;    
  margin-top: 5rem;
  padding: 1rem 2rem 3rem;  
  gap: 2.5rem;         
  justify-content: flex-start;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.menu .row::-webkit-scrollbar {
  display: none;         
}

.menu .row {
  -ms-overflow-style: none; 
  scrollbar-width: none;    
}

.menu .row .menu-card {
  text-align: center;
  flex: 0 0 22rem;  
  max-width: 25rem;
  scroll-snap-align: center; 
}

.menu .row .menu-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.menu .row .menu-card .menu-card-title {
  margin: 1rem auto 0.5rem;
}

.menu {
  position: relative;
}

.menu::before,
.menu::after {
  content: '';
  position: absolute;
  top: 60%;              
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: 0.2s ease-in-out;
  pointer-events: none;       
  opacity: 0.7;
}

.menu::before {
  content: '‹';             
  left: 3%;
}

/* Tombol Kanan */
.menu::after {
  content: '›';                
  right: 3%;
}

.menu:hover::before,
.menu:hover::after {
  opacity: 1;
  background-color: #fff;
  color: var(--bg);
}

@media (max-width: 450px) {
  .menu::before,
  .menu::after {
    display: none;
  }
}

/* Products Section */
.products .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.products .product-card {
  text-align: center;
  border: 1px solid #666;
  padding: 2rem;
}

.products .product-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.products .product-icons a {
  width: 4rem;
  height: 4rem;
  color: #fff;
  margin: 0.3rem;
  border: 1px solid #666;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.products .product-icons a:hover {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}

.products .product-image {
  padding: 1rem 0;
}

.products .product-image img {
  height: 25rem;
}

.products .product-content h3 {
  font-size: 2rem;
}

.products .product-stars {
  font-size: 1.7rem;
  padding: 0.8rem;
  color: var(--primary);
}

.products .product-stars .star-full {
  fill: var(--primary);
}

.products .product-price {
  font-size: 1.3rem;
  font-weight: bold;
}

.products .product-price span {
  text-decoration: line-through;
  font-weight: lighter;
  font-size: 1rem;
}

/* Contact Section */
.contact .row {
  display: flex;
  margin-top: 2rem;
  background-color: #222;
}

.contact .row .map {
  flex: 1 1 45rem;
  width: 100%;
  object-fit: cover;
}

.contact .row form {
  flex: 1 1 45rem;
  padding: 5rem 2rem;
  text-align: center;
}

.contact .row form .input-group {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  background-color: var(--bg);
  border: 1px solid #eee;
  padding-left: 2rem;
}

.contact .row form .input-group input {
  width: 100%;
  padding: 2rem;
  font-size: 1.7rem;
  background: none;
  color: #fff;
}

.contact .row form .btn {
  margin-top: 3rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.7rem;
  color: #fff;
  background-color: var(--primary);
  cursor: pointer;
}

/* Footer */
footer {
  background-color: var(--primary);
  text-align: center;
  padding: 1rem 0 3rem;
  margin-top: 3rem;
}

footer .socials {
  padding: 1rem 0;
}

footer .socials a {
  color: #fff;
  margin: 1rem;
}

footer .socials a:hover,
footer .links a:hover {
  color: var(--bg);
}

footer .links {
  margin-bottom: 1.4rem;
}

footer .links a {
  color: #fff;
  padding: 0.7rem 1rem;
}

footer .credit {
  font-size: 0.8rem;
}

footer .credit a {
  color: var(--bg);
  font-weight: 700;
}

/* Modal Box */
/* Item Detail */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-container {
  position: relative;
  background-color: #fefefe;
  color: var(--bg);
  margin: 15% auto;
  padding: 1.2rem;
  border: 1px solid #666;
  width: 80%;
  animation: animateModal 0.5s;
}

/* Modal Animation */
@keyframes animateModal {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.modal-container .close-icon {
  position: absolute;
  right: 1rem;
}

.modal-content {
  display: flex;
  flex-wrap: nowrap;
}

.modal-content img {
  height: 20rem;
  margin-right: 2rem;
  margin-bottom: 2rem;
}

.modal-content p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  margin-top: 1.2rem;
}

.modal-content a {
  display: flex;
  gap: 1rem;
  width: 12rem;
  background-color: var(--primary);
  color: #fff;
  margin-top: 1rem;
  padding: 1rem 1.6rem;
}

/* Media Queries */
/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* Tablet */
@media (max-width: 758px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  .navbar .search-form {
    width: 90%;
    right: 2rem;
  }

  .about .row {
    flex-wrap: wrap;
  }

  .about .row .about-img img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }

  .about .row .content {
    padding: 0;
  }

  .about .row .content h3 {
    margin-top: 1rem;
    font-size: 2rem;
  }

  .about .row .content p {
    font-size: 1.6rem;
  }

  .menu p {
    font-size: 1.2rem;
  }

  .contact .row {
    flex-wrap: wrap;
  }

  .contact .row .map {
    height: 30rem;
  }

  .contact .row form {
    padding-top: 0;
  }

  .modal-content {
    flex-wrap: wrap;
  }
}

/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}

/* ==========================================================================
   KODE TAMBAHAN BARU (UNTUK STYLING FITUR BARU TANPA MENGUBAH KODE DI ATAS)
   ========================================================================== */

/* 1. INTERAKSI: Struktur Dark Mode / Light Mode Override */
:root {
  --light-bg: #f5f5f7;
  --light-text: #1d1d1f;
  --light-card: #ffffff;
}

body.light-theme {
  background-color: var(--light-bg);
  color: var(--light-text);
}
body.light-theme .navbar {
  background-color: rgba(245, 245, 247, 0.8);
  border-bottom-color: #d2d2d7;
}
body.light-theme .navbar .navbar-logo,
body.light-theme .navbar .navbar-nav a,
body.light-theme .navbar .navbar-extra a {
  color: var(--light-text);
}
body.light-theme .about .row .content p,
body.light-theme .menu p,
body.light-theme .products p,
body.light-theme .contact p {
  color: #333;
}
body.light-theme .menu-card,
body.light-theme .product-card,
body.light-theme .testimonial-card,
body.light-theme .feature-card {
  background-color: var(--light-card);
  color: var(--light-text);
  border-color: #d2d2d7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
body.light-theme .products .product-icons a {
  color: var(--light-text);
  border-color: #d2d2d7;
}
body.light-theme .contact .row {
  background-color: #e5e5e7;
}

/* Form Kontak & Form Testimoni di mode terang */
body.light-theme .contact .row form .input-group,
body.light-theme #testimonials form {
  background-color: #fff !important;
  border-color: #d2d2d7 !important;
}
body.light-theme .contact .row form .input-group input,
body.light-theme #testimonials form input,
body.light-theme #testimonials form textarea {
  color: var(--light-text) !important;
}
body.light-theme .contact .row form .input-group input::placeholder,
body.light-theme #testimonials form input::placeholder,
body.light-theme #testimonials form textarea::placeholder {
  color: #888 !important;
}
body.light-theme .contact .row form .input-group i,
body.light-theme #testimonials form i {
  color: #555 !important;
}

/* Judul section & teks lain agar tetap kontras di mode terang */
body.light-theme .vision-box h3,
body.light-theme .mission-box h3,
body.light-theme .advantage-card h4,
body.light-theme .menu-card-title,
body.light-theme .product-content h3,
body.light-theme .feature-card h3,
body.light-theme .advantages-title,
body.light-theme #testimonials h3 {
  color: var(--light-text) !important;
}
body.light-theme .menu-card-price,
body.light-theme .feature-card p {
  color: #555;
}
body.light-theme .testimonials .comment {
  color: #333;
}

/* 2. ANIMASI: Hover Effect Optimization */
.navbar .navbar-nav a:hover,
.navbar .navbar-extra a:hover,
.menu-card:hover,
.product-card:hover {
  transition: all 0.3s ease-in-out;
}
.menu-card:hover {
  transform: translateY(-8px);
}

/* 3. ANIMASI: Parallax Effect Hero Section */
.parallax-bg {
  background-attachment: fixed;
  background-position: center center;
}

/* Fix Masking Image di About Section */
.about .row .about-img img {
  -webkit-mask-size: 90% !important;
  mask-size: 90% !important;
  object-fit: cover;
}

/* 4. ANIMASI: Section Features */
.features {
  padding: 8rem 7% 1.4rem;
  background-color: #0b0b0b;
}
body.light-theme .features {
  background-color: #e5e5e7;
}
.features .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}
.features .feature-card {
  text-align: center;
  background: #111;
  padding: 3rem 2rem;
  border: 1px solid #333;
  flex: 1 1 25rem;
  max-width: 30rem;
  border-radius: 0.5rem;
}
.features .feature-icon {
  color: var(--primary);
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
}

/* 5. ANIMASI: Section Testimonials */
.testimonials {
  padding: 8rem 7% 1.4rem;
}
.testimonials .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
}
.testimonials .testimonial-card {
  background: #161616;
  padding: 2.5rem;
  border-radius: 0.8rem;
  border: 1px solid #252525;
  text-align: center;
  flex: 1 1 28rem;
  max-width: 35rem;
}
.testimonials .testimonial-card img {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid var(--primary);
}
.testimonials .comment {
  font-style: italic;
}

/* 6. ANIMASI: Section Gallery */
.gallery {
  padding: 8rem 7% 1.4rem;
  background-color: #0b0b0b;
}
body.light-theme .gallery {
  background-color: #e5e5e7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid #333;
  height: 22rem;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* 7. INTERAKSI: Section Counter Animation Style */
.counter-section {
  padding: 4rem 7%;
  background-color: #0b0b0b;
  border-top: 1px solid #252525;
  border-bottom: 1px solid #252525;
}
body.light-theme .counter-section {
  background-color: #e5e5e7;
  border-color: #d2d2d7;
}
.counter-wrapper {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}
.counter-box h3 {
  font-size: 3.5rem;
  color: var(--primary);
}
.counter-box p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* 8. INTERAKSI: FAQ Accordion Style */
.faq {
  padding: 8rem 7% 1.4rem;
}
.faq-container {
  max-width: 80rem;
  margin: 3rem auto 0;
}
.faq-item {
  border-bottom: 1px solid #333;
  padding: 1rem 0;
}
body.light-theme .faq-item {
  border-bottom-color: #d2d2d7;
}
.faq-question {
  width: 100%;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.6rem;
  font-weight: 400;
  color: inherit;
  padding: 1.5rem 0;
  cursor: pointer;
}
.faq-question i {
  transition: transform 0.3s;
}
.faq-question.active i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-answer p {
  padding: 1rem 0 2rem;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: left !important;
  color: #ccc;
}
body.light-theme .faq-answer p {
  color: #555;
}

/* 9. INTERAKSI: Tombol Back to Top Style */
#backToTop {
  display: none;
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 99;
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  padding: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.3s;
}
#backToTop:hover {
  background-color: #fff;
  color: var(--bg);
  transform: scale(1.1);
}

/* Struktur Baris Visi Misi */
.vision-mission-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 5rem;
  justify-content: center;
}

.vision-box, .mission-box {
  flex: 1 1 40rem;
  background-color: #111;
  padding: 3rem;
  border: 1px solid #333;
  border-radius: 0.8rem;
  transition: transform 0.3s ease;
}

.vision-box:hover, .mission-box:hover {
  transform: translateY(-5px);
}

.vision-box h3, .mission-box h3 {
  font-size: 1.8rem;
  margin: 1rem 0;
  color: var(--primary);
}

.vision-box p, .mission-box ul {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.mission-box ul {
  padding-left: 2rem;
}

.mission-box ul li {
  margin-bottom: 0.8rem;
}

.about-icon {
  color: var(--primary);
  width: 3.5rem;
  height: 3.5rem;
}

/* Struktur Keunggulan (Advantages) */
.advantages-section {
  margin-top: 6rem;
  text-align: center;
}

.advantages-title {
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2.5rem;
}

.advantage-card {
  background-color: #111;
  border: 1px solid #333;
  padding: 3rem 2rem;
  border-radius: 0.8rem;
  transition: all 0.3s ease-in-out;
}

.advantage-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(182, 137, 91, 0.1);
}

.advantage-card h4 {
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
}

.advantage-card p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ccc;
}

.advantage-icon {
  color: var(--primary);
  width: 4rem;
  height: 4rem;
}

/* Penyesuaian Responsif Tema Terang (Light Mode) */
body.light-theme .vision-box,
body.light-theme .mission-box,
body.light-theme .advantage-card {
  background-color: var(--light-card);
  color: var(--light-text);
  border-color: #d2d2d7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body.light-theme .advantage-card p {
  color: #555;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 758px) {
  .vision-box, .mission-box {
    flex: 1 1 100%;
  }
  .vision-box p, .mission-box ul {
    font-size: 1.5rem;
  }
  .advantage-card p {
    font-size: 1.4rem;
  }
}