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

:root {
  --bg: #0f1117;
  --bg2: #161822;
  --bg3: #1e2030;
  --border: #2a2d3e;
  --text: #cdd6f4;
  --muted: #6c7086;
  --accent: #89b4fa;
  --accent2: #cba6f7;
  --green: #a6e3a1;
  --yellow: #f9e2af;
  --red: #f38ba8;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* HERO */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero h1 .highlight { color: var(--accent); }

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0f1117;
}
.btn-primary:hover {
  background: #b4cefb;
  text-decoration: none;
  color: #0f1117;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg3);
  text-decoration: none;
}

/* SECTIONS */
section {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.6rem;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}

/* POSTS */
.posts-grid {
  display: grid;
  gap: 1rem;
}

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.post-card:hover {
  border-color: var(--accent);
  background: var(--bg3);
  text-decoration: none;
}
.post-card-left { flex: 1; }

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.tag {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 500;
}
.tag-blue  { background: #1e3a5f; color: #89b4fa; }
.tag-purple{ background: #2d1e4f; color: #cba6f7; }
.tag-green { background: #1a3028; color: #a6e3a1; }
.tag-yellow{ background: #3d2e0e; color: #f9e2af; }

.post-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.post-card p {
  font-size: 0.85rem;
  color: var(--muted);
}
.post-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--accent2); text-decoration: none; }

.project-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
}

.project-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.project-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}
.project-lang::before {
  content: '●';
  margin-right: 4px;
  color: var(--accent);
}

/* STACK */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.stack-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}
.stack-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(0.2);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
footer span { color: var(--red); }
