:root {
  --bg: #0b0f19;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --accent: rgba(102, 217, 239, 0.95);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html[data-theme="light"]{
  --bg: #f7f8fc;
  --card: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.10);
  --text: rgba(0,0,0,0.88);
  --muted: rgba(0,0,0,0.55);
  --accent: rgba(26, 115, 232, 0.95);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(900px 500px at 20% 0%, rgba(102,217,239,0.12), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, rgba(26,115,232,0.10), transparent 70%),
              var(--bg);
  color:var(--text);
  line-height: 1.6;
}

a{ color:var(--text); text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{ width:min(1100px, 92%); margin:0 auto; }

#progress{
  position: fixed;
  top:0; left:0;
  height: 3px;
  width:0%;
  background: var(--accent);
  z-index: 9999;
}

.header{
  position: sticky;
  top:0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(10, 15, 25, 0.65);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .header{
  background: rgba(247,248,252,0.75);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{ display:flex; align-items:center; gap:12px; }
.avatar{
  width:46px; height:46px; border-radius: 14px;
  display:grid; place-items:center;
  font-weight: 800;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

h1{ margin:0; font-size: 18px; }
.subtitle{ margin:0; color: var(--muted); font-size: 13px; }

.header-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.nav{
  border-top: 1px solid var(--border);
}
.nav-inner{
  display:flex;
  gap: 12px;
  overflow:auto;
  padding: 10px 0;
}
.nav-link{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  white-space: nowrap;
}
.nav-link.active{
  border-color: var(--border);
  background: var(--card);
  color: var(--text);
}

.main{ padding: 20px 0 60px; }
.section{ padding: 26px 0; }

.section-head{ margin-bottom: 14px; }
.section-head h2{ margin: 0 0 6px; }
.muted{ color: var(--muted); margin:0; }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.grid-2{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
  .header-inner{ flex-direction: column; align-items:flex-start; }
  .header-actions{ width:100%; justify-content:flex-start; }
}

.pill-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-size: 12px;
}

.info{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.info li{ display:flex; justify-content:space-between; gap:12px; border-bottom:1px dashed var(--border); padding-bottom:10px; }
.info li:last-child{ border-bottom:0; padding-bottom:0; }
.info span{ color: var(--muted); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--accent);
  border: 1px solid transparent;
  font-weight: 700;
  cursor:pointer;
}
.btn:hover{ opacity: 0.92; text-decoration:none; }
.btn.outline{
  background: transparent;
  border: 1px solid var(--border);
}
.btn.ghost{
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 12px;
}

.cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }

.skills-controls{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.input{
  flex:1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  outline: none;
}
.tags{ display:flex; gap:10px; flex-wrap:wrap; }
.tag{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor:pointer;
  font-weight: 700;
  font-size: 12px;
}
.tag.active{
  background: var(--card);
  color: var(--text);
}

.skills-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .skills-grid{ grid-template-columns: 1fr; }
}

.skill{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.skill .top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.skill small{ color: var(--muted); font-weight: 700; }

.timeline{ display:grid; gap: 12px; }
.timeline-top{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.badge{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .projects-grid{ grid-template-columns: 1fr; }
}
.project h3{ margin:0 0 6px; }
.project p{ margin:0; color: var(--muted); }
.mini{ display:inline-block; margin-top: 10px; color: var(--muted); font-weight:800; }

.footer{ padding: 30px 0 60px; text-align:center; }
