/* ==========================================================================
   GEN-Z PROFESSIONAL TECHNOLOGY — DESIGN SYSTEM (STYLE.CSS)
   Inspirasi: Linear, Vercel, Stripe, Apple
   ========================================================================== */

:root {
  --bg:          #09090B;
  --bg-alt:      #0E0E12;
  --surface:     #121217;
  --surface-2:   #18181F;
  --border:      rgba(255, 255, 255, 0.09);
  --border-hi:   rgba(59, 130, 246, 0.45);
  --text:        #FAFAFA;
  --text-muted:  #A1A1AA;
  --text-dim:    #71717A;
  --accent:      #3B82F6;
  --accent-hi:   #60A5FA;
  --success:     #10B981;
  --warning:     #F59E0B;
  --danger:      #EF4444;
  --radius:      14px;
  --radius-sm:   8px;
  --nav-h:       68px;
  --shadow:      0 12px 32px rgba(0, 0, 0, 0.4);
  --font-sans:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
}

html[data-theme="light"] {
  --bg:          #FAFAFA;
  --bg-alt:      #F4F4F5;
  --surface:     #FFFFFF;
  --surface-2:   #F4F4F5;
  --border:      #E4E4E7;
  --border-hi:   #2563EB;
  --text:        #09090B;
  --text-muted:  #52525B;
  --text-dim:    #71717A;
  --accent:      #2563EB;
  --accent-hi:   #1D4ED8;
  --shadow:      0 8px 24px rgba(9, 9, 11, 0.06);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Reading Progress Bar ── */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #38BDF8);
  z-index: 2500; transition: width 0.08s linear;
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
  background: rgba(9, 9, 11, 0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .navbar { background: rgba(255, 255, 255, 0.88); }

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #38BDF8);
  color: #fff; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-text strong { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.15; }
.brand-text small { font-size: 11px; color: var(--text-muted); }

.nav-menu { display: flex; list-style: none; gap: 16px; align-items: center; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--text-muted); transition: color 0.16s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text); font-weight: 600; }
.nav-link.active { color: var(--accent-hi); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.16s, color 0.16s;
}
.icon-btn:hover { border-color: var(--border-hi); color: var(--accent-hi); }
.menu-toggle { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; border: 1px solid transparent;
  transition: all 0.16s ease; white-space: nowrap;
}
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--border-hi); color: var(--accent-hi); background: rgba(59,130,246,0.06); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-hi); }
.btn-danger { background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.35); color: #FCA5A5; }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ── Sections & Cards ── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.page-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-hero p { color: var(--text-muted); max-width: 660px; font-size: 15.5px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-hi); margin-bottom: 6px;
}
.section-title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--text-muted); font-size: 14.5px; margin-top: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: border-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.card:hover { border-color: var(--border-hi); }

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

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.badge-accent { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); color: var(--accent-hi); }
.badge-green { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); color: #34D399; }

/* ── Home Hero ── */
.hero-wrap { padding: 56px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 36px; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399; font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
html[data-theme="light"] .status-pill { color: #059669; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.hero-h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.14; letter-spacing: -0.03em; margin-bottom: 14px; }
.hero-role { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent-hi); margin-bottom: 14px; }
.hero-summary { color: var(--text-muted); font-size: 15.5px; margin-bottom: 24px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.stat-card { padding: 16px; }
.stat-card strong { display: block; font-size: 24px; font-weight: 800; color: var(--accent-hi); }
.stat-card span { font-size: 12.5px; color: var(--text-muted); }

.profile-panel { display: flex; flex-direction: column; gap: 16px; }
.profile-top { display: flex; align-items: center; gap: 16px; }
.avatar-box {
  width: 82px; height: 98px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border-hi); flex-shrink: 0; background: var(--surface-2);
}
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }

/* ── Progress Bar (Skills) ── */
.prog-bar { width: 100%; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.prog-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #38BDF8); }

/* ── Timeline (Experience & Education) ── */
.timeline { display: flex; flex-direction: column; gap: 18px; }
.timeline-item { border-left: 3px solid var(--accent); padding-left: 20px; }
.timeline-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.bullets { margin: 8px 0 0 18px; color: var(--text-muted); font-size: 13.5px; }
.bullets li { margin-bottom: 4px; }

/* ── Filter & Search Bar ── */
.toolbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-input-wrap { position: relative; min-width: 240px; flex: 0 1 300px; }
.search-input-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 13px; }
.search-input-wrap input { padding-left: 34px; }

/* ── Forms ── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: inherit; font-size: 14px;
}
.form-control:focus { outline: none; border-color: var(--accent); }

/* ── FAQ Accordion ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 15px 18px; background: none; border: none; color: var(--text);
  font-size: 14.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-a { padding: 0 18px 15px; color: var(--text-muted); font-size: 14px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 36px 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-hi); }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-dim); }

/* ── Modal & Back to Top & Toast ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  width: 100%; max-width: 700px; max-height: 86vh; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
}
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 18px; overflow-y: auto; }

.back-to-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 1500;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.back-to-top.show { display: inline-flex; }

.toast-container { position: fixed; bottom: 22px; left: 22px; z-index: 4000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface); border: 1px solid var(--accent); padding: 11px 15px; border-radius: 9px;
  font-size: 13px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
}

/* ── Admin Shell ── */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav-btn {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px;
  border: none; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 500; text-align: left;
}
.admin-nav-btn.active, .admin-nav-btn:hover { background: rgba(59,130,246,0.12); color: var(--accent-hi); font-weight: 600; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--surface); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-content { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--text-muted); font-size: 11.5px; text-transform: uppercase; }
