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

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

html,
body {
  line-height: 1.4;
  font-weight: 300;
  font-family: "Roboto", sans-serif;
}

button {
  padding: 10px 15px;
  border: none;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

button:hover {
  opacity: 0.8;
  transition: 0.2s ease-in-out;
}

/* navigation */
nav {
  box-shadow: 5px 5px 5px rgba(1, 1, 1, 0.05);
  position: sticky;
  top: 0;
  margin-bottom: 32px;
  background: white;
  padding: 20px;
  z-index: 50;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.bar_icon {
  font-size: 32px;
  cursor: pointer;
}

/* container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  display: flex;
  gap: 100px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero_content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tag {
  background-color: #149f39;
  color: #fff;
  padding: 5px 10px;
  align-self: flex-start;
  border-radius: 5px;
}

.hero_content h1 {
  font-size: 72px;
  line-height: 1.2;
  font-weight: 400;
}

.explore_btn {
  background: #ffc066;
  align-self: flex-start;
  border-radius: 5px;
}

/* Features Section */
.features {
  margin-top: 100px;
  margin-bottom: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  gap: 20px;
  padding: 20px;
  transition: 0.2s ease-in-out;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
}

.feature img {
  width: 72px;
}

.feature:hover {
  transition: 0.2 ease-in-out;
  box-shadow: 5px 5px 15px rgba(1, 1, 1, 0.1);
}

.divider {
  border: 2px solid #ccc;
  margin: 40px 0;
}

/* Menu Section */
.menu {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 50px 0;
  align-items: center;
  text-align: center;
}

.menu .tag {
  align-self: center;
}

.grid-imag {
  border-radius: 10px;
  transition: 0.2s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-imag:hover {
  transform: scale(1.05);
  transition: 0.2s ease-in-out;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-areas: 
    "I1 I1 I2 I3"
    "I1 I1 I2 I7"
    "I4 I5 I6 I7";
  padding: 10px;
}

.item1 { grid-area: I1; }
.item2 { grid-area: I2; }
.item3 { grid-area: I3; }
.item4 { grid-area: I4; }
.item5 { grid-area: I5; }
.item6 { grid-area: I6; }
.item7 { grid-area: I7; }

/* Footer Section */
footer {
  background-color: #fff0db;
  margin-top: 50px;
}

.footer_container {
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.link_list h3 {
  margin-bottom: 10px;
  color: gray;
}

.link_list ul {
  list-style: none;
}

.link_list ul li {
  font-size: 16px;
  margin-bottom: 5px;
}

.news_letter h3 {
  margin-bottom: 10px;
  color: gray;
}

.news_letter input {
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.icon_container {
  display: flex;
  gap: 15px;
  font-size: 24px;
}

.icon {
  cursor: pointer;
}

/* ---------------- Responsive Design ---------------- */
@media (max-width: 1024px) {
  .hero {
    gap: 50px;
  }

  .hero_content h1 {
    font-size: 48px;
  }

  .grid {
    grid-template-areas:
      "I1 I1 I2"
      "I1 I1 I3"
      "I4 I5 I6"
      "I7 I7 I7";
  }
}

@media (max-width: 768px) {
  .navigation {
    padding: 0 10px;
  }

  .hero {
    flex-direction: column;
    gap: 30px;
  }

  .hero_image img {
    width: 90%;
  }

  .hero_content h1 {
    font-size: 36px;
    text-align: center;
  }

  .hero_content p {
    text-align: center;
  }

  .hero_content .explore_btn {
    align-self: center;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .grid {
    grid-template-areas:
      "I1"
      "I2"
      "I3"
      "I4"
      "I5"
      "I6"
      "I7";
  }

  .grid img {
    width: 100%;
  }

  .footer_container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero_content h1 {
    font-size: 28px;
  }

  .tag {
    font-size: 14px;
    padding: 3px 8px;
  }

  button {
    padding: 8px 12px;
  }

  .feature {
    max-width: 100%;
  }
}
