
/* =========================================================
   MY DIGITAL HQ — STYLE UTAMA
   Mudah diedit: warna utama ada di :root
   ========================================================= */

:root {
  --bg: #080b12;
  --surface: #101622;
  --surface-2: #151d2b;
  --text: #edf3ff;
  --muted: #9aa8bd;
  --primary: #7c8cff;
  --primary-2: #4de1c1;
  --border: rgba(255,255,255,.09);
  --shadow: 0 18px 50px rgba(0,0,0,.25);
  --radius: 18px;
  --max-width: 1180px;
}

body.light {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #152033;
  --muted: #607089;
  --border: rgba(21,32,51,.1);
  --shadow: 0 18px 50px rgba(37,52,78,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(124,140,255,.12), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(77,225,193,.08), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  transition: background .25s, color .25s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container { width: min(92%, var(--max-width)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { font-weight: 800; letter-spacing: -.5px; }
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 9px 11px;
  color: var(--muted);
  border-radius: 10px;
  font-size: .92rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .menu-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 12px;
  cursor: pointer;
}
.menu-btn { display: none; }

.hero { padding: 100px 0 70px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 45px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary-2);
  background: rgba(77,225,193,.06);
  font-size: .85rem;
  margin-bottom: 18px;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.03; letter-spacing: -3px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -1px; }
h3 { line-height: 1.25; }
.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); max-width: 650px; margin: 22px 0; font-size: 1.08rem; }

.hero-card {
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--primary); filter: blur(80px); opacity: .18;
}
.hero-orbit {
  width: 170px; height: 170px; border: 1px solid rgba(124,140,255,.5);
  border-radius: 50%; display: grid; place-items: center; position: relative;
  animation: float 5s ease-in-out infinite;
}
.hero-orbit::after {
  content: "</>"; display: grid; place-items: center; width: 90px; height: 90px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  color: var(--primary-2); font-weight: 800;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(5deg); } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; transition: .2s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(124,140,255,.45); }
.btn-primary { background: linear-gradient(120deg, var(--primary), #6575ff); color: white; border: 0; }

.section { padding: 70px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 620px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); }
.card-img {
  aspect-ratio: 16/9; width: 100%; object-fit: cover;
  border-radius: 13px; margin-bottom: 16px; border: 1px solid var(--border);
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.tag {
  padding: 4px 9px; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); font-size: .78rem; border: 1px solid var(--border);
}
.status { color: var(--primary-2); font-size: .82rem; }

.page-head { padding: 70px 0 35px; }
.page-head p { color: var(--muted); max-width: 720px; margin-top: 12px; }

.filter-bar, .search-bar {
  display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 25px;
}
.filter-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 9px 13px; border-radius: 10px; cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { color: var(--text); border-color: var(--primary); }

.search-input {
  width: min(100%, 620px); padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); outline: none;
}
.search-input:focus { border-color: var(--primary); }

.stat { text-align: center; }
.stat strong { display: block; font-size: 2.2rem; }
.stat span { color: var(--muted); font-size: .9rem; }

.progress-wrap { margin-top: 15px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; }
.progress-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 1s ease;
}

.timeline { display: grid; gap: 14px; }
.timeline-item { border-left: 2px solid var(--primary); padding-left: 18px; }
.timeline-item small { color: var(--muted); }

.footer { margin-top: 70px; border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1000px, 94vw); max-height: 88vh; border-radius: 14px; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; cursor: pointer;
}

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 2500;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: none; }

.back-top {
  position: fixed; right: 20px; bottom: 75px; display: none; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--text); cursor: pointer;
}
.back-top.show { display: block; }

.empty { text-align: center; padding: 40px; color: var(--muted); }

@media (max-width: 950px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    padding: 15px 4%; background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
}
@media (max-width: 680px) {
  h1 { letter-spacing: -1.5px; }
  .hero { padding-top: 65px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .page-head { padding-top: 50px; }
}
