:root{
  --bg: #0b0f19;
  --panel: rgba(255,255,255,.06);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --accent: #7c5cff;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(700px 400px at 85% 20%, rgba(0,200,255,.18), transparent 55%),
    radial-gradient(900px 500px at 50% 90%, rgba(255,180,80,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height:1.55;
}

a{ color: inherit; text-decoration: none; }
.container{ max-width: var(--max); margin:0 auto; padding: 0 20px; }

/* Nav */
.nav{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,15,25,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }
.brand{ font-weight: 900; letter-spacing:.2px; }
.nav-links{ display:flex; gap:16px; flex-wrap:wrap; }
.nav-links a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links a:hover{
  color: var(--text);
  background: rgba(255,255,255,.07);
  transform: translateY(-1px);
}

section{ padding: 70px 0; }
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px;
  margin-bottom: 18px;
}
h2{ margin:0; font-size: 22px; letter-spacing:.2px; }
.subtitle{ margin:0; color: var(--muted); font-size: 14px; }

/* Common helpers */
.panel{
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pad{ padding:16px; }
.muted{ margin:0; color: var(--muted); font-size:15px; }

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

/* Hero */
.hero{ padding-top: 44px; padding-bottom: 46px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size: 13px;
  width: fit-content;
}
.badge-dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(124,92,255,.18);
}
h1{
  margin: 14px 0 10px 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.lead{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}
.hero-actions{ display:flex; gap: 12px; flex-wrap:wrap; margin-top: 18px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.btn.primary{
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,200,255,.55));
  border-color: rgba(255,255,255,.16);
}
.btn.primary:hover{ background: linear-gradient(135deg, rgba(124,92,255,1), rgba(0,200,255,.65)); }

.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}
.hero-card::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(600px 160px at 50% 0%, rgba(124,92,255,.28), transparent 60%);
  pointer-events:none;
}
.avatar{
  width: 100%;
  aspect-ratio: 4 / 3;
  display:block;
  object-fit: cover;
  background: rgba(255,255,255,.06);
}
.hero-card-body{ padding: 14px 14px 16px 14px; position: relative; }
.mini{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; color: var(--muted); font-size: 13px; }

/* Timeline */
.timeline{ display:grid; grid-template-columns: 1fr; gap: 12px; }
.tl-item{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.tl-item:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.tl-time{ color: var(--muted); font-size: 13px; }
.tl-title{ margin:0; font-weight: 900; }
.tl-desc{ margin: 6px 0 0 0; color: var(--muted); font-size: 14px; }

/* Projects */
.projects-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.proj{
  grid-column: span 6;
  overflow:hidden;
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.proj:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
}
.proj-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.05);
  display:block;
  object-fit: cover;
}
.proj-body{ padding: 14px; }
.proj-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.proj h3{ margin:0; font-size: 16px; }
.proj p{ margin: 8px 0 0 0; color: var(--muted); font-size: 14px; }

.proj-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }
.linkbtn{
  display:inline-flex; align-items:center; gap:10px;
  font-size: 13px; font-weight: 900;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.linkbtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }

/* Footer */
footer{
  padding: 46px 0 60px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.footer-grid{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  flex-wrap:wrap;
}
.footer-name{ font-weight: 950; }
.footer-sub{ color: var(--muted); font-size:14px; }
.social{ display:flex; gap:10px; flex-wrap:wrap; }

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  h1{ font-size: 38px; }
  .tl-item{ grid-template-columns: 1fr; }
  .proj{ grid-column: span 12; }
}