/* Design tokens */
:root {
  --bg: #0b0d10;
  --bg-elev: #101318;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --accent: #6ee7b7; /* mint */
  --accent-2: #60a5fa; /* blue */
  --border: #1f2937;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --container: 1120px;
  .contact-form .row { grid-template-columns: 1fr; }
}

:root.light {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --text: #0b0d10;
  --muted: #475569;
  --accent: #0ea5e9;
  --accent-2: #10b981;
  --border: #e2e8f0;
  --shadow: 0 10px 24px rgba(2, 6, 23, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(96,165,250,.15), transparent 60%),
              radial-gradient(800px 400px at -10% 10%, rgba(16,185,129,.12), transparent 60%),
              var(--bg);
  line-height: 1.6;
}

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

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); }
h3 { font-size: 1.1rem; }
.lead { font-size: clamp(1rem, .6vw + .9rem, 1.2rem); color: var(--muted); }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.accent { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(10px); background: color-mix(in hsl, var(--bg-elev) 70%, transparent); border-bottom: 1px solid var(--border); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; letter-spacing: .5px; }
.logo span { color: var(--accent); }

.nav-toggle { display: none; background: transparent; border: 0; width: 40px; height: 40px; border-radius: 10px; position: relative; }
.nav-toggle .bar { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: .2s; }
.nav-toggle .bar:nth-child(1){ top: 12px; }
.nav-toggle .bar:nth-child(2){ top: 19px; }
.nav-toggle .bar:nth-child(3){ top: 26px; }

.nav-menu { display: flex; gap: 16px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-menu a { color: var(--muted); font-weight: 500; position: relative; }
.nav-menu a.active { color: var(--text); }
.nav-menu a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.nav-menu a:hover { color: var(--text); }
.theme-toggle { background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.theme-toggle .icon { width: 20px; height: 20px; fill: currentColor; }

/* Hero */
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero { padding-top: 56px; }
.hero-cta { display: flex; gap: 12px; margin: 24px 0 12px; }
.socials { display: flex; gap: 16px; color: var(--muted); }
.avatar-wrap { position: relative; width: clamp(220px, 32vw, 320px); margin-inline: auto; }
.avatar { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; border: 6px solid color-mix(in hsl, var(--accent) 30%, transparent); box-shadow: var(--shadow); }
.avatar-wrap .glow { position: absolute; inset: -8%; border-radius: 24px; background: radial-gradient(closest-side, color-mix(in hsl, var(--accent) 28%, transparent), transparent 70%); filter: blur(20px); z-index: -1; }

/* Sections */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow); border-radius: 999px; color: var(--muted); font-weight: 600; }
.chip:focus-visible { outline: 2px solid color-mix(in hsl, var(--accent) 40%, transparent); outline-offset: 2px; }
.chip .logo { width: 16px; height: 16px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px var(--border); }
.chip .logo.kcna { background: linear-gradient(135deg, #34d399, #22d3ee); }
.chip .logo.gcp { background: #1a73e8; }
.chip .logo.azure { background: #0078d4; }
.chip .logo.java { background: linear-gradient(135deg, #f97316, #fb923c); }

.timeline { display: grid; gap: 20px; }
.timeline-item { padding: 18px 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h3 { margin-bottom: 4px; }
.card p { color: var(--muted); }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 8px; border-radius: 999px; background: color-mix(in hsl, var(--accent) 12%, transparent); color: var(--text); border: 1px solid var(--border); font-size: 12px; }
.card .actions { display: flex; gap: 10px; margin-top: auto; }

/* Contact */
.contact-actions { display: flex; gap: 12px; }
.contact-form { display: grid; gap: 12px; max-width: 560px; }
.contact-form .row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); font: inherit; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .hidden { display: none; }
.contact-form .actions { display: flex; gap: 12px; align-items: center; }
.contact-form .note { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.to-top { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); font-weight: 600; transition: transform .08s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #081016; border: 0; }
.btn-ghost { background: var(--bg-elev); color: var(--text); }

/* Utilities */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 8px; top: 8px; width: auto; height: auto; background: var(--bg-elev); color: var(--text); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); }

/* Responsive */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-menu { position: absolute; right: 16px; top: 64px; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); display: none; }
  .nav-menu.open { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; }
}
