:root {
  --primary: #41644a;
  --bg: #ffffff;
}

* {
  font-family: "Poppins", sans-serif;
  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: #000000;
  /* min-height: 5000px; */
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(168, 167, 162, 0.612);
  border-bottom: 1px solid #0d4715;

  position: fixed;

  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-style: bold;
  display: flex;
  align-items: center;
}

.navbar .navbar-logo span {
  font-family: "Playfair Display", serif;
  color: var(--primary);
}

.navbar .navbar-logo img {
  height: 5rem;
  width: auto;
  margin-right: 0.5rem;
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.3rem;
  margin: 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;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../img/header-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgb(255, 255, 255) 8%,
    rgba(255, 255, 255, 0) 50%
  );
}

.hero .content {
  padding: 1.7rem 7%;
  max-width: 70rem;
}

.hero .content h1 {
  font-size: 2.5rem;
  color: #010101;
  line-height: 1.2;
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  /* font-smooth: 1.6rem; */
  font-size: 1.4rem;
  margin-top: 1.2rem;
  line-height: 1.4;
  font-weight: 100;
  /* text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5); */
  font-family: "Playfair Display", serif;
  /* mix-blend-mode: difference; */
}

.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);
}

.hero .content .cta:hover {
  color: #fff;
  background-color: #4b352a;
}

/* About Section */
.about,
.menu,
.contact {
  padding: 8rem 7% 1.4rem;
}

.about h2,
.menu h2,
.contact h2 {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 35rem;
  opacity: 0; /* Sembunyikan default */
  transform: translateX(-50px); /* Geser ke kiri sedikit */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Animasi transisi */
}

.about .row .about-img.animate-visible {
  /* Kelas yang akan ditambahkan JS */
  opacity: 1;
  transform: translateX(0);
}

.about .row .about-img img {
  width: 100%;
}

/* Animasi untuk Konten Teks */
.about .row .content {
  flex: 1 1 45rem;
  padding: 0 1rem;
  opacity: 0; /* Sembunyikan default */
  transform: translateX(50px); /* Geser ke kanan sedikit */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Animasi transisi */
  transition-delay: 0.2s; /* Tambahkan delay agar muncul setelah gambar */
}

.about .row .content.animate-visible {
  /* Kelas yang akan ditambahkan JS */
  opacity: 1;
  transform: translateX(0);
}

.about .row .content h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.6;
}

/*  Menu Section*/

.menu h2 .contact h2 {
  margin-bottom: 0.5rem;
}

.menu p,
.contact p {
  font-family: "Playfair Display", serif;
  text-align: center;
  max-width: 60rem;
  margin: auto;
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.6;
}

.menu .row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5rem;
  justify-content: center;
}

.menu .row .menu-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding-bottom: 0;
  margin: 0 1.5rem 2rem 1.5rem;
  border-radius: 1rem;
}

.menu .row .menu-card img {
  width: 30rem;
  height: 30rem;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.menu .row .menu-card .menu-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(65, 100, 74, 0.9);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  border-radius: 1rem;
  text-align: center;
}

.menu .row .menu-card .menu-card-overlay .menu-card-tittle {
  font-size: 2rem;
  margin-top: 5rem;
  color: #fff;
}

.menu .row .menu-card .menu-card-overlay .menu-card-description {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #eee;
}

.menu .row .menu-card:hover .menu-card-img {
  transform: scale(1.05);
}

.menu .row .menu-card:hover .menu-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Section */
.contact .review-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  background-color: transparent;
}

.customer-review-card {
  background-color: #f9f9f9;
  color: #333;
  padding: 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.33% - 4rem);
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.customer-review-card:hover {
  transform: translateY(-5px);
}

.customer-review-card .review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.customer-review-card .customer-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.customer-review-card .review-rating {
  color: #ffc107;
  font-size: 1.5rem;
}

.customer-review-card .review-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
  font-family: "Poppins", sans-serif;
}

.review-form-button {
  flex-basis: 100%;
  text-align: center;
  margin-top: 3rem;
}

.review-form-button .review-btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.7rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-form-button .review-btn:hover {
  background-color: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* Footer */

footer {
  background-color: var(--primary);
  text-align: center;
  padding: 1rem 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;
}

/* Media Queries */

/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* Table */
@media (max-width: 768px) {
  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: #4b352a;
    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);
  }

  .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.6rem;
  }

  .customer-review-card {
    flex: 1 1 calc(50% - 2rem);
  }
}

/* Mobile */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  .customer-review-card {
    flex: 1 1 100%;
  }
}
