:root {
  --bg: #0f1117;
  --bg-soft: #171a23;
  --bg-card: #1b1f2b;
  --bg-hover: #232839;
  --border: #2a2f3d;
  --border-soft: #242937;
  --text: #e6e9f0;
  --text-dim: #9aa3b5;
  --text-faint: #6b7488;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-soft: rgba(99, 102, 241, .12);
  --green: #22c55e;
  --blue: #3b82f6;
  --orange: #f97316;
  --purple: #8b5cf6;
  --danger: #ef4444;
  --shadow: 0 8px 30px rgba(0, 0, 0, .25);
  --radius: 14px;
  --sidebar-w: 260px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ===================== BACKGROUND ===================== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .18;
  z-index: 0;
  pointer-events: none;
}
.orb-1 { width: 420px; height: 420px; background: var(--primary); top: -120px; right: -100px; animation: float 12s ease-in-out infinite; }
.orb-2 { width: 340px; height: 340px; background: var(--purple); bottom: -100px; left: -80px; animation: float 16s ease-in-out infinite reverse; }
.orb-3 { width: 240px; height: 240px; background: var(--blue); top: 40%; left: 30%; opacity: .08; animation: float 20s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===================== APP LAYOUT ===================== */
.app { display: flex; position: relative; z-index: 2; min-height: 100vh; }

/* ===================== SIDEBAR ===================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform .3s ease;
}
.sidebar-head {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; flex-shrink: 0;
}
.brand-text { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand-text span { color: var(--primary); }
.sidebar-close { display: none; margin-left: auto; background: none; border: none; color: var(--text-dim); font-size: 18px; }

.sidebar-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.profile-info { min-width: 0; flex: 1; }
.profile-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-info small { font-size: 11px; color: var(--text-faint); }
.online { color: var(--green); font-size: 16px; }

.sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-label { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--text-faint); padding: 12px 10px 6px; text-transform: uppercase; }
.nav-label-2 { padding-top: 22px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 500;
  transition: all .2s;
  margin-bottom: 2px;
  cursor: pointer;
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; }
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, var(--primary-soft), transparent);
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgba(99,102,241,.2);
}
.nav-item.active i { color: var(--primary); }

.sidebar-foot { padding: 16px 20px 20px; border-top: 1px solid var(--border-soft); }
.social-row { display: flex; gap: 10px; margin-bottom: 12px; }
.social-row a {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 14px; transition: all .2s;
}
.social-row a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.sidebar-foot p { font-size: 11px; color: var(--text-faint); }

.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 49; display: none; backdrop-filter: blur(2px);
}

/* ===================== MAIN ===================== */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex; flex-direction: column;
  min-width: 0;
}

/* ===================== NAVBAR ===================== */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(15,17,23,.7);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.navbar-left { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; position: relative; transition: all .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--primary); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }

.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-faint);
  width: 260px;
  transition: all .2s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-box input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 13px; }
.search-box kbd {
  font-family: inherit; font-size: 10px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--text-faint); white-space: nowrap;
}
.navbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; background: none; border: none; }
.user-chip i { font-size: 10px; color: var(--text-faint); }
#menuToggle { display: none; }

/* ===================== CONTENT ===================== */
.content { flex: 1; padding: 28px; }
.page { display: none; animation: fadeUp .5s ease; }
.page.active { display: block; }

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

.page-heading { margin-bottom: 24px; }
.page-heading h2 {
  font-size: 26px; font-weight: 800; margin-bottom: 4px;
  background: linear-gradient(90deg, var(--text), var(--text-dim));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-heading p { color: var(--text-dim); font-size: 14px; }

/* ===================== HERO ===================== */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 26px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(99,102,241,.15), transparent 50%);
  pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid rgba(99,102,241,.25);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 30px; margin-bottom: 18px;
}
.badge i { font-size: 8px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.grad { background: linear-gradient(90deg, var(--primary), var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-role { font-size: 17px; color: var(--text-dim); font-weight: 600; margin-bottom: 14px; }
.hero-desc { color: var(--text-dim); font-size: 14.5px; max-width: 480px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff; border: none;
  padding: 11px 22px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; box-shadow: 0 6px 18px rgba(99,102,241,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99,102,241,.4); }
.btn-primary.sm { padding: 9px 16px; font-size: 13px; }
.btn-ghost {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 22px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-stats { display: flex; gap: 28px; }
.hs-item strong { display: block; font-size: 22px; font-weight: 800; color: var(--text); }
.hs-item span { font-size: 12px; color: var(--text-faint); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 360px;
  background: #0b0d13;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.hc-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.hc-dot:nth-child(2) { background: #febc2e; }
.hc-dot:nth-child(3) { background: #28c840; }
.hc-title { margin-left: 8px; font-size: 12px; color: var(--text-faint); }
.hc-body { padding: 18px; font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 12.5px; }
.hc-code { display: block; line-height: 1.8; color: var(--text-dim); }
.c-kw { color: #c792ea; }
.c-var { color: #82aaff; }
.c-prop { color: #ffcb6b; }
.c-str { color: #9ece6a; }
.hc-foot {
  display: flex; gap: 14px; padding: 12px 16px;
  border-top: 1px solid var(--border-soft); background: var(--bg-soft);
}
.hc-lang { font-size: 11px; color: var(--text-faint); display: flex; align-items: center; gap: 5px; }
.hc-lang .up { color: #3178c6; font-size: 7px; }
.hc-lang .up2 { color: #f7df1e; font-size: 7px; }

.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.float-card i { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.float-card strong { display: block; font-size: 15px; }
.float-card small { color: var(--text-faint); font-size: 11px; }
.fc-1 { top: -16px; right: 0; }
.fc-1 i { color: var(--purple); background: rgba(139,92,246,.15); }
.fc-2 { bottom: -16px; left: 0; }
.fc-2 i { color: var(--green); background: rgba(34,197,94,.15); }

/* ===================== STATS ===================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all .2s;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.stat-icon.purple { color: var(--purple); background: rgba(139,92,246,.13); }
.stat-icon.blue { color: var(--blue); background: rgba(59,130,246,.13); }
.stat-icon.green { color: var(--green); background: rgba(34,197,94,.13); }
.stat-icon.orange { color: var(--orange); background: rgba(249,115,22,.13); }
.stat-card strong { display: block; font-size: 20px; font-weight: 800; }
.stat-card span { font-size: 12px; color: var(--text-faint); }
.trend { margin-left: auto; font-size: 15px; }
.trend.up { color: var(--green); }

/* ===================== PANELS ===================== */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel-head p { font-size: 12px; color: var(--text-faint); }
.panel-tag { font-size: 11px; font-weight: 600; color: var(--green); background: rgba(34,197,94,.12); padding: 5px 10px; border-radius: 20px; }
.panel-tag i { font-size: 6px; margin-right: 4px; }
.select-mini {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 12px; padding: 6px 10px; outline: none; cursor: pointer;
}

.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-wrap { position: relative; }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.about-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 10px 30px rgba(99,102,241,.35);
  overflow: hidden;
  border: 3px solid var(--primary-soft);
}
.about-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-grid .panel { text-align: center; }
.about-grid h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.about-role { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.about-desc { color: var(--text-dim); font-size: 13.5px; margin-bottom: 18px; text-align: left; }
.about-info { text-align: left; margin-bottom: 20px; }
.about-info div { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--text-dim); font-size: 13px; }
.about-info i { color: var(--primary); width: 18px; text-align: center; }

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -24px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.tl-body small { color: var(--text-faint); font-size: 12px; display: block; margin-bottom: 2px; }
.tl-body strong { font-size: 14px; display: block; margin-bottom: 2px; }
.tl-body p { color: var(--text-dim); font-size: 13px; }

/* ===================== SKILL ===================== */
.page-heading-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.skill-list { display: flex; flex-direction: column; gap: 16px; }
.skill-item .si-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; }
.skill-item .si-head strong { color: var(--text); }
.progress { height: 7px; background: var(--bg-soft); border-radius: 10px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 10px; transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: all .2s;
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.tool-card i { font-size: 30px; }
.tool-card span { font-size: 13px; font-weight: 600; }

/* ===================== PROJECT ===================== */
.filter-row { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.filter-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 30px; transition: all .2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: linear-gradient(135deg, var(--primary), var(--purple)); color: #fff; border-color: transparent; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .25s;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.project-card.hide { display: none; animation: none; }
.proj-cover {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: rgba(255,255,255,.9);
}
.cover-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.cover-2 { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
.cover-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cover-4 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.cover-5 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.cover-6 { background: linear-gradient(135deg, #f97316, #e11d48); }
.proj-body { padding: 18px; }
.proj-cat { display: inline-block; font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.proj-body h3 { font-size: 16px; margin-bottom: 8px; }
.proj-body p { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.proj-tags span { font-size: 11px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-faint); padding: 3px 8px; border-radius: 6px; }
.proj-foot { display: flex; gap: 10px; }
.proj-foot a {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 14px; transition: all .2s;
}
.proj-foot a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===================== EXPERIENCE ===================== */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.exp-list { display: flex; flex-direction: column; gap: 20px; }
.exp-item { display: flex; gap: 14px; }
.exp-logo {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.exp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 2px; }
.exp-head strong { font-size: 14px; }
.exp-head span { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.exp-item p { font-size: 13px; color: var(--text-dim); }
.exp-item small { font-size: 12px; color: var(--text-faint); }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.ci-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; align-items: center; gap: 14px; transition: all .2s;
}
.ci-card:hover { border-color: var(--primary); transform: translateX(3px); }
.ci-card i { width: 42px; height: 42px; border-radius: 11px; color: var(--primary); background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ci-card strong { display: block; font-size: 14px; }
.ci-card span { font-size: 12.5px; color: var(--text-dim); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.input-field {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  color: var(--text); font-size: 13.5px; outline: none; transition: all .2s;
}
.input-field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.input-field { resize: vertical; }

/* ===================== RESUME ===================== */
.resume-card { max-width: 560px; margin: 0 auto; text-align: center; }
.resume-logo {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
  margin: 0 auto 16px; box-shadow: 0 10px 30px rgba(99,102,241,.35);
  overflow: hidden;
}
.resume-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resume-card h3 { font-size: 22px; font-weight: 800; }
.resume-card > p { color: var(--text-dim); font-size: 13.5px; margin: 8px 0 20px; }
.resume-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.resume-skills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.resume-skills span { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim); padding: 6px 12px; border-radius: 20px; }

/* ===================== FOOTER ===================== */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px; border-top: 1px solid var(--border-soft);
  color: var(--text-faint); font-size: 12.5px;
}
.footer strong { color: var(--text); }
.footer i { color: var(--danger); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-faint); transition: color .2s; }
.footer-links a:hover { color: var(--primary); }

/* ===================== TOAST ===================== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--green);
  color: var(--text); padding: 14px 20px; border-radius: 10px; font-size: 13.5px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(20px);
  transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-grid, .about-grid, .page-heading-row, .exp-grid, .contact-grid { grid-template-columns: 1fr; }
  .search-box { width: 180px; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  #menuToggle { display: flex; }
  .main { margin-left: 0; }
  .content { padding: 18px; }
  .navbar { padding: 12px 16px; }
  .search-box { display: none; }
  .footer { flex-direction: column; gap: 10px; text-align: center; }
  .hero { padding: 26px; }
  .hero h1 { font-size: 30px; }
  .field-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

/* ===================== CV PRINT (PDF/Printed) ===================== */
.cv-print {
  display: none;
  background: #ffffff;
  color: #1a2333;
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  padding: 40px;
  max-width: 900px;
  margin: 30px auto;
  border-radius: 6px;
  box-shadow: 0 4px 30px rgba(0,0,0,.12);
  line-height: 1.6;
}
.cv-head {
  display: flex; gap: 24px; align-items: center;
  padding-bottom: 22px; border-bottom: 3px solid #6366f1;
}
.cv-avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  border: 3px solid #6366f1; flex-shrink: 0;
}
.cv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-head-info h2 { font-size: 30px; font-weight: 800; margin: 0 0 2px; color: #1a2333; }
.cv-role { font-size: 15px; font-weight: 600; color: #6366f1; margin: 0 0 12px; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #55607a; margin: 0; }
.cv-contact span { display: inline-flex; align-items: center; gap: 6px; }
.cv-contact i { color: #6366f1; }
.cv-section { margin-top: 20px; }
.cv-section h3 {
  font-size: 15px; font-weight: 800; color: #6366f1;
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid #e3e6ef; padding-bottom: 6px; margin-bottom: 12px;
}
.cv-section > p { font-size: 13.5px; color: #3a445c; margin: 0; text-align: left; }
.cv-item { margin-bottom: 14px; }
.cv-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-item-head strong { font-size: 14.5px; color: #1a2333; }
.cv-item-head span { font-size: 12px; color: #8b94a9; white-space: nowrap; }
.cv-org { font-size: 13px; font-weight: 600; color: #6366f1; margin: 2px 0; }
.cv-item p { font-size: 13px; color: #3a445c; margin: 0; text-align: left; }
.cv-skills { font-size: 13px; color: #3a445c; }
.cv-projects p { font-size: 13px; color: #3a445c; margin: 0 0 4px; text-align: left; }

/* Saat tombol Cetak: tampilkan hanya CV */
@media print {
  body { background: #ffffff; }
  .app aside, .navbar, .footer, .toast, .orb, .grain, .page-heading, .resume-card, .content > .page:not(#page-download) { display: none !important; }
  .content { padding: 0 !important; }
  .main { margin-left: 0 !important; }
  .cv-print { display: block !important; margin: 0 auto; max-width: 100%; box-shadow: none; padding: 24px; }
  @page { margin: 14mm; }
}
