/* ── common.css — shared styles across all pages ── */

:root {
  --bg:         #2b303a;
  --bg-surface: #323844;
  --accent:     #34d399;
  --accent-dim: rgba(52, 211, 153, 0.08);
  --text:       #bfc3cc;
  --text-bright:#e2e4e9;
  --text-dim:   #646b7a;
  --border:     rgba(255, 255, 255, 0.05);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  background-color: var(--bg);
  font-family: 'Libre Franklin', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
}

/* ── Cool gradient with soft geometry ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 0;
}

/* ── Subtle grid pattern ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

main, footer { position: relative; z-index: 2; }
nav { position: relative; z-index: 6; }

/* ── Nav ── */
.nav-toggle { display: none; }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
}

.nav-brand {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-brand:hover { color: var(--accent); }

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

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

/* Pill indicator on hover */
nav a::before {
  content: '';
  position: absolute;
  inset: -6px -14px;
  border-radius: 100px;
  background: var(--accent-dim);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

nav a:hover::before { opacity: 1; }

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--text-dim);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-overlay { display: none; }

/* ── Footer ── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 28px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ── Mobile ── */
@media (max-width: 768px) {
  footer {
    flex-direction: column-reverse;
    text-align: center;
    gap: 8px;
  }
  nav { padding: 18px 22px; }
  .hamburger { display: flex; }

  nav ul {
    position: fixed;
    top: 0; right: -100%;
    width: 250px; height: 100vh;
    background: rgba(43, 48, 58, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 10;
    border-left: 1px solid var(--border);
  }

  .nav-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 5;
  }

  .nav-toggle:checked ~ nav ul { right: 0; }
  .nav-toggle:checked ~ .nav-overlay { opacity: 1; visibility: visible; }
  .nav-toggle:checked ~ nav .hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .nav-toggle:checked ~ nav .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ nav .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
}
