* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", serif;
}

body {
  background-color: #f9fbe7;
}

/* Rotating text */
.tagline {
  font-size: 40px;
  font-weight: 100;
  text-align: center;
  margin-top: 50px;
  text-align: left;
  font-weight: bold;
}

#rotating-text {
  color: #25d366; /* hijau ala WhatsApp */
  font-weight: bold;
  transition: opacity 0.5s ease-in-out;
}

.container {
  width: 80%;
  margin-inline: auto;
}

@media (max-width: 992px) {
  .container {
    width: 90%;
  }
}

/* Navbar */
.navbar {
  padding: 20px 0 20px 0;
}

.navbar-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-box .menu {
  display: flex;
  gap: 40px;
}

.navbar-box .menu li {
  list-style-type: none;
}

.navbar-box .menu li a {
  text-decoration: none;
  color: black;
  font-size: 16px;
}

.navbar-box .menu li a:hover {
  border-bottom: 3px solid rebeccapurple;
}

.navbar-box .ri-menu-3-line {
  display: none;
}

@media (max-width: 768px) {
  .navbar-box .ri-menu-3-line {
    display: block;
    font-weight: bold;
  }

  .navbar-box .menu {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    text-align: center;
    background-color: rebeccapurple;
    width: 100%;
    padding: 10% 0 10% 0;
    transition: all 0.2 ease-in-out;
    opacity: 0;
  }

  .navbar-box .menu.menu-active {
    top: 100px;
    opacity: 1;
  }
  .navbar-box .menu li a {
    color: white;
    font-size: 20px;
    text-decoration: underline;
  }
}
/* navbar */

/* hero */
.hero {
  padding-top: 60px;
}

.hero-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.hero-box h1 {
  font-size: 54px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: rebeccapurple;
}

.hero-box p {
  line-height: 2;
  margin-bottom: 30px;
}

.hero-box a {
  text-decoration: none;
  background-color: rebeccapurple;
  color: white;
  padding: 10px 20px 10px 20px;
  border-radius: 5px;
}

.hero-box img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

@media (max-width: 768px) {
  .hero-box {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 70px;
  }
}
/* hero */

/* layanan */
.layanan {
  padding-top: 150px;
  padding-bottom: 150px;
  font-size: small;
}

.layanan-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.layanan-box .box {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  padding: 20px;
}

.layanan-box .box:hover {
  background-color: rebeccapurple;
}

.layanan-box .box:hover > * {
  color: white;
}

.layanan-box .box i {
  color: rebeccapurple;
}

.layanan-box .box h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .layanan-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .layanan-box {
    grid-template-columns: 1fr;
  }
}
/* layanan */

/* Produk */
.produk {
  padding-bottom: 150px;
}

.produk-box h1 {
  text-align: center;
  margin-bottom: 30px;
}

.produk-box ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.produk-box ul li {
  list-style-type: none;
  background-color: white;
  padding: 10px;
  border-radius: pointer;
}

.produk-box ul li.active {
  background-color: rebeccapurple;
  color: white;
}

.produk-box .produk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.produk-box .produk-list img {
  width: 250px;
  height: 200px;
  background-color: white;
  padding: 2px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.produk-box .produk-list img:hover {
  background-color: rebeccapurple;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .produk-box .produk-list img {
    width: 200px;
    height: 150px;
  }
}

@media (max-width: 475px) {
  .produk-box .produk-list img {
    width: 150px;
    height: 140px;
  }
}

.harga {
  padding-top: 100px;
}

.harga ul li {
  display: flex;
  text-decoration: none;
}

/* Produk */

/* Kontak */
.kontak .box {
  width: 100%;
  height: 100%;
  background-color: #25d366;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
  padding: 20px;
  text-align: center;
}

.kontak p a {
  color: white;
  text-decoration: none;
}

/* Kontak */

/* Tentang Kami */
.about .about-box h2 {
  text-align: center;
  justify-content: center;
  margin-bottom: 10px;
}

.about .about-box .foto-container {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.about .about-box .foto-container img {
  width: 30%;
  height: 10%;
  height: auto;
  border-radius: 8px;
}

.about .about-box .text-container {
  max-width: 65ch;
  margin: 0 auto;
  padding: 1rem;
  font-size: 16px;
  line-height: 1.6;
}

.about .about-box .text-container p {
  margin: 0 0 1rem 0;
  text-align: justify;
  overflow-wrap: break-word;
}

.text-container p:last-child {
  margin-bottom: 0;
}
/* Tentang Kami */

/* Footer */
.footer {
  background-color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p span {
  font-weight: bold;
  color: rebeccapurple;
}

.footer .box:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer .box i {
  cursor: pointer;
}

.footer .box i:hover {
  color: rebeccapurple;
}

@media (max-width: 768px) {
  .footer {
    gap: 20px;
  }

  .footer p {
    font-size: 4px;
  }

  .footer .box:nth-child(2) {
    gap: 10px;
  }
}
/* Footer */
