/* ===============================
   ROOT & FONT (BALIK, JANGAN DIHAPUS)
================================ */
:root {
  --primary: #4169E1;     /* ungu lembut */
  --primary-dark: #4b46c5;
  --secondary: #ffd166;   /* kuning soft */
  --bg: #f7f8fc;          /* abu terang */
  --card: #ffffff;
  --text: #2b2b2b;
}


* {
  box-sizing: border-box;
  font-family: 'Baloo 2', 'Segoe UI', Arial, sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(255,247,204,0.35) 0%,
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(224,231,255,0.35) 0%,
      transparent 35%
    ),
    linear-gradient(
      210deg,
      #6A7BFF 0%,
      #ffffff 50%,
      #ffffff 100%
    );
  color: var(--text);
}



/* ===============================
   NAV
================================ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 22px;
  background: linear-gradient(90deg, var(--primary), #8e8bff);
}


.brand {
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}

.menu a {
  margin-left: 12px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.menu a.active {
  background: var(--secondary);
  color: #333;
}

/* ===============================
   HERO
================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  align-items: start;
}

.hero-icon {
  font-size: 80px;
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--secondary);
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* ===============================
   MARQUEE
================================ */
.marquee-section {
  padding: 20px;
}

.marquee {
  overflow: hidden;
  background: #eef1ff;
  border-radius: 20px;
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  background: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  color: var(--text);
  border: 3px solid var(--primary-dark);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===============================
   SECTION
================================ */
.section {
  padding: 24px;
}

/* ===============================
   GRID VIDEO (DIPERBAIKI, LEBAR)
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* ===============================
   CARD VIDEO (AMAN)
================================ */
.card {
  background: var(--card);
  border-radius: 26px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  overflow: hidden;
}

/* ===============================
   THUMB VIDEO (FINAL, TIDAK BLEBER)
================================ */
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ddd;
}

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

/* ===============================
   CARD BODY
================================ */
.card-body {
  padding: 14px;
  text-align: center;
}

.card-body h4 {
  margin: 0 0 10px;
}

.card-body a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
}

/* ===============================
   FOOTER
================================ */
footer {
  text-align: center;
  padding: 16px;
  color: #666;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* PATCH: hover pasti kena */
.marquee,
.marquee * {
  pointer-events: auto;
}

/* PATCH: marquee pause beneran */
.marquee:hover .marquee-track,
.marquee-track:hover {
  animation-play-state: paused !important;
}

/* PATCH: game launcher look (final) */
.marquee-item {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 10px;
  border-radius: 26px;

  background: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);

  font-size: 14px;
  text-align: center;
  white-space: normal;

  transition: transform .15s, box-shadow .15s;
}

.marquee-item:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 10px 0 var(--primary-dark);
}
/* ===============================
   PATCH: HAMBURGER NAV
================================ */

/* tombol hamburger (default hidden) */
.nav-toggle {
  display: none;
  font-size: 26px;
  background: #fff;
  border-radius: 12px;
  padding: 2px 10px;
  cursor: pointer;
  color:#4169E1;
  border:none;
}

/* MOBILE */
@media (max-width: 768px) {

  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .menu {
    width: 100%;
    display: none;              /* default tertutup */
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }

  .menu.open {
    display: flex;              /* terbuka saat toggle */
  }

  .menu a {
    margin-left: 0;
    width: 100%;
    padding: 10px 14px;
    border-radius: 14px;
  }
}
/* ===============================
   PATCH: SLIDE DOWN ANIMATION
================================ */

/* kondisi default (tertutup) */
.menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

/* kondisi terbuka */
.menu.open {
  max-height: 300px; /* cukup untuk 4–5 menu */
}

/* mobile only */
@media (min-width: 769px) {
  .menu {
    max-height: none;
    overflow: visible;
  }
}
/* ===============================
   PATCH: HAMBURGER ICON ANIMATION
================================ */
.nav-toggle {
  transition: transform 0.25s ease;
}

.nav-toggle.open {
  transform: rotate(90deg);
}

/* ===============================
   PATCH FIX: HAMBURGER SLIDE DOWN
================================ */

/* MOBILE ONLY */
@media (max-width: 768px) {

  /* PAKSA menu selalu flex */
  .menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.35s ease;
  }

  /* saat terbuka */
  .menu.open {
    max-height: 400px; /* cukup untuk menu */
  }
}

h1, h2, .brand {
  letter-spacing: 0.4px;
}

#nodes-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;           /* di belakang konten */
  pointer-events: none; /* konten tetap bisa diklik */
}

/* KONTEN DI ATAS */
#app {
  position: relative;
  z-index: 1;
}

/* container */
.row {
  display: flex;
  flex-wrap: wrap;
}

/* default (mobile) → 2 kolom */
.col {
  width: 50%;
  box-sizing: border-box;
  align-items: center;
}

/* md breakpoint */
@media (min-width: 768px) {
  .col-md-2 {
    width: 10%;
  }
}

