/* ── Font ─────────────────────────────────────────────── */
/* Cinzel (judul) & Sora (teks) dimuat dari Google Fonts di index.html */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-x: hidden;
  position: relative;
  font-family: 'Sora', 'Poppins', sans-serif;

  /* Background image with dark overlay */
  background-image:
    linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.9)),
    url('bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Background glow ──────────────────────────────────── */
.bg-glow {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 320px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.08) 35%,
    transparent 75%
  );
  filter: blur(55px);
  z-index: 0;
}

/* ── Content Wrapper ──────────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 980px;
}

/* ── Layout 2 kolom ───────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.left-col,
.right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.right-col .menu-group,
.right-col .alert-box {
  max-width: none;
  margin-top: 0;
}

/* kolom kiri: tombol memanjang penuh mengisi tinggi kolom */
.left-col .menu-group,
.left-col .menu-list--side { max-width: none; }

.menu-list--side {
  flex: 1;
  align-items: stretch;
  min-width: 0;
}

.menu-list--side .menu-card {
  flex: 1;
  max-width: none;
  min-height: 84px;
}

/* ── Logo ─────────────────────────────────────────────── */
.logo-circle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  animation: fadeDown 0.6s ease-out both;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Title ────────────────────────────────────────────── */
.title {
  color: #ffffff;
  text-align: center;
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(30px, 8vw, 34px);
  line-height: 1;
  letter-spacing: 0.22em;
  text-indent: 0.22em; /* biar tetap center karena letter-spacing */
  margin-top: 20px;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.18));
  animation: fadeDown 0.6s 0.1s ease-out both;
}

/* ── Menu List ────────────────────────────────────────── */
.menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* ── Grup Bagi Bagi (judul + 2 tombol) ────────────────── */
.menu-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  animation: fadeUp 0.5s 0.15s ease-out both;
}

.group-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  color: #ffffff;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-shadow: 0 0 14px rgba(255,255,255,0.25);
}

/* garis tipis kiri-kanan judul grup */
.group-title::before,
.group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35));
}
.group-title::after { transform: scaleX(-1); }

.icon-wrap--sm { width: 34px; height: 34px; }
.icon-wrap--sm img { width: 20px; height: 20px; }

/* ── Menu Row (2 tombol sejajar) ──────────────────────── */
.menu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

/* ── Menu Card ────────────────────────────────────────── */
.menu-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  max-width: 480px;
  padding: 18px 28px;
  border-radius: 16px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.09) 100%
  );
  border: 1px solid rgba(255,255,255,0.10);

  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow: 0 4px 25px rgba(255,255,255,0.05);

  transition:
    transform 300ms ease-out,
    background 300ms ease-out,
    border-color 300ms ease-out,
    box-shadow 300ms ease-out;

  /* Staggered entrance animation */
  animation: fadeUp 0.5s ease-out both;
}

.menu-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 8px 35px rgba(255,255,255,0.12);
}

.menu-card:active {
  transform: translateY(0) scale(0.98);
}

.menu-card--half {
  flex-direction: column;
  gap: 10px;
  max-width: none;
  padding: 18px 12px;
  font-size: 15px;
}

/* ── Tombol dengan background gambar ──────────────────── */
.menu-card--img {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  gap: 12px;
  isolation: isolate;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  border-color: rgba(255,255,255,0.14);
  background: #000;
}

/* gambar (di-zoom pelan saat hover) */
.menu-card--img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--card-img);
  background-size: 260%;
  background-position: var(--card-pos, center);
  filter: saturate(0.8) brightness(0.55);
  transition: transform 600ms ease-out, filter 400ms ease-out;
}

/* overlay gelap halus biar tulisan tetap jelas */
.menu-card--img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.82) 100%);
  transition: opacity 400ms ease-out;
}

.menu-card--img:hover {
  background: #000;
}

.menu-card--img:hover::before {
  transform: scale(1.08);
  filter: saturate(0.9) brightness(0.7);
}

.menu-card--img:hover::after {
  opacity: 0.85;
}

/* ikon + teks Bagi Bagi di atas background tombol */
.btn-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.btn-tag img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.95;
}

.menu-card--img .label {
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* logo di dalam tombol */
.btn-logo {
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.7));
  transition: transform 400ms ease-out;
}

.btn-logo--outcast  { max-height: 62px; width: auto; max-width: 70%; }
.btn-logo--gangguan { width: 88%; max-height: 54px; }

.menu-card--img:hover .btn-logo {
  transform: scale(1.05);
}

/* ── Icon Wrap ────────────────────────────────────────── */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.icon-wrap img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.9;
}

/* ── Label ────────────────────────────────────────────── */
.label {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.15));
}

/* ── Alert Box ────────────────────────────────────────── */
.alert-box {
  margin-top: 24px;
  position: relative;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border-radius: 16px;

  border: 1px solid rgba(248, 113, 113, 0.30);
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  padding: 20px;
  text-align: center;

  box-shadow: 0 0 30px rgba(239, 68, 68, 0.35);

  animation: fadeUp 0.5s 0.5s ease-out both;
}

/* ── Alert Title ──────────────────────────────────────── */
.alert-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.alert-title span {
  font-size: 24px;
}

.attention-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2em;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
}

/* ── Alert Image ──────────────────────────────────────── */
.alert-image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.alert-image-wrap div,
.alert-image-wrap {
  width: 100%;
}

.alert-image-wrap img {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
  box-shadow: 0 0 20px rgba(255,255,255,0.08);
  object-fit: cover;
  display: block;
}

/* ── Alert Description ────────────────────────────────── */
.alert-desc {
  color: rgba(255,255,255,0.90);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.625;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  width: 100%;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  letter-spacing: 0.06em;
  animation: fadeUp 0.5s 0.6s ease-out both;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 800px) {
  .wrapper { max-width: 520px; }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* urutan di HP: Bagi Bagi, sosial, Attention */
  .left-col,
  .right-col { display: contents; }
  .right-col .menu-group { order: 1; margin: 0 auto; max-width: 480px; width: 100%; }
  .left-col .menu-group  { order: 2; margin: 0 auto; max-width: 480px; width: 100%; }
  .menu-list--side       { order: 3; }
  .right-col .alert-box  { order: 4; margin: 8px auto 0; max-width: 480px; }

  .menu-list--side .menu-card { flex: none; }
}

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

  .bg-glow {
    width: 100%;
    height: 200px;
  }

  .menu-card {
    font-size: 15px;
    padding: 16px 20px;
  }

  .menu-row {
    gap: 12px;
  }
}
