@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Spartan", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Global Styles */
h1 {
  font-size: 50px;
  line-height: 64px;
  color: #222;
}

h2 {
  font-size: 46px;
  line-height: 54px;
  color: #222;
}

h4 {
  font-size: 20px;
  color: #222;
}

h5 {
  font-size: 15px;
  color: #222;
}

h6 {
  font-weight: 700;
  font-size: 12px;
}

p {
  font-size: 16px;
  color: #465b52;
  margin: 15px 0 20px 0;
}

.section-p1 {
  padding: 40px 80px;
}

.section-m1 {
  margin: 40px 0;
}

body {
  width: 100%;
}

/* Header */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
  background: sky;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  z-index: 999;
  position: sticky;
  top: 0;
  left: 0;
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

#navbar li {
  list-style: none;
  padding: 0 20px;
  position: relative;
}

#navbar li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
  color: #088178;
}

#navbar li a.active::after,
#navbar li a:hover::after {
  content: "";
  width: 30%;
  height: 2px;
  background: #088178;
  position: absolute;
  bottom: -4px;
  left: 20px;
}

.logo {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* Beranda */
#hero {
  background-image: url("images/suasanadanautempe.jpg");
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  padding-top: 80px;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

#hero h1,
#hero h2,
#hero h4,
#hero p,
#hero button {
  position: relative;
  z-index: 2;
  color: #fff;
}

#hero h4 {
  padding-bottom: 15px;
  color: whitesmoke;
}

#hero h1 {
  color: #088178;
}

#hero button {
  background-image: url("images/tombol-marketplace.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  width: 350px;
  height: 120px;
  cursor: pointer;
  color: #088178;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  line-height: 80px;
  transition: 0.3s ease;
}

#feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#feature .fe-box {
  width: 180px;
  text-align: center;
  padding: 25px 15px;
  box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
  border: 1px solid #cce7d0;
  border-radius: 4px;
  margin: 15px 0;
}

#feature .fe-box:hover {
  box-shadow: 10px 10px 54px rgba(70, 62, 221, 0.1);
}

#feature .fe-box img {
  width: 100%;
  margin-bottom: 10px;
}

#feature .fe-box h6 {
  display: inline-block;
  padding: 9px 8px 6px 8px;
  line-height: 1;
  border-radius: 4px;
  color: #088178;
  background-color: oldlace;
}

#produk-unggulan {
  text-align: center;
  padding: 60px 80px;
}

#produk-unggulan h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #1a1a1a;
  text-align: center;
}

#produk-unggulan p {
  font-size: 16px;
  color: #465b52;
  margin-bottom: 50px;
  text-align: center;
}

.produk-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  justify-items: center;
}

.produk {
  background: #fff;
  border: 1px solid #e3e6f3;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.3s ease;
  width: 230px;
  text-align: center;
}

.produk:hover {
  transform: translateY(-10px);
}

.produk img {
  width: 100%;
  height: 200px;
  object-fit: contain; /* <-- agar gambar tidak terpotong */
  border-radius: 8px;
  margin-bottom: 15px;
}

.produk h4 {
  font-size: 18px;
  font-weight: 600;
  color: #088178;
  text-align: center; /* <-- teks di tengah */
  margin-top: 10px;
}

/* Produk */
.produk-tangkapan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}

.produk-tangkapan {
  background: #fff;
  border: 1px solid #e3e6f3;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.3s ease;
  width: 230px;
  text-align: left;
}

.produk-tangkapan:hover {
  transform: translateY(-10px);
}

.produk-tangkapan h4 {
  font-size: 18px;
  font-weight: 600;
  color: #088178;
  text-align: left;
  margin-top: 10px;
}

.produk-tangkapan img {
  width: 100%;
  height: 200px;
  object-fit: contain; /* <-- agar gambar tidak terpotong */
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Tentang Kami */
#tentang-kami {
  text-align: center;
  padding: 60px 80px;
}

.visi-misi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  justify-items: center;
}

.visi-misi {
  background: #fff;
  border: 1px solid #e3e6f3;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.3s ease;
  width: 460px;
  text-align: center;
}

.visi-misi:hover {
  transform: translateY(-10px);
}

.visi-misi h4 {
  font-size: 18px;
  font-weight: 600;
  color: #088178;
  text-align: center; /* <-- teks di tengah */
  margin-top: 10px;
}



/* Responsive for tablets and mobile */

@media screen and (max-width: 768px) {
  .section-p1 {
    padding: 30px 40px;
  }

  .section-m1 {
    margin: 30px 0;
  }

  #header {
    padding: 15px 40px;
  }

  #navbar li {
    padding: 0 10px;
  }

  h1 {
    font-size: 38px;
    line-height: 48px;
  }

  h2 {
    font-size: 34px;
    line-height: 44px;
  }

  h4 {
    font-size: 18px;
  }

  p {
    font-size: 15px;
    margin: 10px 0 15px 0;
  }

  #hero {
    padding-top: 60px;
  }

  #hero button {
    width: 260px;
    height: 90px;
    font-size: 16px;
    line-height: 60px;
  }

  #feature {
    justify-content: center;
    gap: 15px;
  }

  #feature .fe-box {
    width: 130px;
    padding: 20px 10px;
    margin: 10px 5px;
  }
  
  #produk-unggulan {
    padding: 40px 40px;
  }

  #produk-unggulan h2 {
    font-size: 28px;
  }

  .produk-container,
  .produk-tangkapan-container,
  .visi-misi-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
  }

  .produk,
  .produk-tangkapan,
  .visi-misi {
    width: 100%;
    max-width: 320px;
  }

  .produk img,
  .produk-tangkapan img {
    height: 150px;
  }

  #tentang-kami {
    padding: 40px 40px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 28px;
    line-height: 36px;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  h4 {
    font-size: 16px;
  }

  p {
    font-size: 14px;
  }

  #header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  #navbar {
    justify-content: flex-start;
    width: 100%;
    margin-top: 10px;
  }

  #navbar li {
    padding: 0 8px;
  }

  #hero button {
    width: 100%;
    max-width: 260px;
    height: 70px;
    font-size: 14px;
    line-height: 48px;
  }

  #feature {
    flex-direction: column;
    align-items: center;
  }

  #feature .fe-box {
    width: 100%;
    max-width: 280px;
    padding: 15px 10px;
  }

  .produk-container,
  .produk-tangkapan-container,
  .visi-misi-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .produk,
  .produk-tangkapan,
  .visi-misi {
    width: 100%;
    max-width: 100%;
  }

  .produk img,
  .produk-tangkapan img {
    height: 120px;
  }

  .section-p1 {
    padding: 20px 20px;
  }

  .section-m1 {
    margin: 20px 0;
  }

  #produk-unggulan {
    padding: 20px 20px;
  }

  #tentang-kami {
    padding: 20px 20px;
  }

  h5 {
    font-size: 13px;
  }

  h6 {
    font-size: 10px;
  }
}
