:root{
  --bg: #0b0c10;
  --panel: #11131a;
  --panel2:#0f1117;
  --text:#e9eefc;
  --muted:#a9b4d0;
  --border:#21263a;
  --accent:#7aa7ff;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, #12162b 0%, var(--bg) 60%);
  color:var(--text);
}

a{ color:var(--text); text-decoration:none; }
a:hover{ text-decoration:underline; }
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:12px; top:12px; width:auto; height:auto; padding:10px 12px;
  background:var(--panel); border:1px solid var(--border); border-radius:10px; z-index:9999;
}

.layout{
  display:grid;
  grid-template-columns: 300px 1fr;
  min-height:100vh;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:18px;
  background: linear-gradient(180deg, rgba(17,19,26,.95) 0%, rgba(15,17,23,.85) 100%);
  border-right:1px solid var(--border);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: rgba(17,19,26,.55);
}
.avatar{
  width:44px; height:44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(122,167,255,.85), rgba(122,167,255,.15));
}
.name{ font-weight:800; letter-spacing:.2px; }
.tagline{ color:var(--muted); font-size:.9rem; margin-top:2px; }

.nav{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 4px;
}
.nav-link{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.nav-link:hover{
  text-decoration:none;
  color:var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.03);
  transform: translateX(2px);
}
.nav-link.active{
  color:var(--text);
  border-color: rgba(122,167,255,.35);
  background: rgba(122,167,255,.08);
}
.nav-sep{
  height:1px;
  background: var(--border);
  margin:8px 10px;
}

.sidebar-footer{
  position:absolute;
  left:18px; right:18px; bottom:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.small{ font-size:.9rem; color:var(--muted); line-height:1.35; }

.content{
  padding: 26px 22px 80px;
  max-width: 980px;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  margin-bottom: 18px;
}
.hero h1{
  margin:0 0 8px;
  font-size: 2.2rem;
  letter-spacing:-.5px;
}
.lead{ color: var(--muted); margin:0 0 14px; line-height:1.55; }
.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.section{
  margin-top: 18px;
}
.section h2{
  margin: 18px 0 10px;
  font-size: 1.25rem;
  color: #dfe7ff;
}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17,19,26,.55);
  box-shadow: var(--shadow);
  padding: 14px 14px;
}

.item{ margin-bottom: 12px; }
.item-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.item h3{ margin:0; font-size:1.05rem; }
.muted{ color: var(--muted); }
.bullets{ margin:10px 0 0 18px; color: var(--text); }
.bullets li{ margin: 6px 0; color: var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.project h3{ margin:0 0 6px; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.chip{
  font-size:.85rem;
  color: var(--text);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding:6px 10px;
  border-radius: 999px;
}
.project-links{ display:flex; gap:12px; margin-top:12px; }
.project-links a{ color: var(--accent); }

.skill-groups{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.skill-groups h3{ margin:0 0 8px; font-size:1rem; }

.quick{ display:flex; flex-direction:column; gap:10px; }
.quick-row{ display:flex; justify-content:space-between; gap:12px; }
.label{ color: var(--muted); }
.value a{ color: var(--accent); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(122,167,255,.45);
  background: rgba(122,167,255,.14);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  text-decoration:none;
  transform: translateY(-1px);
  background: rgba(122,167,255,.18);
  border-color: rgba(122,167,255,.65);
}
.btn-ghost{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.06);
}

.contact-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.site-footer{
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.call-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  padding: 12px 14px;
  border-radius: 999px;
  border:1px solid rgba(122,167,255,.55);
  background: rgba(122,167,255,.18);
  box-shadow: var(--shadow);
  text-decoration:none;
}
.call-fab:hover{ text-decoration:none; transform: translateY(-1px); }

/* references page layout */
.page{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 90px;
}
.page-header h1{ margin: 14px 0 4px; }
.page-footer{ margin-top: 18px; }

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{
    position: relative;
    height:auto;
    border-right:none;
    border-bottom:1px solid var(--border);
  }
  .sidebar-footer{
    position:relative;
    left:auto; right:auto; bottom:auto;
    margin-top:12px;
  }
  .content{ padding: 18px 18px 90px; }
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .skill-groups{ grid-template-columns: 1fr; }
}
