/* Portfolio Design System */

/* ── Nunito Sans (variable font) ── */
@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --bg: #F5F2EC;
  --surface: #EDE9E2;
  --text: #0f0f0f;
  --text-secondary: #5a5a5a;
  --text-muted: #9a9590;
  --border: #D8D3CA;
  --border-light: #E4E0D8;

  --font-display: 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --nav-height: 80px;
  --container-max: 1280px;
  --text-max: 660px;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* NAV */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: linear-gradient(to bottom, rgba(245,242,236,0.97) 0%, rgba(245,242,236,0.0) 100%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(245,242,236,0.97);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-back {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-back::before {
  content: '←';
}

/* FOOTER */

.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 120px;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* CONTAINER */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

/* SCROLL ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* SECTION LABEL */

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── PILL NAV (shared across pages) ── */

.nav-pill {
  justify-content: center;
  height: 68px;
  padding: 0 24px;
  background: transparent;
  border-bottom: none;
}

.nav-pill.scrolled {
  background: rgba(245,242,236,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 4px;
}

.nav-tab {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 7px;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.nav-tab:hover { color: rgba(0,0,0,0.8); }

.nav-tab.active {
  color: #0f0f0f;
  background: rgba(0,0,0,0.08);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav {
    padding: 0 24px;
  }
  .container {
    padding: 0 24px;
  }
  .footer {
    padding: 40px 24px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
