/* ================= GLOBAL RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f5f5f5;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #222;
  color: #f5f5f5;
}

/* ================= HEADER ================= */
header {
  background: #44D5CC;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= BUTTON ================= */
.btn {
  padding: 8px 14px;
  background: white;
  color: #44D5CC;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #f0f0f0;
}

.theme-btn {
  padding: 8px;
  font-size: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-top: 10px;
  }
  .header-buttons {
    margin-top: 10px;
  }
}

/* ================= HERO CAROUSEL ================= */
.hero-carousel {
  position: relative;
  height: 630px;
  overflow: hidden;
}

.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel img.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #44D5CC;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.cta-btn:hover {
  background: #3ac0b8;
}

/* ================= SECTION (FITUR & MANFAAT) ================= */
.section {
  padding: 65px 20px;
  text-align: center;
}

.fitur-container, .manfaat-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 50px auto 0 auto;
}

.fitur-card, .manfaat-card {
  background: #fff;
  border: 1px solid #44D5CC;
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s;
}

.fitur-card:hover, .manfaat-card:hover {
  transform: translateY(-5px);
}

body.dark .fitur-card,
body.dark .manfaat-card {
  background: #444;
  color: white;
}

/* ================= FOOTER ================= */
.hubungi-container {
  text-align: center;       /* Posisikan tombol di tengah */
  margin-top: 20px;
}

.hubungi-btn {
  display: inline-block;
  background-color: #25D366; /* 💚 Warna hijau khas WhatsApp */
  color: white;              /* Warna teks */
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  border: 2px solid #25D366; /* Border warna hijau */
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.hubungi-btn:hover {
  background-color: white;   /* Saat hover, tombol jadi putih */
  color: #25D366;            /* Teks jadi hijau */
  border: 2px solid #25D366; /* Border tetap hijau */
}

footer {
  background: #44D5CC;
  color: white;
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer .btn {
  background: white;
  color: #44D5CC;
  width: fit-content;
  margin: 0 auto;
}

footer .btn:hover {
  background: #f0f0f0;
}

/* ================= MOBILE RESPONSIVE FIX ================= */
@media (max-width: 768px) {
  /* ==== HEADER ==== */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .logo {
    font-size: 1.2rem;
    gap: 5px;
  }

  nav {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 10px;
  }

  nav a {
    font-size: 0.9rem;
    padding: 5px 0;
  }

  .header-buttons {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* ==== HERO SECTION ==== */
  .hero-carousel {
    height: 380px;
  }

  .hero-overlay {
    width: 90%;
    text-align: center;
  }

  .hero-overlay h1 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .hero-overlay p {
    font-size: 0.9rem;
    margin-top: 5px;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* ==== FITUR & MANFAAT ==== */
  .fitur-container,
  .manfaat-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .fitur-card,
  .manfaat-card {
    padding: 20px;
    font-size: 0.9rem;
  }

  /* ==== FOOTER ==== */
  footer {
    padding: 20px 10px;
    font-size: 0.85rem;
  }

  .hubungi-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* ==== UMUM ==== */
  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.9rem;
  }
}
/* ===== HAMBURGER MENU (MOBILE) ===== */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Tampilkan tombol & ubah layout saat mobile */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  nav {
    display: none;
    flex-direction: column;
    background: #44D5CC;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  nav a {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
  }

  nav.show {
    display: flex;
  }

  /* Sembunyikan tombol daftar/login di baris bawah biar rapi */
  .header-buttons {
    margin-top: 10px;
  }
}


/* ================= SMOOTH SCROLL ================= */
html {
  scroll-behavior: smooth;
}

