/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: -30px;
}

.hero-subtitle {
  color: rgb(255, 255, 255);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0;
  margin-top: auto;
  backdrop-filter: blur(10px);
  display: inline-block;
  animation: 0.8s ease 0.2s 1 normal forwards running slideUp;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.2);
  border-image: initial;
}

.hero-description {
  font-size: 1.3rem;
  color: #bbb;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0;
  animation: slideUp 0.8s ease 0.6s forwards;
  margin-bottom: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.8s ease 0.8s forwards;
}

.hero-buttons12 {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.8s ease 0.8s forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title1 {
  font-size: clamp(6.5rem, 8.5vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: slideUp 0.8s ease 0.4s forwards;
  text-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.hero-subtitle,
.hero-title,
.hero-description,
.hero-buttons {
  transform: translateY(30px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    max-width: 300px;
  }
}

.container4 {
  max-width: 1400px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-card {
  position: relative;
  background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: #ffd700;
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.game-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.region-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-info {
  padding: 16px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.game-title {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}

.game-genre {
  font-size: 12px;
  color: #a0a0a0;
  margin-bottom: 12px;
}

.crown-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }

  .nav-tabs {
    justify-content: center;
  }

  .nav-tab {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .membership-card {
    width: 380px;
    height: 240px;
  }

  .card-front {
    padding: 20px;
  }

  .nox-text1 {
    font-size: 1.4rem;
  }

  .card-number1 {
    font-size: 1.3rem;
  }

  .benefits-popup {
    width: 90%;
    max-width: 400px;
    padding: 30px 24px;
  }

  .benefits-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .membership-card {
    width: 320px;
    height: 200px;
  }

  body {
    padding: 20px 10px;
  }

  .benefits-popup {
    padding: 24px 20px;
  }
}

.section-header1 {
  color: whitesmoke;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 10px;
  text-align: left;
  margin-top: 70px;
}

.section-header1 h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: -2px;
  text-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.section-header1 p {
  opacity: 0.9;
  font-size: 16px;
}

/* Game-specific backgrounds */
.soul-land {
  background-image: url("../img/souland.jpg");
}

.odin {
  background-image: url("../img/odin.png");
}

.lord-nine {
  background-image: url("../img/lordnine.jpg");
}

.line-age {
  background-image: url("../img/lineage.jpg");
}

.kristal {
  background-image: url("../img/kristal.png");
}

.delta {
  background-image: url("../img/delta.jpg");
}

.AOE {
  background-image: url("../img/AOE.jpg");
}

.mobile-legends {
  background-image: url("../img/mobilelegend.png");
}

.free-fire {
  background-image: url("../img/freefire.jpg");
}

@media (max-width: 1200px) {
  .hero {
    padding: 5rem 2rem;
  }
  .hero-title1 {
    font-size: clamp(4rem, 6vw, 6rem);
  }
  .games-grid {
    gap: 18px;
  }
  .membership-card {
    width: 400px;
    height: 250px;
  }
}

@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 4rem 1rem;
  }
  .hero-title1 {
    font-size: clamp(3rem, 6vw, 5rem);
  }
  .hero-description {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    max-width: 280px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }

  .membership-card {
    width: 380px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .hero-title1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .membership-card {
    width: 320px;
    height: 200px;
  }

  .card-front {
    padding: 16px;
  }

  .benefits-popup {
    width: 90%;
    max-width: 350px;
    padding: 24px 20px;
  }

  .games-grid {
    grid-template-columns: 1fr; /* semua jadi 1 kolom */
  }
}

@media (max-width: 480px) {
  body {
    padding: 16px 8px;
  }

  .hero {
    padding: 3rem 0.5rem;
  }

  .hero-title1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 1.2rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    max-width: 250px;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .membership-card {
    width: 300px;
    height: 180px;
  }

  .benefits-popup {
    width: 95%;
    max-width: 320px;
    padding: 20px 16px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .game-title {
    font-size: 16px;
  }
  .game-genre {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .hero-title1 {
    font-size: 1.6rem; /* super kecil biar muat */
  }
  .hero-description {
    font-size: 0.85rem;
  }
  .primary-button,
  .secondary-button {
    max-width: 220px;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
  .membership-card {
    width: 260px;
    height: 160px;
  }
  .games-grid {
    gap: 10px;
  }
  .game-title {
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  /* Navbar fix */
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.8rem 1rem;
  }

  .navbar img {
    width: 40px;
    height: auto;
  }

  .nav-menu {
    display: none; /* kalau pakai hamburger menu */
  }

  .menu-toggle {
    font-size: 1.5rem;
    padding: 6px;
  }

  .primary-button,
  .secondary-button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    max-width: 220px;
  }

  /* Hero */
  .hero {
    padding: 3rem 1rem;
  }

  .hero-title1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 90%;
  }

  /* Section title */
  .section-header1 h2 {
    font-size: 1.6rem;
    text-align: center;
  }
  .section-header1 p {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Game cards */
  .games-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-card {
    border-radius: 12px;
  }

  .game-image {
    height: 160px; /* lebih kecil biar tidak terlalu panjang */
  }

  .game-title {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .navbar {
    padding: 0.8rem 1rem;
    flex-wrap: nowrap;
  }
  .hero-title1 {
    font-size: 2.4rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .game-image {
    height: 160px;
  }
}

@media (max-width: 390px) {
  .hero {
    padding: 2.5rem 1rem;
  }
  .hero-title1 {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .primary-button,
  .secondary-button {
    max-width: 210px;
    font-size: 0.85rem;
  }
  .game-image {
    height: 150px;
  }
}

/* iPhone SE (2/3 gen) & Android kecil (≤375px) */
@media (max-width: 375px) {
  .hero {
    padding: 2rem 0.8rem;
  }
  .hero-title1 {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 0.85rem;
  }
  .primary-button,
  .secondary-button {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
  .games-grid {
    gap: 12px;
  }
  .game-image {
    height: 140px;
  }
}

/* iPhone SE lama / Android mini (≤360px) */
@media (max-width: 360px) {
  .hero-title1 {
    font-size: 1.8rem;
  }
  .hero-description {
    font-size: 0.8rem;
  }
  .primary-button,
  .secondary-button {
    max-width: 200px;
    font-size: 0.75rem;
  }
  .membership-card {
    width: 260px;
    height: 160px;
  }
  .game-title {
    font-size: 14px;
  }
}
