:root{
  /* Background image for the full site */
  --bg-image: url("img/parallax_bg_office.png"); /* <-- set this to your file path */

  /* Theme colors */
  --ink: rgba(255,255,255,0.92);
  --ink-soft: rgba(255,255,255,0.78);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);

  --steel: rgba(240,245,255,0.92);
  --graphite: rgba(20,22,28,0.78);

  --line: rgba(255,255,255,0.18);
  --line-strong: rgba(255,255,255,0.28);

  --radius: 18px;
  --radius-lg: 22px;

  --blur: 10px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body{
  color: var(--ink);
  background: #0b1020;
}

/* Full-bleed background */
.page{
  min-height: 100vh;
  position: relative;
  background-image: linear-gradient(180deg, rgba(5,10,25,0.58), rgba(5,10,25,0.72)), var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Blur page when modal is open */
body.modal-open #page{
  filter: blur(var(--blur));
  transform: scale(0.99);
  transition: filter 180ms ease, transform 180ms ease;
}

body:not(.modal-open) #page{
  transition: filter 180ms ease, transform 180ms ease;
}

/* Top bar */
.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,14,25,0.62), rgba(10,14,25,0.20));
  backdrop-filter: blur(10px);
}

.brand{
  display: flex;
  gap: 6px;
  align-items: baseline;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
}

.brand__name{
  font-weight: 600;
  opacity: 0.92;
}

.brand__sub{
  font-weight: 300;
  opacity: 0.78;
}

.nav{
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav__link{
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav__link:hover{
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,0.06);
}

.nav__link--contact{
  border-color: var(--line);
  background: rgba(255,255,255,0.08);
}

/* Hero */
.hero{
  display: grid;
  place-items: center;
  padding: 36px 18px 24px;
}

.hero__card{
  width: min(960px, 92vw);
  padding: 34px 34px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(10,14,25,0.42);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero__title{
  margin: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__titleMain{ opacity: 0.95; }
.hero__titleSub{
  opacity: 0.72;
  font-weight: 300;
  margin-left: 10px;
}

.hero__tagline{
  margin: 10px 0 18px;
  font-size: 16px;
  letter-spacing: 0.03em;
  opacity: 0.88;
}

.hero__copy p{
  margin: 10px 0;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}

.btn{
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:hover{ transform: translateY(-1px); }

.btn--pro{
  background: rgba(20,24,35,0.58); /* Graphite/Steel vibe */
  color: var(--steel);
}

.btn--personal{
  background: rgba(245,245,245,0.75); /* “Black Diamond” contrast */
  color: rgba(20,20,25,0.92);
  border-color: rgba(255,255,255,0.35);
}

.hero__note{
  margin: 10px 0 0;
  color: var(--ink-soft);
  opacity: 0.9;
  line-height: 1.55;
}

.hero__promise{
  margin: 18px 0 0;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Footer */
.footer{
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(10,14,25,0.24);
  color: rgba(255,255,255,0.68);
}

/* Overlay when modal open */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(5,8,16,0.55);
  backdrop-filter: blur(2px);
  z-index: 30;
}

/* Modal root layer */
.modalRoot{
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
}

.modal{
  pointer-events: auto;
  width: min(920px, 92vw);
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Theme: Professional (Graphite/Steel) */
.modal--pro{
  background: linear-gradient(180deg, rgba(16,18,24,0.82), rgba(10,12,18,0.84));
  color: var(--ink);
}

/* Theme: Personal (Black Diamond style) */
.modal--personal{
  background: linear-gradient(180deg, rgba(12,12,14,0.88), rgba(7,7,9,0.90));
  color: var(--ink);
}

/* Utility: neutral modal theme for About/Read/Contact (Option A) */
.modal--neutral{
  background: linear-gradient(180deg, rgba(16,18,24,0.82), rgba(10,12,18,0.84));
  color: var(--ink);
}

.modal__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
}

.modal__titleWrap{
  display: grid;
  gap: 4px;
}

.modal__kicker{
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal__title{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.modal__close{
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 12px;
}

.modal__close:hover{
  background: rgba(255,255,255,0.10);
}

.modal__body{
  padding: 18px 18px 22px;
  overflow: auto;
}

.modal__body h3{
  margin: 16px 0 8px;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.modal__body p{
  margin: 10px 0;
  line-height: 1.6;
  color: var(--ink-soft);
}

.modal__body ul{
  margin: 8px 0 14px 18px;
  color: var(--ink-soft);
}

.modal__body li{
  margin: 6px 0;
  line-height: 1.55;
}

.small{
  font-size: 13px;
  opacity: 0.78;
}

/* Mobile tweaks */
@media (max-width: 540px){
  .hero__card{ padding: 24px 18px 20px; }
  .topbar{ padding: 14px 14px; }
  .nav{ gap: 8px; }
  .nav__link{ padding: 8px 8px; }
}
