:root { --bg:#f5f5f2; --surface:#fff; --dark:#111; --muted:#62625f; --line:#deded9; --accent:#a3e635; --accent-dark:#54840b; --code:#171717; --max:1160px; }
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { font-family:'Inter',Arial,sans-serif; background:var(--bg); color:var(--dark); line-height:1.6; }
a { color:inherit; text-decoration:none; }
button { font:inherit; }
img { max-width:100%; display:block; }
:focus-visible { outline:3px solid var(--accent-dark); outline-offset:5px; }
.container { width:min(var(--max),calc(100% - 48px)); margin:0 auto; }
.skip-link { position:fixed; top:12px; left:12px; z-index:200; padding:12px 20px; background:var(--dark); color:#fff; border-radius:10px; transform:translateY(-200%); }
.skip-link:focus { transform:translateY(0); }
.header { position:sticky; top:0; z-index:50; background:rgba(245,245,242,.94); backdrop-filter:blur(14px); border-bottom:1px solid rgba(0,0,0,.06); }
.nav { min-height:76px; display:flex; align-items:center; justify-content:space-between; }
.logo { font-size:1.45rem; font-weight:800; letter-spacing:-.08em; }
.logo span { color:var(--accent-dark); }
.nav-links { display:flex; gap:28px; font-size:.88rem; font-weight:600; }
.nav-links a { position:relative; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--accent-dark); transition:width .25s; }
.nav-links a:hover::after { width:100%; }
.menu-toggle { display:none; border:0; background:transparent; cursor:pointer; padding:8px; }
.menu-toggle span { display:block; width:25px; height:2px; margin:5px; background:var(--dark); }
.hero { padding:100px 0 95px; min-height:min(800px,calc(100svh - 76px)); display:flex; align-items:center; }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:65px; align-items:center; }
.hero-grid > *, .about-grid > * { min-width:0; }
.eyebrow,.section-number,.project-type,.skill-label,.image-label { font-family:'JetBrains Mono',monospace; font-size:.72rem; letter-spacing:.1em; }
.eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:27px; }
.status-dot { width:8px; height:8px; flex-shrink:0; border-radius:50%; background:var(--accent-dark); box-shadow:0 0 0 5px rgba(132,204,22,.12); }
h1 { font-size:clamp(3.2rem,6.5vw,6.2rem); line-height:.98; letter-spacing:-.07em; }
h1 .name-dot { color:var(--accent-dark); }
h2 span { color:#73736e; }
.hero-role { font-size:1.25rem; font-weight:600; margin-top:24px; }
.hero-text { max-width:570px; color:var(--muted); font-size:1rem; margin:20px 0 30px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:14px 20px; border-radius:999px; font-weight:700; font-size:.85rem; transition:transform .2s,background .2s; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { background:var(--dark); color:#fff; }
.btn-secondary { border:1px solid var(--line); background:var(--surface); }
.socials { display:flex; gap:22px; margin-top:30px; color:var(--muted); font-size:.82rem; font-weight:600; }
.socials a:hover,.text-link:hover,.project-link:hover { color:var(--accent-dark); }
.hero-card { position:relative; }
.code-window { overflow:hidden; border-radius:18px; background:var(--code); color:#e7e7e7; box-shadow:0 30px 80px rgba(0,0,0,.16); transform:rotate(2deg); transition:transform .35s; }
.code-window:hover { transform:rotate(0deg) translateY(-5px); }
.window-bar { height:48px; padding:0 18px; display:flex; align-items:center; gap:7px; border-bottom:1px solid #2a2a2a; }
.window-bar > span { width:9px; height:9px; border-radius:50%; background:#555; }
.window-bar small { margin-left:auto; color:#aaa; font-family:'JetBrains Mono',monospace; font-size:.68rem; }
pre { padding:26px; overflow-x:auto; font:500 .79rem/1.9 'JetBrains Mono',monospace; }
.purple { color:#c084fc; } .blue { color:#60a5fa; } .green { color:#86efac; } .yellow { color:#fde047; } .comment { color:#aaa; }
.hero-card-caption { font-family:'JetBrains Mono',monospace; text-align:center; color:var(--muted); margin-top:28px; font-size:.7rem; }
.section { padding:105px 0; }
.projects-section { border-top:1px solid var(--line); }
.section-dark { background:var(--dark); color:#fff; }
.section-light { background:#eaeae6; }
.section-heading { max-width:800px; margin-bottom:55px; }
.section-number { color:var(--muted); margin-bottom:18px; }
.section-dark .section-number,.skill-label { color:#aaa; }
h2 { font-size:clamp(2.4rem,5vw,4.5rem); letter-spacing:-.06em; line-height:1.06; }
.heading-row { max-width:none; display:flex; justify-content:space-between; align-items:end; gap:30px; }
.text-link { font-weight:700; font-size:.85rem; }
.projects-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.project-card { overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:20px; display:flex; flex-direction:column; transition:transform .25s,box-shadow .25s; }
.project-card:hover { transform:translateY(-4px); box-shadow:0 18px 50px rgba(0,0,0,.06); }
.project-card.featured { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; }
.project-image { height:340px; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; padding:20px; }
.project-image img { width:100%; height:100%; object-fit:contain; transition:transform .35s; }
.project-card:hover .project-image img { transform:scale(1.02); }
.project-image-wepod { height:100%; min-height:510px; padding:30px 30px 62px; background:#dcecc2; }
.project-image-wepod .app-screen { width:auto; max-width:90%; height:410px; border:5px solid #161616; border-radius:24px; box-shadow:14px 20px 35px rgba(0,0,0,.14); }
.image-label { position:absolute; bottom:24px; color:#426018; font-size:.65rem; }
.project-image-pos { background:#e4e6e8; padding:0; }
.project-image-tapesh { background:#343434; padding:0; }
.project-image-diabetes { background:#e8e5e1; padding:0; }
.project-image-arithtopia { background:#e2e8d9; padding:0; }
.project-content { padding:32px; display:flex; flex-direction:column; flex:1; align-items:start; }
.featured .project-content { justify-content:center; padding:44px; }
.project-type { color:var(--muted); margin-bottom:13px; font-size:.64rem; line-height:1.8; }
.project-content h3 { font-size:1.65rem; letter-spacing:-.04em; line-height:1.2; margin-bottom:14px; }
.featured h3 { font-size:2rem; }
.project-content > p:not(.project-type) { color:var(--muted); font-size:.9rem; }
.project-impact { margin-top:24px; display:flex; align-items:center; gap:16px; border-top:1px solid var(--line); padding-top:20px; width:100%; }
.project-impact strong { font-size:2.1rem; letter-spacing:-.04em; }
.project-impact span { font-size:.74rem; color:var(--muted); max-width:160px; }
.tags { display:flex; flex-wrap:wrap; gap:7px; margin:22px 0; }
.tags span { padding:6px 10px; color:#555; border:1px solid var(--line); border-radius:999px; background:#fafaf8; font-size:.72rem; }
.project-link { margin-top:auto; padding:4px 0; font-size:.83rem; font-weight:800; }
.project-link span { margin-left:6px; }
.about-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:80px; }
.about-copy { max-width:650px; font-size:1.08rem; }
.about-copy > p + p { margin-top:22px; color:var(--muted); }
.profile { display:flex; align-items:center; gap:20px; margin-bottom:28px; }
.profile img { width:80px; height:80px; object-fit:cover; border-radius:16px; border:1px solid var(--line); }
.profile strong,.profile span { display:block; }
.profile strong { font-size:1rem; }
.profile span { color:var(--muted); font-size:.78rem; margin-top:4px; }
.about-facts { display:grid; grid-template-columns:1fr; gap:24px; align-content:start; }
.fact { border-top:1px solid var(--line); padding-top:16px; display:flex; gap:22px; align-items:center; }
.fact strong { min-width:100px; font-size:2.4rem; letter-spacing:-.05em; }
.fact span { color:var(--muted); font-size:.8rem; max-width:220px; }
.skills-grid { display:grid; grid-template-columns:1fr 1fr; gap:50px 80px; }
.skill-label { margin-bottom:20px; }
.skill-list { display:flex; flex-wrap:wrap; gap:9px; }
.skill-list span { padding:8px 12px; border:1px solid #444; border-radius:999px; color:#ddd; font-size:.78rem; }
.timeline { border-top:1px solid #c4c4be; }
.timeline-item { display:grid; grid-template-columns:190px 1fr; gap:50px; padding:36px 0; border-bottom:1px solid #c4c4be; }
.timeline-date { font-family:'JetBrains Mono',monospace; font-size:.7rem; color:var(--muted); padding-top:5px; }
.timeline-item h3 { font-size:1.45rem; letter-spacing:-.04em; }
.company { color:var(--muted); font-weight:600; margin:3px 0 15px; font-size:.92rem; }
.timeline-item div:last-child > p:last-of-type { max-width:760px; color:#555; font-size:.9rem; }
.experience-link { display:inline-block; margin-top:16px; }
.education { margin-top:50px; }
.education-grid { display:grid; grid-template-columns:1fr 1fr; gap:36px; }
.education h3 { font-size:1.05rem; font-weight:600; }
.education p:not(.section-number) { color:var(--muted); font-size:.9rem; margin-top:5px; }
.contact-section { padding:110px 0 100px; background:var(--dark); color:#fff; }
.contact-inner { max-width:900px; }
.contact-section .section-number { color:#aaa; }
.contact-section h2 { margin:20px 0 25px; font-size:clamp(3rem,7vw,6rem); }
.contact-section h2 span { color:var(--accent); }
.contact-section > .container > p:not(.section-number) { color:#aaa; max-width:500px; }
.email-link { display:inline-flex; gap:16px; align-items:center; margin-top:36px; font-size:clamp(.95rem,2.6vw,1.8rem); font-weight:700; border-bottom:2px solid #555; padding-bottom:8px; overflow-wrap:anywhere; }
.email-link span { flex-shrink:0; }
.email-link:hover,.contact-links a:hover { color:var(--accent); }
.contact-links { display:flex; flex-wrap:wrap; gap:24px; margin-top:50px; color:#bbb; font-size:.82rem; font-weight:600; }
footer { background:var(--dark); color:#aaa; border-top:1px solid #292929; }
.footer-inner { min-height:75px; display:flex; align-items:center; justify-content:space-between; font-size:.72rem; }
.footer-inner a:hover { color:#fff; }
.project-dialog { width:min(900px,calc(100% - 32px)); max-height:calc(100svh - 40px); margin:auto; border:0; border-radius:20px; background:#fff; color:var(--dark); overflow-y:auto; overscroll-behavior:contain; box-shadow:0 30px 80px rgba(0,0,0,.3); }
.project-dialog::backdrop { background:rgba(0,0,0,.7); backdrop-filter:blur(6px); }
.modal-box { position:relative; padding:42px; }
.modal-box .section-number { padding-right:35px; }
.modal-box h2 { font-size:clamp(1.8rem,4vw,2.8rem); letter-spacing:-.04em; }
.modal-context { color:var(--muted); margin:16px 0 24px; font-size:.83rem; }
.modal-close { position:absolute; top:16px; right:16px; width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:50%; background:#eee; font-size:1.5rem; cursor:pointer; }
.project-gallery { background:#f1f1ee; border-radius:12px; overflow:hidden; }
.project-gallery img { width:100%; height:min(48svh,400px); object-fit:contain; }
.project-gallery figcaption { display:flex; justify-content:center; align-items:center; gap:22px; padding:10px; border-top:1px solid var(--line); color:var(--muted); font-size:.78rem; }
.gallery-arrow { width:44px; height:40px; background:#fff; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.gallery-arrow:disabled { opacity:.35; cursor:default; }
.case-study { margin-top:28px; }
.case-study h3 { font-size:1.1rem; margin:24px 0 10px; }
.case-study p,.case-study li { font-size:.9rem; color:var(--muted); }
.case-study ul { padding-left:21px; }
.case-study li + li { margin-top:7px; }
.modal-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
@media(max-width:1050px) { .hero-grid { gap:35px; } pre { font-size:.69rem; padding:22px; } .about-grid { gap:45px; } }
@media(max-width:850px) {
  .container { width:min(var(--max),calc(100% - 32px)); }
  .menu-toggle { display:block; }
  .nav-links { position:absolute; top:76px; left:0; right:0; display:none; flex-direction:column; gap:0; padding:12px 24px 25px; background:var(--bg); border-bottom:1px solid var(--line); }
  .nav-links.open { display:flex; }
  .nav-links a { padding:13px 0; }
  .hero { padding:70px 0; min-height:0; }
  .hero-grid,.about-grid { grid-template-columns:1fr; gap:50px; }
  h1 { font-size:clamp(3.2rem,10vw,5.8rem); }
  .hero-card { max-width:600px; width:calc(100% - 8px); margin:0 auto; }
  pre { font-size:.82rem; padding:26px; }
  .projects-grid { grid-template-columns:1fr; }
  .project-card.featured { grid-column:auto; grid-template-columns:1fr; }
  .project-image-wepod { min-height:480px; }
  .skills-grid { gap:40px; }
  .heading-row { align-items:start; flex-direction:column; }
  .timeline-item { grid-template-columns:160px 1fr; gap:30px; }
}
@media(max-width:600px) {
  .section { padding:75px 0; }
  .section-heading { margin-bottom:36px; }
  .hero { padding:55px 0 60px; }
  .hero-role { font-size:1.08rem; }
  .hero-text { font-size:.95rem; }
  .eyebrow { font-size:.61rem; letter-spacing:.06em; }
  pre { padding:20px; font-size:clamp(.58rem,2.5vw,.78rem); }
  .code-window { transform:none; }
  .skills-grid,.education-grid { grid-template-columns:1fr; }
  .project-image { height:280px; }
  .project-image-wepod { min-height:430px; height:430px; padding:24px 24px 50px; }
  .project-image-wepod .app-screen { height:350px; }
  .project-content,.featured .project-content { padding:26px; }
  .project-content h3 { font-size:1.5rem; }
  .project-type { font-size:.6rem; }
  .profile { gap:14px; }
  .profile img { width:65px; height:65px; }
  .fact strong { min-width:90px; }
  .timeline-item { grid-template-columns:1fr; gap:10px; }
  .contact-section { padding:80px 0; }
  .contact-links { gap:20px; }
  .footer-inner { gap:12px; padding:20px 0; flex-direction:column; justify-content:center; }
  .modal-box { padding:28px 20px; }
  .modal-box h2 { padding-right:24px; }
  .modal-links .btn { width:100%; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none !important; } }
