/* ── 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);
}

/* ── NAV END (mail + hamburger grouping) ── */
.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 20px 32px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.mobile-menu ul li { border-bottom: 1px solid var(--border-subtle); }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul li a {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-light);
  text-decoration: none;
  padding: 16px 0;
  transition: color 0.2s;
}
.mobile-menu ul li a:hover,
.mobile-menu ul li a.active { 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; }
  .nav-links     { display: none !important; }
  .nav-mail      { display: none !important; }
  .nav-hamburger { display: flex; }
  .footer-inner  { padding: 0 20px; flex-direction: column; gap: 16px; text-align: center; }
}
