/* =========================
   VARIABEL & TEMA
========================= */
:root {
  --primary: #1d2026;
  --accent: #34c2ed;
  --text: #fff;
  --gray: #a9b3c1;
  --text-light: #f5f5f5;
  --text-muted: #cccccc;
  --card-bg: #262a33;
  --shadow: rgba(0, 0, 0, 0.3);
  --bg: linear-gradient(90deg, #1d2026, #252932);
}
/* =========================
   GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}

/* =========================
   HEADER & NAVBAR
========================= */
.header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: relative;
}

.logo {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
}
.logo span {
  color: var(--text);
}

/* ===== MENU LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
  transition: all 0.3s ease;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--accent);
}
/* ===== MENU BUTTON (☰) ===== */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.menu-btn:hover {
  transform: rotate(10deg);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 5%;
    background: rgba(29, 32, 38, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    width: 210px;
    text-align: left;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.35s ease;
  }

  .nav-links.active {
    display: flex; /* Tombol menu sekarang akan muncul saat class active ditambahkan */
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
    margin: 8px 0;
  }

  .theme-toggle {
    margin-top: 10px;
  }
}

/* =========================
   HERO SECTION
========================= */
.hero {
  background: url("cuci.png") center/cover no-repeat fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 10px;
}

.hero h1 {
  font-size: 7rem;
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  margin: 15px 0 25px;
}




/* =========================
   GLOBAL SECTION STYLE
========================= */
.section {
  padding: 80px 10%;
  text-align: center;
  background: linear-gradient(160deg, #1b1e24, #15171c);
}

/* Seragamkan Semua Judul Section */
.section h2,
.section-title,
.tips h2,
.calculator h2,
.pricelist h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 195, 255, 0.3);
  position: relative;
  display: inline-block;
}

/* Garis bawah khas biru */
.section h2::after,
.section-title::after,
.tips h2::after,
.calculator h2::after,
.pricelist h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

/* Subjudul */
.section-subtitle,
.section .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 45px;
  text-align: center;
}

/* =========================
   PRICELIST
========================= */
.pricelist {
  background: linear-gradient(145deg, #1b1e24, #15171c);
  color: var(--text);
  padding: 80px 20px;
  text-align: center;
}

.pricelist-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
}

.pricelist-img {
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.25);
  transition: 0.3s ease;
  object-fit: contain;
}
.pricelist-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(0, 195, 255, 0.35);
}

.note {
  margin-top: 25px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* =========================
   KALKULATOR ESTIMASI
========================= */
.calculator {
  text-align: center;
  background: linear-gradient(160deg, #1b1e24, #15171c);
  padding: 80px 20px;
  color: var(--text);
}

.calculator p {
  color: var(--gray);
  margin-bottom: 45px;
  font-size: 1rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 35px;
  justify-items: center;
}

.calc-box {
  background: linear-gradient(145deg, #1e2128, #17191f);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 30px 25px 40px;
  width: 100%;
  max-width: 390px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
  text-align: left;
}
.calc-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 195, 255, 0.15);
}

.calc-box h3 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}

.calc-box label {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.calc-box input {
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #22252d;
  color: #fff;
  font-size: 1rem;
  transition: all 0.25s ease;
}
.calc-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 195, 255, 0.25);
  background: #262a33;
  outline: none;
}

.total-box {
  margin-top: 60px;
  background: linear-gradient(145deg, #00c3ff20, #00c3ff10);
  border: 1px solid rgba(0, 195, 255, 0.25);
  border-radius: 16px;
  padding: 25px 50px;
  display: inline-block;
  font-weight: 700;
  font-size: 1.8rem;
  box-shadow: 0 6px 18px rgba(0, 195, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}
.total-box:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 195, 255, 0.3);
}

/* =========================
   TIPS & TRIK
========================= */
.section.tips {
  padding: 80px 20px;
  background: linear-gradient(145deg, #1d2026, #171a20);
  text-align: center;
}

.tips .container {
  max-width: 1200px;
  margin: auto;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

.tips-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 6px 15px var(--shadow);
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.tips-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 195, 255, 0.25);
}

.tips-card h3 {
  color: var(--accent);
  font-size: 1.3em;
  margin-bottom: 10px;
}
.tips-card p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-light);
}
.tips-card small {
  display: block;
  margin-top: 10px;
  font-size: 0.85em;
  color: var(--text-muted);
}

/* =========================
   GALLERY
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
}
.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  transition: 0.3s;
}
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(77, 208, 225, 0.3);
}

/* =========================
   KONTAK
========================= */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}


/* =========================
   SPIN
========================= */

/* ===== Tombol Spin Mengambang ===== */
.floating-spin-btn {
  position: fixed;
  bottom: 20px;
  right: 25px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
}
.floating-spin-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ===== Modal Spin ===== */
.spin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.spin-modal.active { display: flex; }

.spin-content {
  position: relative;
  background: #1e293b;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 350px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  z-index: 2100;
}
.spin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ===== Wheel ===== */
.wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 30px auto;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #3b82f6;
  position: relative;
  overflow: hidden;
  background: conic-gradient(
    #f97316 0deg 60deg,
    #facc15 60deg 120deg,
    #10b981 120deg 180deg,
    #3b82f6 180deg 240deg,
    #8b5cf6 240deg 300deg,
    #ef4444 300deg 360deg
  );
  transition: transform 5s cubic-bezier(0.25,1,0.3,1);
  box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

/* ===== Segmen Text ===== */
.segment {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.seg1 { transform: rotate(30deg)  translate(0,-110px) rotate(-30deg); }
.seg2 { transform: rotate(90deg)  translate(0,-100px) rotate(-90deg); }
.seg3 { transform: rotate(150deg) translate(0,-100px) rotate(-150deg); }
.seg4 { transform: rotate(210deg) translate(0,-110px) rotate(-210deg); }
.seg5 { transform: rotate(270deg) translate(0,-120px) rotate(-270deg); }
.seg6 { transform: rotate(330deg) translate(0,-120px) rotate(-330deg); }

/* ===== Pointer ===== */
.pointer {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 40px solid #000;
  position: absolute;
  bottom: 135px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  z-index: 5;
 
}

/* ===== Tombol Putar ===== */
.spin-btn {
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.spin-btn:hover { transform: scale(1.05); }

/* ===== Hasil dan Catatan ===== */
.result-text {
  margin-top: 15px;
  color: #facc15;
  font-weight: bold;
  font-size: 1.1rem;
}

.note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.3;
}

/* ===== PROMO ===== */
.hero-content > * {
  margin-bottom: 20px; /* Jarak antar elemen di hero */
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #000;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}




/* =========================
   FOOTER
========================= */
.footer {
  background: #111;
  text-align: center;
  padding: 20px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.wa-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.wa-float img {
  width: 30px;
  height: 30px;
}
.wa-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
  background: #2de270;
}


/* =========================
   RESPONSIVE FONT & LAYOUT
========================= */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 100px 20px 70px;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 4rem; /* Disesuaikan agar lebih besar dari 1.9rem yang terlalu kecil */
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 15px 60px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 0.8rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .footer {
    font-size: 0.75rem;
  }

  .wa-float {
    width: 45px;
    height: 45px;
    bottom: 15px;
    left: 15px;
  }

  .wa-float img {
    width: 22px;
    height: 22px;
  }
  
  /* =========================
   SWIPE GAMBAR HANYA UNTUK HP
========================= */
  .pricelist-box {
    flex-wrap: nowrap;           /* biar semua sejajar satu baris */
    overflow-x: auto;            /* aktifkan swipe horizontal */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    justify-content: flex-start;
  }

  .pricelist-box::-webkit-scrollbar {
    height: 4px;
  }
  .pricelist-box::-webkit-scrollbar-thumb {
    background: rgba(0, 195, 255, 0.4);
    border-radius: 10px;
  }
  .pricelist-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }

  .pricelist-img {
    flex: 0 0 auto;
    width: 85%;
    max-width: 320px;
    scroll-snap-align: center;
  }
}