/* =========================================================
   BASE.CSS
   Shared design system, typography, layout, header, footer,
   reusable buttons/chips, and global responsive behavior.
   Load this file on every page.
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #070916;
  --bg-soft: #0d1022;
  --surface: rgba(13, 16, 34, 0.74);
  --surface-strong: rgba(18, 22, 44, 0.88);
  --surface-muted: rgba(25, 30, 58, 0.74);

  --line: rgba(191, 219, 254, 0.15);
  --line-strong: rgba(191, 219, 254, 0.28);

  --text: #f8fbff;
  --muted: #bcc7dc;
  --muted-2: #8d9ab4;

  --accent: #93c5fd;
  --accent-strong: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.13);

  --violet: #818cf8;
  --gold: #f2d37b;
  --success: #a5b4fc;

  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;

  /* Global title scale */
  --heading-weight: 500;
  --page-title-size: 2.25rem;
  --page-title-size-mobile: 1.85rem;
  --section-title-size: 1.95rem;
  --section-title-size-mobile: 1.6rem;
  --card-title-size: 1.35rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 197, 253, 0.38) rgba(7, 9, 22, 0.72);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(93, 95, 239, 0.16), transparent 34rem),
    radial-gradient(ellipse at 18% 22%, rgba(14, 165, 233, 0.10), transparent 30rem),
    radial-gradient(ellipse at 52% 112%, rgba(30, 64, 175, 0.13), transparent 36rem),
    linear-gradient(135deg, #01030a 0%, #050717 38%, #0b1024 66%, #02040c 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* Static galaxy glow. Gradients stay visually rich, but avoid animated/filter-heavy full-page repaints. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 5%, rgba(191, 219, 254, 0.045) 26%, rgba(129, 140, 248, 0.052) 43%, transparent 67%),
    radial-gradient(ellipse at 74% 18%, rgba(147, 197, 253, 0.14), transparent 36rem),
    radial-gradient(ellipse at 18% 30%, rgba(56, 189, 248, 0.08), transparent 30rem),
    radial-gradient(ellipse at 55% 72%, rgba(99, 102, 241, 0.10), transparent 38rem);
  opacity: 0.82;
  transform: translateZ(0);
}

/* Static star field. The moving effect now comes from the canvas only, so scrolling does not fight a CSS background animation. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.46;
  background-image:
    radial-gradient(circle at 18px 32px, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.6px),
    radial-gradient(circle at 140px 90px, rgba(191, 219, 254, 0.70) 0 1px, transparent 1.7px),
    radial-gradient(circle at 260px 36px, rgba(255, 255, 255, 0.56) 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 78px 170px, rgba(147, 197, 253, 0.52) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 310px 210px, rgba(255, 255, 255, 0.64) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 440px 120px, rgba(216, 180, 254, 0.42) 0 1px, transparent 1.8px);
  background-size:
    360px 240px,
    420px 310px,
    520px 360px,
    470px 290px,
    610px 430px,
    680px 520px;
  background-position:
    0 0,
    48px 28px,
    110px 80px,
    22px 140px,
    160px 60px,
    80px 210px;
  transform: translateZ(0);
}

img, iframe, video, picture { max-width: 100%; }
img, video, picture { display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 9, 22, 0.9);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 9, 22, 0.9);
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.52);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.72);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(2.75rem, 7vw, 6.25rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.3rem; }

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

li + li { margin-top: 0.35rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 999;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--text);
  color: #07101f;
  padding: 0.65rem 1rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

/* Header / navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 9, 20, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(220, 210, 255, 0.16);
  background: rgba(10, 7, 24, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-copy { display: grid; gap: 0.05rem; }
.brand-name { font-weight: 850; line-height: 1.1; }
.brand-subtitle { color: var(--muted-2); font-size: 0.82rem; letter-spacing: 0.02em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(220, 210, 255, 0.16);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(216, 180, 254, 0.12);
  color: #ffffff;
}

/*
   Initial header language rendering.
   The saved language is written to html[data-lang] by the tiny head script
   before base.css loads. These pseudo-elements prevent the header/nav text
   from rendering in English first and then shifting in German mode.
*/
.brand-name,
.brand-subtitle,
.primary-nav .nav-link[data-i18n] {
  font-size: 0;
}

.brand-name::after,
.brand-subtitle::after,
.primary-nav .nav-link[data-i18n]::after {
  display: inline-block;
}

.brand-name::after {
  font-size: 1rem;
}

.brand-subtitle::after {
  font-size: 0.82rem;
}

.primary-nav .nav-link[data-i18n]::after {
  font-size: 0.92rem;
  line-height: 1;
}

html[data-lang="en"] .brand-name::after { content: "Main Page"; }
html[data-lang="de"] .brand-name::after { content: "Startseite"; }

html[data-lang="en"] .brand-subtitle::after { content: "Clean data. Automated workflows. Faster decisions."; }
html[data-lang="de"] .brand-subtitle::after { content: "Clean data. Automated workflows. Faster decisions."; }

html[data-lang="en"] .primary-nav .nav-link[data-i18n="nav.about"]::after { content: "About & Experience"; }
html[data-lang="de"] .primary-nav .nav-link[data-i18n="nav.about"]::after { content: "Über mich & Erfahrung"; }

html[data-lang="en"] .primary-nav .nav-link[data-i18n="nav.bi"]::after { content: "BI Showcase"; }
html[data-lang="de"] .primary-nav .nav-link[data-i18n="nav.bi"]::after { content: "BI-Showcase"; }

html[data-lang="en"] .primary-nav .nav-link[data-i18n="nav.projects"]::after { content: "Projects Showcase"; }
html[data-lang="de"] .primary-nav .nav-link[data-i18n="nav.projects"]::after { content: "Projektübersicht"; }

html[data-lang="en"] .primary-nav .nav-link[data-i18n="nav.application"]::after {
  content: "Application Showcase";
}

html[data-lang="de"] .primary-nav .nav-link[data-i18n="nav.application"]::after {
  content: "Anwendungs-Showcase";
}

html[data-lang="en"] .primary-nav .nav-link[data-i18n="nav.certificates"]::after {
  content: "Credentials & Research";
}
html[data-lang="de"] .primary-nav .nav-link[data-i18n="nav.certificates"]::after {
  content: "Zertifikate & Forschung";
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 800;
}

main {
  position: relative;
  z-index: 1;
}

/* Shared section system */
.section { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }
.section.compact { padding: clamp(2.25rem, 5vw, 4rem) 0; }

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 800px;
  margin-bottom: 1.75rem;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  margin: 0;
  max-width: 70ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.05rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.12);
}

/* Shared buttons and small UI */
.button-group,
.anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.anchor-row {
  margin-top: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.8rem 1.05rem;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  font-weight: 850;
  letter-spacing: -0.015em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.1);
  color: var(--text);
}

.button.primary {
  border-color: rgba(125, 211, 252, 0.5);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(167, 139, 250, 0.18));
}

.compact-action {
  min-height: 38px;
  width: fit-content;
  padding: 0.55rem 0.85rem;
  gap: 0.45rem;

  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;

  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.11), rgba(167, 139, 250, 0.09)),
    rgba(15, 23, 42, 0.62);

  color: rgba(248, 250, 252, 0.92);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.01em;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.12);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.compact-action::after {
  content: "↗";
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.7;
  transform: translateY(-1px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.compact-action:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 180, 254, 0.48);
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.16), rgba(216, 180, 254, 0.13)),
    rgba(15, 23, 42, 0.78);

  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.compact-action:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.button.subtle {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}

.stack-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(15, 23, 42, 0.58);
  color: #cbd8ea;
  font-size: 0.9rem;
  font-weight: 750;
}

.chip.highlight {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.09);
  color: var(--text);
}

/* Shared page hero for subpages */
.page-hero {
  padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.page-hero-inner {
  display: grid;
  gap: 1.2rem;
  max-width: 860px;
}

.page-hero h1 { max-width: 12ch; }

.page-hero .lead {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: 1.4rem 0 1.1rem;
  border-top: 1px solid rgba(191, 219, 254, 0.12);
  background: rgba(7, 9, 22, 0.24);
  backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.footer a {
  color: var(--muted);
  font-weight: 800;
}

.footer a:hover { color: var(--accent); }

/* Desktop compact mode
   Keeps the original 80% rem scale that the design was tuned around. */
@media (min-width: 900px) {
  html { font-size: 80%; }
  .section { padding: 4rem 0; }
  .section.compact { padding: 3rem 0; }
}

/* Mobile header */
@media (max-width: 980px) {
  .header-inner { min-height: 72px; }

  .nav-toggle {
    display: inline-flex;
    z-index: 70;
  }

  .primary-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 84px;
    display: grid;
    gap: 0.35rem;
    border-radius: 22px;
    padding: 0.6rem;
    background: rgba(10, 16, 32, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-1rem);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      transform 180ms ease,
      opacity 180ms ease,
      visibility 180ms ease;
  }

  body.nav-open .primary-nav {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    justify-content: flex-start;
    padding-inline: 1rem;
  }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .container { width: min(100% - 1.1rem, var(--container)); }
  .brand-subtitle { display: none; }
  h1 { max-width: 12ch; }

  .button,
  .button-group .button {
    width: 100%;
  }

  .button.compact-action,
  .button-group .button.compact-action {
    width: fit-content;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Header brand + social icons */
.brand-area {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.header-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: var(--muted);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.header-social a:hover {
  color: var(--accent);
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.1);
  transform: translateY(-2px);
}

.header-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

@media (max-width: 680px) {
  .brand-area {
    gap: 0.55rem;
  }

  .header-social a {
    width: 31px;
    height: 31px;
  }

  .header-social svg {
    width: 15px;
    height: 15px;
  }
}


/* Accent hover */
.button:hover,
.header-social a:hover {
  border-color: rgba(216, 180, 254, 0.55);
}


/* Moving network canvas background */
#network-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.56;
}

main,
.footer {
  position: relative;
  z-index: 2;
}

/* Header right side: language button + navigation */
.header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.82rem;
  background: rgba(15, 23, 42, 0.62);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: rgba(147, 197, 253, 0.42);
  background: rgba(147, 197, 253, 0.1);
  transform: translateY(-2px);
}

.lang-flag {
  position: relative;
  width: 24px;
  height: 16px;
  display: inline-block;
  flex: 0 0 24px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

/*
   The language button shows the language the visitor can switch to.
   These selectors use html[data-lang], which is set by a tiny head script
   before the CSS file loads. That prevents DE/EN flicker between pages.
*/
html[data-lang="en"] .lang-flag {
  background:
    linear-gradient(
      to bottom,
      #000000 0 33.333%,
      #dd0000 33.333% 66.666%,
      #ffce00 66.666% 100%
    );
}

html[data-lang="de"] .lang-flag {
  background:
    linear-gradient(to bottom, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(to right, transparent 44%, #c8102e 44% 56%, transparent 56%),
    linear-gradient(to bottom, transparent 34%, #ffffff 34% 66%, transparent 66%),
    linear-gradient(to right, transparent 38%, #ffffff 38% 62%, transparent 62%),
    linear-gradient(34deg, transparent 43%, #ffffff 43% 49%, #c8102e 49% 54%, #ffffff 54% 60%, transparent 60%),
    linear-gradient(-34deg, transparent 43%, #ffffff 43% 49%, #c8102e 49% 54%, #ffffff 54% 60%, transparent 60%),
    #012169;
}

.lang-flag::before,
.lang-flag::after {
  content: none;
  display: none;
}

.lang-code {
  line-height: 1;
  letter-spacing: 0.04em;
  font-size: 0;
}

.lang-code::after {
  font-size: 0.88rem;
}

html[data-lang="en"] .lang-code::after {
  content: "DE";
}

html[data-lang="de"] .lang-code::after {
  content: "EN";
}


@media (max-width: 980px) {
  .header-right {
    gap: 0.55rem;
  }

  .lang-toggle {
    min-height: 40px;
    padding: 0.5rem 0.72rem;
  }

  .lang-code {
    display: none;
  }
}


a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   GLOBAL TITLE SYSTEM
   One source of truth for heading sizes and weights
   ========================================================= */

/* General heading weight */
h1,
h2,
h3,
h4 {
  font-weight: var(--heading-weight) !important;
}

/* Main page titles across all pages */
.hero h1,
.page-hero h1,
.subpage-hero h1,
.showcase-hero h1,
.project-hero h1,
.projects-hero h1,
.bi-hero h1,
.bi-showcase-hero h1,
.about-hero h1,
.credentials-hero h1,
.application-hero h1,
main > section:first-child h1 {
  max-width: 820px;
  font-size: var(--page-title-size) !important;
  line-height: 1.08;
  font-weight: var(--heading-weight) !important;
  letter-spacing: -0.055em;
}

/* Important section titles */
.section-title-small,
.credentials-section-heading h2 {
  max-width: 820px;
  font-size: var(--section-title-size) !important;
  line-height: 1.13;
  font-weight: var(--heading-weight) !important;
  letter-spacing: -0.045em;
}

/* Normal section headings */
.section-heading h2,
.cv-overview-copy h2,
.recommendations-copy h2,
.explore-header h2,
.value-heading h2,
.powerbi-embed-copy h2,
.bi-integration-panel h2,
.application-coming-next h2 {
  font-size: var(--section-title-size) !important;
  line-height: 1.13;
  font-weight: var(--heading-weight) !important;
  letter-spacing: -0.045em;
}

/* Card-level titles */
.project-copy h2,
.certificate-body h2,
.application-scope-card h3 {
  font-weight: var(--heading-weight) !important;
}

/* Project card headings: keep them smaller and calmer */
.project-copy h2 {
  font-size: 1.65rem !important;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* Add breathing space under important page/section headings */
.page-hero h1,
.projects-hero-copy h1,
.bi-hero-copy h1,
.application-hero-copy h1,
.section-title-small,
.credentials-section-heading h2 {
  margin-bottom: 0.75rem !important;
}

/* Mobile title adjustments */
@media (max-width: 680px) {
  .hero h1,
  .page-hero h1,
  .subpage-hero h1,
  .showcase-hero h1,
  .project-hero h1,
  .projects-hero h1,
  .bi-hero h1,
  .bi-showcase-hero h1,
  .about-hero h1,
  .credentials-hero h1,
  .application-hero h1,
  main > section:first-child h1 {
    font-size: var(--page-title-size-mobile) !important;
    line-height: 1.12;
  }

  .section-title-small,
  .credentials-section-heading h2,
  .section-heading h2,
  .cv-overview-copy h2,
  .recommendations-copy h2,
  .explore-header h2,
  .value-heading h2,
  .powerbi-embed-copy h2,
  .bi-integration-panel h2,
  .application-coming-next h2 {
    font-size: var(--section-title-size-mobile) !important;
    line-height: 1.17;
  }

  .project-copy h2 {
    font-size: 1.4rem !important;
    line-height: 1.18;
  }
}

/* Optional disabled links: add data-disabled-link="true" only to links that should be inactive. */
a[data-disabled-link="true"],
a[aria-disabled="true"] {
  cursor: not-allowed;
}

.nav-link[data-disabled-link="true"],
.nav-link[aria-disabled="true"] {
  opacity: 0.68;
}

.nav-link[data-disabled-link="true"]:hover,
.nav-link[data-disabled-link="true"].is-active,
.nav-link[aria-disabled="true"]:hover,
.nav-link[aria-disabled="true"].is-active {
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
}

/* =========================================================
   DESKTOP REFERENCE NOTE

   The base design still uses the original compact desktop rem scale:
   html { font-size: 80%; } at 900px+.

   Proportional screen-to-screen scaling is applied later by
   assets/js/reference-scale.js together with the final rules in
   assets/css/global-glass.css. The reference viewport is approximately
   1536px wide, matching a 1920x1080 display at 125% OS scale and
   100% browser zoom.
   ========================================================= */


