@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&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");

body,
html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* navbar */
nav {
  position: fixed;
  top: 3px;
  width: 98%;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);

  padding: 8px;
  display: flex;
  justify-content: space-between;
  background-color: #ff8a1f;
  border-radius: 25px;
  -webkit-border-radius: 25px;
  -moz-border-radius: 25px;
  -ms-border-radius: 25px;
  -o-border-radius: 25px;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
.logo > img {
  height: 40px;
}

ul {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  list-style: none;
}
li a {
  text-decoration: none;
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 10px;
}

li a:hover {
  transition: all;
  color: #fff3e0;
  -webkit-transition: all;
  -moz-transition: all;
  -ms-transition: all;
  -o-transition: all;
}

.contact-me a {
  padding: 10px 20px;
  background-color: rgb(255, 255, 255);
  color: black !important;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}

.contact-me a:hover {
  background-color: #f5e7c6;
  color: white !important;
  transition: all;
  -webkit-transition: all;
  -moz-transition: all;
  -ms-transition: all;
  -o-transition: all;
}

.nav-mobile {
  display: none;
}

.hero {
  background-color: #fff7ed;

  height: 100vh;
  display: flex;
  justify-content: start;
}
.hero-content {
  margin: 40px;
  width: 50%;
  margin-top: 210px;
}
.hero-content h1 {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: #333;
  line-height: 1.2;
}

.hero-content p {
  font-family: "Lato", sans-serif;
  font-size: 1.2rem;
  color: #555;
  margin-top: 20px;
  width: 80%;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-explore {
  padding: 20px 24px;
  background-color: #ff8a1f;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: background-color 0.3s;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.btn-explore:hover {
  background-color: #e67300;
}

.hero-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: auto;
}

.recep-list {
  height: 100vh;
  padding: 40px;
  background-color: #ffffff;
  width: 50%;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: "Lato", sans-serif;
  font-size: 2.5rem;
  color: #333;
}
.section-header p {
  width: 40%;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  color: #666;
  margin: auto;
  align-items: center;
  padding-bottom: 30px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  width: 85%;
  margin: auto;
}

.recipe-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.recipe-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.recipe-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.recipe-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.recipe-meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.btn-detail {
  font-family: "Poppins", sans-serif;
  margin-top: auto;
  background-color: #ff8a1f;
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}
.btn-detail:hover {
  background-color: #e67300;
}

/* footer */
.footer {
  margin-top: 50px;
  background-color: #1f1f1f;
  color: #ccc;
  padding: 40px 20px 25px;
  text-align: center;
}

.footer-brand img {
  width: 140px;
  margin-bottom: 15px;
}

.footer-brand p {
  max-width: 500px;
  margin: 0 auto 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #aaa;
}

.footer-copy {
  font-size: 0.85rem;
  color: #888;
}

.footer-copy strong {
  color: #ff9f43;
}

/* =============================== */

/* media quary */

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile {
    display: block;
    position: fixed;
    top: 5px;
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-header {
    background-color: #ff8a1f;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .mobile-header .logo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
  }

  .mobile-header .logo {
    margin-left: -20px;
  }

  .hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
  }

  .mobile-menu {
    position: absolute;
    margin-top: 3px;
    top: 70px;
    left: 0;
    right: 0;
    width: auto;
    background-color: #ff8a1f;
    border-radius: 20px;
    padding: 20px;
    display: none;
    text-align: center;
  }

  .mobile-menu ul {
    flex-direction: column;
    list-style: none;
    padding: 0;
  }

  .mobile-menu li {
    margin: 10px 0;
  }

  .mobile-menu li a {
    color: white;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
  }

  #check {
    display: none;
  }

  #check:checked ~ .mobile-menu {
    display: block;
  }

  #check:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
  }
  #check:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #check:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
  }

  .hero {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding-bottom: 40px;
  }
  .hero-content {
    width: 90%;
    margin-top: 100px;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    width: 100%;
  }
  .hero-image {
    display: none;
  }
  .recep-list {
    width: 90%;
    height: auto;
    padding: 20px;
  }
  .section-header p {
    font-size: 1rem;
    width: 80%;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }


}
