@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@font-face {
  font-family: "Coolvetica";
  src: url("../assets/Coolvetica\ Rg.otf") format("opentype");
}

/* Reset default browser */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f8f8;
  font-family: "Coolvetica", "Montserrat", sans-serif;
  line-height: 1.6;
}

/* Navbar */
nav ul::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--underline-left, 0);
  width: var(--underline-width, 0);
  height: 2px;
  background-color: #131010;
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #131010;
  transition: 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

header {
  background: #f8f8f8;
  color: #131010;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2001;
}

header h1 {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  position: relative;
}

.logo-navbar {
  gap: 10px;
}

nav ul li {
  margin-left: 55px;
  position: relative;
}

nav ul li a {
  color: #131010;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
}

nav ul li a:hover {
  color: #543a14;
}

nav ul li a.active {
  color: #543a14;
}

#navMenu {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

/* Hero */

.hero {
  height: 90vh;
  background: #543a14 center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
}

.hero-left {
  flex: 1;
  margin: 0 50px 50px 50px;
  text-align: left;
}

.hero-left h2 {
  font-size: 70px;
  font-family: "Coolvetica", sans-serif;
  font-weight: 400;
  text-align: left;
  margin-bottom: 20px;
}

.hero-left p {
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  text-align: left;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-left button {
  padding: 8px 16px;
  background: #f0bb78;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #000000;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  transition: 0.3s;
}

.hero-left button:hover {
  background-color: #d49b56;
}

.hero-right img {
  height: 90vh;
}

/* Section */

.section {
  padding: 50px 50px 0 50px;
  text-align: center;
}

.section h3 {
  font-size: 40px;
  font-family: "Coolvetica", sans-serif;
  font-weight: 400;
  text-align: left;
  margin: auto 75px;
}

.section h4 {
  font-size: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.section p {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  max-width: 700px;
  margin: 10px auto;
}

.populer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 40px;
}

.populer-container .img-wrapper {
  position: relative;
}

.img-wrapper img {
  display: block;
  border-radius: 10px;
  filter: grayscale(100%);
  cursor: pointer;
  transition: 0.3s;
}

.img-wrapper:hover img {
  filter: grayscale(0%);
}

.img-wrapper .img-overlay {
  opacity: 0;
}

.img-wrapper:hover .img-overlay {
  opacity: 1;
}

.img-wrapper .img-overlay h3,
.img-wrapper .img-overlay p {
  margin: 0;
  padding: 0;
}

.img-wrapper .img-overlay h3 {
  font-size: 24px;
  font-family: "Coolvetica", sans-serif;
}

.img-wrapper .img-overlay p {
  font-size: 20px;
  font-family: "Coolvetica", sans-serif;
}

.populer-top {
  display: flex;
  gap: 25px;
}

.populer-top .img-wrapper .img-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 50px;
  color: #ffffff;
  text-align: center;
  width: 100%;
  transition: 0.3s;
}

.top-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.top-right .img-wrapper .img-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 25px;
  color: #ffffff;
  text-align: center;
  width: 100%;
  transition: 0.3s;
}

.populer-bottom {
  display: flex;
  gap: 25px;
}

.populer-bottom .img-wrapper .img-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 50px;
  color: #ffffff;
  text-align: center;
  width: 100%;
  transition: 0.3s;
}

.bottom-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.bottom-container .img-wrapper .img-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 25px;
  color: #ffffff;
  text-align: center;
  width: 100%;
  transition: 0.3s;
}

.bottom-right-top {
  display: flex;
  gap: 25px;
}

.pelajari-cards {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 25px;
  margin-top: 40px;
}

.pelajari-card {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  max-width: 1000px;
  max-height: 175px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pelajari-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pelajari-left img {
  border-radius: 10px 0 0 10px;
  height: 100%;
}

.pelajari-right {
  text-align: left;
  margin: 10px 20px 20px 20px;
}

/* Footer */

.footer {
  background-color: #543a14;
  color: #f8f8f8;
  margin-top: 50px;
  padding: 50px 10%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-container h2 {
  font-family: "Coolvetica", sans-serif;
  font-weight: 400;
}

.footer-section {
  flex: 1 1 250px;
}

.footer .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
}

.footer .logo img {
  width: 28px;
  margin-right: 10px;
}

.footer-section.brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

.footer-section p {
  font-size: 16px;
  line-height: 1.6;
  color: #e5e5e5;
  max-width: 320px;
}

.footer-section.nav h2 {
  font-weight: 400;
  color: white;
  margin-bottom: 10px;
}

.footer-section.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  row-gap: 1px;
}

.footer-section.nav li {
  font-size: 16px;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

.footer-section.nav li:last-child {
  margin-bottom: 0;
}

.footer-section.nav a {
  color: #f8f8f8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section.social h2 {
  font-weight: 400;
  color: white;
  margin-bottom: 10px;
}

.footer-section.social .icons a {
  color: #f8f8f8;
  margin-right: 15px;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.footer-bottom {
  text-align: center;
  padding: 0 20px;
  font-family: "Coolvetica", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

footer hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 20px auto;
  width: 90%;
}

.footer-bottom .heart {
  color: #ef4444;
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
}

/* Tablet (max-width: 1024px) */
@media (max-width: 768px) {
  header {
    padding: 15px 25px;
  }

  nav ul li {
    margin-left: 30px;
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding: 40px 0;
    text-align: center;
  }

  .hero-left {
    text-align: center;
    margin: 20px;
  }

  .hero-left h2 {
    font-size: 36px;
  }

  .hero-left p {
    max-width: 500px;
  }

  .hero-right img {
    height: 50vh;
    width: auto;
  }

  .section h3 {
    margin: auto 0;
    text-align: center;
  }

  .populer-top,
  .populer-bottom,
  .bottom-right-top {
    flex-direction: column;
    align-items: center;
  }

  .top-right,
  .bottom-container {
    width: 100%;
    align-items: center;
  }

  .img-wrapper img {
    width: 100%;
    height: auto;
  }

  .pelajari-card {
    flex-direction: column;
    max-height: none;
    width: 90%;
  }

  .pelajari-left img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
  }

  .pelajari-right {
    margin: 15px;
  }

  .footer {
    padding: 40px 5%;
  }

  .footer-container {
    gap: 30px;
  }
}

/* Smartphone (max-width: 600px) */
@media (max-width: 600px) {
  header {
    padding: 15px 20px;
    flex-direction: row;
    justify-content: space-between;
  }

  header h1 {
    font-size: 14px;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #f8f8f8;
    transition: 0.3s;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  nav ul li a {
    font-size: 16px;
    display: block;
    width: 100%;
  }

  nav ul::after {
    display: none;
  }

  .section h3 {
    font-size: 22px;
    margin: 0 0 20px 0;
    text-align: center;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-left h2 {
    font-size: 32px;
  }

  .hero-left p {
    font-size: 16px;
  }

  .hero-right {
    display: none;
  }

  .populer-container {
    gap: 15px;
  }

  .img-wrapper .img-overlay h3 {
    font-size: 18px;
  }

  .img-wrapper .img-overlay p {
    font-size: 14px;
  }

  .pelajari-right p {
    font-size: 14px;
  }

  .footer {
    padding: 30px 5%;
  }

  .footer-container {
    flex-direction: column;
    gap: 25px;
  }

  .footer-section {
    flex: 1 1 100%;
  }

  footer hr {
    width: 100%;
  }
}
