@font-face {
  font-family: Space;
  src: url("assets/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: Space, Arial, sans-serif;
  background: #080e1c;
  color: #f1f2f6;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; }
#code-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.page {
  width: min(100% - 64px, 1120px);
  margin: 0 auto;
  padding: 80px 0 110px;
}
h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 0;
}
h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 24px;
  color: #aebbd0;
}
.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 530px;
}
.projects li { border-bottom: 1px solid rgba(164, 187, 215, 0.12); }
.projects a {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px 32px 10px 0;
  position: relative;
  transition: color 180ms ease, padding 250ms ease, background 250ms ease;
  color: #e5eaf2;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.projects a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #b2baff;
  transform: scaleY(0);
  transition: transform 250ms ease;
}
.projects a::after {
  content: "↗";
  position: absolute;
  right: 12px;
  top: 10px;
  color: #b2baff;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 200ms ease, transform 250ms ease;
}
.projects a:is(:hover, :focus-visible) {
  color: #c7cdff;
  padding-left: 14px;
  background: linear-gradient(90deg, #a9b8ff12, transparent);
}
.projects a:is(:hover, :focus-visible)::before { transform: scaleY(1); }
.projects a:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(0, 0); }
@media (prefers-reduced-motion: reduce) {
  .projects a, .projects a::before, .projects a::after { transition: none; }
}

a:focus-visible, button:focus-visible { outline: 2px solid #9befdf; outline-offset: 5px; }
.motion-toggle {
  position: fixed;
  bottom: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(164, 187, 215, 0.2);
  border-radius: 6px;
  background: #080e1cf0;
  color: #aebbd0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.motion-toggle:hover { color: #f1f2f6; }
@media (max-width: 600px) {
  .page { width: calc(100% - 40px); padding-top: 48px; }
  header { margin-bottom: 48px; }
  .projects a { font-size: 16px; }
  .motion-toggle { right: 20px; bottom: 16px; }
}

header { margin-bottom: 64px; }
.subtitle { margin: 12px 0 0; font-size: 18px; color: #aebbd0; }
.login-link {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 9px 16px;
  border: 1px solid rgba(164, 187, 215, 0.25);
  border-radius: 6px;
  color: #e5eaf2;
  background: #080e1c;
  text-decoration: none;
  font-size: 14px;
}
.login-link:hover { border-color: #9befdf; color: #9befdf; }
@media (max-width: 600px) {
  .page { padding-top: 96px; }
  header { margin-bottom: 48px; }
  .login-link { top: 20px; right: 20px; }
}

[hidden] { display: none !important; }
.section-switch { display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.section-switch h2 { margin: 0; }
.section-switch button {
  font: inherit;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  text-align: left;
  color: #8090a9;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}
.section-switch button:hover { color: #d3dafa; }
.section-switch button[aria-expanded="true"] { color: #f1f2f6; border-color: #a9b8ff; }
h3 { font-size: 20px; font-weight: 500; margin: 0 0 24px; color: #aebbd0; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 600px; }
.skill-group {
  padding: 22px;
  border: 1px solid #a4bbd72b;
  border-top-color: #a9b8ff66;
  border-radius: 8px;
  background: #0b1425ed;
}
.skill-group h3 { color: #dfe7f4; font-size: 17px; line-height: 1.4; margin: 0 0 18px; }
.skill-group ul { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.skill-group li { padding: 6px 9px; border: 1px solid #8397bb30; border-radius: 4px; font-size: 12px; line-height: 1.5; color: #b7c6dd; background: #8aacf308; }
@media (max-width: 600px) { .skills-grid { grid-template-columns: 1fr; } .skill-group { padding: 20px; } }

@media (max-width: 600px) { .section-switch { gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .section-switch button { transition: none; } }

.legal-footer{position:relative;z-index:2;padding:24px 0 72px;text-align:center;font:14px/1.5 system-ui,sans-serif}.legal-footer a{color:#a9b7ca;text-underline-offset:4px}.legal-footer a:focus-visible{outline:2px solid currentColor;outline-offset:5px}
