/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:        #0d1117;
  --clr-surface:   #161b22;
  --clr-border:    #30363d;
  --clr-accent:    #58a6ff;
  --clr-accent-dim:#388bfd26;
  --clr-text:      #e6edf3;
  --clr-muted:     #8b949e;
  --radius:        8px;
  --transition:    0.2s ease;
  --max-w:         1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
}

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--clr-accent);
  color: #0d1117;
  border: 1px solid var(--clr-accent);
}
.btn--primary:hover { background: #79c0ff; border-color: #79c0ff; text-decoration: none; }

.btn--outline {
  background: transparent;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
}
.btn--outline:hover { background: var(--clr-accent-dim); text-decoration: none; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--clr-border);
}
.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-text);
}
.nav__logo:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 1.5rem; }
.nav nav a { color: var(--clr-muted); font-size: 0.95rem; transition: color var(--transition); }
.nav nav a:hover { color: var(--clr-text); text-decoration: none; }

/* ── Sections ── */
.section { padding: 5rem 2rem; }
.section--first { padding-top: 3.5rem; }
.section--alt { background: var(--clr-surface); }

.container { max-width: var(--max-w); margin: 0 auto; }

.section__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section__subtitle { color: var(--clr-muted); margin-bottom: 3rem; }

/* ── Project grid ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-3px);
}

.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.project-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-text);
}
.project-card__links { display: flex; gap: 0.5rem; flex-shrink: 0; }

.icon-link {
  color: var(--clr-muted);
  font-size: 0.85rem;
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition), border-color var(--transition);
}
.icon-link:hover { color: var(--clr-accent); border-color: var(--clr-accent); text-decoration: none; }
.icon-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.project-card__desc { color: var(--clr-muted); font-size: 0.92rem; flex: 1; }

.project-card__status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
}
.status--live    { background: #1a472a; color: #56d364; border: 1px solid #238636; }
.status--wip     { background: #2d1b00; color: #e3b341; border: 1px solid #9e6a03; }
.status--planned { background: #161b22; color: var(--clr-muted); border: 1px solid var(--clr-border); }

.project-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  border-radius: 999px;
}

/* ── About ── */
.about { max-width: 680px; }
.about__text p { color: var(--clr-muted); margin-bottom: 1rem; }
.about__text .btn { margin-top: 0.5rem; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-size: 0.9rem;
}
.footer a { color: var(--clr-muted); }
.footer a:hover { color: var(--clr-accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav { padding: 0.8rem 1rem; }
  .hero { padding: 3rem 1rem; }
  .section { padding: 3rem 1rem; }
  .hero__cta { flex-direction: column; }
}
