/* <!-- css/site.css (text/css) --> */
/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg: #0b0c0e;
  --surface: #101216;
  --panel: #141821;
  --muted: #9aa0a6;
  --text: #e9edf2;
  --line: #1d2230;
  --brand: #4ea6ff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --container: 1140px;
  --transition: 0.3s ease;
  --accent-hover: #5bb8ff;
  --light-bg: #f0f4f8;
  --light-text: #1a202c;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
body.light {
  --bg: var(--light-bg);
  --text: var(--light-text);
  --panel: #ffffff;
  --surface: #f8fafc;
  --line: #e2e8f0;
  --muted: #718096;
}
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 48px 0; border-top: 1px solid var(--line); transition: var(--transition); }
.section:hover { background: rgba(255,255,255,0.02); }
.section:first-of-type { border-top: none; }
.section-title { margin: 0 0 12px; font-size: 28px; }
.lead { color: var(--muted); max-width: 780px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 8px; transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); border-color: var(--brand); }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 14px; border-radius: 10px; text-decoration: none; border: 1px solid #263045; color: #eaf0f7; background: #172033; transition: var(--transition); }
.btn:hover { background: #1a2742; transform: scale(1.05); border-color: var(--accent-hover); }
.btn.primary { border-color: #1f4e84; background: #143a63; }
.btn.primary:hover { background: #1b4a7e; }
.tag { font-size: 12px; color: #cfd6de; padding: 4px 8px; border-radius: 999px; background: #121722; border: 1px solid #22293a; transition: var(--transition); }
.tag:hover { background: #1a2232; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { height: 60px; width: auto; }
.topnav { display: flex; gap: 16px; align-items: center; }
.topnav a { color: #cfd5db; text-decoration: none; padding: 8px 10px; border-radius: 8px; transition: var(--transition); }
.topnav a:hover, .topnav a.active { background: #151a24; color: #fff; border-color: var(--brand); }
/* Footer */
.footer { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); }
.footer .inner { display: flex; align-items: center; justify-content: space-between; }
/* Work grid */
.work-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.work-card { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #0f131a; display: grid; transition: var(--transition); }
.work-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.work-thumb { aspect-ratio: 16/9; background: #0e141f; border-bottom: 1px solid var(--line); }
.work-body { padding: 12px; display: grid; gap: 6px; }
.work-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
/* About (designer-style) */
.about-hero { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.about-hero img { width: 180px; height: 180px; border-radius: 16px; border: 1px solid var(--line); background: #0e1116; transition: var(--transition); }
.about-hero img:hover { transform: scale(1.05); box-shadow: var(--shadow); }
.keypoints { display: grid; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background:#121722; border:1px solid #22293a; color:#d7dee6; padding:6px 10px; border-radius:999px; font-size:12px; transition: var(--transition); }
.pill:hover { background: #1a2232; }
.timeline { display: grid; gap: 10px; border-left: 2px solid #1f2937; padding-left: 14px; margin-left: 6px; }
.timeline .item { position: relative; transition: var(--transition); }
.timeline .item:hover { color: var(--brand); }
.timeline .item::before { content:""; position:absolute; left:-18px; top:6px; width:10px; height:10px; border-radius:50%; background:#2a3956; border:2px solid #1f2937; }
/* Resume print */
.resume { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.resume h2 { margin-top: 18px; }
.resume .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media print {
  body { background: #fff; color: #000; }
  .topbar, .footer { display: none !important; }
  .resume { border: none; box-shadow: none; }
  a { color: #000; }
}
/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background: #222;
  color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform var(--transition);
}
.project-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1px solid var(--brand);
}
/* Testimonials */
.testimonials { display: grid; gap: 16px; }
.testimonial { background: var(--panel); padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); transition: var(--transition); }
.testimonial:hover { border-color: var(--brand); }
/* Blog */
.blog-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.blog-card { background: var(--panel); border-radius: var(--radius); padding: 16px; transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); border-color: var(--brand); }
/* Analytics placeholder */
.analytics { display: none; } /* Integrate GA or similar */
/* Accessibility */
a:focus, button:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Mode toggle */
.mode-toggle { cursor: pointer; }
/* PWA styles */
@media (prefers-color-scheme: light) {
  body { --bg: var(--light-bg); --text: var(--light-text); /* etc */ }
}
/* Responsive */
@media (max-width: 980px) {
  .grid.cols-3, .work-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid.cols-3, .grid.cols-2, .work-grid, .blog-grid { grid-template-columns: 1fr; }
}