/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 4rem;

  /*========== Colors ==========*/
  --first-color: #ff3131;
  --first-color-alt: #fff;
  --title-color: #232323;
  --logo-dark-color: #162328;
  --text-color: #000;
  --text-color-light: #6c6c6c;
  --body-color: #fffffff4;
  --container-color: #fdfdfd;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /*========== Font and Typography ==========*/
  --body-font: "Poppins", sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font Weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margins ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== Z-index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: var(--header-height);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

html,
body {
  overflow-x: hidden;
}

/*========== CSS Reset ==========*/
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: #fff;
  --text-color: #e8e8e8;
  --text-color-light: #838385;
  --body-color: #071720;
  --container-color: #172a31;
  --logo-dark-color: #f1f3f2;
  --shadow-color: rgba(214, 214, 214, 0.1);
}

/*========== Button Dark/Light ==========*/
.change-theme {
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  color: var(--text-color);
  font-size: 1.3rem;
  cursor: pointer;
}

/*========== CLASS CSS ==========*/
.section {
  padding: 7rem 0 2rem;
}
.section-title,
.section-subtitle {
  text-align: center;
}
.section-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
}
.section-subtitle {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/*========== LAYOUT ==========*/
.bd-container {
  max-width: 960px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}
.bd-grid {
  display: grid;
  gap: 1.5rem;
}
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*========== NAV ==========*/
.nav {
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .nav_menu {
    position: fixed;
    top: -100%;
    left: 10%;
    width: 80%;
    padding: 2rem 0 1rem;
    text-align: center;
    background-color: var(--container-color);
    transition: 0.4s;
    box-shadow: 0 4px 4px var(--shadow-color);
    border-radius: 1rem;
    z-index: var(--z-fixed);
  }
}
.nav_item {
  margin-bottom: var(--mb-3);
}
.nav_link {
  color: var(--text-color);
  font-weight: var(--font-medium);
}
.hidden_item {
  display: none;
}
.menu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 0;
  visibility: visible;
  z-index: 100;
}
/*Estilização das linhas do menu hambúrguer:*/
.line {
  fill: none;
  stroke: var(--text-color);
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line1 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.line2 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.line3 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: 6;
}
.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
.nav_logo {
  color: var(--logo-dark-color);
  font-size: 1.1rem;
}
.nav_logo span {
  display: block;
  margin-top: -0.8rem;
  color: var(--first-color);
}
.nav_logo:hover {
  color: var(--first-color);
}
.nav_link {
  transition: 0.3s;
}
.nav_link:hover {
  color: var(--first-color);
}

/* Show Menu */
.show-menu {
  top: calc(var(--header-height) + 1rem);
}

/* Active Menu */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 2px 4px var(--shadow-color);
}

/* Scroll Top */
.scrollTop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.3rem;
  background: var(--first-color);
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
  visibility: hidden;
}
.scrollTop:hover {
  background-color: var(--first-color-alt);
}
.scrollTop_icon {
  font-size: 1.8rem;
  color: var(--body-color);
}

/* Show scrollTop */
.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  font-size: 1.8rem;
  border-radius: 35%;
  gap: 10px;
  width: 65px;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;

  /* ini yang penting */
  z-index: 999;
}

/* text sembunyikan dulu */
.whatsapp-btn span {
  display: none;
  font-size: 1rem;
  margin-bottom: 50px;
}

.whatsapp-btn i {
  font-size: 45px; /* atur besar kecil logo, default sekitar 24px */
  text-align: center; /* biar sejajar sama teks */
}

/* efek hover */
.whatsapp-btn:hover {
  border-radius: 20px;
  width: auto;
  padding: 0 20px;
}

.whatsapp-btn:hover span {
  display: flex;
  margin-top: 50px;
}

/*========== HOME ==========*/
.home_container {
  margin-top: -1rem;
  height: calc(100vh - var(--header-height));
  align-content: center;
}
.home_title {
  font-size: var(--big-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}
.home_subtitle {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-4);
}
.home_data {
  margin-top: 200px; /* atur manual sesuai kebutuhan */
}

.home_img {
  max-width: 100%;
  width: 400px;
  margin: auto;
  justify-self: center;
  border-radius: 10%;
}

.iframe-content {
  margin-top: 2rem; /* Atur jarak sesuai kebutuhan */
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100vh; /* biar penuh layar */
  display: flex;
  align-items: center; /* tengah vertikal */
  justify-content: center; /* tengah horizontal */
}

.slider-content {
  position: absolute;
  bottom: 20%; /* atur jarak dari bawah */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 1rem;
  color: #fff;
  max-width: 90%;
  word-wrap: break-word;
}

.slider-description {
  font-size: 14px; /* kecilin dikit biar muat */
  line-height: 1.4; /* biar renggang rapi */
  max-width: 90%; /* jangan melebar sampe pinggir */
  margin: 0 auto 1rem auto; /* tengah + jarak bawah */
  display: block; /* pastiin dia tampil full */
  overflow-wrap: break-word; /* patahin kalo kepanjangan */
}

.slider-container .slider-item {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  position: absolute;
  transition: opacity 1500ms;
}

.slider-container .slider-item[data-show="hidden"] {
  z-index: -1;
  opacity: 0;
}

.slider-container .slider-item[data-show="show"] {
  opacity: 1;
}

.slider-container .slider-item::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: linear-gradient(to top, black, transparent);
}

.slider-container .slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-item .slider-content {
  position: absolute;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.slider-content .slider-title {
  font-size: 6rem;
}

.slider-content .slider-description {
  width: 50ch;
  line-height: 1.5;
}

.slider-content .slider-action {
  color: #fff;
  border: 1px solid white;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 2rem;
  width: fit-content;
  position: relative;
  isolation: isolate;
  transition: all 650ms;
}

.slider-content .slider-action::before {
  content: "";
  background-color: var(--first-color);
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 0;
  transition: all 650ms;
}

.slider-content .slider-action:hover {
  color: #fff;
}
.slider-content .slider-action:hover::before {
  width: 100%;
}

/*========== BUTTONS ==========*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: 0.3s;
}
.button:hover {
  background-color: var(--first-color-alt);
}

/*========== ABOUT ==========*/
.about_data {
  text-align: center;
}
.about_description {
  margin-bottom: var(--mb-3);
}
.about_img {
  width: 280px;
  border-radius: 0.5rem;
  justify-self: center;
}

/*========== SERVICES ==========*/
.services_container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.services_content {
  text-align: center;
}
.services_title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}
.services_description {
  padding: 0 1.5rem;
}

.services_content .services_img {
  font-size: 64px;
  color: var(--first-color);
}

/*========== aps ==========*/
.aps_container {
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
}
.aps_content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px var(--first-color);
  padding: 0.75rem;
}
.aps_img {
  width: 100px;
  align-self: center;
  margin-bottom: var(--mb-2);
}
.aps_name,
.aps_price {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}
.aps_name {
  font-size: var(--normal-font-size);
}

/*========== APP ==========*/
.app_data {
  text-align: center;
}
.app_description {
  margin-bottom: var(--mb-5);
}
.app_stores {
  margin-bottom: var(--mb-4);
}
.app_store {
  width: 160px;
  margin: 0 var(--mb-1);
}
.app_img {
  width: 260px;
  justify-self: center;
}

/* PRODUK */

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* fleksibel */
  gap: 1.5rem;
  padding: 1rem;
}

.wrapper-card {
  perspective: 2000px;
}

.card {
  width: 100%;
  height: 500px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), -5px -5px 10px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  position: relative;
}

.card:hover {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

/* IMG supaya mirip background cover */
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Info di atas gambar */
.card-info {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.card-title {
  font-size: 1.8rem;
  font-weight: bold;
}

.card-subtitle {
  font-size: 1rem;
  margin-top: 5px;
  color: #f5f5f5;
}

/* BACK SIDE */
.card-back {
  background-color: var(--first-color);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-content {
  text-align: center;
  padding: 20px;
  max-width: 280px;
}

.card-content h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-description {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
}

.card-button {
  background-color: var(--first-color);
  color: #fff;
  padding: 40px 22px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-button:hover {
  background-color: transparent;
  color: var(--first-color);
  border: 1px solid;
}

/* BACK SIDE */
.card-back {
  background-color: var(--first-color);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-content {
  text-align: center;
  padding: 20px;
  max-width: 280px;
}

.card-content h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-description {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
}

.card-button {
  background-color: #fff;
  color: #000;
  padding: 10px 22px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-button:hover {
  background-color: #000;
  color: #ffffff;
  border: 1px solid #fff;
}

@media (max-width: 1024px) {
  .card {
    height: 420px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-subtitle {
    font-size: 0.9rem;
  }

  .card-content h3 {
    font-size: 1.4rem;
  }

  .card-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .card {
    height: 380px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-subtitle {
    font-size: 0.85rem;
  }

  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cards-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .card {
    height: 320px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-subtitle {
    font-size: 0.8rem;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  .card-description {
    font-size: 0.8rem;
  }

  .card-button {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}
.Info {
  text-decoration: none;
  display: flex;
  justify-content: center; /* bikin konten rata tengah horizontal */
  align-items: center; /* kalau perlu rata tengah vertical */
  margin-top: 30px; /* kasih jarak dari card atas */
}

.card-button-info {
  text-decoration: none;
  background: var(--first-color);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 250px; /* biar ukurannya konsisten */
}

.card-button-info {
  display: inline-block;
  background: var(--first-color);
  color: #fff; /* ini baru berfungsi */
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.3s ease;
  font-weight: bold; /* opsional biar tegas */
}

.card-button-info:hover {
  background-color: #fff;
  color: var(--first-color); /* biar kontras pas hover */
  text-decoration: none;
}

/*========== CONTACT ==========*/

.contact_link {
  color: inherit;
  text-decoration: none;
}

.contact_map iframe {
  margin-top: 25px;
  border-radius: 20px;
  overflow: hidden;
}

.contact_container {
  text-align: center;
}
.contact_description {
  margin-bottom: var(--mb-2);
}

/*========== FOOTER ==========*/
.footer_container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}
.footer_logo {
  color: var(--logo-dark-color);
  font-size: 1.2rem;
}
.footer_logo span {
  margin-top: -0.8rem;
  color: var(--first-color);
}
.footer_description {
  display: block;
  font-size: var(--small-font-size);
  margin: 0.25rem 0 var(--mb-3);
}
.footer_social {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}
.footer_title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-right: var(--mb-2);
}
.footer_link {
  display: inline-block;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
}
.footer_link:hover {
  color: var(--first-color);
}
.footer_copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
  width: 0.62rem;
  background-color: var(--container-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}

/*========== MEDIA QUERIES ==========*/
/* Untuk hp (layar kecil) */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
  }
  .content {
    font-size: 14px;
  }
}

/* Untuk laptop/desktop */
@media (min-width: 601px) {
  .navbar {
    flex-direction: row;
  }
  .content {
    font-size: 18px;
  }
}
@media screen and (min-width: 480px) {
  .home_container,
  .about_container,
  .app_container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about_data,
  .about_initial,
  .app_data,
  .app_initial,
  .contact_container,
  .contact_initial {
    text-align: initial;
  }

  .about_img,
  .app_img {
    width: 380px;
    order: -1;
  }

  .app_store {
    width: 130px;
  }

  .contact_container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }
  .contact_button {
    display: flex;
    justify-content: center; /* rata tengah horizontal */
    align-items: center; /* rata tengah vertikal */
    flex-wrap: wrap;
  }

  .contact_button .button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--first-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease;
    min-width: 50px;
  }

  .contact_button .button:hover {
    background-color: #fff;
    color: var(--first-color);
  }
}
@media (max-width: 480px) {
  .contact_button {
    display: flex;
    justify-content: center; /* biar tombolnya center */
    padding-top: 50px;
  }

  .contact_button .button {
    display: block;
    width: 100%;
    max-width: 220px; /* biar proporsional, tidak kepanjangan */
    text-align: center;
    margin: 0 auto;
    font-size: 0.9rem;
    padding: 12px 16px;
  }
  .whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 50px;
    background-color: #25d366;
    color: #fff;
    font-size: 1.8rem;
    border-radius: 35%;
    gap: 2px;
    width: 68px;
    height: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;

    /* ini yang penting */
    z-index: 9999;
  }

  .whatsapp-btn i {
    font-size: 48px; /* atur besar kecil logo, default sekitar 24px */
    vertical-align: middle; /* biar sejajar sama teks */
  }

  /* text sembunyikan dulu */
  .whatsapp-btn span {
    display: none;
    font-size: 1rem;
  }

  /* efek hover */
  .whatsapp-btn:hover {
    border-radius: 10px;
    width: auto;
    padding: 0 20px;
  }

  .whatsapp-btn:hover span {
    display: flex;
    margin-top: 50px;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 8rem;
  }

  .nav_logo {
    padding-top: 10px;
    width: 280px;
    color: var(--logo-dark-color);
    font-size: 1.2rem;
    display: inline-block;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav_list {
    display: flex;
  }
  .nav_item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }
  .nav_toggle {
    display: none;
  }
  .change-theme {
    position: initial;
    margin-top: 2px;
    margin-left: 2.5rem;
  }

  .home_container {
    height: 100vh;
    justify-items: center;
  }
  .home_container {
    margin-bottom: -3rem;
  }
  .services_container,
  .aps_container {
    margin-top: var(--mb-6);
  }

  .aps_container {
    grid-template-columns: repeat(3, 210px);
  }
  .aps_content {
    padding: 1.5rem;
  }
  .aps_img {
    width: 130px;
  }

  .app_store {
    margin: 0 var(--mb-1) 0 0;
  }
}
@media screen and (min-width: 960px) {
  .home_container {
    margin-top: 1rem;
  }

  .nav_logo {
    color: var(--logo-dark-color);
    font-size: 1.3rem;
  }
  .nav_logo span {
    display: block;
    margin-top: -0.8rem;
    color: var(--first-color);
  }
  .nav_link {
    font-size: var(--small-font-size);
  }

  .home_title,
  .home_subtitle {
    font-size: var(--h2-font-size);
  }

  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .home_img {
    width: 500px;
    margin-top: var(--mb-1);
  }

  .about_container,
  .app_container {
    column-gap: 7rem;
  }
}
/*========== PRODUK ==========*/
.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: auto;
}

.produk-item {
  background: var(--first-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.produk-item:hover {
  transform: translateY(-5px);
  background: #dce7f5;
}

.produk-item img {
  max-width: 80px;
  margin-bottom: 1rem;
}

.produk-item h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.produk-item p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
  margin: 50px auto;
  max-width: 1000px;
}

.feature-box {
  padding: 20px;
}

.feature-box i {
  font-size: 40px;
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  line-height: 1.6;
}

/* produk */

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 600px;
  background: #f5f5f5;
  box-shadow: 0 30px 50px #dbdbdb;
}

.container .slide .item {
  width: 200px;
  height: 300px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
  background-position: 50% 50%;
  background-size: cover;
  display: inline-block;
  transition: 0.5s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.slide .item:nth-child(3) {
  left: 50%;
}
.slide .item:nth-child(4) {
  left: calc(50% + 220px);
}
.slide .item:nth-child(5) {
  left: calc(50% + 440px);
}

/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  width: 300px;
  text-align: left;
  color: #eee;
  transform: translate(0, -50%);
  font-family: system-ui;
  display: none;
}

.slide .item:nth-child(2) .content {
  display: block;
}

.content .name {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  animation: animate 1s ease-in-out 1 forwards;
}

.content .des {
  margin-top: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  opacity: 0;
  animation: animate 1s ease-in-out 0.6s 1 forwards;
}

@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }

  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

.button {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 20px;
}

.button button {
  width: 40px;
  height: 35px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  border: 1px solid #000;
  transition: 0.3s;
}

.button button:hover {
  background: #ababab;
  color: #fff;
}

/* PORTO */
section ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

section ul li {
  color: #000;
  list-style: none;
  background: #eee;
  border-radius: 20px;
  padding: 12px 20px;
  margin: 5px;
  letter-spacing: 1px;
  cursor: pointer;
}

section ul li:hover {
  background-color: var(--first-color);
  color: white;
}

.product-porto {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.product-porto .itemBox {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 5px;
  display: block;
}

.product-porto .itemBox img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-porto .itemBox.hide {
  display: none;
}

@media (max-width: 480px) {
  body {
    margin: 0; /* reset biar nggak geser */
  }

  .section {
    padding: 4rem 1rem; /* padding lebih kecil */
  }

  .contact_description {
    font-size: 0.9rem; /* teks lebih kecil biar muat */
    line-height: 1.4;
  }

  .contact_button .button {
    display: inline-block;
    width: 100%; /* tombol full lebar di hp */
    max-width: 280px; /* batasi biar nggak terlalu panjang */
    font-size: 0.9rem; /* kecilin font */
    padding: 10px 16px; /* padding lebih ramping */
    text-align: center;
  }
}
