@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #07101d;
  --bg-deep: #040a12;
  --surface: rgba(13, 27, 45, .86);
  --surface-solid: #0d1b2d;
  --surface-hover: #11243a;
  --border: rgba(137, 180, 215, .14);
  --border-strong: rgba(137, 180, 215, .25);
  --text: #edf5f8;
  --text-soft: #b6c8d2;
  --muted: #718998;
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, .12);
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --positive: #5ee0b5;
  --negative: #ff7890;
  --shadow: 0 20px 60px rgba(0, 0, 0, .24);
  --radius: 18px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4f3;
  --bg-deep: #e4eceb;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #ffffff;
  --surface-hover: #f5faf9;
  --border: rgba(21, 62, 70, .12);
  --border-strong: rgba(21, 62, 70, .23);
  --text: #102a31;
  --text-soft: #385761;
  --muted: #70878e;
  --teal: #0f9f8d;
  --teal-soft: rgba(15, 159, 141, .10);
  --cyan: #0891b2;
  --blue: #3979cd;
  --amber: #c68b0a;
  --rose: #d84f68;
  --positive: #158567;
  --negative: #c8455d;
  --shadow: 0 18px 50px rgba(40, 73, 76, .10);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(45, 212, 191, .11), transparent 32rem),
    radial-gradient(circle at 10% 20%, rgba(96, 165, 250, .07), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.shell { width: min(1420px, calc(100% - 48px)); margin-inline: auto; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(20px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}
.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.topnav {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-deep);
  flex-wrap: wrap;
}
.topnav a,
.topnav button {
  padding: 6px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 11px/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, background .2s;
  white-space: nowrap;
  box-sizing: border-box;
}
.topnav a:hover,
.topnav button:hover { color: var(--text); }
.topnav a.active,
.topnav button.active { background: var(--surface-hover); color: var(--text); }
.theme-button {
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1420px); }
  .topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 9px 14px; }
  .topnav { grid-column: 1 / -1; width: 100%; overflow-x: auto; flex-wrap: nowrap; justify-content: start; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .theme-button { grid-column: 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── In-development section ──────────────────────────────────────────────── */
.dev-projects-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
.dev-projects-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1a2d4a, transparent);
}
.dev-projects-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2e4268;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.dev-projects-toggle:hover {
  color: #6b7fa0;
  background: rgba(59, 130, 246, .05);
}
.dev-projects-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform .22s ease;
}
.dev-projects-toggle.is-open .dev-projects-chevron {
  transform: rotate(90deg);
}
.dev-projects-content {
  display: none;
  margin-top: 20px;
}
.dev-projects-content.is-open {
  display: block;
}
