:root{
  --bg: #050505;        /* deep black */
  --btn: #2a2a2a;       /* dark grey */
  --btnHover: #3a3a3a;
  --text: #f2f2f2;
  --muted: #bdbdbd;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.center{
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  text-align: center;
}

.title{
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: clamp(28px, 4vw, 44px);
}

.btn-row{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  min-width: 140px;
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, background 120ms ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.btn:hover{ background: var(--btnHover); transform: translateY(-1px); }
.btn:active{ transform: translateY(0px) scale(0.99); }

/* PDF pages */
.topbar{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}

.spacer{ flex: 1; }

.link{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.link:hover{ color: var(--text); }

.viewer{
  height: calc(100vh - 50px);
}

.pdf{
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- animated background layer --- */
#bg-net{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#bg-vignette{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 70%, rgba(0,0,0,0.9) 100%);
}

/* make sure your centered title + buttons are above */
.center{
  position: relative;
  z-index: 2;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  min-width: 140px;
  border-radius: var(--radius);

  /* translucent button */
  background: rgba(45,45,45,0.35);

  /* thick white border */
  border: 1px solid rgba(255,255,255,0.92);

  color: var(--text);
  text-decoration: none;
  font-weight: 600;

  /* optional “glass” feel */
  backdrop-filter: blur(8px);

  transition: transform 120ms ease, background 120ms ease;
}

.btn:hover{
  background: rgba(45,45,45,0.5);
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0px) scale(0.99);
}

/* CV page: white background */
body.page-cv{
  background: #ffffff;
  color: #111111;
}

/* optional: make the sticky top bar readable on white */
body.page-cv .topbar{
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

body.page-cv .link{
  color: #111111;
}

body.page-cv .link:hover{
  opacity: 0.75;
}
