/* ---------- Button system ---------- */
:root{
  --blue:   #0073e6;
  --blue-700:#005bb5;
  --green:  #11a36a;
  --green-700:#0d7d51;
  --purple: #6b5cff;
  --purple-700:#5246cf;
  --orange: #ff7a1a;
  --orange-700:#d96413;
  --gray:   #2f3640;
  --gray-700:#1e232a;
  --ring:   0 0 0 3px rgba(0,115,230,.25);
}

.cta-buttons{
  display:flex; flex-wrap:wrap; gap:.75rem;
  margin-top:1rem;
}

.btn{
  display:inline-block;
  padding:.70rem 1.05rem;
  border-radius:10px;
  font-weight:700;
  font-size:0.95rem;
  line-height:1;
  color:#fff;
  text-decoration:none;
  border:1px solid transparent;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  transition:transform .06s ease, box-shadow .2s ease, background-color .15s ease;
  will-change:transform;
}

.btn:focus-visible{
  outline:none;
  box-shadow:var(--ring);
}

.btn:hover{ transform:translateY(-1px); box-shadow:0 6px 14px rgba(0,0,0,.12); }
.btn:active{ transform:translateY(0); box-shadow:0 2px 8px rgba(0,0,0,.08); }

/* Variants */
.btn--blue   { background:var(--blue);   }
.btn--blue:hover   { background:var(--blue-700); }
.btn--green  { background:var(--green);  }
.btn--green:hover  { background:var(--green-700); }
.btn--purple { background:var(--purple); }
.btn--purple:hover { background:var(--purple-700); }
.btn--orange { background:var(--orange); }
.btn--orange:hover { background:var(--orange-700); }
.btn--gray   { background:var(--gray);   }
.btn--gray:hover   { background:var(--gray-700); }

/* Dark mode polish (optional) */
@media (prefers-color-scheme: dark){
  .btn{ box-shadow:0 2px 8px rgba(0,0,0,.25); }
}

/* Small screens */
@media (max-width:600px){
  .btn{ width:100%; text-align:center; }
}

/* Minimal, modern, responsive portfolio styles */
:root{
  --bg: #0b0c0f;
  --card: #12141a;
  --text: #E6E8EC;
  --muted:#A1A6B0;
  --accent:#62D4FF;
  --accent-2:#9BFFB5;
  --border:#1E2230;
}
:root.light{
  --bg:#FFFFFF;
  --card:#F7F8FA;
  --text:#0B0C0F;
  --muted:#4B5563;
  --accent:#0077FF;
  --accent-2:#12B981;
  --border:#E5E7EB;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { width:min(1100px, 92%); margin-inline:auto; }
.site-header {
  position: sticky; top:0; z-index:10; backdrop-filter: blur(8px);
  border-bottom:1px solid var(--border);
  background: color-mix(in oklab, var(--bg), transparent 25%);
}
.nav { display:flex; align-items:center; gap:12px; padding:14px 0; }
.logo { font-weight:800; letter-spacing:1px; text-decoration:none; color:var(--text); border:2px solid var(--text); padding:4px 8px; border-radius:8px; }
.nav-list { list-style:none; margin:0; padding:0; display:flex; gap:18px; align-items:center; }
.nav-list a, .theme-toggle { color:var(--text); text-decoration:none; font-weight:500; }
.nav-toggle{ display:none; background:none; border:1px solid var(--border); color:var(--text); padding:6px 10px; border-radius:8px; }
.theme-toggle{ background:none; border:1px solid var(--border); padding:6px 10px; border-radius:10px; cursor:pointer; }

.hero { display:grid; grid-template-columns: 1.2fr 0.8fr; gap:32px; padding:48px 0 12px; align-items:center; }
.hero-text h1{ font-size: clamp(28px, 4vw, 48px); line-height:1.2; margin:0; }
.lead{ font-size: clamp(16px, 2vw, 20px); color:var(--text); opacity:.95; margin:.6rem 0; }
.sublead{ color:var(--muted); margin: .2rem 0 1rem; }
.meta{ color:var(--muted); display:flex; gap:16px; flex-wrap:wrap; margin-top:12px; }
.accent{ background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip:text; color:transparent; }

.hero-photo img{ width:100%; max-width:320px; border-radius:16px; border:1px solid var(--border); display:block; margin-left:auto; }

.btn{ display:inline-block; padding:10px 14px; border-radius:12px; border:1px solid var(--border); color:var(--text); text-decoration:none; font-weight:600; }
.btn.primary{ background:linear-gradient(90deg, var(--accent), var(--accent-2)); color:#001018; border:none; }
.btn.ghost{ background:transparent; }

.section{ padding:48px 0 8px; }
.section h2{ font-size: clamp(22px, 3vw, 32px); margin:0 0 18px; }

.highlights{ padding-left:18px; color:var(--muted); }

.timeline{ display:grid; gap:16px; }
.card{ background:var(--card); border:1px solid var(--border); border-radius:16px; padding:16px; }
.card header{ display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.timeplace{ color:var(--muted); font-size:.95rem; }

.grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.project{ background:var(--card); border:1px solid var(--border); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; }
.project img{ width:100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom:1px solid var(--border); }
.project-body{ padding:14px; display:flex; flex-direction:column; gap:8px; }
.tags{ display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); }
.tags span{ border:1px solid var(--border); padding:4px 8px; border-radius:999px; font-size:.9rem; }
.links a{ margin-right:12px; text-decoration:none; color:var(--accent); font-weight:600; }

.chips{ display:flex; gap:10px; flex-wrap:wrap; }
.chips span{ padding:6px 10px; border-radius:12px; border:1px solid var(--border); background:var(--card); }

.edu{ color:var(--muted); }

.contact-list{ list-style:none; padding:0; display:flex; gap:18px; flex-wrap:wrap; }

.site-footer{ border-top:1px solid var(--border); margin-top:42px; padding:20px 0; font-size:.95rem; color:var(--muted); }
.site-footer a{ color:var(--muted); text-decoration:none; }

/* Responsive */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .hero-photo img{ margin:0; }
  .grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .nav-toggle{ display:inline-block; }
  .nav-list{ display:none; flex-direction:column; align-items:flex-start; background:var(--card); position:absolute; top:56px; right:4%; padding:12px; border:1px solid var(--border); border-radius:12px; }
  .grid{ grid-template-columns: 1fr; }
}
.embed { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; }
.embed iframe { width: 100%; height: 720px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
@media (max-width: 700px){ .embed iframe { height: 560px; } }
