:root {
  --base: #fff;
  --primary: #002333;
  --secondary: #5a5a5a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--base);
  min-height: 3000px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 10%;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 99;
}

.navbar .navbar-logo {
  font: 2rem;
  color: var(--primary);
  font-weight: 700;
  font-style: italic;
}

.navbar .navbar-nav a {
  color: var(--primary);
  display: inline-block;
  font-size: 1rem;
  margin: 0 2rem;
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--primary);
  transition: 0.2s linear;
  transform: scaleX(0);
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: var(--primary);
  margin: 0 0.5rem;
}

#hamburger-menu {
  display: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("asset/bg-hero.jpg");
  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,
    rgb(255, 255, 255) 8%,
    rgba(255, 255, 255, 0) 50%
  );
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 70%;
  text-align: center;
}

.hero .content h1 {
  font-size: 5em;
  color: var(--primary);
  line-height: 1.1;
}

.hero .content p {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-top: 1rem;
  line-height: 1.4;
  font-weight: 200;
  /* text-shadow: 1px 1px 3px rgba(1,1,3,0.5); */
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  color: var(--base);
  font-size: 1.4rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px (1, 1, 3, 0.5);
}

.about {
  padding: 10rem 7% 1.4rem;
}

.about h2,
.product h2,
.contact h2 {
  color: var(--primary);
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 30rem;
}
.about .row .about-img img {
  width: 100%;
}
.about .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.about .row .content h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 200;
  color: var(--secondary);
  line-height: 1.6;
}

.product {
  padding: 10rem 7% 1.4rem;
}

.product .row .product-card img {
  width: 80%;
}
.product .row .product-card-title {
  margin-top: 1rem;
}
.product .row .product-card {
  width: 40%;
  margin-bottom: 2.6rem;
}

.product .row {
  gap: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  margin-top: 5rem;
  justify-content: center;
}

.product .row .product-card {
  text-align: center;
}

.product .row .product-card .product-price {
  margin: 1rem auto 0.5rem;
}

.contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-weight: 200;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product h2,
.contact h2 {
  margin-bottom: 1rem;
}

.contact .row form {
  flex: 1 1 45rem;
  padding: 5rem 2rem;
  text-align: center;
}

.contact .row form .input-group {
  margin-top: 2rem;
  background: #002333;
  margin: auto;
  width: 50%;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

.contact .row form .input-group input {
  width: 80%;
  padding: 2rem;
  font-size: 1.7rem;
  background: none;
  color: var(--base);
}

.contact .row form .btn {
  margin-top: 2rem;
  display: inline-block;
  padding: 1rem 3rem;
  color: var(--base);
  background-color: var(--primary);
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
::placeholder {
  color: var(--base);
  opacity: 0.25;
}

footer {
  background-color: var(--primary);
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}
footer .socials {
  padding: 1rem 0;
}
footer .socials a {
  color: var(--base);
  margin: 1rem;
}
footer .links a{
  color: var(--base);
  padding: 0.5rem 1rem;
}
footer .credit {
color: var(--base);
margin: 1.6rem 1rem;
}
/** Media Query */

/** Laptop View */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/** Tablet View */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    background-color: var(--base);
    position: absolute;
    top: 100%;
    right: -100%;
    width: 30rem;
    height: 100vh;
    transition: 0.4s ease-in-out;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--primary);
    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;
  }

  .product .row .product-card {
    width: 30%;
    margin-bottom: 2.6rem;
  }

  .contact .row form .input-group {
    width: 70%;
  }
}

/** Mobile View */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}
