/* ===== THEME: edit only this block to re-skin ===== */
:root {
  --bg: #FFFFFF;
  --bg-deep: #F1F5F9;
  --card: #F8FAFC;
  --text: #0F172A;
  --muted: #475569;
  --accent: #2563EB;
  --accent-2: #3B82F6;
  --accent-3: #1D4ED8;
  --border: rgba(15, 23, 42, 0.10);
  --header-bg: rgba(255, 255, 255, 0.75);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --hover-bg: rgba(15, 23, 42, 0.05);
  --glow: rgba(37, 99, 235, 0.18);
  --font: Inter, "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); color: var(--text); line-height: 1.6;
  background: radial-gradient(60rem 30rem at 50% -10%, rgba(37,99,235,.10), transparent 60%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff;
}
.nav-links { display: flex; gap: .25rem; }
.nav-links a { padding: .45rem .9rem; border-radius: 999px; color: var(--muted); font-size: .95rem; transition: color .25s var(--ease), background .25s var(--ease); }
.nav-links a:hover { color: var(--text); background: var(--hover-bg); }
.nav-links a.active { color: var(--accent); background: rgba(37,99,235,.10); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(4rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 6rem); }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.grad { background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.4rem; border-radius: 10px; border: 1px solid var(--border); font: inherit; font-weight: 600; font-size: .95rem; color: var(--text); background: transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(37,99,235,.45); }
.btn-ghost:hover { background: var(--hover-bg); border-color: rgba(37,99,235,.5); }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--accent-3); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.section-lead { max-width: 40rem; }
.grid { display: grid; gap: 1.2rem; margin-top: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.35); box-shadow: 0 12px 40px var(--glow); }
.card p:last-child { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tags li { padding: .25rem .7rem; font-size: .8rem; font-family: var(--mono); border: 1px solid var(--border); border-radius: 999px; color: var(--accent-3); background: rgba(37,99,235,.08); }

.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--border); padding: .2rem .6rem; border-radius: 6px; white-space: nowrap; }
.project strong { color: var(--text); font-weight: 600; }
.links { display: flex; gap: 1.2rem; margin-top: 1rem; }
.links a { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--accent-3); }

/* Contact */
.contact { margin-top: 2rem; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1rem 0 1.5rem; }
.email-row code { font-family: var(--mono); font-size: 1.1rem; padding: .6rem 1rem; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 10px; overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.8rem 0; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; font-size: .875rem; }
.build { display: inline-flex; align-items: center; gap: .5rem; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; padding: 1rem 1.25rem;
    background: var(--menu-bg); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { display: block; padding: .8rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.about-text p { color: var(--text); opacity: .85; }
.tags-lg { margin: 0; }
.tags-lg li { font-size: .9rem; padding: .4rem .9rem; }

.about-layout { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 1.5rem; align-items: start; margin-top: 2rem; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); position: sticky; top: calc(var(--header-h) + 1.5rem); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.about-photo:hover { box-shadow: 0 12px 40px var(--glow); transform: translateY(-4px); }
@media (max-width: 720px) { .about-layout { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 320px; margin-inline: auto; } }
