:root, [data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --bg-card: #18181b;
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --border: #27272a;
  --radius: 16px;
  --max-w: 75rem;
}
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.1);
  --border: #e2e8f0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { padding-top: 4rem; }
address { font-style: normal; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
nav .logo .accent { color: var(--accent); }
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.theme-toggle .icon-sun { display: inline; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero .label {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero .availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.hero .availability .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  position: relative;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 32rem;
  position: relative;
}
.hero .cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #059669;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
section { padding: 5rem 0; }
section:nth-child(odd) { background: var(--bg-alt); }
section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
section h2::before {
  content: "//";
  color: var(--accent);
  font-weight: 400;
  opacity: 0.6;
}
section .section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.project-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.project-card .tags {
  list-style: none;
}
.project-card .tags li {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.project-card .links {
  display: flex;
  gap: 1rem;
}
.project-card .links a,
.project-card .links .confidential {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.project-card .links a:hover { text-decoration: underline; }
.project-card .links .confidential {
  color: var(--text-secondary);
  font-style: italic;
  cursor: default;
}
.projects-grid + h2 {
  margin-top: 4rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}
.skills-list li {
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.skills-list span:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.about-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}
.about-photo img {
  width: 14rem;
  height: 14rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.about-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.about-stats .stat {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.about-content .stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}
.about-content .stat .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact-links a, .contact-links address a {
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
  align-items: center;
}

address{
  display: flex;
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.no-copy {
  -webkit-user-select: none;
  user-select: none;
}
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-right ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0;
  }
  .nav-right ul.open { display: flex; }
  nav { position: relative; }
  .nav-right ul li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-right ul li:last-child a { border-bottom: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 4rem 0; }
  .hero .cta { flex-direction: column; }
  .hero .cta .btn { width: 100%; text-align: center; }
  .about-content { grid-template-columns: 1fr; justify-items: center; }
  .about-stats { flex-direction: column; }
  .about-stats .stat { width: 100%; }
  section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
}
