/* --------------------------------------------------
   RESET & GLOBAL
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  transition: background-color 0.5s ease;
}


/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  padding: 20px 0;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

.navbar a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #b8003c;
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a.active {
  color: #b8003c;
}


/* --------------------------------------------------
   HERO (Halaman Utama)
-------------------------------------------------- */
.hero {
  text-align: center;
  margin-top: 120px !important;   /* FIX posisi agar tidak ketutup navbar */
  animation: fadeIn 1.5s ease forwards;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  color: #222;
  letter-spacing: -2px;
  display: inline-block;
}

.hero .dot {
  color: #b8003c;
  transition: transform 0.3s ease;
}

.hero h1:hover .dot {
  transform: scale(1.3);
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin-top: 10px;
  animation: fadeUp 2s ease;
}


/* --------------------------------------------------
   ANIMATIONS
-------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 768px) {
  .navbar ul {
    gap: 20px;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}


/* --------------------------------------------------
   TENTANG
-------------------------------------------------- */
.hero.tentang {
  max-width: 800px;
  margin: 120px auto 0 !important;   /* FIX agar tidak terlalu atas */
  text-align: left;
  padding: 0 20px;
  animation: fadeIn 1.2s ease forwards;
}

.hero.tentang h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero.tentang .desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  animation: fadeUp 2s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .hero.tentang {
    text-align: center;
  }

  .hero.tentang h1 {
    font-size: 2.2rem;
  }

  .hero.tentang .desc {
    font-size: 0.95rem;
    text-align: justify;
  }
}


/* --------------------------------------------------
   PERMAINAN (Menu)
-------------------------------------------------- */
.menu {
  max-width: 800px;
  margin: 120px auto 0 !important;  /* FIX agar turun dari navbar */
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
}

.menu h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: 0.3s ease;
}

.menu h2:hover {
  color: #b8003c;
  transform: translateX(5px);
}

.menu h2 a {
  text-decoration: none;
  color: #222;
}

.menu h2 a:hover {
  color: #b8003c;
}


/* --------------------------------------------------
   SUPPORT
-------------------------------------------------- */
.hero.support {
  max-width: 1100px;
  margin: 120px auto 0;  /* SUDAH BENAR */
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  animation: fadeIn 1.2s ease forwards;
}

.hero.support h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.hero.support .desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  animation: fadeUp 2s ease forwards;
}

/* QR Box */
.support-box {
  flex: 0 0 300px;
  text-align: center;
}

.support-box h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.support-box img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}


/* Mobile */
@media (max-width: 768px) {
  .hero.support {
    flex-direction: column;
    text-align: center;
    margin-top: 150px;
  }

  .hero.support h1 {
    font-size: 2.2rem;
  }

  .hero.support .desc {
    font-size: 0.95rem;
    text-align: justify;
  }

  .support-box {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .support-box img {
    width: 85%;
    max-width: 220px;
    margin: 0 auto;
  }
}


/* --------------------------------------------------
   SHARE BUTTONS
-------------------------------------------------- */
.share-links {
  margin-top: -10px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.share-links span {
  font-weight: 600;
  color: #333;
}

.share-links a {
  text-decoration: none;
  background: #b8003c;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.share-links a:hover {
  background: #8a002f;
}


/* ================================
   CENTER VERTICAL UNTUK BERANDA
================================ */
.hero.home {
  margin-top: 0 !important;
  height: calc(100vh - 100px); /* kurangi tinggi navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero.home p{
  font-size: 19.2px;
}

/* ================================
   CENTER VERTICAL UNTUK PERMAINAN
================================ */
.menu {
  margin-top: 0 !important;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}



/* ===========================================
   HALAMAN BERHITUNG (TANPA NAVBAR)
=========================================== */

/* Judul "Berhitung" */
.hero.judul {
  margin-top: 80px; 
  font-size: 2.8rem;
  font-weight: 700;
  color: #222;
  text-align: center;
}

.berhitung-menu {
  margin-top: -80px !important;   /* 🔥 lebih dekat ke judul */
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.berhitung-menu h2 {
  text-align: center;
}


/* ===================== MODAL BERHITUNG ===================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  width: 90%;
  max-width: 420px;
  background: white;
  padding: 30px 25px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  position: relative;
  text-align: center;
  animation: zoomIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #333;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.modal-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-menu a {
  text-decoration: none;
  padding: 12px;
  background: #b8003c;
  color: white;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: 0.2s ease;
}

.modal-menu a:hover {
  background: #8a002f;
}

.modal-menu a#modal-back {
  background: #444;
}

.modal-menu a#modal-back:hover {
  background: #222;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
