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

:root {
  --bg: #ffffff;
  --fg: #000000;
  --fg-muted: #555555;
  --border: #e0e0e0;
  --card-bg: #f5f5f5;
  --section-title: #333333;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --fg: #ffffff;
    --fg-muted: #aaaaaa;
    --border: #333333;
    --card-bg: #242424;
    --section-title: #cccccc;
  }
}

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

/* Socials */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.socials a {
  color: var(--fg);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.socials a:hover {
  opacity: 1;
}

/* About */
.about {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.about p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about p:last-child {
  margin-bottom: 0;
}

.resume-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.resume-link:hover {
  opacity: 1;
}

/* Sections */
.project-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Project Card */
.project-card {
  display: block;
  text-decoration: none;
  color: var(--fg);
  margin-bottom: 1.25rem;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .project-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

.project-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--card-bg);
}

.project-info {
  padding: 0.75rem 0;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  main {
    padding: 2rem 1rem 3rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}
