:root {
  --primary: #cba87c;
  --bg: #12100e;
  --surface: #1e1a17;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #fff;
  background-color: var(--bg);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(182, 137, 91, 0.2);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  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.2rem;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar .navbar-nav a:hover {
  color: var(--bg);
  background-color: var(--primary);
}

.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;
  justify-content: center;
  text-align: center;
  background-image: 
    linear-gradient(rgba(18, 16, 14, 0.7), rgba(18, 16, 14, 0.7)),
    url("../img/header-bg.jpeg");
  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,
    rgba(1, 1, 3, 1) 8%,
    rgba(255, 255, 255, 0) 50%
  );
}

.hero .content {
  padding: 1.4rem 2%;
  max-width: 60rem;
  z-index: 1;
}

.hero .content h1 {
  font-size: 5em;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  line-height: 1.2;
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1.2rem 4rem;
  font-size: 1.4rem;
  color: var(--bg);
  font-weight: 700;
  background-color: var(--primary);
  border-radius: 30px;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  transition: all 0.3s ease;
}

.hero .content .cta:hover {
  background-color: #9c744c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(182, 137, 91, 0.4);
}

/* About Section */
.about,
.menu,
.contact {
  padding: 8rem 7% 1.4rem;
}

.about h2,
.menu h2,
.contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.about h2 span,
.menu 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: calc(100% - 20px);
  margin: 10px;
  border-radius: 5px;
  outline: 2px solid var(--primary);
  outline-offset: -15px;
  box-shadow: 15px 15px 0 var(--surface);
  transition: all 0.3s ease;
}

.about .row .about-img img:hover {
  outline-offset: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.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.2rem;
  font-weight: 100;
  line-height: 1.6;
}

/* Menu Section */
.menu h2,
.contact h2 {
  margin-bottom: 1rem;
}
.menu p,
.contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-size: 1rem;
  font-weight: 100;
  line-height: 1.6;
}

.menu .row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5rem;
  justify-content: center;
  gap: 2rem;
}

.menu .row .menu-card {
  text-align: center;
  background-color: transparent;
  border: 1px solid rgba(203, 168, 124, 0.2);
  padding: 2rem;
  border-radius: 10px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  width: 25rem;
}

.menu .row .menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background-color: var(--surface);
  border-color: var(--primary);
}

.menu .row .menu-card img {
  border-radius: 10px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.menu .row .menu-card .menu-card-title {
  margin: 1rem auto 0.5rem;
}

.menu .app-link {
  text-align: center;
  margin-top: 4rem;
}

.menu .app-link .btn {
  display: inline-block;
  padding: 1.2rem 4rem;
  font-size: 1.4rem;
  color: var(--bg);
  font-weight: 700;
  background-color: var(--primary);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.menu .app-link .btn:hover {
  background-color: #9c744c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(182, 137, 91, 0.4);
}

/* Contact Section */
.contact .row {
  display: flex;
  margin-top: 2rem;
  background-color: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.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: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: white;
  transition: all 0.3s ease;
}

.contact .row form .input-group:focus-within {
  border-bottom: 1px solid var(--primary);
}

.contact .row form .input-group input {
  width: 100%;
  padding: 1rem;
  font-size: 1.7rem;
  background: none;
  color: #fff;
}

/* Memperbaiki teks putih yang menghilang saat browser melakukan Autofill (background putih) pada input form */
.contact .row form .input-group input:-webkit-autofill,
.contact .row form .input-group input:-webkit-autofill:hover,
.contact .row form .input-group input:-webkit-autofill:focus,
.contact .row form .input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--surface) inset !important;
  -webkit-text-fill-color: #fff !important;
}

.contact .row form .btn {
  margin-top: 3rem;
  display: inline-block;
  padding: 1.2rem 4rem;
  font-size: 1.7rem;
  color: var(--bg);
  font-weight: 700;
  background-color: var(--primary);
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.contact .row form .btn:hover {
  background-color: #9c744c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(182, 137, 91, 0.4);
}

/* Footer */
footer {
  background-color: #050505;
  border-top: 1px solid rgba(182, 137, 91, 0.3);
  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(--primary);
}

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(--primary);
  font-weight: 700;
}

/* Media Queries */
/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* Tablet */
@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: var(--bg);
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
    border-left: 1px solid rgba(203, 168, 124, 0.2);
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: #fff;
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 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: 1.6rem;
  }

  .menu p {
    font-size: 1.4rem;
  }

  .contact .row {
    flex-wrap: wrap;
  }

  .contact .row .map {
    height: 30rem;
  }

  .contact .row form {
    padding-top: 0;
  }
}

/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}
