:root{
  --bg: #0b0c10;
  --panel:#11131a;
  --text:#e9eef6;
  --muted:#a9b2c3;
  --line:#23283a;
  --brand:#7c5cff;
  --brand2:#2de2e6;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1100px;
}

:root.light{
  --bg:#f7f8fb;
  --panel:#ffffff;
  --text:#0b1020;
  --muted:#4b5569;
  --line:#e7e9f2;
  --shadow: 0 14px 30px rgba(12,16,32,.12);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(124,92,255,.25), transparent 55%),
              radial-gradient(1000px 500px at 80% 0%, rgba(45,226,230,.18), transparent 55%),
              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 18px; }

.header{
  position: sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(10,12,16,.65);
  backdrop-filter: blur(10px);
}
:root.light .header{ background: rgba(255,255,255,.75); border-bottom:1px solid var(--line); }

.logo{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(45,226,230,.85));
  font-weight:800;
  letter-spacing:.5px;
  color:#0b0c10;
}

.nav{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav a{
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
}
.nav a:hover{ background: rgba(124,92,255,.12); color: var(--text); }

.theme-btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
:root.light .theme-btn{ border:1px solid var(--line); background: #f3f5ff; }

.menu-btn{
  display:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px;
  cursor:pointer;
}
.menu-btn span{ display:block; width:22px; height:2px; background: var(--text); margin:5px 0; border-radius:2px; }

.hero{
  padding: 70px 0 30px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 22px;
  align-items:stretch;
}
.kicker{ color: var(--muted); margin:0 0 10px; }
h1{ font-size: clamp(34px, 4vw, 56px); line-height:1.05; margin: 0 0 12px; letter-spacing:-.02em; }
.lead{ color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; max-width: 62ch; }

.hero-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px;
}
:root.light .hero-card{ background: var(--panel); border: 1px solid var(--line); }

.bullets{ margin: 10px 0 18px; padding-left: 18px; color: var(--muted); }
.bullets li{ margin: 8px 0; }

.stats{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}
.stat{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 10px;
  text-align:center;
}
:root.light .stat{ background: #f6f7ff; border: 1px solid var(--line); }
.stat-num{ font-weight:800; font-size: 1.2rem; }
.stat-label{ color: var(--muted); font-size: .85rem; margin-top: 2px; }

.cta-row{ display:flex; gap: 10px; margin: 10px 0 16px; flex-wrap:wrap; }
.meta-row{ display:flex; gap: 10px; flex-wrap:wrap; }

.chip{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
}
:root.light .chip{ border: 1px solid var(--line); background:#fff; }

.section{ padding: 54px 0; }
.section h2{ font-size: 1.8rem; margin: 0 0 14px; }
.section p{ color: var(--muted); max-width: 78ch; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(124,92,255,.35); background: rgba(124,92,255,.12); }
.btn.primary{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(45,226,230,.55));
  color: #0b0c10;
  font-weight: 700;
}
.btn.ghost{ background: transparent; }
.btn.small{ padding: 9px 12px; border-radius: 12px; font-size: .95rem; }

:root.light .btn{ border:1px solid var(--line); background:#fff; color: var(--text); }
:root.light .btn.ghost{ background: transparent; }
:root.light .btn:hover{ background:#f3f5ff; }

.timeline{
  margin-top: 16px;
  border-left: 2px solid rgba(124,92,255,.35);
  padding-left: 16px;
  display:grid;
  gap: 18px;
}
.tl-item{ position:relative; }
.tl-dot{
  position:absolute;
  left: -25px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand2);
  box-shadow: 0 0 0 6px rgba(45,226,230,.12);
}
.tl-content{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
}
:root.light .tl-content{ background: var(--panel); border: 1px solid var(--line); }
.tl-header{ display:flex; gap: 10px; justify-content:space-between; flex-wrap:wrap; align-items:baseline; }
.tl-header h3{ margin:0; font-size: 1.05rem; }
.tl-date{ color: var(--muted); font-size: .92rem; }
.tl-content ul{ margin: 10px 0 0; color: var(--muted); padding-left: 18px; }
.tl-content li{ margin: 6px 0; }

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
}
.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
:root.light .card{ background: var(--panel); border: 1px solid var(--line); }
.card-top{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.card h3{ margin:0; }
.card p{ margin: 10px 0 14px; }

.tag{
  border: 1px solid rgba(124,92,255,.4);
  background: rgba(124,92,255,.12);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .85rem;
}
:root.light .tag{ color: var(--text); }

.card-actions{ display:flex; gap: 10px; flex-wrap:wrap; }

.skill-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 12px;
}
.skill-block{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 14px;
}
:root.light .skill-block{ background: var(--panel); border: 1px solid var(--line); }
.skill-block h3{ margin: 0 0 10px; font-size: 1.05rem; }
.pills{
  list-style:none;
  padding:0; margin:0;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.pills li{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .92rem;
}
:root.light .pills li{ border:1px solid var(--line); background:#fff; }

.callout{
  margin-top: 18px;
  border: 1px solid rgba(45,226,230,.28);
  background: rgba(45,226,230,.08);
  padding: 14px;
  border-radius: var(--radius);
  color: var(--muted);
}

.contact-row{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 10px; }
.footer-note{ margin-top: 18px; color: var(--muted); }

.note{ margin-top: 12px; color: var(--muted); font-size: .95rem; }

.toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.12);
  color: white;
  padding: 10px 12px;
  border-radius: 999px;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}
:root.light .toast{ background: rgba(15,18,30,.88); }

.toast.show{ opacity:1; }

@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .menu-btn{ display:block; }
  .nav{
    position:absolute;
    right: 18px;
    top: 62px;
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
    background: rgba(10,12,16,.88);
    border: 1px solid rgba(255,255,255,.12);
    padding: 10px;
    border-radius: 16px;
    min-width: 210px;
    display:none;
  }
  :root.light .nav{ background: rgba(255,255,255,.92); border: 1px solid var(--line); }
  .nav.open{ display:flex; }
  .cards{ grid-template-columns: 1fr; }
  .skill-grid{ grid-template-columns: 1fr; }
}

.profile{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar{
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

:root.light .avatar{
  border: 1px solid var(--line);
  background: #fff;
}

.profile-text h2{
  margin: 0;
  font-size: 1.05rem;
}
.muted{ color: var(--muted); margin: 4px 0 0; }

.tag-group{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tag.secondary{
  border: 1px solid rgba(45,226,230,.45);
  background: rgba(45,226,230,.12);
}
