@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap");
@font-face {
  font-family: "lato";
  src: url(../font/Lato-Regular.ttf);
}
:root {
  --hijau : linear-gradient(135deg, #0c937b, #2ed9b3)
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f8fafc;
  color: #222;
}

header {
  background: linear-gradient(135deg, #0c937b, #0a7d68);
  padding: 14px 20px 0;
  color: white;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 12px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}
.nav-logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 4px;
  transition: transform 0.3s ease;
}
.brand-link:hover .nav-logo {
  transform: rotate(-8deg) scale(1.06);
}
.logo {
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
}
.logo span {
  color: #ffd94a;
}

.search-box {
  position: relative;
  flex: 1 1 300px;
  max-width: 540px;
}
.search-bar {
  padding: 11px 48px 11px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  outline: none;
  width: 100%;
  min-width: 200px;
  font-size: 0.95rem;
  color: #222;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-bar:focus {
  border-color: #7ef0d0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 12px;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.quick-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}
.quick-link.active {
  background: white;
  color: #0c937b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-buttons button {
  border: none;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
#loginBtn {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}
#loginBtn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
#daftarBtn {
  background: linear-gradient(135deg, #ffd76a, #ffb347);
  color: #5a3b00;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
#daftarBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}
.nav-buttons a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}
.nav-buttons a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Agar anchor (#listJudul dll) tidak tertutup header sticky */
section {
  scroll-margin-top: 130px;
}

.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0c937b;
  color: white;
  text-align: center;
  height: clamp(300px, 38vw, 460px);
}
.banner-slides {
  position: absolute;
  inset: 0;
  width: 100%;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.banner-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 0;
}
.banner-text {
  position: relative;
  z-index: 1;
  padding: 0 16px;
}
/* Animasi teks diaktifkan oleh class .active, sehingga restart setiap slide terpilih. */
.banner-slide.active .banner-text {
  animation: bannerTextIn 0.7s ease both;
}
@keyframes bannerTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.banner-text h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.banner-text p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.banner-text .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  border: none;
  color: white;
  font-size: 1.8rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  backdrop-filter: blur(2px);
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
}
.banner-dot.active {
  background: white;
  transform: scale(1.1);
}

.btn {
  background: white;
  color: #0c937b;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: .3s;
}
.btn:active {
  transform:  translateY(5px);
}

.section {
  padding: 30px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h3 {
  margin-bottom: 15px;
}

.popular-games {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  flex: 1 1 calc(33.3% - 20px);
  text-align: center;
  font-weight: 500;
  transition: .1s;
  cursor: pointer;
}
.card:hover {
  box-shadow: 0 0 10px #0c937b;
  transform: scale(1.01);
}

/* option */
.chooseBuy {
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
}
.chooseBuy > button {
  cursor: pointer;
  flex: 1 1 calc(33.33% / 20px);
  border: none;
  border-radius: 15px;
  background: #dfdfdf;
  margin: 0 5px;
  padding: 10px 20px;
  font-weight: 500;
  font-family: sans-serif;
  color: black;
  font-family: lato;
}
.chooseBuy > button:nth-child(1) {
  background: linear-gradient(0deg,#0eb193,#2ed9b3);
  color: white;
}
/* leaderboard */
.leaderboard {
  background-color: var(--hijau);
  display: flex;
  width: 100%;
  overflow-x: hidden;
}
.leaderboard::-webkit-scrollbar {
  display: none;
}
.group-name {
  display: flex;
  animation: spin 15s infinite linear;
  justify-content: center;
  align-items: center;
  gap: 1em; 
  padding-right: 1em;
}
.name {
  flex: 0 0 20em;
  border-radius: 20px;
  display: flex;
  align-items: center;
  height: 5em;
  justify-content: space-around;
  padding: 10px;
  background: var(--hijau);
  transition: .3s;


}
.name:hover {
  transform: scale(0.9);
}
.name >img {
  border-radius: 10px;
}
.name > p {
  font-family: lato;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  color: #f0f0f0;

}

@keyframes spin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
/* game list */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}
.gameCard,.pulsaCard,.listrikCard {
  background: white;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}
.pulsaCard {display: none;}
.listrikCard {
  display: none;
  max-width: 300px;
}
.gameCard img {
  width: 100%;
  border-radius: 8px;
}
.pulsaCard img,.listrikCard img  {
  width: 50%;
  border-radius: 8px;
}
.gameCard:hover .buttonGameCard,.pulsaCard:hover .buttonGameCard,.listrikCard:hover .buttonGameCard {
  filter: brightness(1.07);
  box-shadow: 0 4px 12px rgba(14,177,147,.35);
}
.gameCard:hover ,.pulsaCard:hover ,.listrikCard:hover {
  transform: translateY(-5px);
}

.gameCard:active,.pulsaCard:active,.listrikCard:active {
    transform: translateY(0px);
}
.buttonGameCard {
  display: block;
  text-decoration: none;
  color: white;
  background: linear-gradient(0deg,#0eb193,#2ed9b3);
  margin-top: 10px;
  flex: content;
  padding: 10px;
  border-radius: 10px;
  font-family: lato;
  font-weight: 600;
  transition: .2s;
}

/* footer */
.footer {
    background: #0f8c7a;
    color: white;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    width: 23%;
    margin-bottom: 25px;
}

.footer-section h4,
.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 6px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo >img {
    width: 64px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

/* gambar bergerak (naik-turun lembut) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.social-icons {margin-bottom: 10px;}
.social-icons img,
.payment-logos img {
    width: 35px;
    margin-right: 8px;
    margin-top: 6px;
}

.payment-logos img {
    width: 90px;
    height: 30px;
    border-radius: 2.5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsif */
@media (max-width: 800px) {
    .footer-section {
        width: 45%;
    }
}

@media (max-width: 500px) {
    .footer-section {
        width: 100%;
    }
}

/* ===== Jasa Digital promo (section #jasaPromo di index.html) ===== */
.jasa-promo {
  padding: 26px 20px 6px;
}
.jasa-promo h3 {
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-size: 1.35rem;
  color: #0c6b5c;
  text-align: center;
}
.jasa-promo-sub {
  text-align: center;
  font-size: 0.92rem;
  color: #55707a;
  max-width: 620px;
  margin: 6px auto 18px;
}
.jasa-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.jasa-promo-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border: 1.5px solid rgba(12, 147, 123, 0.18);
  border-radius: 16px;
  padding: 18px 16px;
  text-decoration: none;
  color: #1d3b34;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.jasa-promo-card:hover {
  transform: translateY(-5px);
  border-color: #0c937b;
  box-shadow: 0 10px 22px rgba(14, 177, 147, 0.22);
}
.jasa-promo-icon { font-size: 1.7rem; }
.jasa-promo-card b { font-size: 1rem; color: #0c6b5c; }
.jasa-promo-card small { color: #5b6b68; line-height: 1.45; }
.jasa-promo-card em {
  font-style: normal;
  font-weight: 700;
  color: #0c937b;
  margin-top: 6px;
  font-size: 0.85rem;
}
.jasa-promo-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.jasa-promo-cta {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c937b, #2ed9b3);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 177, 147, 0.35);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.jasa-promo-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.jasa-promo-cta.ghost {
  background: white;
  color: #0c937b;
  border: 1.5px solid #0c937b;
  box-shadow: none;
}


