:root {
  --bg: #0a0a0a;
  --text: #f5f5f7;
  --muted: #9ca3af;
  --card: #161616;
  --accent: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --font: "Inter", sans-serif;
}

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

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

/* Layout */
.container { width: min(1100px, 90%); margin: auto; }

/* Navigation */
.nav {
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}

nav a {
  margin-left: 1.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

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

.hero-inner h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  max-width: 800px;
  margin: auto;
}

.tagline {
  margin: 1rem 0 1.6rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: 0.2s;
}

.btn.primary {
  background: var(--accent);
  color: #000;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  opacity: 0.85;
}

/* Stack strip */
.stack {
  padding: 1rem 0 3rem;
}

.stack-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: #111;
}

/* Projects */
.projects {
  padding: 3rem 0 5rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
}

.project-card {
  background: var(--card);
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease-out;
}

.project-card:hover {
  transform: translateY(-4px);
}

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

.project-card p {
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-card a {
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.6rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--accent);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
