/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* === Font Global === */
body {
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #121212;
}

/* Heading Umum */
h1,
h2,
h3,
h4,
h5 {
  color: #00ffe1;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Teks Umum */
p,
li {
  color: #ccc;
  font-size: 0.95rem;
}

/* Tombol CTA */
.cta-button {
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}
.cta-button:hover {
  background: #00c9a7;
  color: #000;
}

/* Khusus teks produk */
.produk-card h3 {
  font-size: 1.2rem;
}
.produk-deskripsi {
  font-size: 0.92rem;
  color: #bbbbbb;
}
.harga {
  font-size: 1.05rem;
  font-weight: bold;
  color: #00ffcc;
}

/* Navbar */
.navbar {
  background: #1f1f1f;
  padding: 1rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #00ffe1;
  text-decoration: none;
  font-weight: bold;
}
.logo {
  color: #00ffe1;
  font-weight: bold;
  font-size: 1.2rem;
}

/* === Hamburger Icon (hidden di desktop) === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: transform 0.4s, opacity 0.4s;
}

/* === Animasi jadi “X” saat active === */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Responsive: tampilkan hamburger & sembunyikan nav-links === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px; /* sesuaikan */
    left: 0;
    right: 0;
    background: #1f1f1f;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 1rem 0;
  }
  .nav-links.show {
    display: flex;
    animation: fadeInDown 0.3s ease-in-out;
  }
}

/* === Animasi muncul menu === */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 60vh;
  background: linear-gradient(to bottom right, #000000, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("https://img1.pixhost.to/images/5690/597686065_yilzishop.jpg")
    no-repeat center center / cover;
  opacity: 0.7;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 2rem;
  color: #00ffe1;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-text p {
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .hero-text p {
    font-size: 1.2rem;
  }
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* ==================== Produk Section ==================== */
.produk-section {
  padding: 3rem 1rem;
  background: #181818;
}

.section-title {
  text-align: center;
  color: #00ffe1;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.produk-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Produk Card */
.produk-card {
  background: #222;
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 10px #000;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.produk-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 255, 225, 0.3);
}

.produk-card h3 {
  color: #00ffe1;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.produk-card ul {
  list-style: none;
  text-align: left;
  margin: 0.5rem 0;
  padding: 0;
}

.produk-card li {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #ccc;
}

.produk-deskripsi {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0.5rem 0;
}

.harga {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #00f5d4;
  margin: 0.5rem 0;
}

.cta-button {
  display: inline-block;
  background: #00ffae;
  color: #000;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #00cfa3;
}

/* ==================== Media Queries (Responsif) ==================== */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }

  .produk-card h3 {
    font-size: 1.1rem;
  }

  .produk-card li,
  .produk-deskripsi {
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .produk-container {
    grid-template-columns: 1fr;
  }

  .produk-card {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .cta-button {
    width: 100%;
    padding: 0.6rem;
  }
}

/* === Tentang & FAQ === */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section-dark {
  background-color: #111; /* Sesuai tema DamPediaStore */
  color: #00ffe1;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #00ffe1; /* Sama seperti judul produk */
}

.section-desc {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #ccc; /* Sama seperti deskripsi produk */
}

.faq-item {
  background-color: #1a1a1a;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 700px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  text-align: left;
  color: #00ffe1;
}

.faq-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #00ffe1; /* Sama dengan judul produk */
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #00ffe1;
}

.faq-item p {
  font-size: 15px;
  color: #ccc; /* Sama seperti deskripsi produk */
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background: black;
  color: #ccc;
}

/* Force 2 columns on small screens */
@media (max-width: 600px) {
  .produk-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tombol WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

/* Tombol Scroll ke Atas */
#scrollTopBtn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 998;
  display: none;
  background-color: #54d848;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

#scrollTopBtn:hover {
  background-color: #555;
}

/* pastikan nav-links a terlihat di mobile */
@media (max-width: 768px) {
  .nav-links {
    /* layout kolom, tapi teks rapat ke kanan */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* rata kanan */
    padding: 0.5rem 1rem; /* kecilkan padding */
  }

  .nav-links li {
    margin: 0.2rem 0; /* jarak atas-bawah lebih kecil */
  }

  .nav-links li a {
    color: #00ffe1 !important; /* warna cyan yang sama */
    font-size: 1rem; /* sesuaikan ukuran */
    text-align: right; /* teks rata kanan */
    width: 100%;
    display: block;
  }
  /* Pastikan nav-links di atas konten lain */
  .nav-links {
    z-index: 1000;
  }
}

/* Hamburger (hidden desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: transform 0.4s, opacity 0.4s;
}
/* Animasi X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* Mobile menu hidden by default */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 47px;
    left: 0;
    right: 0;
    background: #1f1f1f;
    flex-direction: column;
    align-items: flex-end;
    display: none;
    padding: 0.5rem 1rem;
  }
  /* Atur jarak antar item menu */
  .nav-links.show {
    display: flex;
    animation: fadeInDown 0.3s ease-in-out;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 5;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
