:root {
  --bg: #e9eef5;
  --bg-dark: #d7deea;
  --text: #0b1220;
  --muted: #334155;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(15, 23, 42, 0.1);
  --brand: #0a84ff;
  --brand-dark: #0057d8;
  --brand-contrast: #04315a;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  --blur: 22px;
  --focus: #111827;
  --chip: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(10, 132, 255, 0.22) 0%, transparent 70%),
    radial-gradient(900px 500px at 90% -5%, rgba(88, 86, 214, 0.22) 0%, transparent 65%),
    radial-gradient(900px 500px at 50% 120%, rgba(255, 45, 85, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
}

h1, h3, h5, h6 {
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 700;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.bold {
  font-weight: 700;
}

.cv-shell {
  background: var(--glass);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  position: relative;
  overflow: hidden;
  animation: fadeUp 800ms ease both;
}

.cv-shell::before,
.cv-shell::after {
  content: "";
  position: absolute;
  inset: auto auto 10% 6%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: none;
}

.cv-shell::after {
  inset: 12% 8% auto auto;
  width: 180px;
  height: 180px;
  opacity: 0.5;
}

.cv-shell::marker {
  content: "";
}

.cv-shell::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 65%);
}

.cv-shell::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.cv-shell::after,
.cv-shell::before {
  mix-blend-mode: screen;
}

.cv-shell .glass-pattern {
  display: none;
}

.cv-shell::before,
.cv-shell::after {
  pointer-events: none;
}

.cv-shell::after {
  opacity: 0.35;
}

.cv-shell::before {
  opacity: 0.5;
}

.cv-shell {
  background-image:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, var(--pattern-alpha, 0.08)) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, calc(var(--pattern-alpha, 0.08) * 0.75)) 0%, transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, calc(var(--pattern-alpha, 0.08) * 0.6)), rgba(255, 255, 255, calc(var(--pattern-alpha, 0.08) * 0.6)) 6px, transparent 6px, transparent 18px);
  background-blend-mode: screen;
}

.text-secondary {
  color: var(--muted) !important;
}

.content-bedrijf ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.content-bedrijf p {
  margin-bottom: 0.6rem;
}

.content-bedrijf p:last-child {
  margin-bottom: 0;
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border-radius: 999px;
  transition: width 800ms ease;
}

a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  color: var(--brand-contrast);
}

a:hover {
  color: var(--brand);
}

.content-bedrijf,
.text-muted {
  color: var(--muted) !important;
}

.content-bedrijf {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.content-bedrijf.content-edu {
  padding: 10px 14px;
}

.header-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.header-text {
  max-width: 60ch;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 12px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--brand-contrast);
}

.contact-item i {
  color: var(--brand-contrast);
}

.summary {
  line-height: 1.6;
}

.section {
  margin-top: 28px;
}

.section-title {
  margin-bottom: 12px;
}

.section-item {
  margin-top: 12px;
}

.side-card {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(16px, 2.5vw, 22px);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.side-card .fs-3 i {
  margin-right: 8px;
}

.side-card .progress {
  margin-top: 6px;
}

.skill-item {
  margin-top: 12px;
}

.fs-3 a {
  text-decoration: none;
}

.name-egg,
.title-egg {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.name-egg::after,
.title-egg::after {
  content: attr(data-egg-text);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: rgba(4, 49, 90, 0.85);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
  z-index: 5;
}

.name-egg:hover::after,
.title-egg:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.name-egg.egg-disabled::after,
.title-egg.egg-disabled::after {
  display: none;
}

img {
  border-radius: 16px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.profile-image-wrap {
  display: inline-block;
  margin-right: 18px;
  margin-bottom: 6px;
  position: relative;
  cursor: pointer;
}

.profile-image {
  width: clamp(120px, 20vw, 160px);
  height: auto;
}

.profile-image-wrap.egg-sparkle {
  animation: sparkle 700ms ease;
}

.profile-image-wrap.egg-disabled {
  cursor: default;
}

.profile-image-wrap.egg-sparkle::after {
  content: attr(data-egg-text);
  position: absolute;
  right: -6px;
  top: -8px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.9rem;
  color: rgba(4, 49, 90, 0.75);
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.egg-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(4, 49, 90, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 20;
  pointer-events: none;
  font-size: 0.9rem;
}

.egg-badge.show {
  opacity: 1;
  transform: translateY(0);
}

.egg-badge.egg-disabled {
  display: none;
}

.skill-progress:hover .progress-bar {
  animation: loading 700ms ease;
}

.content-bedrijf:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.progress-bar {
  animation: grow 900ms ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes grow {
  from { width: 0; }
}

@keyframes sparkle {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes loading {
  0% { width: 0; }
  100% { width: var(--skill-width, 100%); }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 991px) {
  body {
    background: var(--bg);
  }

  .cv-shell {
    border-radius: 18px;
  }

  .header-block {
    gap: 12px;
  }
}

@media print {
  .profile-image-wrap.egg-sparkle::after,
  .cv-shell::before,
  .cv-shell::after {
    display: none !important;
  }
  .name-egg::after,
  .title-egg::after,
  .egg-badge {
    display: none !important;
  }
  .cv-shell {
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
  }
}

@media (min-width: 992px) {
  .header-block {
    flex-direction: row;
    align-items: center;
  }
}

