/* === RESET & GLOBAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: "Poppins", sans-serif;
  background-color: #000;
  color: white;
}

/* === HEADER / NAVIGATION === */
header {
  position: fixed;
  top: 0;
  height: 60px;
  width: 100%;
  background: transparent;
  z-index: 999;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Setelah scroll */
header.scrolled {
  background-color: rgba(0, 0, 0, 0.475); /* hitam transparan 70% */
  backdrop-filter: blur(5px); /* efek blur halus jika mau */
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← ini yang pastikan vertikal center */
  padding: 15px 30px;
  height: 70px; /* tambahkan tinggi tetap agar semua bisa align */
}

.menu-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

/* Logo */
.logo img {
  height: 25px; /* Atur tinggi logo sesuai selera */
  display: block;
}

/* NAVIGATION MENU */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin-top: -50px;
  font-size: 9pt;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.nav-menu li a:hover {
  transform: scale(1.1);
  color: rgb(251, 255, 0); /* atau warna lain untuk efek visual tambahan */
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background-color: rgb(255, 255, 255);
  transition: 0.3s;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* NAVIGATION POSITION */
#main-nav {
  flex: 2;
  display: flex;
  justify-content: center;
}

/* SEARCH & TOGGLE WRAPPER */
.search-toggle-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

/* TOGGLE MENU (MOBILE ONLY) */
.menu-toggle {
  display: none;
}

/* SEARCH BOX */
.search-box {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.search-box input {
  padding: 6px 10px;
  border: none;
  border-radius: 5px 0 0 5px;
}

.search-box button {
  background-color: #444;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

/* SEARCH ICON TOGGLE */
.search-toggle,
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
}

.search-toggle:hover {
  color: #0ff; /* ganti warna saat hover */
  transform: scale(1.2);
}

.search-toggle:active {
  transform: scale(1.1) rotate(5deg);
}

/* === HERO SECTION === */
@media (min-width: 768px) {
  .hero-left {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .hero-left .cta-button,
  .hero-left .toko-ketik-wrapper,
  .hero-left .toko-online {
    align-self: flex-start !important;
  }
}

.hero-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 0 5%;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* rata kiri */
  text-align: left;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: right;
  align-items: center;
}

.hero-right img {
  max-width: 100%;
  width: 90%;
  height: auto;
  margin-left: 0px;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: left;
  justify-content: center;
  text-align: left;
  padding: 0 20px;
  color: white;
  width: 100%;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/bg4.jpg") center/cover no-repeat;
  z-index: -2;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin-top: 40px;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 250px;
}

.cta-button {
  display: inline-block;
  background: #ff0000;
  color: white;
  padding: 6px 16px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 0px;
}

.cta-button:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.toko-ketik-wrapper {
  margin-top: 0rem;
  font-size: 1.2rem;
  text-align: center;
  color: #fff;
}

.teks-toko {
  font-weight: bold;
  border-right: 2px solid #fbff00;
  padding-left: 5px;
  white-space: nowrap;
}

/* Warna masing-masing toko */
.tokopedia {
  color: #03ac0e;
} /* Hijau Tokopedia */
.tiktok {
  color: #ff0050;
} /* Merah TikTok */
.shopee {
  color: #ee4d2d;
} /* Oranye Shopee */

/* === Toko Online Buttons === */
.toko-online {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 0rem;
  flex-wrap: wrap;
}

.toko-link {
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.toko-link img {
  width: 25px;
  height: auto;
  object-fit: contain;
}

.toko-link:hover {
  transform: scale(1.1);
}

html {
  scroll-behavior: smooth;
}

#sapaan-waktu {
  font-size: 3rem;
  margin-bottom: 0rem;
}

#pesan-singkat {
  font-size: 1.5rem;
  color: #ddd;
  line-height: 1.6;
  margin-top: 0px;
  max-width: 100%;
  overflow: hidden;
}

.teks-mau {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

#teks-ketik {
  font-size: 2.5rem;
  font-weight: bold;
  color: #0ff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #0ff;
  width: fit-content;
}

/* === SECTION BACKGROUNDS === */
.section {
  padding: 60px 20px;
  color: white;
}

.hero {
  background: url("img/bg4.jpg") center/cover no-repeat;
}

.layanan {
  background: url("img/bg.jpg") center/cover no-repeat;
}

.produk {
  background: url("img/hero.jpg") center/cover no-repeat;
}

.galeri {
  background: url("img/bg3.jpg") center/cover no-repeat;
}

.blog {
  background: url("img/bg5.jpg") center/cover no-repeat;
}

.tentang {
  background: url("img/bg2.jpg") center/cover no-repeat;
}

.kontak {
  background: url("img/bg.jpg") center/cover no-repeat;
}

/* === LAYANAN CONTAINER === */
.layanan-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 1rem;
  justify-content: center;
}

.layanan-item {
  background-color: rgba(255, 0, 0, 0.306);
  padding: 1rem;
  height: auto;
  border-radius: 1rem;
  color: rgb(255, 255, 255);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layanan-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.layanan-icon-img {
  width: 220px;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .layanan-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .layanan-container {
    grid-template-columns: 1fr;
  }
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: #ffffff;
}

/* === POPUPS === */
.popup {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  width: 90%;
  max-width: 400px;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #000;
}

form input,
form button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* === Animasi popup === */
.popup {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

/* === SECTION STYLING === */
.section {
  padding: 100px 30px;
  color: white;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* === PRODUK === */
.produk-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.produk-item {
  background-color: rgba(255, 0, 0, 0.304);
  padding: 1rem;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.produk-item:hover {
  transform: translateY(-10px);
}

.produk-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* === GALERI === */
.galeri-deskripsi {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.galeri-grid a {
  display: block;
  transition: transform 0.3s ease;
}

.galeri-grid a:hover {
  transform: scale(1.05);
}

.galeri-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.galeri-deskripsi {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.galeri-grid a {
  display: block;
  transition: transform 0.3s ease;
}

.galeri-grid a:hover {
  transform: scale(1.05);
}

.galeri-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .galeri-grid {
    grid-template-columns: 1fr;
  }
}

/* === BLOG === */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 2rem;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.blog-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-item {
  flex: 0 0 calc(25% - 1.5rem); /* 4 kolom */
  scroll-snap-align: start;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  text-decoration: none;
  color: white;
}

.blog-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .blog-item {
    flex: 0 0 calc(50% - 1rem); /* 2 kolom */
  }
}

@media (max-width: 600px) {
  .blog-item {
    flex: 0 0 100%; /* 1 kolom */
  }

  .sosial-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
  }

  .footer-socials a {
    font-size: 1rem;
  }
}

/* === TENTANG === */
.tentang-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* === KONTAK === */
.sosial-kontak {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.sosial-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.sosial-icon:hover {
  transform: scale(1.1);
}

/* Warna khusus masing-masing */
.sosial-icon.whatsapp {
  background-color: #25d366;
}
.sosial-icon.instagram {
  background-color: #e4405f;
}
.sosial-icon.facebook {
  background-color: #3b5998;
}
.sosial-icon.youtube {
  background-color: #ff0000;
}
.sosial-icon.wechat {
  background-color: #09b83e;
}
.sosial-icon.telpon {
  background-color: #007bff;
}

.form-kontak {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-kontak input,
.form-kontak textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
}

.form-kontak button {
  background-color: crimson;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.form-kontak button:hover {
  background-color: #e60026;
}

.footer {
  background-color: #111;
  color: #fff;
  padding: 50px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h2 {
  font-size: 1.8rem;
  color: rgb(255, 0, 0);
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 300px;
  line-height: 1.5;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0ff;
}

.footer-contact p {
  margin: 8px 0;
}

.footer-contact i {
  margin-right: 8px;
}

.footer-socials {
  margin-top: 10px;
}

.footer-socials a {
  display: inline-block;
  color: #fff;
  font-size: 1.4rem;
  margin-right: 15px;
  transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
  color: #0ff;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #aaa;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }

  .logo img {
    height: 25px;
  }

  .menu-controls {
    flex-direction: row;
    align-items: center;
    gap: 10px; /* jarak antara search & toggle */
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    font-size: 12pt;
  }

  .search-toggle {
    display: block;
  }

  .search-box {
    display: none;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  .search-box.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-left: auto;
    font-size: 1.8rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  #main-nav {
    position: fixed;
    top: -100px;
    right: -100%;
    width: 50%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  #main-nav.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #444;
  }

  .hero-content-wrapper {
    flex-direction: column;
  }

  .hero-right {
    display: none; /* Sembunyikan gambar di mobile */
  }

  .hero-left {
    align-items: center; /* Optional: center untuk mobile */
    text-align: center;
  }

  .hero h1 {
    font-size: 24px;
  }

  .teks-mau {
    font-size: 1.7rem;
    font-weight: bold;
    color: white;
  }

  .cta-button {
    font-size: 16px;
    padding: 4px 8px;
    margin-top: 0px;
  }

  .toko-ketik-wrapper {
    font-size: 1rem;
    margin-top: 0rem;
  }

  .toko-online {
    margin-top: 2rem;
    gap: 1.5rem;
  }

  .toko-link {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  .toko-link img {
    width: 28px;
    height: 28px;
  }

  .layanan-container {
    flex-direction: column;
    gap: 2rem;
  }

  .layanan-item {
    flex: 1 1 100%;
  }

  .layanan-item p {
    font-size: 18px;
  }

  #sapaan-waktu {
    font-size: 2.5rem;
    margin-top: 50px;
    width: 96%;
  }

  #pesan-singkat {
    font-size: 1.3rem;
    color: #dddddd;
    margin-top: 0px;
    line-height: 1.6;
    width: 90%;
  }

  #teks-ketik {
    font-size: 1.7rem;
    font-weight: bold;
    color: #0ff;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid rgb(255, 251, 0);
    width: fit-content;
    margin-top: 0px;
  }

  .section {
    padding: 60px 15px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .produk-item,
  .blog-item {
    width: 100%;
  }

  .tentang-text {
    font-size: 1rem;
  }

  .form-kontak {
    width: 100%;
    padding: 0 10px;
  }

  .sosial-kontak {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  .sosial-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
  }

  .sosial-icon:hover {
    transform: scale(1.1);
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    width: 100%;
  }
}
