:root {
  --bg-dark: #121212;
  --bg-card: #1E1E1E;
  --border: rgba(255,255,255,.08);
  --blue: #0d6efd;
  --text: #fff;
  --muted: #b8b8b8;
  --founder: #F7B733;
  --admin: #3B82F6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; }
#particles-js { position: fixed; inset: 0; z-index: -1; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18,18,18,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo h1 { font-size: 1.1rem; letter-spacing: .5px; }
.hamburger { display: none; background: none; border: 0; color: #fff; font-size: 1.35rem; }
.desktop-nav a {
  margin-left: 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.desktop-nav a:hover { color: #fff; }

/* HERO */
.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 88px 16px 40px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.hero p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: .25s;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.15); }

main { padding-inline: 16px; }

/* CONTENT SECTION */
.content-section {
  max-width: 1100px;
  margin: 72px auto;
  opacity: 0;
  transform: translateY(24px);
  transition: .6s;
}
.content-section.visible { opacity: 1; transform: none; }
.content-section > h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* STRUKTUR */
.struktur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.struktur-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  transition: .25s;
  position: relative;
}
.struktur-item:hover { transform: translateY(-6px); }
.struktur-item img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 10px;
}
.struktur-item h4 { font-size: 1.15rem; margin-bottom: 4px; }
.struktur-item p { color: var(--muted); }
.struktur-item::after {
  content: attr(data-role);
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  opacity: .85;
}
.struktur-item.founder { border-color: rgba(247,183,51,.6); }
.struktur-item.founder::after { background: var(--founder); color: #1E1E1E; }
.struktur-item.admin { border-color: rgba(59,130,246,.6); }
.struktur-item.admin::after { background: var(--admin); color: #fff; }

/* MASONRY GALLERY */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.masonry-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f0f0f;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.masonry-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.masonry-item:hover img { transform: scale(1.05); }
.masonry-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.masonry-skeleton span {
  height: 150px;
  border-radius: 12px;
  background: #242424;
  position: relative;
  overflow: hidden;
}
.masonry-skeleton span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* SWIPER */
.gallery-swiper-wrap { margin-top: 10px; }
.gallery-swiper { width: 100%; padding-bottom: 30px; }
.gallery-swiper .swiper-slide {
  width: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-swiper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}
.gallery-swiper .swiper-pagination-bullet-active { opacity: 1; }

/* CHAT ANONIM */
.pesan-list {
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
}

.pesan-item {
  align-self: flex-start;
  max-width: 82%;
}

.pesan-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-top-left-radius: 6px;
  padding: 10px 14px;
  box-sizing: border-box; /* biar ukuran konsisten */
}

.pesan-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pesan-header strong {
  color: var(--blue);
}

.pesan-timestamp {
  color: var(--muted);
  font-size: .8rem;
  margin-left: 10px;
}

.pesan-input-area {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#pesan-input {
  flex: 1;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  padding: 12px;
  font: inherit;
}

#pesan-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .2);
}

#kirim-pesan-btn {
  flex: 0 0 auto;
}

/* ===== ADMIN ===== */
.pesan-item.admin-message .pesan-bubble {
  border: 1px solid var(--founder); /* emas */
}

.pesan-item.admin-message .pesan-header strong {
  color: var(--founder);
}




.pesan-input-area { display: flex; gap: 10px; margin-top: 10px; }
#pesan-input {
  flex: 1;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  padding: 12px;
  font: inherit;
}
#pesan-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,110,253,.2);
}
#kirim-pesan-btn { flex: 0 0 auto; }

/* FOOTER */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 72px;
}
.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 30px 16px;
}
.footer-column h3 { margin-bottom: 10px; }
.footer-column p, .footer-column a {
  color: var(--muted);
  text-decoration: none;
}
.footer-column a:hover { color: #fff; }
.footer-column ul { list-style: none; padding: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
  padding: 12px 16px;
}

/* IMAGE POPUP */
.image-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.image-popup.show { display: flex; }
.popup-content {
  max-width: 92%;
  max-height: 86%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: zoom .25s ease;
}
@keyframes zoom {
  from { transform: scale(.9); opacity: .3; }
  to { transform: none; opacity: 1; }
}
.close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 36px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .desktop-nav {
    position: fixed;
    inset: 60px 14px auto 14px;
    background: rgba(18,18,18,.96);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 60;
  }
  .desktop-nav a {
    margin: 0;
    padding: 10px;
    border-radius: 8px;
  }
  .desktop-nav a:hover { background: #222; }
  .hamburger { display: block; }
}
@media (max-width: 700px) {
  .footer-container { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 500px) {
  .struktur-grid { grid-template-columns: repeat(2, 1fr); }
}
