/* =========================
   Global Base Styles
========================= */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #212529;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
}

/* =========================
   Hero Section
========================= */
.hero-section {
  background-image: url('../img/bg-pattern.webp'); /* ubah sesuai path */
  background-size: cover;
  background-position: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-title {
  font-size: 3rem; /* default desktop */
  font-weight: 700;
  line-height: 1.2;
}

.hero-title span.text-success {
  color: #117e69;
}

/* Tombol download & counter */
#downloadBtn {
  font-size: 1.2rem;
  font-weight: 600;
}

#downloadCounter {
  font-weight: bold;
  color: #117e69;
}

/* =========================
   Feature Items
========================= */
.feature-item {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =========================
   Carousel Controls
========================= */
#previewCarousel .carousel-control-prev-icon,
#previewCarousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6) !important;
  border-radius: 50% !important;
  width: 3rem !important;
  height: 3rem !important;
  background-size: 60% 60% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Custom white arrow SVGs */
#previewCarousel .carousel-control-prev-icon {
  mask-image: none !important;
  -webkit-mask-image: none !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.5 0l-1.5 1.5L2.5 4l1.5 2.5L5.5 8l-4-4 4-4z'/%3E%3C/svg%3E") !important;
}

#previewCarousel .carousel-control-next-icon {
  mask-image: none !important;
  -webkit-mask-image: none !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.5 0l1.5 1.5L5.5 4 4 6.5 2.5 8l4-4-4-4z'/%3E%3C/svg%3E") !important;
}

#previewCarousel .carousel-control-prev,
#previewCarousel .carousel-control-next {
  width: auto !important;
  padding: 0 1rem !important;
}

/* =========================
   Testimonials
========================= */
.testimonial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.text-custom {
  color: #117e69 !important;
}



/* =========================
   Footer
========================= */
footer {
  font-size: 0.9rem;
}

/* =========================
   Responsive Hero Font Sizes
========================= */

/* Tablet */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem; /* ukuran lebih kecil untuk tablet */
  }
}

/* Mobile */
@media (max-width: 576px) {
  body {
    padding-left: 20px;
    padding-right: 20px;
  }

/* Memberi padding modal agar tidak menempel di HP */
.modal-dialog {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Opsi responsive untuk tombol modal */
#offerButtons button {
  min-width: 140px;
}

  .hero-title {
    font-size: 2rem; /* ukuran lebih kecil untuk HP */
    line-height: 1.3;
  }

  #downloadBtn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

.highlight-tauhid {
  font-weight: bold;
  color: #117e69;
}

.modal.fade .modal-dialog {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(20px);
}
.modal.fade.show .modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  background: linear-gradient(135deg, #117e69, #1a3c36);
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 350px;
  font-size: 1.1rem;
  color: #ffffff;
  overflow: hidden;
}
.toast.show {
  animation: fadeInSlide 0.6s ease-in-out;
}
.toast-body {
  padding: 1.2rem 1.5rem;
}
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast .btn-close {
  background-color: #ffffff;
  border-radius: 50%; /* Memastikan bulat sempurna */
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.toast .btn-close:hover {
  opacity: 1;
  background-color: #e0e0e0;
}
