@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cascadia Code';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/CascadiaCode.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: 'Cascadia Code';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/CascadiaCode-symbols2.woff2') format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
  font-display: swap;
}
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(99,102,241,0.3);
  scrollbar-color: var(--accent) var(--bg-secondary);
  scrollbar-width: thin;
}
html::-webkit-scrollbar {
  width:8px;
}
html::-webkit-scrollbar-track {
  background:var(--bg-secondary);
}
html::-webkit-scrollbar-thumb {
  background:var(--accent);
  border-radius:4px;
}
html::-webkit-scrollbar-thumb:hover {
  background:var(--accent-hover);
}
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --border: #27272a;
  --gradient-1: #6366f1;
  --gradient-2: #8b5cf6;
  --gradient-3: #a855f7;
}
*, *::before, *::after {
  box-sizing: border-box;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 500;
  transition: top 0.2s ease-out;
}
.skip-link:focus-visible {
  top: 0;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
body {
  min-height: 100vh;
  background-color: #0a0a0f;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='3' cy='5' r='0.75' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='20' cy='9' r='0.75' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='12' cy='24' r='0.75' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='28' cy='18' r='0.75' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0, rgba(99,102,241,0.06) 0%, transparent 60%);
  background-repeat: repeat, no-repeat;
  background-size: 32px 32px, auto;
  color:#e4e4e7;
  font-family:"Inter", system-ui, -apple-system, sans-serif;
  font-size:1rem;
  font-weight: 400;
  line-height:1.6;
  text-rendering:optimizeLegibility;
  -webkit-tap-highlight-color: rgba(99,102,241,0.3);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
@media (prefers-reduced-motion: no-preference) {
  body {
    animation:fadeIn 0.5s ease-out both;
  }
  @keyframes fadeIn {
    from { opacity:0; transform:translateY(6px); }
    to { opacity:1; transform:translateY(0); }
  }
}

header {
  margin:0 auto;
  padding:2rem 0 1.5rem;
  width:100%;
  border-bottom:1px solid var(--border);
}
main {
  margin:0 auto;
  padding:2rem 0;
}
footer {
  color: var(--text-muted);
  font-size:0.8em;
  margin:2rem auto 0;
  padding:1rem 0 0;
  border-top:1px solid var(--border);
}
footer strong {
  font-size:1em;
}
header,
main,
footer {
  max-width:720px;
}
h1 {
  font-size:0.5rem;
  font-weight:400;
  margin:0;
  padding:0;
  letter-spacing:-0.1em;
  line-height:1.1;
  white-space:pre;
  font-family:"Cascadia Code", monospace;
}
@media (prefers-reduced-motion: no-preference) {
  h1 a span {
    text-shadow:0 0 6px rgba(99,102,241,0.15);
  }
}

.hero-title {
  color:var(--text-primary);
  font-size:clamp(1.4rem, 5.5vw, 2.5rem);
  font-weight: 700;
  margin:0 0 1rem;
  letter-spacing:-0.03em;
  line-height:1.1;
}
.hero-title span {
  background:linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero-description {
  color:var(--text-secondary);
  font-size:1.05rem;
  line-height:1.7;
  max-width:540px;
}
h2 {
  color:var(--text-secondary);
  font-size:1.25rem;
  font-weight: 500;
  margin-top:0.5rem;
  letter-spacing:-0.01em;
}
@media (max-width:480px) {
  header {
    padding:2rem 0.75rem;
  }
}
a,
a:visited,
a:active {
  color:var(--accent);
  text-decoration:none;
}
@media (prefers-reduced-motion: no-preference) {
  a, a:visited, a:active {
    transition:color 0.2s ease-out;
  }
}
a:hover {
  color:var(--accent-hover);
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
::selection {
  background:var(--accent);
  color:var(--text-primary);
}
.projects-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  margin:2rem 0 0.75rem;
}
.projects-header h3 {
  margin:0;
}
.filter-bar {
  display:flex;
  gap:4px;
}
.filter-btn {
  font-family:inherit;
  font-size:0.6rem;
  font-weight:500;
  padding:2px 8px;
  border:1px solid var(--border);
  border-radius:4px;
  background:transparent;
  color:var(--text-muted);
  letter-spacing:0.03em;
  cursor:pointer;
  transition:color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter-btn:hover {
  color:var(--text-secondary);
  border-color:var(--accent);
}
.filter-btn.active {
  background:var(--accent);
  color:var(--text-primary);
  border-color:var(--accent);
}
h3 {
  color:var(--text-primary);
  font-size:1.1rem;
  font-weight: 600;
  margin:2rem 0 0.75rem;
  letter-spacing:-0.01em;
}
p {
  margin-bottom:0;
  line-height:1.7;
}
ul {
  list-style:none;
  padding-left:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
ul li {
  margin:0;
  padding:0;
}
ul li a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:8px;
  padding:14px 16px;
  transition:border-left-width 0.2s ease-out, transform 0.2s ease-out, text-shadow 0.2s ease-out;
  gap:12px;
  position:relative;
  z-index:0;
}
ul li a::before {
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:9px;
  background:linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  opacity:0;
  transition:opacity 0.2s ease-out;
  z-index:-1;
}
@media (prefers-reduced-motion: no-preference) {
  ul li a:hover::before {
    opacity:1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  ul li a:hover {
    border-left-width:0;
    transform:scale(1.03);
    text-shadow:1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  ul li a:hover .project-name {
    color:var(--text-primary);
  }
  ul li a:hover .project-desc {
    color:var(--text-secondary);
  }
}
.project-info {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.project-name {
  color:var(--text-primary);
  font-weight:600;
  font-size:1rem;
}
.project-desc {
  color:var(--text-muted);
  font-size:0.8rem;
  line-height:1.4;
}
.project-tags {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:4px;
  transition:opacity 0.25s ease;
}
.tag {
  display:inline-block;
  font-size:0.6rem;
  font-weight:500;
  padding:1px 5px;
  border-radius:3px;
  background:var(--accent);
  color:var(--text-secondary);
  letter-spacing:0.03em;
  text-transform:uppercase;
  opacity:0.85;
  transition:opacity 0.2s ease;
}
li:hover .tag {
  background:var(--accent-hover);
  color:var(--text-primary);
  opacity:1;
}
.project-arrow {
  color:var(--border);
  font-size:1.5em;
  flex-shrink:0;
  transition:color 0.2s ease-out, transform 0.2s ease-out;
}
@media (prefers-reduced-motion: no-preference) {
  ul li a:hover .project-arrow {
    color:var(--text-primary);
    transform:translate(2px,-2px);
  }
}
.back-to-top {
  color:var(--text-muted);
  font-size:0.9em;
}
