:root {
  --bg: #ffffff;
  --text: #111111;
  --btn: #0070ff;
  --section: #f0f8ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito Sans", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
}

/* navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 1);
}

.navbar .nav-logo {
  font-size: 35px;
  font-weight: 900;
  font-style: italic;
  color: var(--text);
}

.navbar .navbar-nav a {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  margin: 0 16px;
  color: var(--text);
}

.navbar .navbar-nav a:hover {
  color: var(--text);
}

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

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

.navbar .navbar-xtra a {
  color: var(--text);
  margin: 0 8px;
}

.navbar .navbar-xtra a:hover {
  color: var(--btn);
}

#shopping-btn {
  font-size: 20px;
}

/* cart count notif */
.cart-count {
  position: absolute;
  right: 18px;
  bottom: 22px;
  padding: 1px 3px;
  font-size: 10px;
  background-color: red;
  color: var(--bg);
  border-radius: 10px;
}

#hamburger-menu {
  display: none;
}

/* hero */
.hero {
  min-height: 100vh;
  padding: 50px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero .circle-bg {
  width: 500px;
  height: 500px;
  background-color: var(--btn);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-align: center;
}

.hero .content h1 {
  color: var(--bg);
  font-size: 48px;
  font-weight: 900;
  line-height: 50px;
  margin: 0 0 10px 0;
}

.hero .content h1 span {
  color: var(--text);
  background-image: linear-gradient(to top, var(--bg) 20%, transparent 70%);
  margin: 0;
  padding: 0 4px; /* padding horizontal agar background tampak */
  border-radius: 4px;
}

.hero .content p {
  font-size: 18px;
  font-weight: 600;
  padding: 0 50px;
  margin: 30px 0 15px 0;
  color: rgba(255, 250, 240, 1);
}

.btn {
  /* outline: none; */
  cursor: pointer;
  padding: 14px 30px;
  margin: 0;
  font-size: 17px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
  font-weight: 800;
  border: 1px solid var(--text);
  border-radius: 500px;
  overflow: hidden;
  background: var(--text);
  color: var(--btn);
  transition: color 0.3s;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 10;
  /* transition: color 0.4s; */
}

/* animasi background */
.btn::before {
  content: "";
  background: var(--bg);
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  z-index: 0;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.btn:hover::before {
  transform: translate3d(100%, 0, 0);
}

/* efek teks saat hover */
.btn:hover {
  color: var(--bg);
}

/* jual produk section */
.wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.produk {
  margin: 100px;
}

.produk h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 30px;
  font-weight: 900;
}

.produk .produk-item {
  position: relative;
  width: 300px;
  height: 150px;
  background-color: var(--section);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.produk .produk-item span {
  width: 48px;
  text-align: center;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.produk-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.produk .produk-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--section);
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.produk-item:hover .produk-content {
  transform: rotateX(0deg);
}

.produk .produk-title {
  margin: 0;
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
}

.produk-item:hover span {
  scale: 0;
}

.produk .produk-desc {
  margin: 10px 0 0;
  font-size: 14px;
  color: #575757;
  line-height: 1.4;
}

/* about */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin: 100px;
}

.about img {
  width: auto;
  height: 300px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(1, 1, 1, 0.5);
}

.about .about-me h2 {
  font: 25px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.about .about-me p {
  font-size: 16px;
  margin: 0 0 20px 0;
}

/* layanan */
.layanan {
  text-align: center;
  margin: 100px;
}

.layanan h2 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 20px 0;
}

.layanan p {
  font-size: 16px;
  margin: 0 0 20px 0;
}

/* contact */
.contact {
  text-align: center;
  margin: 100px;
}

.contact h2 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 20px 0;
}

.contact p {
  font-size: 16px;
  margin: 0 0 20px 0;
}

/* halaman contact html */
.form-container {
  padding: 120px 0;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
}

.form-container .header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 0 50px 0;
}

.form-container .header h1 {
  font-size: 50px;
  font-weight: 900;
  margin: 20px 0;
}

.form-container .header span {
  color: var(--bg);
  background-color: var(--btn);
  margin: 0;
  padding: 0 8px; /* padding horizontal agar background tampak */
  border-radius: 10px;
}

.form-container .header p {
  font-size: 16px;
  font-weight: 600;
  padding: 0 100px;
}

.form-container .button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container #form-brief {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 600px;
  width: 100%;
}

.form-container #form-brief label {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 0 0;
}

.form-container #form-brief input,
.form-container #form-brief select {
  padding: 10px;
  border: 0.8px solid var(--text);
  border-radius: 10px;
  background-color: var(--section);
  /* box-shadow: 2px 2px 4px rgba(1, 1, 1, 0.5); */
  margin-top: 8px;
}

.form-container #form-brief textarea {
  width: auto;
  height: 150px;
  padding: 8px;
  border: 0.8px solid var(--text);
  border-radius: 10px;
  background-color: var(--section);
  /* box-shadow: 2px 2px 4px rgba(1, 1, 1, 0.5); */
  font-family: "Nunito Sans", sans-serif;
}

/* Checkbox jadi 2 kolom */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 kolom sama lebar */
  gap: 8px 8px; /* jarak vertikal 8px, horizontal 16px */
  margin-top: 8px;
}

.checkbox-group p {
  font-weight: 500; /* Biar teks checkbox lebih ringan dari label utama */
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  transform: scale(1.2);
  cursor: pointer;
}

#form-brief button {
  margin: 30px auto;
  width: 100%;
  max-width: 200px;
  padding: 10px;
  font-weight: 800;
  font-size: 18px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background-color: var(--btn);
  color: var(--section);
}

#form-brief button:hover {
  background-color: var(--text);
  color: var(--section);
}

/* modal dialog form brief */
.modal {
  display: none;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  position: fixed;
  background-color: rgba(1, 1, 1, 0.5);
}

.modal-content {
  background-color: var(--section);
  margin: 19% auto;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.close-btn {
  color: var(--text);
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--btn);
}

/* pricelist */
.pricelist {
  padding: 120px 0;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pricelist .header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
}

.pricelist .header h2 {
  font-size: 50px;
  font-weight: 900;
}

.pricelist .header span {
  color: var(--bg);
  background-color: var(--btn);
  margin: 0;
  padding: 0 8px; /* padding horizontal agar background tampak */
  border-radius: 10px;
}

.pricelist .header p {
  font-size: 16px;
  font-weight: 600;
  padding: 0 100px;
}
/* Layout dua kolom */
.pricelist .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  padding: 0 40px;
  margin: 50px 0;
}

/* Card style */
.pricelist .column {
  background-color: #e6e6e6;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricelist .column:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Heading dan harga */
.pricelist .column h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.pricelist .column p:first-of-type {
  font-size: 18px;
  font-weight: bold;
  color: var(--btn);
}

/* Daftar fitur */
.pricelist .fitur {
  margin-top: 10px;
  padding-left: 20px;
}

.pricelist .fitur li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Indentasi list di dalam list */
.pricelist .fitur ol {
  padding-left: 20px;
  margin-left: 0;
}

.pricelist .fitur ol > li {
  margin-bottom: 8px;
  font-weight: 600;
}

/* ul di dalam ol menjorok ke dalam */
.pricelist .fitur ol ul {
  margin-top: 5px;
  margin-bottom: 10px;
  padding-left: 25px;
  list-style-type: disc; /* bisa diubah jadi circle/square */
  font-weight: normal;
}

/* Supaya tampilan tetap konsisten */
.pricelist .fitur ul li {
  margin-bottom: 4px;
  line-height: 1.4;
}

/* halaman digiproduct */
/* .products {
  margin: 0 20px 30px 20px;
} */

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 100px 20px;
  gap: 20px;
}

.product-card {
  text-align: center;
  background-color: var(--section);
  border-radius: 10px;
}

.product-image {
  padding: 20px 0;
}

.product-title h1 {
  font-size: 22px;
  color: var(--text);
  justify-content: center;
}

.product-desc p {
  font-weight: 500;
  color: #333;
  padding: 0 10px;
}

.product-price span {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  justify-content: center;
}

.product-icons,
.product-view {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-icons a,
.product-view a {
  gap: 6px;
  padding: 5px 10px;
  margin: 10px 0;
  border: 1px solid var(--text);
  border-radius: 5px;
  color: var(--btn);
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-icons a:hover,
.product-view a:hover {
  color: var(--bg);
  background-color: var(--text);
}

.product-icons span,
.product-view span {
  font-weight: 600;
  font-size: 14px;
}

/* cart overlay form checkout */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(1, 1, 1, 0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-box {
  background-color: var(--bg);
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  overflow-y: auto;
  max-height: 90vh;
  margin-top: 100px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-header span {
  cursor: pointer;
  font-weight: 700;
  border: 1px solid var(--text);
  padding: 0 5px;
  border-radius: 3px;
}

.cart-items {
  margin: 15px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px 0;
}

.cart-item span {
  flex: 1;
}

.cart-item .cart-minus,
.cart-item .cart-plus {
  border-radius: 5px;
  background-color: var(--btn);
  border: none;
  padding: 4px 8px;
  color: var(--bg);
  font-weight: 700;
  align-items: center;
  margin: 0 7px;
}

.cart-total {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 10px;
}

.checkout-form {
  width: 100%;
  margin: 0 0 10px 0;
  padding: 8px;
  display: grid;
  /* justify-content: center; */
}

.checkout-form input {
  margin: 0 0 15px 0;
  padding: 6px;
  border: 1px solid var(--text);
  border-radius: 8px;
}

.checkout-form h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 900;
  padding: 0 0 10px 0;
}

.checkout-form button {
  width: 100%;
  padding: 10px;
  background-color: var(--bg);
  color: var(--text);
  border-radius: 50px;
  border: 1px solid var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}

.checkout-form button:hover {
  background-color: var(--btn);
  border: 1px solid var(--btn);
  color: var(--bg);
}

/* footer */
footer {
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: grid;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--text);
}

footer .social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 20px 0 15px 0;
}

footer .social a {
  color: var(--bg);
  font-size: 30px;
}

footer .menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 0 10px 0;
}

footer .menu a {
  color: var(--section);
  font-weight: 700;
}

footer .menu a:hover {
  color: var(--btn);
}

footer .web {
  background: linear-gradient(to top, var(--btn) 10%, transparent 50%);
  border-radius: 10px;
  padding: 0 15px;
  margin-bottom: 20px;
}

footer .web p {
  font-size: 50px;
  font-weight: 1000;
  font-style: italic;
  color: var(--section);
}

footer .credit {
  margin-bottom: 20px;
}

footer .credit,
footer .credit a {
  color: var(--bg);
  font-size: 12px;
}

footer .credit a:hover {
  color: var(--btn);
}

/* media query */
/* tablet */
@media (max-width: 768px) {
  html {
    font-size: 65%;
  }

  .navbar {
    padding: 18px 20px;
  }

  #hamburger-menu {
    display: inline-block;
    font-size: 20px;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: var(--section);
    height: 100vh;
    width: 480px;
    transition: 0.3s;
  }

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

  .navbar .navbar-nav a {
    color: var(--text);
    display: block;
    margin: 24px;
    padding: 8px;
    font-size: 24px;
  }

  .cart-count {
    right: 60px;
    bottom: 35px;
    font-size: 14px;
  }

  .row {
    margin: 100px 20px;
  }

  .produk .wrapper {
    display: grid;
  }

  .produk .produk-item span {
    font-size: 16px;
  }

  .product-desc p {
    font-size: 14px;
  }

  .about {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
  }

  .about .about-me {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .about .about-me p {
    text-align: center;
  }

  .about .about-me h3 {
    font-size: 20px;
  }

  .form-container .header h1 {
    font-size: 36px;
  }

  .form-container .header p {
    padding: 0 40px;
    font-size: 14px;
  }

  .form-container #form-brief {
    margin: 0 auto;
  }

  #form-brief button {
    margin: 30px auto;
    width: 100%;
    max-width: 200px;
  }

  .modal-content {
    margin: 60% auto;
  }

  .pricelist .row {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .pricelist .column {
    padding: 20px;
  }

  .cart-header span {
    font-size: 16px;
    font-weight: 800;
  }

  .cart-item {
    font-size: 16px;
    margin: 0 0 10px 0;
  }

  .cart-item .cart-minus,
  .cart-item .cart-plus {
    border-radius: 50%;
    background-color: var(--btn);
    border: none;
    padding: 4px 8px;
    color: var(--bg);
    font-weight: 700;
    align-items: center;
    margin: 0 7px;
  }

  .cart-total {
    font-size: 16px;
  }
}

/* handphone */
@media (max-width: 480px) {
  html {
    font-size: 55%;
  }

  .container {
    width: auto;
    margin: 0 auto;
  }

  .navbar {
    padding: 16px 20px;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: var(--section);
    height: 100vh;
    width: 300px;
    transition: 0.3s;
  }

  .navbar .navbar-nav a {
    font-size: 22px;
    margin: 22px;
    padding: 0;
  }

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

  .hero .circle-bg {
    width: 350px;
    height: 550px;
    background-color: var(--btn);
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    text-align: center;
  }

  .hero .content {
    margin: 0;
    padding: 0;
  }

  .hero .content h1 {
    font-size: 50px;
    margin-bottom: 20px;
    line-height: 70px;
  }

  .row {
    margin: 100px 15px;
  }

  .produk h2 {
    font-size: 30px;
  }

  .produk .produk-item span {
    font-size: 16px;
  }

  .product-desc p {
    font-size: 14px;
  }

  .about {
    margin: 0 50px;
  }

  .about img {
    width: auto;
    height: 220px;
  }

  .about .about-me {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about .about-me h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .about .about-me p {
    font-size: 16px;
    font-weight: 600;
  }

  .contact,
  .layanan {
    margin: 50px 50px;
    padding: 0;
  }

  .contact h2,
  .layanan h2 {
    font-size: 30px;
  }

  .contact p,
  .layanan p {
    font-size: 16px;
    font-weight: 600;
  }

  .form-container {
    padding: 100px 20px;
  }

  .form-container .header h1 {
    font-size: 28px;
    text-align: center;
  }

  .form-container .header p {
    padding: 0 10px;
    font-size: 14px;
    text-align: justify;
  }

  .form-container #form-brief {
    margin: 0 auto;
  }

  #form-brief button {
    margin: 30px auto;
    width: 100%;
    max-width: 200px;
  }

  .checkbox-group {
    grid-template-columns: 1fr; /* jadi 1 kolom di layar kecil */
    margin-top: 8px;
  }

  .checkbox-group p {
    font-size: 16px;
    gap: 5px;
  }

  .modal-content {
    margin: 300px auto;
  }

  .modal-content p {
    font-size: 16px;
  }

  .cart-overlay {
    align-items: flex-start; /* agar cart muncul di atas, bukan tengah */
    overflow-y: auto; /* supaya bisa scroll kalau isi melebihi tinggi layar */
    padding: 30px 0; /* jarak atas dan bawah dari layar */
  }

  .cart-box {
    margin-top: 100px; /* jarak tambahan dari atas */
    max-height: 90vh; /* agar tidak terlalu tinggi dan bisa scroll */
  }

  .pricelist .column {
    font-size: 14px;
  }

  .pricelist .header p {
    margin: 10px 0;
    padding: 0 20px;
  }

  footer .menu {
    display: grid;
    margin: 30px 0 40px 0;
  }

  footer .menu a {
    font-size: 18px;
  }

  footer .web p {
    font-size: 45px;
  }

  footer .credit p,
  footer .credit a {
    font-size: 14px;
  }
}
