/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1a1a1a;
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
header {
  background: #111;
  border-bottom: 1px solid #333;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-left: 1rem;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fff;
}

/* HERO */
.hero {
  padding: 4rem 0;
  background: #222;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: #aaa;
}

/* PRODUK LIST */
.produk-list {
  padding: 3rem 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

/* CARD */
.game-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #222;
  border: 2px solid #444;
  transition: transform 0.3s ease, border-color 0.3s ease;
  outline: none; /* Hapus efek biru saat klik */
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SPAN NAMA GAME */
.game-card span {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 8px 0;
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  transition: bottom 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 0 0 transparent;
}

/* HOVER + JS CLASS */
.game-card:hover span,
.game-card.show span {
  bottom: 0;
  text-shadow: 0 0 5px #f89b00;
}

/* CLICK EFFECT GLOW */
.game-card:hover {
  transform: translateY(-4px);
  border-color: #f89b00;
}

/* FOOTER */
footer {
  background: #111;
  color: #666;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}