/* RESET DAN VARIABLES */
:root {
  --primary-bg: #121212;
  --secondary-bg: #1e1e1e;
  --gold: #D4AF37;
  --gold-hover: #b5952f;
  --text-light: #ffffff;
  --text-gray: #b3b3b3;
  --accent-purple: #8e44ad;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.navbar {
  background-color: rgba(18, 18, 18, 0.95);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.btn-login a {
  background: var(--gold);
  color: #000;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 600;
}

.btn-login a:hover {
  background: var(--gold-hover);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  height: 80vh;
  background: url('https://placehold.co/1920x1080/111/333?text=Gaming+Background') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--primary-bg) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.text-gold {
  color: var(--gold);
}

.text-outline {
  -webkit-text-stroke: 1px var(--text-light);
  color: transparent;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-gray);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  margin: 0 10px;
}

.btn-primary {
  background: var(--gold);
  color: #000;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
}

.btn-secondary {
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: #000;
}

/* GENERAL SECTIONS */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 10px auto;
}

/* PROMO SECTION */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.promo-card {
  background: var(--secondary-bg);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  border: 1px solid #333;
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
}

.promo-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.promo-details {
  padding: 20px;
}

.promo-details h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.price {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.coret {
  text-decoration: line-through;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-right: 10px;
}

.btn-buy {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-buy:hover {
  background: var(--gold);
  color: #000;
}

/* GAMES GRID */
.categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cat-btn {
  background: var(--secondary-bg);
  border: 1px solid #444;
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.cat-btn.active,
.cat-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--secondary-bg);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.game-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.1);
}

.game-card img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.game-card h3 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-topup {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: bold;
}

/* NEWS SECTION */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--secondary-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.tag {
  background: var(--accent-purple);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
  display: inline-block;
}

.news-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-content p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.read-more {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

/* PAYMENT METHODS */
.payment-section {
  background: #0a0a0a;
  text-align: center;
  padding: 40px 0;
}

.payment-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.payment-logos span {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.8rem;
}

/* FOOTER */
footer {
  background: #050505;
  padding-top: 60px;
  border-top: 1px solid #222;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 span {
  color: var(--gold);
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--text-light);
}

.footer-col p {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
  color: var(--text-gray);
}

.footer-col ul li i {
  width: 25px;
  color: var(--gold);
}

.socials a {
  font-size: 1.2rem;
  margin-right: 15px;
  color: var(--text-light);
  transition: var(--transition);
}

.socials a:hover {
  color: var(--gold);
}

.footer-bottom {
  background: #000;
  text-align: center;
  padding: 20px 0;
  color: #555;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    color: var(--text-light);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    display: none;
    border-bottom: 2px solid var(--gold);
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- RESPONSIVE (REVISI) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        color: var(--text-light);
        font-size: 1.8rem; /* Ukuran ikon sedikit diperbesar */
        cursor: pointer;
        z-index: 1001; /* Agar ikon selalu bisa diklik */
    }
    
    .nav-links {
        position: absolute;
        top: 100%; /* Muncul persis di bawah navbar */
        left: 0;
        width: 100%; /* Lebar penuh */
        background-color: #121212; /* Warna solid hitam pekat */
        flex-direction: column;
        align-items: center; /* Teks rata tengah */
        padding: 30px 0;
        gap: 25px;
        
        /* Animasi & Status Awal */
        display: none; /* Tersembunyi by default */
        border-bottom: 2px solid var(--gold);
        box-shadow: 0 10px 15px rgba(0,0,0,0.8);
        z-index: 999; /* Pastikan di atas Hero Section */
    }

    /* Kelas ini ditambahkan lewat JavaScript */
    .nav-links.active {
        display: flex; /* Munculkan menu */
    }
    
    .hero h1 { font-size: 2.5rem; }
    .games-grid { grid-template-columns: repeat(3, 1fr); }
}