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

:root {
  --bg: #f9f8f5;
  --surface: #ffffff;
  --text: #1a1a18;
  --muted: #6b6b66;
  --subtle: #9e9e98;
  --border: #e4e3dc;
  --accent: #2d5be3;
  --accent-light: #eef1fd;
  --tag-bg: #f0efe9;
  --tag-text: #3a3a36;
  --nav-bg: rgba(249, 248, 245, 0.88);
  --sans: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

[data-theme="dark"] {
  --bg: #0f0f0e;
  --surface: #1a1a18;
  --text: #f0efe9;
  --muted: #9e9e98;
  --subtle: #6b6b66;
  --border: #2a2a28;
  --accent: #5a7af0;
  --accent-light: #1a2240;
  --tag-bg: #242422;
  --tag-text: #c8c8c2;
  --nav-bg: rgba(15, 15, 14, 0.88);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}

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

/* ── LAYOUT ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

nav .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
  font-weight: 400;
}

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

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--tag-bg);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

h1 strong {
  font-weight: 500;
  display: block;
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { opacity: 0.88; }

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

.btn-secondary:hover { background: var(--tag-bg); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── SECTIONS ── */
section { padding: 72px 0; border-bottom: 1px solid var(--border); }
section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 40px;
}

h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 300;
}

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

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.meta-icon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

.meta-label { font-size: 11px; color: var(--subtle); margin-bottom: 1px; }
.meta-value { font-size: 14px; font-weight: 500; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.15s, transform 0.15s, background 0.2s;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-category {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

/* ── PROJECTS ── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  transition: border-color 0.15s, transform 0.15s, background 0.2s;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle);
  margin-bottom: 8px;
}

.project-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  font-weight: 300;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-arrow {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
  transition: background 0.15s, border-color 0.15s;
}

.project-card:hover .project-arrow {
  background: var(--accent);
  border-color: var(--accent);
}

.project-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.15s;
}

.project-card:hover .project-arrow svg { stroke: #fff; }

/* ── COMING SOON PLACEHOLDER ── */
.placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 48px 28px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.placeholder-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 10px;
}

.placeholder p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.social-link:hover { color: var(--accent); }

.social-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 60px; }
  nav .inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .nav-links { gap: 18px; }
  .project-card { grid-template-columns: 1fr; }
  .project-arrow { display: none; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero > * {
  animation: fadeUp 0.5s ease both;
}

.hero-eyebrow { animation-delay: 0s; }
.hero h1 { animation-delay: 0.07s; }
.hero-desc { animation-delay: 0.14s; }
.hero-actions { animation-delay: 0.21s; }
