:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel-strong: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.14);
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius: 16px;
  --container: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(110,231,255,.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(167,139,250,.18), transparent 55%),
    var(--bg);
  line-height:1.6;
}

a{color:inherit}

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

.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  padding:10px 12px;
  background:var(--panel-strong);
  border:1px solid var(--border);
  border-radius:10px;
}
.skip-link:focus{left:12px; outline:none; box-shadow:var(--shadow)}

.site-header{
  padding:28px 0 10px;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.brand{display:flex; flex-direction:column; gap:2px}
.brand__name{font-weight:700; letter-spacing:.2px; font-size:18px}
.brand__role{color:var(--muted); font-weight:500; font-size:14px}

.nav{display:flex; gap:14px; flex-wrap:wrap}
.nav__link{
  color:var(--muted);
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
}
.nav__link:hover{
  color:var(--text);
  background:var(--panel);
  border-color:var(--border);
}

.hero{
  margin-top:18px;
  padding:34px 18px;
  border-radius:calc(var(--radius) + 6px);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.hero__layout{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:18px;
}
.hero__content{min-width:0}
.hero__media{display:flex; justify-content:center}
.hero__title{margin:0 0 6px; font-size:42px; line-height:1.1}
.hero__subtitle{margin:0; color:var(--muted); max-width:70ch}
.hero__actions{margin-top:16px; display:flex; gap:10px; flex-wrap:wrap}

.avatar{
  width:140px;
  height:140px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(110,231,255,.35), transparent 60%),
    radial-gradient(60% 60% at 70% 70%, rgba(167,139,250,.35), transparent 60%),
    rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.avatar__img{width:100%; height:100%; object-fit:cover; display:block}
.avatar__fallback{font-weight:800; letter-spacing:.6px; color:rgba(255,255,255,.86)}

.section{padding:48px 0}
.section--alt{background:rgba(255,255,255,.02); border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06)}
.section__header{display:grid; gap:8px; margin-bottom:18px}
.section__title{margin:0; font-size:26px}
.section__lead{margin:0; color:var(--muted); max-width:85ch}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
}

.muted{color:var(--muted)}

.skills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  color:var(--text);
  font-weight:600;
  font-size:13px;
}

.chip__icon{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

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

.project{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:180px;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.project:hover{
  transform:translateY(-3px);
  background:var(--panel-strong);
  border-color:rgba(255,255,255,.22);
}

.project__title{margin:0; font-size:18px}
.project__desc{margin:0; color:var(--muted)}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(110,231,255,.20), rgba(167,139,250,.20));
  border:1px solid rgba(255,255,255,.18);
  text-decoration:none;
  font-weight:700;
  color:var(--text);
  width:fit-content;
}

.icon{width:18px; height:18px; flex:0 0 auto}
.icon--muted{color:var(--muted)}

.button:hover{border-color:rgba(255,255,255,.28)}

.button--ghost{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
}
.button--ghost:hover{background:var(--panel)}

.button--small{
  margin-top:auto;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
}

.contact{
  display:grid;
  gap:14px;
}

.contact__item{display:grid; gap:4px}
.contact__head{display:flex; align-items:center; gap:8px}
.contact__label{color:var(--muted); font-size:13px; font-weight:600}
.contact__value{text-decoration:none}
.contact__value:hover{text-decoration:underline}

.footer{
  padding:26px 0 34px;
  color:var(--muted);
}

@media (max-width: 980px){
  .grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .hero__title{font-size:36px}
  .avatar{width:124px; height:124px}
}

@media (max-width: 640px){
  .container{width:calc(100% - 28px)}
  .hero{padding:26px 14px}
  .hero__layout{grid-template-columns:1fr; justify-items:start}
  .hero__media{justify-content:flex-start}
  .avatar{width:112px; height:112px}
  .hero__title{font-size:30px}
  .grid{grid-template-columns:1fr}
}

@media (prefers-reduced-motion: reduce){
  .project{transition:none}
}
