/* Clean Minimal Design */

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

:root {
  --bg: #fafafa;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --text: #171717;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --accent: #171717;
  --accent-hover: #404040;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Menlo, monospace;
  --max-width: 1100px;
  --radius: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--border-light);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

pre {
  background: var(--text);
  color: #fafafa;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

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

/* Hero */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Section */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4rem;
}

.project-card {
  background: var(--surface);
  transition: background 0.15s;
}

.project-card:hover {
  background: var(--bg);
}

.project-card a {
  display: block;
  padding: 2rem;
  height: 100%;
}

.project-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--border-light);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
}

/* About */
.about-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
}

.about-photo {
  width: 80px;
  height: 80px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.about-content ul {
  list-style: none;
  margin: 1.5rem 0;
}

.about-content li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.about-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Contact */
.contact-section {
  text-align: center;
  padding: 5rem 0;
}

.contact-section h2 {
  margin-bottom: 0.5rem;
}

.contact-section p {
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
}

footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* Project Detail */
.project-detail {
  padding-top: 8rem;
}

.back-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--text);
}

.project-header h1 {
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.project-hero-image {
  background: var(--border-light);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 3rem;
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
}

.section-block {
  margin-bottom: 2.5rem;
}

.section-block h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  width: 24px;
  height: 24px;
  background: var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.section-block p,
.section-block li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.section-block ul {
  list-style: none;
  margin: 1rem 0;
}

.section-block li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.section-block li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-card h4 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sidebar-card a {
  color: var(--text);
  font-size: 0.875rem;
}

.sidebar-card a:hover {
  text-decoration: underline;
}

.sidebar-card ul {
  list-style: none;
}

.sidebar-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.sidebar-card .project-tags {
  flex-direction: column;
  align-items: flex-start;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.screenshot-placeholder {
  aspect-ratio: 16/10;
  background: var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 8rem 0 4rem; }

  .stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-body {
    grid-template-columns: 1fr;
  }

  nav { display: none; }
}
