/* ═══════════════════════════════════════════════════════════════
   styles.css — Edit colors and fonts here to restyle everything.
═══════════════════════════════════════════════════════════════ */

/* ─── 1. COLORS & FONTS — change these to restyle the whole site */
:root {
  --bg:        #f5f2ec;
  --bg-alt:    #e8e0d0;
  --dark:      #2c3e50;
  --ink:       #0f0e0d;
  --muted:     #7a7060;
  --accent:    #c0392b;
  --border:    #d4cfc5;
  --white:     #f5f2ec;

  --font-head: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --nav-h: 68px;   /* height of the fixed nav bar */
}

/* ─── 2. RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;        /* NO scrolling on the body */
  height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ─── 3. NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  background: rgba(245,242,236,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.1rem;
  color: var(--ink); cursor: pointer;
}
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: .75rem;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links button:hover  { color: var(--ink); }
/* Active section button gets a red underline */
.nav-links button.active { color: var(--ink); border-bottom-color: var(--accent); }

/* CV download — styled as a bordered button */
.nav-cv {
  font-size: .72rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; padding: .4rem .9rem;
  border: 1.5px solid var(--ink); border-radius: 2px;
  color: var(--ink); cursor: pointer;
  background: none; font-family: var(--font-body);
  transition: all .2s;
}
.nav-cv:hover { background: var(--ink); color: var(--white); }

/* ─── 4. PAGE CONTAINER ─────────────────────────────────────── */
/* All sections sit inside here, only one is visible at a time  */
#page-container {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  bottom: 0;
  overflow: hidden;      /* hides all but the active section   */
}

/* ─── 5. SECTIONS ───────────────────────────────────────────── */
/* Every section is full-screen and hidden by default           */
/* Sections with lots of content (publications, blog) can       */
/* scroll internally inside the fixed frame                     */
section {
  position: absolute;
  inset: 0;
  padding: 4rem 6rem;
  overflow-y: auto;           /* inner scroll if content is tall */
  overflow-x: hidden;

  /* Hidden by default — JS adds .active to show one at a time */
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
}
section.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Subtle inner scrollbar */
section::-webkit-scrollbar { width: 4px; }
section::-webkit-scrollbar-track { background: transparent; }
section::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── 6. SHARED HELPERS ─────────────────────────────────────── */
.section-header { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-num    { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; }
h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.02em; }

.chip {
  display: inline-block; padding: .28rem .7rem; margin: .2rem;
  font-family: var(--font-mono); font-size: .7rem;
  border: 1px solid var(--border); border-radius: 2px; color: var(--muted);
}
.chip.filled { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.6rem; font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2px; transition: all .25s;
  border: none; cursor: pointer; text-decoration: none;
}
.btn-dark  { background: var(--ink); color: var(--white); }
.btn-dark:hover  { background: var(--accent); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.status-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: 2px;
  font-family: var(--font-mono); font-size: .76rem;
}
.status-dot  { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; flex-shrink: 0; }
.status-badge.dark { border: 1px solid rgba(255,255,255,.3); color: white; }

.subsection-label {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.subsection-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.subsection-gap { margin-top: 2.5rem; }

/* ─── 7. FOOTER ─────────────────────────────────────────────── */
/* Footer is fixed at the bottom, always visible               */
#site-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink);
  padding: .9rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.06);
}
#site-footer span { font-size: .7rem; color: rgba(255,255,255,.3); font-family: var(--font-mono); }

/* ─── 8. HAMBURGER & MOBILE MENU ────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: .4rem; flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 190;
  background: rgba(245,242,236,.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .5rem 1.5rem 1.2rem;
  flex-direction: column;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
#mobile-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }
#mobile-menu button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: .82rem;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: .85rem 0; text-align: left;
  border-bottom: 1px solid var(--border); width: 100%;
  transition: color .2s;
}
#mobile-menu button:hover { color: var(--ink); }
#mobile-menu .mobile-cv {
  display: inline-block; margin-top: .9rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; padding: .45rem 1rem;
  border: 1.5px solid var(--ink); border-radius: 2px;
  color: var(--ink); font-family: var(--font-body);
}

/* ─── 9. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: .8rem; }
  .nav-links button { font-size: .65rem; letter-spacing: .08em; }
  section { padding: 2.5rem 1.5rem 5rem; }
  #site-footer { padding: .8rem 1.5rem; }
}
@media (max-width: 600px) {
  .nav-links .hide-mobile { display: none; }
  .nav-hamburger { display: flex; }
  #mobile-menu { display: flex; }
}
