* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background: #121212;
  color: #e5e5e5;
}

body.light {
  background: #fafafa;
  color: #1a1a1a;
}

.toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s ease;
}

body.dark .toggle { color: #e5e5e5; }
body.light .toggle { color: #1a1a1a; }
.toggle:hover { background: rgba(128,128,128,0.2); }

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark h1 {
  background: #2a2a2a;
  color: #f0f0f0;
}

body.light h1 {
  background: #e8e8e8;
  color: #1a1a1a;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

a.project {
  display: block;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

body.dark a.project {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
}

body.dark a.project:hover {
  border-color: #444;
  background: #252525;
  transform: translateY(-2px);
}

body.light a.project {
  background: #fff;
  border: 1px solid #e0e0e0;
}

body.light a.project:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.project h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

body.dark .project h2 { color: #f0f0f0; }
body.light .project h2 { color: #1a1a1a; }

.project p {
  font-size: 0.9rem;
  line-height: 1.5;
}

body.dark .project p { color: #888; }
body.light .project p { color: #666; }

.arrow {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

a.project:hover .arrow {
  transform: translateX(3px);
}