/* Modern, accessible portfolio theme */
:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.12);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --accent1: #7c3aed;
  --accent2: #22c55e;
  --accent3: #06b6d4;
}

[data-theme="light"]{
  --bg: #f6f7fb;
  --panel: rgba(15,23,42,.06);
  --panel2: rgba(15,23,42,.09);
  --text: rgba(15,23,42,.92);
  --muted: rgba(15,23,42,.72);
  --muted2: rgba(15,23,42,.55);
  --line: rgba(15,23,42,.14);
  --shadow: 0 18px 60px rgba(15,23,42,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(124,58,237,.45), transparent 60%),
    radial-gradient(900px 600px at 70% 20%, rgba(6,182,212,.35), transparent 55%),
    radial-gradient(900px 600px at 50% 90%, rgba(34,197,94,.25), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.9}

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:12px; top:12px; width:auto; height:auto;
  padding:10px 12px; background:var(--panel2);
  border:1px solid var(--line);
  border-radius:12px;
  z-index:9999;
}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
[data-theme="light"] .topbar{
  background: linear-gradient(to bottom, rgba(255,255,255,.75), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{display:flex; align-items:center; gap:12px;}
.brand-mark{
  width:40px;height:40px;border-radius:14px;
  background: linear-gradient(135deg, var(--accent1), var(--accent3));
  display:grid;place-items:center;
  font-weight:800;
  box-shadow: 0 10px 30px rgba(124,58,237,.25);
}
.brand-name{font-weight:700}
.brand-role{font-size:13px; color:var(--muted2); margin-top:1px}

.nav{display:flex; gap:18px; align-items:center}
.nav a{font-size:14px; color:var(--muted); padding:8px 10px; border-radius:12px}
.nav a:hover{background:var(--panel)}

.actions{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
  font-weight:600;
  font-size:14px;
}
.btn:hover{background: var(--panel2)}
.btn.primary{
  border-color: rgba(124,58,237,.35);
  background: linear-gradient(135deg, rgba(124,58,237,.85), rgba(6,182,212,.55));
}
.btn.primary:hover{filter:saturate(1.05)}
.btn.ghost{background: transparent}
.btn.small{padding:8px 12px; font-size:13px}
.btn.full{width:100%}

.icon-btn{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--panel);
  cursor:pointer;
}
.icon-btn:hover{background:var(--panel2)}
.icon{font-size:16px}

.hamburger{
  display:none;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--panel);
  cursor:pointer;
}
.hamburger span{
  display:block; width:18px; height:2px; margin:4px auto;
  background: var(--text); border-radius:999px; opacity:.9;
}

.mobile-menu{
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
}
[data-theme="light"] .mobile-menu{
  background: rgba(255,255,255,.7);
  border-top:1px solid rgba(15,23,42,.10);
}
.mobile-menu-inner{padding:12px 0; display:grid; gap:8px}
.m-link{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--panel);
  color:var(--muted);
}

.hero{padding:34px 0 28px}
.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:22px;
  align-items:stretch;
}
.pill{
  display:inline-flex;
  gap:8px; align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
}
h1{
  font-size: clamp(30px, 4vw, 44px);
  line-height:1.12;
  margin:14px 0 12px;
  letter-spacing: -0.02em;
}
.sub{color:var(--muted); margin:0 0 16px; font-size:16px}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap; margin: 18px 0 18px}

.quickfacts{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:8px;
}
.q-card{
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding:12px 12px;
}
.q-title{font-weight:700; font-size:13px}
.q-body{color:var(--muted); font-size:13px; margin-top:4px}

.hero-card{
  position:relative;
  border-radius: 26px;
  overflow:hidden;
  margin-top: 2px;
  padding: 0 20px 0 20px;
}
.hero-bg{
  position:absolute; inset:-2px;
  background:
    radial-gradient(800px 450px at 20% 30%, rgba(124,58,237,.65), transparent 60%),
    radial-gradient(700px 400px at 70% 25%, rgba(6,182,212,.55), transparent 55%),
    radial-gradient(700px 400px at 55% 85%, rgba(34,197,94,.45), transparent 55%);
  filter: blur(16px);
  opacity:.65;
}
.glass{
  position:relative;
  height:100%;
  padding:18px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  border-radius: 26px;
  box-shadow: var(--shadow);
  display:grid;
  gap:12px;
  align-content:start;
}
[data-theme="light"] .glass{
  background: rgba(255,255,255,.75);
  border:1px solid rgba(15,23,42,.12);
}
.avatar{
  width:56px;height:56px;border-radius:18px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,58,237,.9), rgba(6,182,212,.55));
  font-weight:800;
  font-size:20px;
}
.pname{font-weight:800; font-size:18px}
.prole{color:var(--muted2); font-size:13px; margin-top:2px}
.pmeta{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
}
.pactions{display:flex; gap:10px; margin-top:12px}

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top:6px;
}
.stat{
  border:1px solid var(--line);
  border-radius: 18px;
  padding:10px 12px;
  background: rgba(255,255,255,.04);
}
.stat-num{font-weight:900; font-size:18px}
.stat-label{color:var(--muted2); font-size:12px; margin-top:2px}

.section{padding:34px 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom:14px;
  margin-top: 10px;
}
.section-head h2{
  font-size:22px;
  margin:0;
}
.section-head p{
  margin:0;
  color:var(--muted);
  max-width:64ch;
}

.grid{display:grid; gap:14px}
.grid.two{grid-template-columns: repeat(2, minmax(0,1fr))}
.grid.three{grid-template-columns: repeat(3, minmax(0,1fr))}

.card{
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0 0 10px; color:var(--muted)}
.card p:last-child{margin-bottom:0}

.bullets{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.bullets li{margin:6px 0}

.badge-row{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.25);
}

.timeline{display:grid; gap:12px}
.t-item{display:grid; grid-template-columns: 18px 1fr; gap:12px; align-items:stretch}
.t-dot{
  width:10px;height:10px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent1), var(--accent3));
  margin-top:20px;
  box-shadow: 0 8px 20px rgba(124,58,237,.25);
}
.t-top{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
.t-time{color:var(--muted2); font-size:13px}
.t-sub{margin-top:10px; font-weight:700; font-size:13px; color:var(--text)}
.mt{margin-top:14px}

.project .proj-head{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.project .proj-foot{margin-top:10px; color:var(--muted2); font-size:13px}

.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
}

.contact-list{display:grid; gap:10px; margin-top:12px}
.contact-item{
  display:flex; gap:12px; align-items:center;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.c-ico{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(124,58,237,.16);
  border:1px solid rgba(124,58,237,.22);
}
.c-label{display:block; font-size:12px; color:var(--muted2)}
.c-value{display:block; font-weight:700; font-size:14px}

.note{
  margin-top:14px;
  border-radius: var(--radius);
  border:1px dashed rgba(255,255,255,.20);
  padding:12px;
  background: rgba(255,255,255,.03);
}
[data-theme="light"] .note{border-color: rgba(15,23,42,.25)}
.note-title{font-weight:800; font-size:13px}
.note-body{color:var(--muted); font-size:13px; margin-top:6px}
code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.form{display:grid; gap:10px}
label span{display:block; font-size:12px; color:var(--muted2); margin-bottom:6px}
input, textarea{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:11px 12px;
  outline:none;
}
[data-theme="light"] input, [data-theme="light"] textarea{background: rgba(255,255,255,.75)}
input:focus, textarea:focus{box-shadow: 0 0 0 4px rgba(124,58,237,.18)}
.form-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}
.tiny{font-size:12px; color:var(--muted2)}

.footer{padding:26px 0 40px}
.footer-inner{
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  color:var(--muted2);
}
.footer-right{display:flex; gap:10px; align-items:center}
.dot{opacity:.7}

.social {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 920px){
  .hero-inner{grid-template-columns: 1fr; }
  .grid.three{grid-template-columns: 1fr;}
}
@media (max-width: 740px){
  .nav, .actions{display:none}
  .hamburger{display:block}
  .grid.two{grid-template-columns: 1fr;}
  .quickfacts{grid-template-columns: 1fr;}
  .section-head{flex-direction:column; align-items:flex-start}
}
