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

/* ── DESIGN TOKENS ── */
:root {
  --bg:             #0a0a0a;
  --text:           #ffffff;
  --white:          #ffffff;   /* alias used in blogs */
  --muted:          #919191;
  --text-secondary: #c6c6c6;
  --text-dim:       #525252;
  --text-light:     #a3a3a3;
  --dim:            #a3a3a3;   /* alias used in home */
  --footer-link:    #737373;   /* alias used in home */
  --surface:        rgba(255,255,255,0.03);
  --surface-hover:  rgba(255,255,255,0.05);
  --border:         rgba(255,255,255,0.08);
  --border-mid:     rgba(255,255,255,0.10);
  --border-subtle:  rgba(255,255,255,0.05);
  --overlay-faint:  rgba(255,255,255,0.03);  /* alias used in blogs */
  --overlay-light:  rgba(255,255,255,0.05);  /* alias used in blogs */
  --overlay-medium: rgba(255,255,255,0.10);  /* alias used in blogs */
  --border-light:   rgba(255,255,255,0.08);  /* alias used in blogs */
  --border-medium:  rgba(255,255,255,0.10);  /* alias used in blogs */
  --accent-green:   #22c55e;
  --radius-card:    12px;
  --radius-pill:    9999px;
  --radius-btn:     8px;
  --font:           'Plus Jakarta Sans', sans-serif;
  --mono:           'Liberation Mono', monospace;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  animation: fadeUp 0.5s ease both;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-img {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.35px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover  { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
}
.nav-mail {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  text-decoration: none;
}
.nav-mail:hover { opacity: 1; }
.nav-mail svg   { width: 22px; height: 18px; }

/* ── FOOTER ── */
footer {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  opacity: 0.8;
}
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-copy {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

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

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-inner    { padding: 0 20px; }
  .footer-inner { padding: 0 20px; flex-direction: column; gap: 16px; text-align: center; }
}
