@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --accent: #4a4a4a;
  --accent-soft: rgba(74, 74, 74, 0.08);
  --card: #f5f5f5;
  --border: #d9d9d9;
  --petal: rgba(74, 74, 74, 0.2);
  --on-accent: #ffffff;
  --sidebar-width: 240px;
}
:root[data-theme="dark"] {
  --bg: #141414;
  --text: #ffffff;
  --muted: #a8a8a8;
  --accent: #cfcfcf;
  --accent-soft: rgba(207, 207, 207, 0.12);
  --card: #1e1e1e;
  --border: #333333;
  --petal: rgba(207, 207, 207, 0.25);
  --on-accent: #141414;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-left: calc(var(--sidebar-width) + 32px);
  overflow-x: hidden;
  transition: background .3s, color .3s;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* NAV */
.nav {
  position: fixed; top: 16px; bottom: 16px; left: 16px;
  width: var(--sidebar-width);
  display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
  overflow-y: auto;
  padding: 24px 14px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--border);
  z-index: 50; backdrop-filter: blur(8px);
}
.nav-links { display: flex; flex-direction: column; gap: 10px; }
.nav-links a {
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); padding: 14px 12px; border-radius: 14px; transition: .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { background: var(--accent); color: #fff; }
.nav-links a:focus-visible, .theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.theme-toggle {
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  border-radius: 999px; width: 38px; height: 38px; cursor: pointer; font-size: 16px;
}

/* LAYOUT */
main { max-width: 1100px; margin: 0 auto; padding: 64px 24px 140px; position: relative; z-index: 2; }
.eyebrow {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .25em;
  color: var(--muted); display: flex; align-items: center; gap: 12px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--muted); }

/* HOME */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; min-height: 70vh; }
.photo {
  width: min(380px, 100%); aspect-ratio: 1; border-radius: 50%; margin: auto;
  border: 6px solid var(--bg); outline: 3px solid var(--accent);
  overflow: hidden; background: var(--accent-soft);
  display: grid; place-items: center; box-shadow: 0 20px 60px var(--accent-soft);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .initials { font-family: 'Anton'; font-size: 90px; color: var(--accent); }
.name {
  font-family: 'Anton', sans-serif; font-size: clamp(48px, 8vw, 96px);
  line-height: .95; text-transform: uppercase; margin: 14px 0 22px;
}
.name .outline { color: transparent; -webkit-text-stroke: 2px var(--text); display: block; }
.course { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 28px; letter-spacing: .15em; color: var(--accent); }
.hero h2 { font-size: 22px; margin-top: 10px; }
.hero p.sub { color: var(--muted); margin-top: 6px; font-size: 18px; }

.contact { margin-top: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; }
.contact .eyebrow { font-size: 11px; margin-bottom: 8px; }
.row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--border); }
.row .label { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.row .value { font-size: 18px; font-weight: 500; word-break: break-all; }
.copy {
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; letter-spacing: .08em;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: .2s;
}
.copy:hover, .copy.done { background: var(--accent); color: #fff; border-color: var(--accent); }

.bigtext {
  position: absolute; right: -20px; bottom: 40px; font-family: 'Anton'; font-size: 340px;
  color: transparent; -webkit-text-stroke: 2px var(--border); z-index: -1; line-height: 1; pointer-events: none;
}

/* SECTION PAGES */
.page-title { font-size: clamp(34px, 6vw, 60px); font-weight: 500; text-align: center; margin-bottom: 14px; }
.page-title span { color: var(--accent); }
.page-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 50px; font-size: 17px; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 22px; text-align: center; position: relative; transition: .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 14px 34px var(--accent-soft); }
.card .dot { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.card .years { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.card h3 { font-size: 19px; margin: 8px 0 6px; font-weight: 500; }
.card p { color: var(--muted); font-size: 14px; }
.card .badge { width: 90px; height: 90px; margin: 18px auto 0; border-radius: 50%; border: 2px dashed var(--accent); display: grid; place-items: center; color: var(--accent); font-size: 11px; font-family: 'Space Mono', monospace; }
.card .icon { font-size: 38px; margin-bottom: 10px; }
.card .school-logo { width: 120px; height: auto; border: 0; border-radius: 0; }
.school-logo img { display: block; width: 100%; height: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px; border: 3px solid var(--accent); background: var(--accent-soft); display: grid; place-items: center; font-family: 'Anton'; font-size: 38px; color: var(--accent); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar img + span { display: none; }
.parents { grid-template-columns: minmax(0, 420px); justify-content: center; }
.parent-photo { margin: 0 0 16px; border-radius: 12px; overflow: hidden; border: 3px solid var(--accent); }
.parent-photo img { display: block; width: 100%; height: auto; }

.quote { text-align: center; font-size: 24px; max-width: 820px; margin-left: auto; margin-right: auto; line-height: 1.5; margin-top: 60px; font-weight: 300; color: var(--text); }
.quote b { color: var(--accent); font-weight: 500; }

/* PAGER */
.pager { position: fixed; right: 20px; bottom: 20px; display: flex; gap: 10px; z-index: 60; }
.btn {
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 15px; text-decoration: none;
  background: var(--accent); color: #fff; padding: 11px 20px; border-radius: 10px; transition: .2s;
  border: 2px solid var(--accent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-soft); }
.btn.ghost { background: var(--bg); color: var(--accent); }
.btn.hidden { display: none; }

footer {
  position: fixed; left: calc(var(--sidebar-width) + 32px); bottom: 0; width: calc(100% - var(--sidebar-width) - 32px); padding: 12px 24px;
  display: flex; justify-content: space-between; font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--muted); background: linear-gradient(transparent, var(--bg) 60%); z-index: 5;
}

/* PETALS */
.petal { position: fixed; z-index: 1; pointer-events: none; color: var(--petal); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(25deg); } }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .timeline { grid-template-columns: 1fr; }
  .bigtext { display: none; }
  footer span:last-child { display: none; }
}
@media (max-width: 860px) {
  body { padding-left: 0; }
  .nav { position: relative; inset: auto; width: calc(100% - 32px); margin: 16px; padding: 12px; flex-direction: row; align-items: center; gap: 8px; }
  .nav-links { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .theme-toggle { flex-shrink: 0; }
  main { padding-top: 32px; }
  footer { left: 0; width: 100%; }
  .hero { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .timeline { grid-template-columns: 1fr; }
  .bigtext { display: none; }
  .nav-links a { padding: 6px 8px; font-size: 10px; }
  footer span:last-child { display: none; }
  .row { grid-template-columns: 70px 1fr auto; }
}
/* ===== TOP NAVIGATION BAR (replaces left sidebar) ===== */
:root { --sidebar-width: 0px !important; }

.nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: 64px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 24px !important;
  overflow-x: auto;
  z-index: 1000;
}

.nav-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
}

.nav-links a {
  white-space: nowrap;
  padding: 10px 18px !important;
}

.theme-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 24px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

body {
  padding-top: 64px !important;
  padding-left: 0 !important;
}

main {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

footer {
  left: 32px !important;
  width: calc(100% - 64px) !important;
}
