:root {
  --primary-color: ##009c9c;
  --secondary-color: #010101;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--secondary-color);
  color: #fff;
}

/* Navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(1, 1, 1, 0.8);
  border-bottom: 1px solid #009c9c;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #ffff63;
  font-style: italic;
}

.navbar .navbar-logo span {
  color: #009c9c;
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.3rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: #009c9c;
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid #009c9c;
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: #fff;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: #009c9c;
}

#hamburger-menu {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../img/Banner.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(0deg, rgba(1, 1, 3, 1) 8%, rgba(1, 1, 3, 0) 50%);
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
}

.hero .content h1 {
  font-size: 5em;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.8);
  line-height: 1.2;
}

.hero .content h1 span {
  color: #009c9c;
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  font-weight: 100;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  mix-blend-mode: difference;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: #009c9c;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

.hero .content .cta:hover {
  color: #009c9c;
  background-color: #fff;
}

/* About Section */
.about,
.product,
.contact {
  padding: 8rem 7% 1.4rem;
}

.about h2,
.product h2,
.contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}
.about h2 span,
.product h2 span,
.contact h2 span {
  color: #009c9c;
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 45rem;
}

.about .row .about-img img {
  width: 100%;
  padding-right: 1rem;
}

.about .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.about .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.6;
}

/* Product */
.product .row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5rem;
  justify-content: center;
}
.product h2,
.contact h2 {
  margin: 1rem;
}
.product p,
.contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-weight: 100;
  line-height: 1.6;
  margin-bottom: 6rem;
}

.product .row .product-card {
  text-align: center;
  padding: 2rem;
  margin: 1rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.3);
  border-radius: 0.5rem;
  flex: 1 1 30rem;
  position: relative;
}

.product .row .product-card img {
  width: 100%;
}

.product .row .product-card .product-title {
  font-size: 2rem;
  color: #009c9c;
}

.product .row .product-card .product-price {
  font-size: 2rem;
  color: #009c9c;
  margin-top: 0.5rem;
}

.product .row .product-card .product-rating {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.product .row .product-card .product-rating i {
  color: gold;
}

.product .row .product-card .product-rating span {
  color: #666;
  font-weight: 100;
}

.product .row .product-card .product-btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: #009c9c;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

.product .row .product-card .product-btn:hover {
  color: #009c9c;
  background-color: #fff;
}
.original-price {
  text-decoration: line-through;
  color: #888; /* Warna abu-abu untuk menunjukkan harga lama */
  margin-right: 8px;
}

.discount-price {
  color: #e60000; /* Warna merah untuk harga diskon */
  font-weight: bold;
}
.product-img {
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #d9534f;
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
}

/* Contact */
.contact .row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

.contact .row .info {
  text-align: center;
  padding: 2rem;
  margin: 1rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.3);
  border-radius: 0.5rem;
  flex: 1 1 30rem;
  position: relative;
}

.contact .row .info h3 {
  font-size: 2rem;
  color: #009c9c;
}
.contact .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: #fff;
  background-color: #009c9c;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 0.5rem;
  margin-top: 1rem;
  margin: 0 auto;
  text-align: center;
}
.contact {
  text-align: center;
  padding: 8rem 7% 1.4rem;
}

.contact .btn:hover {
  color: #009c9c;
  background-color: #fff;
}

/* Footer */
footer {
  background-color: #009c9c;
  padding: 1rem 7%;
  text-align: center;
  color: #fff;
}
footer .social {
  padding: 1rem 0;
}
footer .social a {
  color: #fff;
  margin: 1rem;
}
footer .social a:hover,
footer .links a:hover {
  color: #000;
}
footer .links {
  margin: 1rem 0;
}
footer .links a {
  color: #fff;
  padding: 0.7rem 1rem;
}
footer .credit {
  font-size: 0.8rem;
}
footer .credit a {
  color: #fff;
  font-weight: 700;
}

/* Media Queries */

/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}
/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }
  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
    background-color: rgba(1, 1, 1, 0.8);
  }

  .navbar .navbar-nav a {
    color: var(--primary-color);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  .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: 2rem;
  }

  .about .row .content p {
    font-size: 1.6rem;
  }
}
/* Mobile */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}
