* { box-sizing: border-box; }

:root {
  --bg: #070b12;
  --panel: #101722;
  --text: #f5f7fa;
  --muted: #9ca7b5;
  --accent: #18b8d4;
  --accent2: #7c4dff;
  --border: rgba(255,255,255,.08);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ================= NAVBAR ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7%;
  background: rgba(7,11,18,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 23px;
  font-weight: 800;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 24px; }
nav a { 
  color: var(--muted); 
  text-decoration: none;
  font-size: 16px; /* Font size dinaikkan dikit biar pas */
  font-weight: 500;
}
nav a:hover { color: white; }

/* ================= HERO SECTION ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Pisahin teks dan gambar di desktop */
  gap: 40px;
  min-height: 60vh; /* Tinggi hero dikurangi */
  padding: 70px 7%;
  background:
    radial-gradient(circle at 80% 30%, rgba(24,184,212,.15), transparent 30%),
    radial-gradient(circle at 65% 70%, rgba(124,77,255,.12), transparent 35%);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(38px, 6vw, 76px); /* Sedikit disesuaikan responsifnya */
  line-height: 1.05;
}

.hero h1 span { color: var(--accent); }

.description {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 24px;
  border-radius: 10px;
  color: #041016;
  background: var(--accent);
  text-decoration: none;
  font-weight: 800;
  transition: opacity 0.2s;
}
.button:hover { opacity: 0.9; }

/* Visual Hero (Sebelah Kanan) */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(24,184,212,0.1), rgba(124,77,255,0.1));
  border: 1px dashed var(--accent);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 2px;
}

/* ================= SECTION UMUM ================= */
.section, .about { padding: 70px 7%; }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

h2 { margin: 7px 0 0; font-size: 34px; }

/* ================= CARDS / LIBRARY ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsif grid */
  gap: 20px;
}

.card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.poster {
  min-height: 220px; /* Sedikit lebih tinggi untuk poster utama */
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 4px;
}

/* Warna spesifik untuk poster utama Ninjago */
.main-series-poster {
  background: linear-gradient(135deg, #7c4dff, #18b8d4, #102d3b);
  color: white;
}

.card-body { padding: 24px; }
.card h3 { margin: 0 0 10px; font-size: 24px; }
.card p, .about p { color: var(--muted); line-height: 1.6; }

/* Button di dalam card */
.button-card {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  margin-top: 15px;
  border: 0;
  border-radius: 9px;
  background: #202936;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.button-card:hover {
  background: var(--accent);
  color: #041016;
}

/* ================= ABOUT & FOOTER ================= */
.about {
  border-top: 1px solid var(--border);
  background: #0a1019;
}

footer {
  padding: 30px 7%;
  color: var(--muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ================= RESPONSIVE (MOBILE) ================= */
@media (max-width: 900px) {

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 15px;
    padding: 5px 0;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 35px;
    min-height: auto;
    padding: 50px 7%;
  }

  .hero-content {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .hero h1 {
    font-size: clamp(38px, 8vw, 52px);
  }

  .description {
    font-size: 16px;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    display: block;
  }

  .hero-image-placeholder {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
