:root {
  --bg: #030711;
  --bg-deep: #01040a;
  --panel: rgba(7, 16, 31, 0.74);
  --panel-strong: rgba(5, 14, 28, 0.9);
  --border: rgba(50, 184, 255, 0.18);
  --border-hover: rgba(21, 219, 255, 0.46);

  --text: #eff7ff;
  --text-soft: #b8c9dc;
  --muted: #7e92aa;

  --cyan: #13ddff;
  --cyan-soft: #79eaff;
  --blue: #4285ff;
  --purple: #8b5cf6;
  --purple-soft: #b99cff;

  --mono: "JetBrains Mono", Consolas, monospace;
  --sans: "Inter", Arial, sans-serif;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 78% 4%, rgba(66, 133, 255, 0.07), transparent 28rem),
    radial-gradient(circle at 94% 28%, rgba(139, 92, 246, 0.055), transparent 25rem),
    linear-gradient(180deg, #030812 0%, var(--bg) 60%, #02060e 100%);
}

body::selection {
  background: rgba(19, 221, 255, 0.24);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- DYNAMISCHE ACHTERGROND ---------- */

#particles {
  position: fixed;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(32, 160, 220, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 160, 220, 0.032) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, rgba(0,0,0,.82) 75%, transparent);
}

.ambient-glow {
  position: fixed;
  z-index: -3;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.1;
  pointer-events: none;
  animation: ambientMove 18s ease-in-out infinite alternate;
}

.glow-cyan {
  left: -12rem;
  top: 18%;
  background: var(--cyan);
}

.glow-purple {
  right: -12rem;
  top: 35%;
  background: var(--purple);
  animation-delay: -9s;
}

@keyframes ambientMove {
  to {
    transform: translate3d(45px, -28px, 0) scale(1.07);
  }
}

/* ---------- GLOBAL ---------- */

.container {
  width: min(1060px, calc(100% - 44px));
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(10, 22, 40, 0.75), rgba(4, 12, 24, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    0 24px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.section {
  position: relative;
  padding: 92px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
}

.section-number {
  color: var(--cyan);
  font: 600 0.78rem var(--mono);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.heading-line {
  width: 245px;
  max-width: 28vw;
  height: 1px;
  margin-left: 8px;
  background: linear-gradient(90deg, rgba(19, 221, 255, 0.24), transparent);
}

.section-intro {
  width: min(720px, 100%);
  margin: -5px 0 42px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(21, 178, 232, 0.12);
  background: rgba(2, 7, 15, 0.84);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1060px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 0.86rem var(--mono);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.prompt {
  color: var(--cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #8799ae;
  font: 500 0.68rem var(--mono);
}

.main-nav a {
  position: relative;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 10px rgba(19, 221, 255, 0.4);
}

.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 5px;
  background: var(--cyan);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  border-bottom: 1px solid rgba(19, 221, 255, 0.06);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(3, 7, 17, 1) 0%,
      rgba(3, 7, 17, 0.97) 45%,
      rgba(3, 7, 17, 0.66) 63%,
      rgba(3, 7, 17, 0.15) 86%,
      rgba(3, 7, 17, 0.52) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 26%);
  pointer-events: none;
}

.hero-character {
  position: absolute;
  z-index: -2;
  top: 4%;
  right: -2%;
  width: min(47vw, 680px);
  height: 92%;
  background-image: url("assets/rootv3x-hacker.png");
  background-repeat: no-repeat;
  background-position: center 22%;
  background-size: min(39vw, 560px) auto;
  opacity: 0.84;
  filter: saturate(1.15) contrast(1.05);
  mask-image:
    linear-gradient(to left, black 65%, rgba(0,0,0,.72) 80%, transparent 100%),
    linear-gradient(to bottom, black 72%, transparent 100%);
  mask-composite: intersect;
}

.hero-content {
  padding-top: clamp(74px, 9vh, 116px);
  padding-bottom: 82px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font: 600 0.7rem var(--mono);
  letter-spacing: 0.07em;
}

.hero h1 {
  position: relative;
  z-index: 1;
  width: min(760px, 76%);
  margin: 0;
  color: #f5f8fb;
  font-size: clamp(3.35rem, 6vw, 5.7rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.gradient-text {
  color: var(--cyan);
  background: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 48%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  position: relative;
  z-index: 1;
  width: min(670px, 64%);
  margin: 25px 0 26px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font: 600 0.74rem var(--mono);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #001219;
  background: linear-gradient(100deg, var(--cyan), #4da2ff);
  box-shadow: 0 0 28px rgba(19, 221, 255, 0.11);
}

.button-primary:hover {
  box-shadow: 0 0 35px rgba(19, 221, 255, 0.22);
}

.button-outline {
  color: var(--cyan-soft);
  border: 1px solid rgba(19, 221, 255, 0.64);
  background: rgba(5, 17, 32, 0.48);
}

.hero-stats {
  position: relative;
  z-index: 1;
  width: min(650px, 66%);
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  min-height: 82px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(7, 18, 32, 0.66);
  backdrop-filter: blur(7px);
}

.stat-card strong {
  display: block;
  color: var(--cyan);
  font: 700 1.28rem var(--mono);
}

.stat-card:nth-child(2) strong {
  color: #5da1ff;
}

.stat-card:nth-child(3) strong {
  color: var(--purple-soft);
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: #8299b3;
  font-size: 0.68rem;
}

.terminal {
  position: relative;
  z-index: 1;
  width: min(700px, 72%);
  margin-top: 29px;
  overflow: hidden;
  border: 1px solid rgba(28, 182, 225, 0.2);
  border-radius: 8px;
  background: rgba(1, 7, 14, 0.89);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(9px);
}

.terminal-bar {
  min-height: 35px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(37, 169, 213, 0.12);
  background: rgba(8, 17, 29, 0.86);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #274258;
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #546b82;
  font: 400 0.58rem var(--mono);
}

.terminal-body {
  padding: 18px 18px 20px;
  color: #d7e6f5;
  font: 500 0.72rem/1.75 var(--mono);
}

.terminal-output {
  padding-left: 14px;
  color: #85a5bf;
}

.terminal-prompt {
  color: var(--cyan);
}

.cursor {
  display: inline-block;
  width: 6px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
  animation: cursorBlink 1.1s steps(1) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* ---------- ABOUT ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr;
  gap: 70px;
  align-items: start;
}

.about-copy {
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.72;
}

.about-copy p {
  margin: 0 0 20px;
}

.about-copy strong {
  color: #f5f9ff;
}

.mission-card {
  padding: 24px;
  border-radius: 12px;
}

.mission-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19, 221, 255, 0.7);
  border-radius: 9px;
  color: var(--cyan);
  font: 700 1.1rem var(--mono);
  background: rgba(19, 221, 255, 0.065);
}

.mission-card h3 {
  margin: 24px 0 10px;
  font-size: 1rem;
}

.mission-card > p {
  margin: 0 0 20px;
  color: #8ca5bd;
  line-height: 1.65;
}

.mission-list {
  margin: 0;
}

.mission-list div {
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(33, 176, 224, 0.12);
}

.mission-list dt {
  color: #8ca0b6;
  font-size: 0.76rem;
}

.mission-list dd {
  margin: 0;
  color: var(--cyan);
  font: 600 0.65rem var(--mono);
  text-align: right;
}

/* ---------- TIMELINE ---------- */

.timeline {
  position: relative;
  width: min(850px, 100%);
  margin-top: 24px;
  padding-left: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--cyan), rgba(139, 92, 246, 0.4), transparent);
  opacity: 0.34;
}

.timeline-item {
  position: relative;
  padding: 0 0 57px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -49px;
  top: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 6px rgba(19, 221, 255, 0.06),
    0 0 14px rgba(19, 221, 255, 0.25);
}

.timeline-date {
  color: var(--cyan);
  font: 500 0.66rem var(--mono);
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--purple-soft);
}

.timeline-item h3 {
  margin: 17px 0 12px;
  font-size: 1.08rem;
}

.timeline-item p {
  max-width: 760px;
  margin: 0;
  color: #8da4bb;
  line-height: 1.65;
}

/* ---------- SKILLS ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  min-height: 330px;
  padding: 26px;
  border-radius: 11px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.skill-card:hover,
.content-card:hover,
.certificate-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.skill-icon {
  min-height: 34px;
  color: var(--cyan);
  font: 700 1.1rem var(--mono);
}

.skill-card:nth-child(3n + 2) .skill-icon {
  color: #69a7ff;
}

.skill-card:nth-child(3n) .skill-icon {
  color: var(--purple-soft);
}

.text-icon {
  font-size: 0.98rem;
}

.skill-card h3 {
  margin: 14px 0 20px;
  font-size: 1.06rem;
}

.skill-card p {
  margin: 0 0 20px;
  color: #8fa7bd;
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span {
  padding: 7px 9px;
  border: 1px solid rgba(19, 221, 255, 0.2);
  border-radius: 5px;
  color: #9ec6d8;
  background: rgba(19, 221, 255, 0.035);
  font: 500 0.58rem var(--mono);
}

/* ---------- PROGRESS ---------- */

.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.progress-card {
  min-height: 112px;
  padding: 20px;
  border-radius: 11px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

.progress-top span,
.completed-card > div > span {
  display: block;
  margin-bottom: 9px;
  color: var(--cyan);
  font: 600 0.58rem var(--mono);
  letter-spacing: 0.08em;
}

.progress-top h3,
.completed-card h3 {
  margin: 0;
  font-size: 0.88rem;
}

.progress-top strong {
  color: var(--cyan);
  font: 700 0.7rem var(--mono);
}

.progress-card:nth-child(even) .progress-top strong {
  color: var(--purple-soft);
}

.progress-track {
  height: 6px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #102032;
}

.progress-track span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #4b99ff 60%, var(--purple));
  box-shadow: 0 0 16px rgba(19, 221, 255, 0.18);
}

.completed-card {
  min-height: 88px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 11px;
}

.check {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #020814;
  background: linear-gradient(135deg, var(--cyan), #6796ff);
  font-weight: 800;
}

.modules-toggle {
  width: 100%;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 10px;
  color: #d9e7f5;
  text-align: left;
  cursor: pointer;
  font: 600 0.7rem var(--mono);
}

.modules-toggle span {
  color: var(--cyan);
}

.modules-list {
  margin-top: 12px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border: 1px solid rgba(19, 221, 255, 0.12);
  border-radius: 10px;
  background: rgba(4, 12, 24, 0.55);
}

.modules-list[hidden] {
  display: none;
}

.modules-list span {
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #adbee0;
  font: 500 0.6rem var(--mono);
}

/* ---------- CERTIFICATES ---------- */

.certificate-grid,
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.certificate-card {
  min-height: 240px;
  padding: 24px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  border-radius: 11px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.certificate-badge {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19, 221, 255, 0.6);
  border-radius: 11px;
  color: var(--cyan);
  background:
    radial-gradient(circle at center, rgba(19, 221, 255, 0.1), transparent 70%);
  font: 700 0.72rem var(--mono);
}

.certificate-card:nth-child(2) .certificate-badge {
  color: var(--purple-soft);
  border-color: rgba(139, 92, 246, 0.64);
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1), transparent 70%);
}

.certificate-category,
.issuer {
  color: var(--cyan);
  font: 600 0.62rem var(--mono);
}

.certificate-card:nth-child(2) .certificate-category,
.certificate-card:nth-child(2) .issuer {
  color: var(--purple-soft);
}

.certificate-card h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
}

.certificate-card p {
  margin: 20px 0 18px;
  color: #8ea5bb;
  line-height: 1.65;
}

/* ---------- WRITEUPS / PROJECTS ---------- */

.content-card {
  min-height: 230px;
  padding: 26px;
  border-radius: 11px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--cyan);
  font: 600 0.58rem var(--mono);
}

.card-meta span:last-child {
  color: var(--purple-soft);
}

.content-card h3 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.content-card p {
  min-height: 68px;
  margin: 0 0 22px;
  color: #8da4ba;
  line-height: 1.65;
}

.content-card a {
  color: var(--cyan);
  font: 600 0.7rem var(--mono);
}

.project-status {
  color: var(--purple-soft);
  font: 600 0.66rem var(--mono);
}

/* ---------- FOOTER ---------- */

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(19, 221, 255, 0.1);
  background: rgba(1, 5, 11, 0.86);
}

.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #71869d;
  font: 500 0.64rem var(--mono);
}

.footer-inner strong {
  color: white;
}

/* ---------- WRITE-UP PAGES ---------- */

.writeup-page {
  min-height: 100vh;
}

.writeup-page main {
  padding: 70px 0 110px;
}

.writeup-back {
  color: #8ca4bc;
  font: 500 0.68rem var(--mono);
}

.writeup-back:hover {
  color: var(--cyan);
}

.writeup-hero {
  max-width: 820px;
  margin-bottom: 38px;
}

.writeup-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.writeup-hero > p {
  color: #92a9bf;
  line-height: 1.7;
}

.writeup-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.writeup-summary span,
.writeup-toc a,
.writeup-toc strong {
  font: 500 0.62rem var(--mono);
}

.writeup-summary span {
  padding: 8px 10px;
  border: 1px solid rgba(19,221,255,.18);
  border-radius: 5px;
  color: #9fbad1;
}

.writeup-toc {
  margin-bottom: 36px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6,15,28,.68);
}

.writeup-toc strong {
  color: var(--cyan);
}

.writeup-toc a {
  color: #8da6bd;
}

.writeup-article {
  max-width: 860px;
}

.writeup-article section {
  padding: 34px 0;
  border-bottom: 1px solid rgba(19,221,255,.08);
}

.writeup-article h2 {
  margin: 0 0 18px;
  font-size: 1.65rem;
}

.writeup-article p,
.writeup-article li {
  color: #93a9be;
  line-height: 1.75;
}

.writeup-article code {
  color: #c1f4ff;
  font-family: var(--mono);
}

.attack-path {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--cyan);
  color: #c2d7e9;
  background: rgba(19,221,255,.035);
  font: 500 0.7rem var(--mono);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 960px) {
  .main-nav {
    gap: 14px;
  }

  .hero-character {
    right: -11%;
    width: 56vw;
    opacity: 0.55;
  }

  .hero h1 {
    width: 90%;
  }

  .hero-intro {
    width: 72%;
  }

  .hero-stats,
  .terminal {
    width: 75%;
  }

  .about-layout {
    gap: 35px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .mobile-menu {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border-bottom: 1px solid rgba(19,221,255,.12);
    background: rgba(2,7,15,.98);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a.active::after {
    display: none;
  }

  .hero-character {
    top: 0;
    right: -30%;
    width: 92vw;
    opacity: 0.3;
    background-size: min(72vw, 520px) auto;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(3,7,17,1) 0%, rgba(3,7,17,.92) 62%, rgba(3,7,17,.55) 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 26%);
  }

  .hero h1,
  .hero-intro,
  .hero-stats,
  .terminal {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .about-layout,
  .progress-grid,
  .certificate-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner {
    width: min(100% - 28px, 1060px);
  }

  .section {
    padding: 72px 0;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .heading-line {
    display: none;
  }

  .section-heading {
    gap: 12px;
  }

  .timeline {
    padding-left: 38px;
  }

  .timeline-dot {
    left: -37px;
  }

  .certificate-card {
    grid-template-columns: 1fr;
  }
}

/* Respecteer gebruikers die minder animatie willen */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient-glow,
  .cursor {
    animation: none;
  }
}


/* ---------- SEAMLESS BACKGROUND ---------- */
body {
  position: relative;
  background: #030711;
}

/* One continuous, viewport-sized glow; no section colour seams. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 18%, rgba(20, 83, 132, .12), transparent 65%),
    radial-gradient(ellipse at 95% 55%, rgba(83, 54, 135, .06), transparent 65%);
}
#particles { z-index: 0; opacity: .22; }
.background-grid {
  z-index: 0;
  opacity: .16;
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(black, transparent 90%);
  mask-image: linear-gradient(black, transparent 90%);
}
.ambient-glow { display: none; }
main, .site-footer { position: relative; z-index: 2; }
.section { background: transparent; }
.hero { isolation: isolate; border-bottom: 0; background: transparent; }
.hero::before, .hero::after, .hero-cyber-layer { display: none; }

/* Fade the actual image alpha on all four sides instead of painting
   opaque gradients over it. Keep the face sharp and the aspect ratio intact. */
.hero-character {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: max(-40px, calc((100vw - 1440px) / 2));
  width: min(58vw, 800px);
  height: auto;
  aspect-ratio: 708 / 760;
  background: none;
  opacity: .88;
  filter: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 30%, #000 78%, transparent),
    linear-gradient(180deg, transparent, #000 15%, #000 68%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 30%, #000 78%, transparent),
    linear-gradient(180deg, transparent, #000 15%, #000 68%, transparent);
  mask-composite: intersect;
}
.hero-character img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}
.hero-character::before, .hero-character::after { display: none; }
.hero-content { position: relative; z-index: 1; }
@media (max-width: 1050px) {
  .hero-character { width: 65vw; right: -10%; opacity: .65; }
}
@media (max-width: 780px) {
  .hero-character { top: 24px; right: -32%; width: 110vw; opacity: .23; }
}
