
/* ---------- Design tokens ---------- */
:root{
    --bg:#0B1120;
    --bg-elevated:#111827;

    --text:#F8FAFC;
    --text-muted:#94A3B8;

    --border:#1E293B;
    --border-strong:#334155;

    --accent:#3B82F6;
    --accent-strong:#2563EB;
    --accent-soft:rgba(59,130,246,.1);

    --shadow:
        0 10px 40px rgba(0,0,0,.4);

    --radius:24px;

    --maxw:1100px;

    --font-display:'Space Grotesk',sans-serif;
    --font-body:'Inter',sans-serif;
    --font-mono:'IBM Plex Mono',monospace;

    --surface:var(--bg-elevated);
    --muted:var(--text-muted);
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:var(--font-body);
    line-height:1.7;
    overflow-x:hidden;
}

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  margin:0;
  letter-spacing:-0.01em;
}

.mono{font-family:var(--font-mono);}

/* ---------- Cell label (signature structural device) ---------- */
.cell-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.08em;
  color:var(--accent);
  text-transform:uppercase;
  margin-bottom:14px;
}
.cell-label .ref{
  border:1px solid var(--border-strong);
  border-radius:4px;
  padding:2px 7px;
  color:var(--text-muted);
  background:var(--bg-elevated);
}

/* ---------- Skip link / focus ---------- */
.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--accent); color:#fff; padding:10px 16px; z-index:200;
  border-radius:0 0 6px 0;
}
.skip-link:focus{left:0;}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px;}

/* ---------- Top nav ---------- */
.nav{
  position:sticky; top:0; z-index:100;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  max-width:var(--maxw); margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-weight:600; font-size:.95rem;
}
.brand .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);}
.nav-links{display:flex; gap:26px; list-style:none; margin:0; padding:0;}
.nav-links a{
  font-size:.92rem; color:var(--text-muted); font-weight:500;
  position:relative; padding:4px 0;
}
.nav-links a:hover{color:var(--text);}
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--accent); transform:scaleX(0); transition:transform .2s ease;
}
.nav-links a:hover::after{transform:scaleX(1);}

.theme-toggle{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:8px;
  border:1px solid var(--border); background:var(--bg-elevated);
  cursor:pointer; color:var(--text);
}
.theme-toggle:hover{border-color:var(--accent);}
.theme-toggle svg{width:18px; height:18px;}
.theme-toggle .sun{display:none;}
[data-theme="dark"] .theme-toggle .sun{display:block;}
[data-theme="dark"] .theme-toggle .moon{display:none;}

.nav-toggle{display:none; background:none; border:none; color:var(--text); cursor:pointer;}

/* ---------- Hero ---------- */
.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
}
.hero-grid{
position:absolute;
inset:0;

background-image:
linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);

background-size:60px 60px;

mask-image:linear-gradient(to bottom,black,transparent);

opacity:.4;
pointer-events:none;
}
.formula-bar{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:.85rem;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:6px;
  padding:8px 14px;
  margin-bottom:28px;
  color:var(--text-muted);
  box-shadow:var(--shadow);
}
.formula-bar .fx{color:var(--accent); font-weight:700;}
.formula-bar .typed{color:var(--text); border-right:2px solid var(--accent);}
.formula-bar .typed.done{border-right:none;}

.hero h1{
font-size:clamp(4rem,9vw,7rem);
line-height:.9;
letter-spacing:-4px;
margin-bottom:25px;
position:relative;
}
.hero h1::before{
content:"";
position:absolute;
top:0;
left:0;

width:350px;
height:350px;

background:#3B82F6;

filter:blur(180px);

opacity:.15;

z-index:-1;
}
.hero h1 .accent{color:var(--accent);}
.hero .role{
  font-family:var(--font-mono);
  font-size:1.05rem;
  color:var(--accent-strong);
  margin-top:14px;
}
.hero .intro{
  max-width:600px;
  margin-top:18px;
  color:var(--text-muted);
  font-size:1.05rem;
}
.hero-actions{display:flex; flex-wrap:wrap; gap:14px; margin-top:32px;}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 22px;
  border-radius:8px;
  font-weight:600; font-size:.93rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{
background:#3B82F6;
color:white;
border-radius:16px;
padding:15px 28px;
}

.btn-primary:hover{
background:#2563EB;
}
.btn-ghost{background:var(--bg-elevated); color:var(--text); border-color:var(--border);}
.btn-ghost:hover{border-color:var(--accent);}
.btn-sm{padding:8px 14px; font-size:.85rem;}

.socials{
display:flex;
gap:16px;
margin-top:30px;
flex-wrap:wrap;
}

.social-icon{
display:flex;
align-items:center;
justify-content:center;

padding:14px 22px;

background:#111827;

border:1px solid rgba(255,255,255,.05);

border-radius:18px;

text-decoration:none;

color:#F8FAFC;

transition:.3s;
}

.social-icon:hover{
transform:translateY(-4px);

border-color:#3B82F6;
}

/* KPI strip */
.kpis{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  margin-top:60px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-elevated);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.kpi{
  padding:22px 18px;
  border-right:1px solid var(--border);
  text-align:left;
}
.kpi:last-child{border-right:none;}
.kpi .num{
  font-family:var(--font-mono);
  font-size:1.7rem; font-weight:600;
  color:var(--accent-strong);
}
.kpi .label{
  font-size:.78rem; color:var(--text-muted); margin-top:6px;
  text-transform:uppercase; letter-spacing:.05em;
}

/* ---------- Section shells ---------- */
section{padding:84px 0;}
.section-head{margin-bottom:42px; max-width:640px;}
.section-head h2{font-size:clamp(1.7rem, 3vw, 2.2rem);}
.section-head p{color:var(--text-muted); margin-top:10px;}

/* ---------- About ---------- */
.about-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:start;}
.about-text p{color:var(--text-muted); margin:0 0 16px;}
.about-text strong{color:var(--text); font-weight:600;}
.about-card{
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow);
}
.about-card h4{font-size:.95rem; margin-bottom:14px;}
.fact-row{
  display:flex; justify-content:space-between; padding:10px 0;
  border-bottom:1px solid var(--border); font-size:.9rem;
}
.fact-row:last-child{border-bottom:none;}
.fact-row span:first-child{color:var(--text-muted);}
.fact-row span:last-child{font-family:var(--font-mono); text-align:right;}

/* ===== CURRENTLY WORKING ON ===== */

#current{
    padding:90px 0;
}

.current-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    margin-top:50px;
}

.current-card{
    position:relative;
    background:var(--surface);
    border:1px solid rgba(255,255,255,.06);
    border-radius:20px;
    padding:32px;
    transition:all .3s ease;
}

.current-card:hover{
    transform:translateY(-6px);
    border-color:rgba(37,99,235,.45);
    box-shadow:0 12px 30px rgba(37,99,235,.12);
}

.current-icon{
    font-size:2rem;
    margin-bottom:18px;
}

.current-card h3{
    margin:0 0 12px;
    font-size:1.2rem;
}

.current-card p{
    color:var(--muted);
    margin:0;
    line-height:1.7;
}

.status{
    position:absolute;
    top:18px;
    right:18px;

    padding:6px 12px;

    border-radius:999px;

    background:rgba(37,99,235,.12);

    color:#60A5FA;

    font-size:.75rem;

    font-weight:600;
}

@media(max-width:900px){

.current-grid{

grid-template-columns:1fr;

}

}

/* ---------- Skills ---------- */
.skills-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:20px;}
.skill-card{
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow);
  transition:border-color .2s ease, transform .2s ease;
}
.skill-card:hover{border-color:var(--accent); transform:translateY(-3px);}
.skill-card h3{font-size:1rem; margin-bottom:14px; display:flex; align-items:center; gap:10px;}
.skill-card h3 .icon{width:20px; height:20px; color:var(--accent);}
.tag-list{display:flex; flex-wrap:wrap; gap:8px;}
.tag{

background:rgba(59,130,246,.1);

color:#60A5FA;

padding:8px 14px;

border-radius:999px;

font-size:.8rem;

}


/* ---------- Projects ---------- */
.projects-grid{display:grid; gap:24px;}
.project-card{

background:rgba(17,24,39,.75);

backdrop-filter:none;

border:1px solid rgba(255,255,255,.05);

border-radius:28px;

padding:36px;

display:grid;

grid-template-columns:120px 1fr;

gap:30px;

transition:.4s;

box-shadow:0 20px 50px rgba(0,0,0,.4);

}
.project-card:hover{

transform:translateY(-10px);

border-color:#3B82F6;

}
.project-index{

font-size:4rem;

font-weight:700;

opacity:.08;

color:#3B82F6;

}
.project-card h3{font-size:1.2rem; margin-bottom:6px;}
.project-domain{font-family:var(--font-mono); font-size:.78rem; color:var(--accent); text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px;}
.project-card p{color:var(--text-muted); font-size:.94rem; margin:0 0 16px;}
.project-card ul{margin:0 0 16px; padding-left:18px; color:var(--text-muted); font-size:.92rem;}
.project-card li{margin-bottom:6px;}
.project-foot{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;}

/* ---------- Experience (timeline) ---------- */
.timeline{border-left:1px solid var(--border); padding-left:34px; display:flex; flex-direction:column; gap:36px;}
.tl-item{position:relative;}
.tl-item::before{
  content:""; position:absolute; left:-40px; top:4px;
  width:11px; height:11px; border-radius:50%;
  background:var(--bg-elevated); border:2px solid var(--accent);
}
.tl-item .tl-meta{font-family:var(--font-mono); font-size:.78rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em;}
.tl-item h3{font-size:1.05rem; margin-top:6px;}
.tl-item .tl-org{color:var(--accent-strong); font-weight:500; font-size:.92rem; margin-top:2px;}
.tl-item p{color:var(--text-muted); margin-top:10px; font-size:.95rem; max-width:640px;}


/* ---------- Education ---------- */
.edu-grid{display:grid; gap:18px;}
.edu-row{
  display:grid; grid-template-columns:1fr auto auto; gap:16px; align-items:center;
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius);
  padding:20px 24px;
}
.edu-row h3{font-size:1.02rem;}
.edu-row .edu-org{color:var(--text-muted); font-size:.9rem; margin-top:3px;}
.edu-row .edu-year{font-family:var(--font-mono); font-size:.85rem; color:var(--text-muted);}
.edu-row .edu-score{font-family:var(--font-mono); font-size:.95rem; color:var(--accent-strong); font-weight:600; white-space:nowrap;}

/* ---------- Certifications ---------- */
.cert-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;}
.cert-card{
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius);
  padding:22px; box-shadow:var(--shadow);
}
.cert-card .badge{
  width:34px; height:34px; border-radius:8px; background:var(--accent-soft); color:var(--accent-strong);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
}
.cert-card .badge svg{width:18px; height:18px;}
.cert-card h3{font-size:.96rem; margin-bottom:6px;}
.cert-card p{color:var(--text-muted); font-size:.86rem; margin:0;}

/* ---------- Contact ---------- */
.contact-box{
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius);
  padding:50px; text-align:center; box-shadow:var(--shadow);
  position:relative; overflow:hidden;
}
.contact-box h2{font-size:clamp(1.6rem,3vw,2.1rem);}
.contact-box p{color:var(--text-muted); margin:14px auto 28px; max-width:480px;}
.contact-methods{display:flex; justify-content:center; gap:14px; flex-wrap:wrap;}

footer{
  padding:30px 0; text-align:center;
  color:var(--text-muted); font-size:.85rem;
  font-family:var(--font-mono);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1; transform:translateY(0);}
.no-js .reveal{opacity:1; transform:none;}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .about-grid{grid-template-columns:1fr;}
  .skills-grid{grid-template-columns:1fr;}
  .kpis{grid-template-columns:repeat(2,1fr);}
  .kpi:nth-child(2){border-right:none;}
  .cert-grid{grid-template-columns:1fr;}
  .project-card{grid-template-columns:1fr;}
  .project-index{display:none;}
}
@media (max-width: 700px){
  .nav{

position:fixed;

width:100%;

background:rgba(11,17,32,.7);

backdrop-filter:blur(20px);

border-bottom:1px solid rgba(255,255,255,.04);

}
  .nav-toggle{display:block;}

  .nav-links{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(78vw, 300px);
    margin:0;
    padding:88px 28px 28px;
    flex-direction:column;
    gap:22px;
    background:var(--bg-elevated);
    border-left:1px solid var(--border);
    box-shadow:var(--shadow);
    transform:translateX(100%);
    transition:transform .3s ease;
    z-index:99;
  }
  .nav-links.open{transform:translateX(0);}
  .nav-links a{font-size:1rem;}

  .current-grid{gap:16px;}
  .current-card{padding:22px;}

  .hero h1{letter-spacing:-1.5px;}

  .edu-row{grid-template-columns:1fr; text-align:left;}
  .contact-box{padding:34px 22px;}
}

/* ---------- Case study page ---------- */
.case-hero{padding:64px 0 20px;}
.back-link{
  display:inline-block; font-family:var(--font-mono); font-size:.85rem;
  color:var(--text-muted); margin-bottom:24px;
}
.back-link:hover{color:var(--accent);}
.case-title{
  font-family:var(--font-display);
  font-size:clamp(2.1rem, 5vw, 3.4rem);
  line-height:1.1; letter-spacing:-1px; margin:0 0 16px;
}
.case-title .accent{color:var(--accent);}
.case-sub{color:var(--text-muted); font-size:1.05rem; max-width:640px; margin:0 0 36px;}

.case-meta-row{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:0;
  border:1px solid var(--border); border-radius:var(--radius);
  background:var(--bg-elevated); box-shadow:var(--shadow);
  overflow:hidden; margin-bottom:32px;
}
.case-meta-item{
  padding:20px 16px; border-right:1px solid var(--border);
  display:flex; flex-direction:column; gap:6px;
}
.case-meta-item:last-child{border-right:none;}
.case-meta-item .num{font-size:1.5rem; font-weight:600; color:var(--accent-strong);}
.case-meta-item .meta-label{font-size:.76rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em;}

.case-actions{display:flex; flex-wrap:wrap; gap:14px; margin-top:8px;}

.workflow-steps{list-style:none; margin:0 0 40px; padding:0; display:flex; flex-direction:column; gap:22px;}
.workflow-steps li{display:flex; gap:20px; align-items:flex-start;}
.step-num{
  flex-shrink:0; width:40px; height:40px; border-radius:10px;
  background:var(--accent-soft); color:var(--accent-strong);
  display:flex; align-items:center; justify-content:center; font-size:.85rem;
}
.workflow-steps h3{font-size:1rem; margin-bottom:4px;}
.workflow-steps p{color:var(--text-muted); font-size:.92rem; margin:0;}

.workflow-figure{margin:0 0 20px; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--bg-elevated); box-shadow:var(--shadow);}
.workflow-figure img{width:100%; display:block;}
.workflow-figure figcaption{padding:14px 20px; color:var(--text-muted); font-size:.85rem; border-top:1px solid var(--border);}
.workflow-links{margin-bottom:20px;}

.result-figure{margin:24px 0 0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--bg-elevated); box-shadow:var(--shadow); max-width:640px;}
.result-figure img{width:100%; display:block;}
.result-figure figcaption{padding:14px 20px; color:var(--text-muted); font-size:.85rem; border-top:1px solid var(--border);}

.feature-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:20px;}
.feature-card{
  background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow);
}
.feature-card h3{font-size:1rem; margin-bottom:12px;}
.feature-card .formula{
  font-size:.85rem; color:var(--accent-strong); background:var(--bg);
  border:1px solid var(--border); border-radius:8px; padding:12px 14px; line-height:1.6;
}

.model-table-wrap{overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-elevated); box-shadow:var(--shadow); margin-bottom:20px;}
.model-table{width:100%; border-collapse:collapse; font-size:.92rem; min-width:480px;}
.model-table th,.model-table td{text-align:left; padding:14px 18px; border-bottom:1px solid var(--border);}
.model-table thead th{color:var(--text-muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; font-weight:600;}
.model-table tbody tr:last-child td{border-bottom:none;}
.model-selected{background:var(--accent-soft);}
.model-table .star{color:var(--accent-strong); font-size:.8rem; margin-left:6px;}
.result-note{color:var(--text-muted); font-size:.92rem; max-width:640px;}

.tier-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:16px;}
.tier-card{
  border-radius:var(--radius); padding:20px; border:1px solid var(--border);
  background:var(--bg-elevated); box-shadow:var(--shadow);
}
.tier-card h3{font-size:.98rem; margin-top:8px;}
.tier-card p{color:var(--text-muted); font-size:.82rem; margin:8px 0 0;}
.tier-range{font-size:.78rem; color:var(--text-muted);}
.tier-low{border-top:3px solid #22C55E;}
.tier-moderate{border-top:3px solid #EAB308;}
.tier-high{border-top:3px solid #F97316;}
.tier-critical{border-top:3px solid #EF4444;}

.pdf-embed-wrap{
  border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;
  background:var(--bg-elevated); box-shadow:var(--shadow); margin-bottom:20px;
  aspect-ratio:4/3;
}
.pdf-embed-wrap iframe{width:100%; height:100%; border:none;}

@media (max-width: 860px){
  .case-meta-row{grid-template-columns:repeat(2, 1fr);}
  .feature-grid{grid-template-columns:1fr;}
  .tier-grid{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width: 500px){
  .pdf-embed-wrap{aspect-ratio:3/4;}
}
