:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e2e2e2;
  --accent: #1a1a1a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header + nav */
header {
  padding: 48px 0 0;
}

header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  border-bottom: 1px solid var(--border);
}

nav a {
  padding: 12px 0;
  margin-bottom: -1px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Page content */
main {
  padding: 40px 0 64px;
}

/* About */
.about {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.about .photo {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}

.about .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about .bio h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
}

.about .bio p {
  margin: 0 0 16px;
  color: var(--text);
  max-width: 60ch;
}

.about .bio a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about .bio a:hover {
  opacity: 0.7;
}

/* Resume */
.resume-actions {
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.btn:hover {
  opacity: 0.9;
}

.resume-frame {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

/* Portfolio */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card .thumb {
  height: 150px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card .body {
  padding: 16px;
}

.card .body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.card:hover .body h3 {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card .body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Mobile */
@media (max-width: 600px) {
  header {
    padding-top: 32px;
  }

  nav {
    gap: 20px;
  }

  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about .bio p {
    text-align: left;
  }
}
