:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #0ea5e9;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(10px);
  padding: 0.65rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.35);
}
.navbar-brand { color: #fff !important; font-size: 1.05rem; }
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.78) !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.4rem 0.65rem !important;
  border-radius: 8px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(37, 99, 235, 0.35);
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.18), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(14, 165, 233, 0.12), transparent 45%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  color: #e2e8f0;
}
.hero-kicker {
  color: #93c5fd;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.hero-role {
  font-size: 1.2rem;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-tagline {
  max-width: 520px;
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.hero-photo-wrap {
  display: inline-block;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
}
.hero-photo {
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  object-fit: cover;
  border-radius: 22px;
  display: block;
  background: #1e293b;
}
.btn-hero-primary {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
}
.btn-hero-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-hero-outline {
  background: transparent;
  color: #e2e8f0 !important;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-weight: 600;
}
.btn-hero-outline:hover { border-color: #fff; color: #fff !important; }
.btn-hero-accent {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
}
.btn-hero-accent:hover { filter: brightness(1.08); color: #fff; }

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #e2e8f0 !important;
  border: 1px solid rgba(255,255,255,0.15);
  transition: 0.15s;
}
.social-btn:hover { background: var(--primary); color: #fff !important; transform: translateY(-2px); }
.social-btn.sm { width: 36px; height: 36px; font-size: 0.9rem; }

/* Sections */
.section { padding: 4.5rem 0; background: #fff; }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: 2.5rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.section-head h2 {
  font-weight: 800;
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}
.title-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  margin: 0 auto;
}

.about-lead { font-size: 1.1rem; color: #334155; margin-bottom: 1rem; }
.info-tile {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  height: 100%;
  overflow: hidden;
}
.info-tile i { color: var(--primary); font-size: 1.15rem; margin-top: 2px; flex-shrink: 0; }
.info-tile > div { min-width: 0; flex: 1; }
.info-tile small { display: block; color: var(--muted); font-size: 0.75rem; }
.info-tile strong {
  font-size: 0.82rem;
  font-weight: 600;
  word-break: break-all;
  overflow-wrap: anywhere;
  display: block;
  line-height: 1.35;
}

.prof-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.prof-card:hover { transform: translateY(-4px); }
.prof-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 1rem;
}
.prof-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.prof-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* Timeline */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 1.75rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-body {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
}
.timeline-body h5 { font-weight: 700; margin-bottom: 0.25rem; }
.badge-year {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.badge-year.muted {
  background: #f1f5f9;
  color: #64748b;
}

.exp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
}
.exp-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: #eff6ff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}
.exp-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.exp-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.skill-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}
.skill-block h5 { font-weight: 700; margin-bottom: 1.25rem; }
.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}
.skill-row .bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.skill-row .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  font-style: normal;
}
.skill-row em { font-style: normal; color: var(--muted); font-size: 0.8rem; text-align: right; }
.soft-list { list-style: none; padding: 0; margin: 0; }
.soft-list li {
  padding: 0.45rem 0;
  color: #334155;
  font-size: 0.95rem;
}
.soft-list i { color: #22c55e; margin-right: 0.35rem; }

.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.work-card:hover { transform: translateY(-4px); }
.work-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
}
.work-thumb-batik { background: linear-gradient(135deg, #7c2d12, #c2410c); }
.work-thumb-porto { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.work-thumb-code { background: linear-gradient(135deg, #0f172a, #334155); }
.work-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.work-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: block;
}
.work-body h5 { font-weight: 700; margin-bottom: 0.5rem; }
.work-body p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.work-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  margin-top: 0.75rem;
}
.work-link:hover { text-decoration: underline; }
.work-link.muted { color: var(--muted); pointer-events: none; }

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  height: 100%;
}
.cert-card > i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
  display: block;
}
.cert-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.cert-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.cert-year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.act-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
}
.act-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #bfdbfe;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.act-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.act-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow);
}
.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.blog-card h5 { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.05rem; }
.blog-card p { color: var(--muted); margin: 0; font-size: 0.9rem; }

.contact-card {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  color: inherit;
}
.contact-card.static { cursor: default; }
.contact-card.static:hover { transform: none; }
.contact-card i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.contact-card h5 { font-weight: 700; margin-bottom: 0.35rem; }
.contact-card span {
  color: var(--muted);
  font-size: 0.88rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  display: block;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2.5rem 0 1.5rem;
}
.footer-muted { color: #94a3b8; }
.footer-nav {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 0.5rem;
}
.footer-nav:hover { color: #fff; }
.footer-hr {
  border-color: rgba(255,255,255,0.08);
  margin: 1.25rem 0 1rem;
}
.site-footer .social-btn {
  background: rgba(255,255,255,0.08);
}

@media (max-width: 991.98px) {
  .hero-section { min-height: auto; padding: 6rem 0 3.5rem; }
  .skill-row { grid-template-columns: 100px 1fr 60px; font-size: 0.82rem; }
  .navbar-nav .nav-link { font-size: 0.95rem; padding: 0.55rem 0.75rem !important; }
}
