* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: Arial, sans-serif;
  background: #000; /* tema gelap */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: clamp(0.75rem, 2vw, 1rem) 5%;
  background: transparent;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav-menu a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-menu a:hover {
  color: #ff3737;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-poster {
  display: block;
}

.mobile-poster {
  display: none;
}

/* Social Icons */
.social-icons-center {
  position: absolute;
  bottom: clamp(1.2rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.4rem);
  z-index: 20;
}

.social-icons-center a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons-center img {
  width: clamp(36px, 5vw, 52px);
  height: clamp(36px, 5vw, 52px);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
  will-change: transform;
}

.social-icons-center img:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

/* Produk Section */
.product-section {
  width: 100%;
  min-height: 100vh;
  padding: clamp(5rem, 12vw, 9rem) 5%;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.62)),
    url("../images/Poster3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-section h2 {
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  position: relative;
}

.product-section h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #0008ff, #ff0000);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* Card Produk */
.card {
  background: #1a1a1a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  padding: clamp(0.8rem, 2vw, 1rem);
  border-radius: 1rem;
  border: 2px solid #4a4a4a;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
  border-color: #2505c6;
}

/* Gambar akun eFootball */
.card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 2px solid #4a4a4a;
  background: #000;
}

/* Judul & Harga */
.card h3 {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  margin: 1rem 0 0.5rem;
  color: #fff;
}

.card .price {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #2505c6;
  font-weight: bold;
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  background: #000000;
  color: #ffffff; /* default text color */
  padding: clamp(1.5rem, 4vw, 2rem) 5%;
  text-align: center;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.footer .zona {
  color: #ffffff; /* putih */
  font-weight: 600;
}

.footer .lineup {
  color: #ff3b3b; /* merah */
  font-weight: 600;
}

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: clamp(1rem, 3vh, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 99;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background-color: #cc0000;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.92);
  padding: 5vh 5%;
  overflow: auto;
}

.modal.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: min(92vw, 900px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

#caption {
  text-align: center;
  color: #fff;
  margin-top: 1rem;
  font-size: 1rem;
}

.close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #bbb;
}

/* Tablet */
@media (max-width: 1024px) {
  .desktop-poster {
    display: none;
  }

  .mobile-poster {
    display: block;
  }

  .hero-poster {
    object-fit: cover;
    object-position: center;
  }

  .product-section {
    background-position: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    justify-content: flex-end;
    padding-right: 5%;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .hero-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .social-icons-center {
    bottom: 1.4rem;
  }

  .product-section {
    padding: 4.5rem 5%;
    min-height: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .card {
    border-radius: 0.9rem;
  }

  /* Gambar akun eFootball lebih tinggi di mobile */
  .card img {
    width: 100%;
    height: 360px; /* tinggi manual */
    object-fit: contain;
    border-radius: 0.75rem;
    border: 2px solid #4a4a4a; /* border premium gelap */
    background: #000;
  }
}

/* Extra small phone */
@media (max-width: 420px) {
  .product-section h2 {
    font-size: 1.7rem;
  }

  #backToTop {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

/* Respect user accessibility setting */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
