/* Global Styles */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

/* White Mode */
body.dark-mode {
  background-color: #fafafa;
  color: #8b572a;
}

/* Dark Mode untuk Judul Section Products */
body.light-mode #products-title {
  color: #daa520; /* Warna emas untuk judul */
}

/* Dark Mode */
body.light-mode {
  background-color: #1a1a1a;
  color: #daa520; /* Warna teks dalam dark mode */
}

/* Dark Mode untuk Produk */
body.light-mode .product-card h3 {
  color: #daa520; /* Warna emas */
}

body.light-mode .product-card p {
  color: #ffffff; /* Warna putih */
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: inherit;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .menu a {
  text-decoration: none;
  font-size: 1rem;
  color: inherit;
  margin: 0 1rem;
  transition: color 0.3s;
}

.navbar .menu a:hover {
  color: #daa520;
}

.navbar .dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: inherit;
}

.navbar .dark-mode-toggle:hover {
  color: #daa520;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #fffbe7, #fef6e0);
  color: #8b572a;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #daa520;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  background-color: #b38a35;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Products Section */
/* Products Section */
.products {
  padding: 2rem 1rem;
  background-color: #fffef5;
}

.products h2 {
  font-size: 2rem;
  text-align: center;
  color: #8b572a;
  margin-bottom: 2rem;
}

/* Default: Kotak sejajar secara horizontal */
.feature-list {
  display: flex;
  flex-wrap: wrap; /* Kotak otomatis turun jika ruang tidak cukup */
  gap: 16px; /* Jarak antar-kotak */
  justify-content: space-between; /* Menyebar di seluruh baris */
}

.product-card {
  flex: 1 1 calc(33.333% - 16px); /* Tiga kotak dalam satu baris */
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .feature-list {
    flex-direction: column; /* Atur semua kotak menjadi vertikal */
    gap: 12px; /* Jarak antar-kotak lebih kecil untuk ponsel */
  }

  .product-card {
    flex: 1 1 100%; /* Setiap kotak mengambil lebar penuh */
  }
}

.product-card img {
  max-width: 150px; /* Mengatur ukuran gambar */
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem; /* Memberikan jarak antara gambar dan teks */
}

.product-card h3 {
  font-size: 1.2rem;
  color: #8b572a;
  margin-bottom: 0.5rem;
  text-align: center;
}

.product-card p {
  font-size: 1rem;
  color: #333;
  text-align: center; /* Menjaga teks deskripsi rata tengah */
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #fff8e1;
  color: #8b572a;
  font-size: 0.9rem;
}

/* Dark Mode Specific */
body.light-mode .navbar {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

body.light-mode .hero {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #daa520;
}

body.light-mode .products {
  background-color: #1e1e1e;
}

body.light-mode .product-card {
  border: 1px solid #444;
  background-color: #2a2a2a;
}

body.light-mode footer {
  background-color: #1a1a1a;
  color: #daa520;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s;
}

.modal.hidden {
  visibility: hidden;
  opacity: 0;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #daa520;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.close-button:hover {
  background-color: #b38a35;
}

.steps {
  padding: 2rem 1rem;
  background-color: #fef6e0;
  text-align: center;
}

.steps h2 {
  font-size: 2rem;
  color: #8b572a;
  margin-bottom: 2rem;
}

.step-list {
  display: flex;
  flex-wrap: wrap; /* Jika ruang tidak cukup, item akan turun */
  gap: 16px; /* Jarak antar-step */
  justify-content: space-between; /* Menyebar merata */
}

.step {
  flex: 1 1 calc(33.333% - 16px); /* Tiga step dalam satu baris */
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.step-image {
  max-width: 100px;
  margin-bottom: 8px;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .step-list {
    flex-direction: column; /* Semua step ditampilkan vertikal */
    gap: 12px; /* Jarak antar-step lebih kecil */
  }

  .step {
    flex: 1 1 100%; /* Setiap step mengambil lebar penuh */
  }
}

.step-image:hover {
  transform: scale(1.05);
}

.step-content h3 {
  font-size: 1.2rem;
  color: #8b572a;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 1rem;
  color: #333;
}

/* Dark Mode untuk Tata Cara Bergabung */
body.light-mode .steps {
  background-color: #1e1e1e; /* Warna latar belakang gelap */
}

body.light-mode .steps h2 {
  color: #daa520; /* Warna emas untuk judul */
}

body.light-mode .step {
  background-color: #2a2a2a; /* Warna gelap untuk kotak step */
  border: 1px solid #444; /* Border lebih gelap */
}

body.light-mode .step-content h3 {
  color: #daa520; /* Warna emas untuk judul di dalam step */
}

body.light-mode .step-content p {
  color: #ffffff; /* Warna putih untuk teks deskripsi */
}

/* Verifikasi Section */
.verification {
  padding: 2rem 1rem;
  background-color: #fffbe7;
  text-align: center;
}

.verification h2 {
  font-size: 2rem;
  color: #8b572a;
  margin-bottom: 1rem;
}

.verification p {
  font-size: 1.1rem;
  color: #333;
}

.verification a {
  color: #daa520;
  text-decoration: none;
  font-weight: bold;
}

.verification a:hover {
  color: #b38a35;
}

/* Dark Mode untuk Verifikasi */
body.light-mode .verification {
  background-color: #1e1e1e; /* Warna latar belakang gelap */
}

body.light-mode .verification h2 {
  color: #daa520; /* Warna emas untuk judul */
}

body.light-mode .verification p {
  color: #ffffff; /* Warna putih untuk teks deskripsi */
}

body.light-mode .verification a {
  color: #daa520; /* Warna emas untuk tautan */
}

body.light-mode .verification a:hover {
  color: #b38a35; /* Warna hover */
}

/* Dark Mode untuk Tombol "Daftar Sekarang" */
body.light-mode .verification a.cta-button {
  background-color: #444444; /* Warna gelap untuk tombol */
  color: #ffffff; /* Warna teks putih */
  border: 1px solid #daa520; /* Border warna emas */
}

body.light-mode .verification a.cta-button:hover {
  background-color: #5a5a5a; /* Warna lebih terang saat hover */
  color: #daa520; /* Warna teks emas saat hover */
}

/* Light Mode untuk Tombol "Daftar Sekarang" */
body.dark-mode .verification a.cta-button {
  background-color: #daa520; /* Warna emas */
  color: #ffffff; /* Warna teks putih */
  border: none; /* Tanpa border */
}

body.dark-mode .verification a.cta-button:hover {
  background-color: #b38a35; /* Warna hover lebih gelap */
  color: #ffffff; /* Warna teks tetap putih */
}
