:root {
  --bg: #0b1020;
  --panel: #121a2a;
  --muted: #a6b0cf;
  --text: #e6e9f5;
  --brandA: #7c3aed; /* violet */
  --brandB: #06b6d4; /* cyan */
  --accent: #22d3ee;
  --glass: rgba(255,255,255,.08);
  --ring: rgba(124,58,237,.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(124,58,237,.15), transparent 50%),
              radial-gradient(1000px 500px at 10% 10%, rgba(6,182,212,.15), transparent 40%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { width: min(1100px, 92%); margin: 0 auto; }
.site-header {
  position: sticky; top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,16,32,.75), rgba(11,16,32,.35) 40%, transparent);
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .3px; }
.brand-logo {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brandA), var(--brandB)); color: white; font-weight: 800;
}
.brand-text { font-size: 1rem; }
.nav .nav-links { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav .nav-links a { color: var(--muted); text-decoration: none; padding: .5rem .8rem; border-radius: 10px; transition: color .2s ease, background .2s ease; }
.nav .nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.1); background: transparent; color: var(--text); border-radius: 12px;
}
.hero { position: relative; padding: 8rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .4px; margin: 0 0 .25rem; }
.display { font-size: clamp(2rem, 1.6rem + 2.2vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
.cta { display: flex; gap: .75rem; margin-bottom: .75rem; }
.social a { color: var(--muted); font-size: 1.25rem; margin-right: .6rem; }
.social a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; border-radius: 12px; padding: .7rem 1rem; font-weight: 600; border: 1px solid rgba(255,255,255,.1); }
.btn.primary { background: linear-gradient(135deg, var(--brandA), var(--brandB)); color: white; border: none; box-shadow: 0 10px 30px rgba(124,58,237,.2), 0 6px 16px rgba(6,182,212,.15); }
.btn.ghost { color: var(--text); background: rgba(255,255,255,.03); }
.btn.small { padding: .5rem .8rem; font-size: .95rem; }
.btn.wide { width: 100%; justify-content: center; }
.glass-card { background: radial-gradient(600px 200px at 50% -50%, rgba(124,58,237,.18), transparent), linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .5rem; }
.stat-num { font-size: 1.2rem; font-weight: 800; }
.stat-label { font-size: .8rem; color: var(--muted); }
.hero-graphic { background: rgba(0,0,0,.2); border: 1px dashed rgba(255,255,255,.1); border-radius: 14px; padding: .5rem; }
.scroll-indicator { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); text-decoration: none; }
.scroll-indicator span { display: inline-block; width: 22px; height: 36px; border-radius: 16px; border: 2px solid rgba(255,255,255,.4); position: relative; }
.scroll-indicator span::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); top: 6px; width: 4px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.6); animation: wheel 1.4s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translate(-50%, 0); opacity: .9; } 100% { transform: translate(-50%, 12px); opacity: 0; } }
.section { padding: 5rem 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)); }
.section h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin: 0 0 .5rem; }
.muted { color: var(--muted); margin: 0 0 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.about-card { background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 1.2rem; }
.about-field { display: grid; grid-template-columns: 180px 1fr; padding: .5rem 0; align-items: center; }
.about-field .label { color: var(--muted); }
.about-field .value, .about-field a { color: var(--text); text-decoration: none; }
.checklist { margin: 1rem 0 0; padding: 0; list-style: none; }
.checklist li { padding: .5rem 0 .5rem 1.6rem; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: .45rem; color: var(--accent); text-shadow: 0 0 16px rgba(34,211,238,.35); }
.skills-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.chart-card { background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 1rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); padding: .45rem .7rem; border-radius: 999px; font-size: .9rem; color: var(--text); }
.card { background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.card-head { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: baseline; }
.card-head .org { color: var(--muted); }
.card-head .date { color: var(--muted); font-size: .95rem; }
.card-list { margin: .5rem 0 0; }
.card-list li { margin: .4rem 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proj-card { background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 1rem 1.2rem; transition: transform .25s ease, box-shadow .25s ease; }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.proj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tag { color: var(--muted); font-size: .9rem; }
.proj-actions { margin-top: .75rem; }
.contact { position: relative; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.contact-list li { margin: .5rem 0; }
.contact-form { background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 1rem; }
.field { display: grid; gap: .4rem; margin-bottom: .7rem; }
label { color: var(--muted); }
input, textarea { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--text); border-radius: 12px; padding: .7rem .8rem; outline: none; transition: border .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 6px rgba(124,58,237,.08); }
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 1.2rem 0 2.5rem; text-align: center; color: var(--muted); background: linear-gradient(0deg, rgba(255,255,255,.03), transparent 40%); }
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.visible { opacity: 1; transform: none; transition: transform .6s cubic-bezier(.2,.6,.2,1), opacity .6s ease; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.blob { position: fixed; width: 240px; height: 240px; background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.6), rgba(6,182,212,.35)); filter: blur(50px); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; transform: translate(-50%,-50%) scale(1); transition: transform .15s ease-out; z-index: 0; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt:hover { transform: perspective(800px) rotateX(4deg) rotateY(-4deg); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .nav .nav-links { display: none; position: absolute; right: 4%; top: 56px; background: var(--panel); padding: .6rem; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
  .nav .nav-links.show { display: grid; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .brand-text { display: none; } }
