/* jawadkhan.de – clean & light, automatic dark mode. No external fonts or scripts. */
:root {
  --bg: #fbfbf8; --surface: #ffffff; --ink: #15191c; --muted: #5e676e; --line: #e4e7e2;
  --accent: #1a7f64; --accent-ink: #0f5c48; --accent-soft: #e6f3ee; --warn: #b4531a;
  --shadow: 0 1px 2px rgba(16,24,20,.05), 0 8px 28px rgba(16,24,20,.06);
  --radius: 18px; --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1211; --surface: #141b19; --ink: #e8eeeb; --muted: #9ba7a2; --line: #25302c;
    --accent: #3cc79d; --accent-ink: #7fe0c2; --accent-soft: #12302a; --warn: #f0a46c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.2px; white-space: nowrap; }
.mono { width: 34px; height: 34px; border-radius: 10px; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #06261d; } .btn.primary:hover { color: #06261d; } }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
@media (max-width: 640px) { .top .btn { display: none; } .brand .name { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.04; letter-spacing: -1.6px; margin: 0 0 20px; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta-line { margin-top: 22px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.meta-line span::before { content: "•"; color: var(--accent); margin-right: 8px; }
.tray { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 22px; box-shadow: var(--shadow); }
.tray-head { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 4px 16px; font-size: 14px; color: var(--muted); }
.tray-head b { color: var(--ink); font-size: 15px; }
.icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.icons a { display: block; border-radius: 22%; overflow: hidden; aspect-ratio: 1; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s ease; }
.icons a:hover { transform: translateY(-3px) scale(1.03); }
.icons img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 48px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 0; }
.stat { background: var(--surface); padding: 22px 22px 20px; }
.stat b { display: block; font-size: 32px; line-height: 1.1; letter-spacing: -.8px; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 72px 0 8px; scroll-margin-top: 70px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.9px; margin: 0 0 14px; }
.section-lede { color: var(--muted); max-width: 44em; margin: 0 0 32px; font-size: 18px; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.3px; margin: 0 0 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.muted { color: var(--muted); }
ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
ul.ticks li { position: relative; padding-left: 26px; margin: 0 0 9px; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 13.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg); }

/* Experience */
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; align-items: baseline; margin-bottom: 18px; }
.job-head h3 { font-size: 24px; }
.timeline { color: var(--muted); font-size: 15px; }
.small-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 680px) { .small-cards { grid-template-columns: 1fr; } }

/* Offline demo */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.offline .dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.demo-actions button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.demo-actions button:hover { border-color: var(--accent); }
.queue { list-style: none; margin: 12px 0 0; padding: 0; min-height: 168px; }
.queue li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-size: 15px; background: var(--bg); }
.queue li span:last-child { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.queue li.synced span:last-child { color: var(--accent-ink); }
.queue .empty { justify-content: center; color: var(--muted); border-style: dashed; }

/* Apps */
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.feature img, .app img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.feature .links, .app .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14.5px; }
.badge { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .apps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .apps-grid { grid-template-columns: 1fr; } }
.app { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.app img { width: 56px; height: 56px; border-radius: 13px; }
.app h3 { font-size: 16.5px; margin: 0 0 3px; }
.app p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.app .links { margin-top: 8px; font-size: 13.5px; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }
.skills h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-ink); margin-bottom: 4px; }

/* Contact */
.contact { margin: 80px 0 0; padding: 48px; border-radius: 28px; background: var(--accent); color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,.88); margin: 0; font-size: 18px; }
.contact .btn.primary { background: #fff; color: var(--accent-ink); }
.contact .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.contact .cta { justify-content: flex-end; }
@media (prefers-color-scheme: dark) { .contact { background: #12382f; } .contact .btn.primary { color: #0b3d31; } }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; padding: 32px 24px; } .contact .cta { justify-content: flex-start; } }

/* Footer */
footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 780px; padding-top: 56px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 44px); }
.legal h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -.3px; }
.legal p, .legal li { color: var(--ink); }
.legal .lang { color: var(--muted); font-size: 15px; }
.icons a.more { display: grid; place-items: center; text-align: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none; box-shadow: none; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }

/* Portrait in the hero (added Nov 13 2026) */
.who { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.who b { display: block; font-size: 19px; letter-spacing: -.2px; }
.who span { display: block; color: var(--accent-ink); font-size: 12.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; margin-top: 2px; }

/* ===== Motion & brand accent (Nov 13 2026). Subtle, fast, off for reduced motion. ===== */
:root { --sun: #ffd166; }

/* Hero depth: soft green and yellow light behind the content */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 760px; height: 760px; right: -220px; top: -260px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 17%, transparent) 0%, transparent 66%); }
.hero::after { width: 380px; height: 380px; left: -190px; top: 42%; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 22%, transparent) 0%, transparent 68%); }

/* Yellow brand accent from the logo */
h1 em { background-image: linear-gradient(var(--sun), var(--sun)); background-repeat: no-repeat; background-position: 0 94%; background-size: 100% .12em; padding-bottom: .02em; }
.stat b::after { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--sun); margin-top: 10px; }
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 30%, transparent) 0%, transparent 70%); }

/* Hover polish */
.card, .app { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover, .app:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 2px 4px rgba(16,24,20,.06), 0 16px 36px rgba(16,24,20,.10); }
.app:hover img { transform: rotate(-3deg) scale(1.04); }
.app img, .feature img { transition: transform .22s ease; }
.btn { transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: no-preference) {
  /* Entrance: hero content rises in, app icons pop in one after another */
  .hero .who, .hero h1, .hero .lede, .hero .cta, .hero .meta-line, .tray { animation: jk-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .06s; } .hero .lede { animation-delay: .14s; } .hero .cta { animation-delay: .22s; }
  .hero .meta-line { animation-delay: .3s; } .tray { animation-delay: .18s; }
  .icons a { animation: jk-pop .5s cubic-bezier(.2,.9,.3,1.35) both; animation-delay: calc(.4s + var(--i, 0) * 45ms); }
  h1 em { animation: jk-underline .9s .65s cubic-bezier(.6,0,.2,1) both; }
  /* Scroll reveal (JS adds .reveal / .in; uses `translate` so hover `transform` still works) */
  html.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.7,.2,1), transform .22s ease, box-shadow .22s ease, border-color .22s ease; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s; }
  html.js .reveal.in { opacity: 1; translate: none; }
  /* Offline demo: new commands slide in, the status dot breathes while online */
  .queue li.new { animation: jk-slide .32s ease both; }
  #demo-panel:not(.offline) .dot { animation: jk-pulse 2.4s ease-in-out infinite; }
}
@keyframes jk-rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: none; } }
@keyframes jk-pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes jk-underline { from { background-size: 0 .12em; } to { background-size: 100% .12em; } }
@keyframes jk-slide { from { opacity: 0; translate: -10px 0; } to { opacity: 1; translate: none; } }
@keyframes jk-pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent); } }

/* Certifications list (Nov 13 2026) */
.certs { list-style: none; padding: 0; margin: 8px 0 0; }
.certs li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.certs li:last-child { border-bottom: 0; }
.certs b { display: block; font-weight: 600; }
.certs span { color: var(--muted); font-size: 13.5px; }
