:root {
  --primary: #261b66;
  --bg: #f8f8f8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}
body {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  background-color: var(--bg);
  color: #91a1af;
  height: 100%;
}

/*navbar*/

/*hero section*/
.hero {
  margin-top: 3rem;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero img {
  width: 100%;
}

.hero .content {
  position: absolute;
  top: 50%;
  left: 20px; /* Geser ke kiri dengan jarak 20px, sesuaikan sesuai kebutuhan */
  transform: translateY(
    -50%
  ); /* Hanya geser vertikal agar tetap di tengah secara vertikal */
  text-align: left; /* Teks rata kiri */
  color: #292828;
}

.hero .content h1 {
  font-size: 1.9rem;
  display: block;
}

.hero .content p {
  font-size: 1rem;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 1.2rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px
    rgba(rgba(1, 1, 3, 1), rgb(234, 238, 234), rgb(23, 23, 235), alpha);
  mix-blend-mode: difference;
  transition: background-color 0.3s ease;
}

.hero .content .cta:hover {
  background-color: #a3a3ad; /* Warna hover */
}

/*about section*/
.about,
.kategori {
  padding: 10rem 7% 1.4rem;
}

.about h2,
.kategori {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.about h2 span,
.kategori h2 span {
  color: #453bd4;
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 45rem;
}

.about .row .about-img {
  width: 50%;
}

.about .row .content {
  flex: 0 1rem;
}

.about .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 100;
  line-height: 1.6;
}

/* Kategori Start */
#kategori h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #333;
}
/* Kategori End */

/* Styling untuk Kategori Section */
.kategori {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.kategori h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

.kategori-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 1rem;
}

.kategori-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 30%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 0.6rem;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}

.kategori-item .card {
  width: 320px;
  margin: 1rem;
}

.kategori-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.kategori-item img {
  width: 100%;
  height: auto;
}

.kategori-item h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 15px 0 10px;
}

.kategori-item p {
  font-size: 14px;
  color: #555;
  padding: 0 10px;
  margin-bottom: 10px;
}

.kategori-item .price {
  font-size: 16px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 15px;
}

.kategori-item a {
  text-decoration: none;
  color: inherit;
}

.btn-lihat-produk {
  background-color: #37393a;
  color: #fff;
  border: none;
  padding: 1rem; /* Spasi dalam */
  border-radius: 10px; /* Sudut membulat */
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.btn-lihat-produk:hover {
  background-color: #0056b3;
}

/* Styling untuk More Info Section */
.more-info {
  text-align: center;
  margin: 50px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.more-info h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.btn-more-info {
  display: inline-block;
  background-color: #171718;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-more-info a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.btn-more-info:hover {
  background-color: #1004be;
  transform: scale(1.05);
}

.why-us {
  padding: 40px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.why-us h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.why-us-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Kolom responsif */
  gap: 20px; /* Jarak antar elemen */
  padding: 20px;
}

.why-us-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.why-us-item img {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.why-us-item h3 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
}

.why-us-item p {
  font-size: 1em;
  color: #555;
}

.why-us-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Container */
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-column {
  flex: 1 1 calc(25% - 20px);
  min-width: 200px;
}

.footer-column a {
  color: white; /* Ubah warna teks menjadi putih */
  text-decoration: none; /* Hilangkan garis bawah */
  transition: color 0.3s; /* Transisi warna saat hover */
}

.footer-column a:hover {
  color: #b3b1ac; /* Warna saat hover */
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #a5a5b4;
}

.footer-column p,
.footer-column ul {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #b3b1ac;
}

/* Social Media Icons */
.footer .footer-container .footer-column .social-icons a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #f0a500;
}

/* Footer Bottom */
.footer-bottom {
  justify-content: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

/*media queries*/

@media screen and (max-width: 768px) {
  .hero {
    margin-top: 4.8rem;
  }

  .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;
  }
}

