/* ===== Fegi Sucepto Priawan — Personal Branding Site ===== */
:root {
  --bg: #0f1117;
  --bg-soft: #161a23;
  --card: #1c212c;
  --border: #2a3140;
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --accent: #6c8cff;
  --accent-2: #b06cff;
  --grad: linear-gradient(135deg, #6c8cff 0%, #b06cff 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(15,17,23,.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; letter-spacing: .3px; font-size: 1.05rem; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px;
  background: radial-gradient(closest-side, rgba(108,140,255,.22), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin-bottom: 14px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); font-size: 1.15rem; margin-bottom: 22px; }
.hero p.lead { color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border); color: var(--text); background: var(--card); transition: transform .15s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--grad); border: 0; color: #fff; }
.hero-avatar {
  width: 260px; height: 260px; border-radius: 28px; margin: 0 auto;
  background: var(--grad); display: grid; place-items: center; font-size: 5rem; font-weight: 800; color: #fff;
  box-shadow: var(--shadow); position: relative;
}
.hero-avatar::after { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(255,255,255,.35); border-radius: 22px; }

/* Sections */
section { padding: 70px 0; }
.section-title { font-size: 1.9rem; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .75rem; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat .num { font-size: 1.8rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

/* Experience timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg); }
.tl-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.tl-role { font-weight: 700; font-size: 1.1rem; }
.tl-company { color: var(--accent); font-weight: 600; }
.tl-date { color: var(--muted); font-size: .85rem; margin: 4px 0 12px; }
.tl-desc { color: var(--muted); font-size: .95rem; }
.tl-desc li { margin-left: 18px; margin-bottom: 4px; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; }
.skill { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.skill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.project-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, border-color .2s; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.project-thumb { height: 150px; background: var(--grad); display: grid; place-items: center; font-size: 2.4rem; }
.project-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-title { font-size: 1.15rem; margin-bottom: 10px; }
.project-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.project-tags span { font-size: .75rem; color: var(--accent); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }
.project-link { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--accent); }
.project-link:hover { color: var(--text); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, border-color .2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.post-thumb { height: 150px; background: var(--grad); display: grid; place-items: center; font-size: 2.4rem; }
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-meta { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.post-title { font-size: 1.15rem; margin-bottom: 10px; }
.post-excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.post-tag { display: inline-block; margin-top: 14px; font-size: .75rem; color: var(--accent); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; align-self: flex-start; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: 2.2rem; margin: 10px 0 12px; }
.article .post-meta { margin-bottom: 28px; }
.article p { color: #cdd3de; margin-bottom: 18px; }
.article h2 { margin: 32px 0 12px; font-size: 1.4rem; }
.article pre { background: #0b0d12; border: 1px solid var(--border); padding: 16px; border-radius: 12px; overflow:auto; margin-bottom: 18px; }
.article code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; color: #9fe0c0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.contact-list .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; }
.socials { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.socials a { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: .9rem; transition: border-color .2s, transform .15s; }
.socials a:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* Responsive */
@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-avatar { width: 200px; height: 200px; font-size: 3.6rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}