/* ============================================================
   CSS VARIABLES — ubah warna/font di sini
============================================================ */
:root {
  --bg:        #0a0a0f;
  --surface:   #111118;
  --border:    #1e1e2e;
  --accent:    #f0c040;
  --accent2:   #4af0b0;
  --text:      #e8e8f0;
  --muted:     #6b6b80;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius:    10px;
  --card-gap:  1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.header-label {
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.header-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.header-title span { color: var(--accent); }

.header-sub {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 480px;
}

/* ── DIVIDER ── */
.divider {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.divider hr { border: none; border-top: 1px solid var(--border); }

/* ── FILTER BAR ── */
.filter-bar {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(240,192,64,0.07);
}

/* ── PROJECT GRID ── */
.projects-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--card-gap);
  position: relative;
  z-index: 1;
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.5s ease both;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240,192,64,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(240,192,64,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(240,192,64,0.1);
}
.card:hover::after { opacity: 1; }

.card-icon  { font-size: 1.6rem; line-height: 1; }

.card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
}

.card-desc {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
  flex: 1;
}

.card-tags  { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tag {
  font-size: 0.62rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  letter-spacing: 0.03em;
}

.card-links {z-index:10; display: flex; gap: 0.6rem; margin-top: 0.25rem; }

.card-link {
  font-size: 0.7rem;
  color: var(--accent2);
  text-decoration: none;
  border: 1px solid rgba(74,240,176,0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}
.card-link:hover        { background: rgba(74,240,176,0.1); color: #fff; }
.card-link.demo         { color: var(--accent); border-color: rgba(240,192,64,0.2); }
.card-link.demo:hover   { background: rgba(240,192,64,0.1); }

/* ── STATUS BADGE ── */
.status {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.status.done   { background: rgba(74,240,176,0.12); color: var(--accent2); }
.status.wip    { background: rgba(240,192,64,0.12); color: var(--accent); }
.status.paused { background: rgba(255,255,255,0.06); color: var(--muted); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card.hidden { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  header { padding: 3rem 1.25rem 2rem; }
  .projects-grid,
  .filter-bar,
  .divider { padding-left: 1.25rem; padding-right: 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
