@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

:root {
  --dark: #252525;
  --white: #fff;
  --orange: #e85d04;
  --green: #6aa392;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #000;
  color: var(--white);
  overflow-x: hidden;
}

#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease;
}
/* Loader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* atau warna lain */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#preloader .loader {
  text-align: center;
}

#preloader .loader img {
  width: 80px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
  animation: pulse 1.2s infinite;
}

#preloader .loader p {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* HEADER */
header {
  background-color: rgba(255,255,255,0.8);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background 0.3s ease;
}

header.scrolled {
  background-color: rgba(212,123,41,0.5);
  backdrop-filter: blur(6px);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-item .nav-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-item .nav-link:hover {
  background-color: rgba(0,0,0,0.1);
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* HERO & AVORIA */
.hero,
.avoria {
  position: relative;
  min-height: 100vh;
  background: url('img/Background.webp') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 1;
}

.content {
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  position: relative;
}

.logo-full {
  max-width: 580px;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.logo-full:hover {
  transform: scale(1.05);
}

.description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
  transition: all 0.5s ease;
}

/* CTA */
.cta-button {
  background: var(--orange);
  padding: 12px 30px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: #f48c06;
  transform: scale(1.05);
}

/* UNIT SECTION */
.unit-section {
  padding: 60px 20px;
  background-color: #2f3e46;
  position: relative;
  overflow: hidden;
}

.watermark-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

.unit-wrapper {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.unit-card {
  background: #354f52;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.unit-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

.unit-card h3 {
  margin-bottom: 10px;
}

.unit-card ul {
  text-align: left;
  margin-bottom: 20px;
  padding-left: 20px;
}

.download-button {
  background: var(--orange);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
}

.download-button:hover {
  background: #f48c06;
  transform: scale(1.05);
}

/* POPUP FORM */
.popup-overlay,
.kpr-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.6);
  z-index: 10000;
}

.popup-overlay.active,
.kpr-popup-overlay.active {
  display: flex;
}

.popup-box,
.kpr-popup-box {
  background: #363535;
  color: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
  transform: scale(0.95);
  animation: popupIn 0.3s ease forwards;
}

@keyframes popupIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-box h2,
.kpr-popup-box h2 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--orange);
}

.popup-box form,
.kpr-popup-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-box input,
.popup-box select,
.kpr-popup-box input,
.kpr-popup-box select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.popup-box button,
.kpr-popup-box button {
  margin-top: 10px;
  background-color: var(--orange);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.popup-box button:hover,
.kpr-popup-box button:hover {
  background-color: #f48c06;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 20px;
  background-color: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.close-btn:hover {
  background-color: #ff4d4d;
  color: white;
}

.kpr-popup-box img.logo {
  max-width: 120px;
  display: block;
  margin: 0 auto 10px;
}

/* GALERI */
.galeri-section {
  padding: 60px 20px;
  background-color: linear-gradient(to bottom, #1e1e1e, #2a2a2a);
  color :#333;
  text-align: center;
}

.galeri-container {
  position: relative;
  margin-top: 30px;
  padding: 0 40px; /* beri ruang agar panah tidak nempel layar */
}

.galeri-section h2 {
  font-size: 2rem;
  color: #FFA500;
  margin-bottom: 8px;
}

.judul-harga {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.galeri-desc {
  font-size: 1rem;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 24px auto;
}

.fasilitas-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  text-align: left;
}

.fasilitas-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: #eee;
  line-height: 1.5;
}

.fasilitas-list li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  color: #FFA500;
}

@media (max-width: 480px) {
  .galeri-section h2 {
    font-size: 1.5rem;
  }

  .judul-harga {
    font-size: 1rem;
  }

  .galeri-desc {
    font-size: 0.95rem;
  }

  .fasilitas-list li {
    font-size: 0.9rem;
  }
}

.galeri-wrapper {
  -webkit-overflow-scrolling: touch;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap;
  gap: 15px;
  padding: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.galeri-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.galeri-wrapper img {
  flex: 0 0 auto;
  width: 280px;
  height: auto;
  border-radius: 10px;
  scroll-snap-align: start;
  transition: transform 0.3s;
}

.galeri-wrapper img:hover {
  transform: scale(1.05);
}


.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 99;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.galeri-container {
  position: relative;
  overflow: hidden;
}

#galeriSlider.dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

/* INFO HARGA */
.info-harga {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 12px;
  padding: 10px 15px;
  font-size: 1rem;
  color: #FF7F50;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeZoom 0.6s ease-in-out;
}

.label-harga-asli {
  color: #FFA500; /* Orange terang */
  font-size: 1.4rem;
  font-weight: 600;
  animation: fadeZoom 0.6s ease-in-out 0.2s backwards;
  
}

.label-harga-diskon {
  color: #FFA500; /* Sama dengan harga-asli untuk konsistensi */
  margin-left: 6px;
  font-weight: 600;
  animation: fadeZoom 0.6s ease-in-out 0.2s backwards;
}

.harga-diskon {
  color: #FF5722; /* Deep orange */
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 4px;
  animation: fadeZoom 0.6s ease-in-out 0.2s backwards;
}

.info-harga del {
  color:  #D32F2F; 
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: line-through;
  margin: 0 6px;
  display: inline-block;
  animation: fadeZoom 0.6s ease-in-out;
}

.info-harga strong {
  display: block;
  font-size: 1.4rem;
  color: #FFA500;
  margin-top: 5px;
  font-weight: 700;
  animation: fadeZoom 0.6s ease-in-out 0.2s backwards;
}

.btn-info {
  display: inline-block;
  margin-top: 12px;
  background-color: var(--orange);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn-info:hover {
  background-color: #c64c00;
}


@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsif tambahan */
@media (max-width: 480px) {
  .info-harga {
    font-size: 1rem;
  }

  .btn-brosur {
    width: 100%;
    font-size: 1rem;
  }
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* TESTIMONI */
.testimoni-section {
  background-color: #2f3e46;
  padding: 60px 20px;
  text-align: center;
}

.testimoni-section h2 {
  color: var(--orange);
  margin-bottom: 30px;
}

.testimoni-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimoni-card {
  background: #354f52;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.testimoni-card p {
  font-style: italic;
  margin-bottom: 10px;
}

.testimoni-card h4 {
  font-weight: 500;
  color: #ffd166;
}

/* === BANK LOGOS === */
.bank-logos {
  text-align: center;
  margin: 40px auto;
}

.bank-logos h2 {
  color: white; /* atau warna lain sesuai tema */
  margin-bottom: 20px;
}

.bank-logos-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bank-logos-logos img {
  height: 40px;
  opacity: 0.9;
  transition: transform 0.3s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); /* Tambahkan shadow */
}

.bank-logos-logos img:hover {
  transform: scale(1.05);
}


/* SECTION: Tentang Kami */
.tentang-section {
  position: relative;
  min-height: 100vh;
  background: url('img/Background.webp') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tentang-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Warna hitam transparan */
  z-index: 0;
}

.tentang-section .main-logo,
.tentang-section .section-title,
.tentang-section .tentang-text,
.tentang-section .cta-button {
  position: relative;
  z-index: 1;
}

.main-logo {
  display: block;
  margin: 0 auto 20px;
  margin-top: 20px;
  max-width: 180px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.main-logo:hover {
transform: scale(1.05);
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.tentang-text {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

.tentang-content {
  padding-left: 5vw;
  padding-right: 5vw;
}

.cta-button {
  background-color: #f6b400;
  color: #000;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.cta-button:hover {
  background-color: #d89f00;
}

/* UNIT STATS */
.unit-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.unit-box {
  background-color: #264653;
  padding: 20px 30px;
  border-radius: 16px;
  color: white;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-width: 180px;
}

.unit-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.unit-box .number {
  font-size: 28px;
  font-weight: bold;
}


/* === EXIT POPUP STYLE === */
#exit-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

#exit-popup .popup-content {
  background: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}

#exit-popup h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #333;
}

#exit-popup p {
  font-size: 1rem;
  color: #333;
}

#exit-popup .popup-btn {
  background-color: #ff6600;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
}

#exit-popup .popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 8px; /* ← tambah padding klik */
  line-height: 1;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

#exit-popup .popup-close:hover {
  background-color: #eee;
}

/* Animasi muncul */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#exit-popup.show {
  display: flex !important;
  animation: popupFadeIn 0.4s ease-out;
}

/* Chatbot */
.chatbot-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  font-family: sans-serif;
}

.chatbot-header {
  background: #006eff;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.close-chatbot {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chatbot-body {
  padding: 10px;
  height: 200px;
  overflow-y: auto;
  font-size: 14px;
}

.chatbot-footer {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-footer input {
  flex: 1;
  padding: 10px;
  border: none;
  border-bottom-left-radius: 12px;
}

.chatbot-footer button {
  background: #006eff;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-bottom-right-radius: 12px;
}

.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #006eff;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 26px;
  text-align: center;
  line-height: 55px;
  cursor: pointer;
  z-index: 9999;
}

/* Chat Bubble Style */
.chatbot-body {
  padding: 15px;
  height: 300px;
  overflow-y: auto;
  background: #f5f5f5;
}

.bot-msg, .user-msg {
  max-width: 75%;
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  animation: fadeInUp 0.3s ease;
}

.bot-msg {
  background-color: #e1f0ff;
  color: #333;
  align-self: flex-start;
  position: relative;
  padding-left: 36px;
}

.bot-msg::before {
  content: "";
  background: url('img/admin.png') no-repeat center/cover;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 8px;
  top: 10px;
  border-radius: 50%;
}

.user-msg {
  background-color: #cbe9ba;
  color: #222;
  align-self: flex-end;
  margin-left: auto;
}

/* Bubble wrapper layout */
#chatbotBody {
  display: flex;
  flex-direction: column;
}

/* FAQ button styling */
.faq-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.faq-btn {
  flex: 1 1 48%;
  padding: 6px 10px;
  font-size: 13px;
  border: none;
  background-color: #eeeeee;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-btn:hover {
  background-color: #d1e4ff;
}

/* Saat tombol FAQ diklik dan disabled */
.faq-btn:disabled {
  background-color: #ccc;
  color: #888;
  cursor: not-allowed;
}

/* Bot avatar dalam isi pesan */
.bot-msg img.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: absolute;
  left: 8px;
  top: 10px;
  object-fit: cover;
}

/* Pesan bot jika pakai <a> atau <strong> */
.bot-msg a {
  color: #006eff;
  text-decoration: underline;
}
.bot-msg strong {
  font-weight: bold;
}

/* Tombol Kembali */
#backToMenu {
  background-color: #fff3cd;
  color: #333;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

#backToMenu:hover {
  background-color: #ffe8a1;
}

/* Scrollbar halus */
.chatbot-body::-webkit-scrollbar {
  width: 6px;
}
.chatbot-body::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 10px;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInBottom {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* FOOTER */
.footer {
  background-color: #13293d;
  color: white;
  text-align: center;
  padding: 30px 20px 10px;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
}

.social-icons {
  margin-bottom: 15px;
}

.social-icons img {
  width: 30px;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}

.footer-address {
  font-size: 14px;
  margin-bottom: 20px;
}

/* Map Container */
.map-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Copyright */
.footer-bottom {
  margin-top: 25px;
  font-size: 13px;
  color: #ccc;
}

@media (min-width: 768px) {
  .map-container iframe {
    height: 350px;
  }
}



/* RESPONSIVE */
@media (max-width: 600px) {
  .unit-stats {
    flex-direction: column;
    align-items: center;
  }

  .unit-box {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: var(--green);
    padding: 60px 20px;
    border-radius: 0;
    height: 100vh;
    width: 70%;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    z-index: 1000;
    transition: transform 0.3s ease;
  }

  .hamburger.open {
    transform: rotate(90deg); /* atau bisa ganti jadi ✕ */
  }

  .logo-full {
    max-width: 300px;
  }

  .tentang-content {
    flex-direction: column;
    text-align: center;
  }
}

