/* ================================================================
   ROBBE ROLLEZ WEB STUDIO — DARK PREMIUM REDESIGN
   Native CSS design system. Single accent (brand blue #1e5aff),
   deep-ink base, Bricolage Grotesque display + Plus Jakarta body.
   Shape system: cards 18px · buttons pill · inputs 12px · chips pill.
   Fonts are loaded via <link> in the document head.
   ================================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Base — deep ink with a faint blue cast (brand DNA) */
  --bg: #070a14;
  --bg-2: #0a0e1c;
  --bg-elev: #0d1426;
  --surface: #111a30;
  --surface-2: #16213c;
  --surface-hi: #1c2a49;

  /* Lines */
  --line: rgba(159, 180, 224, 0.1);
  --line-strong: rgba(159, 180, 224, 0.18);

  /* Text */
  --text: #eef3ff;
  --text-soft: #aeb9d6;
  --text-muted: #6f7d9e;

  /* Accent — brand blue, tuned for legibility on near-black */
  --accent: #2f6bff;
  --accent-bright: #5e8cff;
  --accent-deep: #1748d6;
  --accent-soft: rgba(47, 107, 255, 0.14);
  --accent-line: rgba(47, 107, 255, 0.32);

  /* Functional */
  --gold: #f5b54a;
  --good: #34d399;

  /* Shadows — blue-tinted, never pure black */
  --shadow-sm: 0 2px 10px rgba(3, 6, 15, 0.45);
  --shadow: 0 18px 44px rgba(3, 6, 18, 0.55);
  --shadow-lg: 0 34px 80px rgba(2, 5, 16, 0.62);
  --shadow-accent: 0 18px 50px rgba(23, 72, 214, 0.4);

  /* Shape */
  --r-card: 18px;
  --r-input: 12px;
  --r-chip: 999px;

  --font-display:
    "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1240px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Ambient page glow — one fixed aurora field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      60vw 50vh at 78% -8%,
      rgba(47, 107, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      48vw 44vh at 6% 12%,
      rgba(23, 72, 214, 0.12),
      transparent 62%
    ),
    radial-gradient(
      60vw 60vh at 50% 116%,
      rgba(47, 107, 255, 0.1),
      transparent 60%
    );
  pointer-events: none;
}

/* Fine grain — fixed, pointer-events none, no scroll repaint cost */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection {
  background: rgba(47, 107, 255, 0.32);
  color: #fff;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Reveal on scroll (IntersectionObserver toggles .is-visible) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   TYPOGRAPHY HELPERS
   ================================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-line);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text);
}

.section-lead {
  margin-top: 1.1rem;
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.accent-word {
  position: relative;
  background: linear-gradient(
    100deg,
    var(--accent-bright),
    #9db8ff 60%,
    var(--accent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--r-chip);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(23, 72, 214, 0.55);
}
.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: rgba(47, 107, 255, 0.1);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.985);
}

.btn-large {
  padding: 18px 38px;
  font-size: 1.05rem;
}

.btn-project {
  padding: 12px 22px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-project:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Ripple (script.js) */
.ripple-element {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
  z-index: 0;
  animation: ripple 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(12);
    opacity: 0;
  }
}

/* Typing button (script.js) */
.typing-btn {
  --caret-color: rgba(255, 255, 255, 0.95);
}
.typing-btn .typing-text {
  display: inline-block;
  min-width: 4ch;
  white-space: nowrap;
  vertical-align: middle;
}
.typing-btn .typing-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--caret-color);
  margin-left: 0.12rem;
  vertical-align: middle;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

/* ================================================================
   NAVIGATION
   ================================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 20, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(7, 10, 20, 0.82);
  border-bottom-color: var(--line);
}

.navbar {
  padding: 0;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-logo {
  width: auto;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-chip);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.is-active,
.nav-link.active {
  color: var(--text);
}
.nav-link.is-active::after,
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s,
    width 0.25s;
  transform-origin: center;
}
.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.hamburger.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   HERO — asymmetric split
   ================================================================ */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 92px 0 64px;
}

/* Generated hero backdrop (Higgsfield), gently drifting so it feels alive */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.png") center / cover no-repeat;
  transform-origin: center;
  animation: heroDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}
/* Left/bottom darkening overlay so the headline keeps contrast */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--bg) 6%,
      rgba(7, 10, 20, 0.55) 34%,
      rgba(7, 10, 20, 0.1) 60%,
      transparent 78%
    ),
    linear-gradient(0deg, var(--bg) 4%, transparent 32%);
  pointer-events: none;
}
@keyframes heroDrift {
  from {
    transform: scale(1.08) translate(0%, 0%);
  }
  to {
    transform: scale(1.13) translate(-1.5%, 1.2%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
}
.hero-availability .pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
}
.hero-availability .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--good);
  animation: pulseRing 2.2s var(--ease) infinite;
}
@keyframes pulseRing {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 400;
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.hero-meta .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.hero-meta .lbl {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero visual — glass studio card + orbiting accents (brand art, not a screenshot) */
.hero-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.hero-orb.o1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(94, 140, 255, 0.5),
    transparent 60%
  );
  top: 6%;
  right: 4%;
  animation: float1 9s ease-in-out infinite;
}
.hero-orb.o2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(23, 72, 214, 0.42),
    transparent 62%
  );
  bottom: 2%;
  left: 2%;
  animation: float2 11s ease-in-out infinite;
}
@keyframes float1 {
  50% {
    transform: translate(-18px, 22px);
  }
}
@keyframes float2 {
  50% {
    transform: translate(20px, -16px);
  }
}

.glass-card {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  padding: 1.6rem;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(
    160deg,
    rgba(28, 42, 73, 0.72),
    rgba(13, 20, 38, 0.62)
  );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
}
.glass-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.glass-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.glass-dotrow {
  display: flex;
  gap: 6px;
}
.glass-dotrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.glass-codeline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "Bricolage Grotesque", monospace;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.glass-codeline:last-of-type {
  border-bottom: 0;
}
.glass-codeline .k {
  color: var(--accent-bright);
}
.glass-codeline .bar {
  flex: 1;
  height: 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
}
.glass-codeline .bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 70%);
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 6px;
  transform-origin: left;
  animation: barGrow 1.6s var(--ease) both;
}
@keyframes barGrow {
  from {
    transform: scaleX(0);
  }
}
/* Perpetual shimmer sweep so the card is always visibly alive */
.glass-codeline .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-120%);
  animation: barShimmer 3s var(--ease) infinite;
}
.glass-codeline:nth-of-type(2) .bar::after {
  animation-delay: 0.4s;
}
.glass-codeline:nth-of-type(3) .bar::after {
  animation-delay: 0.8s;
}
@keyframes barShimmer {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

/* ================================================================
   CURSOR GLOW — follows the pointer (created by redesign-motion.js)
   ================================================================ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(47, 107, 255, 0.2),
    rgba(47, 107, 255, 0.07) 38%,
    transparent 70%
  );
  mix-blend-mode: screen;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}
.cursor-glow.is-on {
  opacity: 1;
}
.glass-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.glass-foot .live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--good);
  font-weight: 600;
}
.glass-foot .live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

/* Floating chips around the card */
.hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-strong);
  background: rgba(13, 20, 38, 0.85);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}
.hero-chip i {
  color: var(--accent-bright);
}
.hero-chip.c1 {
  top: 8%;
  left: -4%;
  animation: floatChip 6s ease-in-out infinite;
}
.hero-chip.c2 {
  bottom: 10%;
  right: -2%;
  animation: floatChip 7.5s ease-in-out infinite 0.6s;
}
@keyframes floatChip {
  50% {
    transform: translateY(-12px);
  }
}

/* ================================================================
   SECTION SHELL
   ================================================================ */

.section {
  position: relative;
  padding: 120px 0;
}
.section.about {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(13, 20, 38, 0.45),
    transparent
  );
}

.section-head {
  max-width: 720px;
  margin-bottom: 3.5rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ================================================================
   AANBOD (strengths) — reel + numbered list
   ================================================================ */

.section.strengths {
  padding: 120px 0;
}
.strengths-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 4rem;
  align-items: center;
}

.strengths-panel-media {
  display: flex;
  justify-content: center;
}
.strengths-preview-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.strengths-preview-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.strengths-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg-elev);
}

.strengths-grid {
  display: flex;
  flex-direction: column;
}
.strength-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.strength-card:first-of-type {
  padding-top: 0;
}
.strength-card:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.strength-card:hover {
  border-bottom-color: var(--accent-line);
}
.strength-number {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-bright);
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.strength-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.strength-card p {
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 42ch;
}

/* ================================================================
   OVER MIJ (about) — statement + tech logo strip
   ================================================================ */

.about-content {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  font-size: 1.12rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.about-text p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}
.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.about-side {
  position: sticky;
  top: 96px;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(17, 26, 48, 0.5);
  backdrop-filter: blur(8px);
}
.about-side h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.skills {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.skill-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.96rem;
}
.skill-row:last-child {
  border-bottom: 0;
}
.skill-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1) brightness(2);
  opacity: 0.85;
  transition:
    filter 0.25s,
    opacity 0.25s;
}
.skill-row:hover img {
  filter: none;
  opacity: 1;
}

/* ================================================================
   PROJECTEN — responsive card grid (scales to many projects)
   ================================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 1.4rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(
    160deg,
    rgba(22, 33, 60, 0.55),
    rgba(10, 14, 28, 0.4)
  );
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.project-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.project-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 1.8rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      130% 120% at 50% 0%,
      rgba(240, 244, 255, 0.14),
      transparent 68%
    ),
    rgba(48, 48, 48, 0.192);
  overflow: hidden;
}
.project-card-media img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.project-card:hover .project-card-media img {
  transform: scale(1.05);
}
.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}
.project-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.7rem;
}
.project-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.project-card-body p {
  flex: 1;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}
.project-card .btn-project {
  align-self: flex-start;
  margin-top: auto;
}

/* "Jouw project hier?" CTA card — sits as the last grid cell */
.project-card-more {
  border-style: dashed;
  border-color: var(--accent-line);
  background: linear-gradient(
    160deg,
    rgba(47, 107, 255, 0.13),
    rgba(10, 14, 28, 0.4)
  );
}
.project-card-more .project-card-body {
  justify-content: center;
}
.project-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

/* ================================================================
   REVIEWS
   ================================================================ */

.section.reviews {
  scroll-margin-top: 80px;
}
.reviews-summary {
  display: flex;
  justify-content: center;
  margin: 0 auto 3rem;
}
.reviews-avg {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-strong);
  background: rgba(17, 26, 48, 0.6);
  color: var(--text-soft);
  font-size: 0.95rem;
}
.reviews-avg-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.reviews-avg-stars {
  display: flex;
  gap: 2px;
  font-size: 1rem;
}
.reviews-avg-stars .fa-solid {
  color: var(--gold);
}
.reviews-avg-stars .fa-regular {
  color: rgba(255, 255, 255, 0.16);
}
.reviews-count {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.7rem;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(
    160deg,
    rgba(22, 33, 60, 0.5),
    rgba(10, 14, 28, 0.35)
  );
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    border-color 0.3s var(--ease);
}
.review-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.review-card:hover {
  border-color: var(--accent-line);
}
.review-stars {
  display: flex;
  gap: 3px;
  font-size: 1.02rem;
}
.review-stars .fa-solid {
  color: var(--gold);
}
.review-stars .fa-regular {
  color: rgba(255, 255, 255, 0.16);
}
.review-message {
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.9rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.review-name {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text);
}
.review-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.reviews-empty,
.reviews-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.reviews-empty i {
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.16);
  display: block;
  margin-bottom: 1rem;
}
.reviews-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 1rem;
}
.reviews-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: reviewDot 1.4s ease infinite;
}
.reviews-loading span:nth-child(2) {
  animation-delay: 0.2s;
}
.reviews-loading span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes reviewDot {
  0%,
  80%,
  100% {
    opacity: 0.15;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
.reviews-cta {
  text-align: center;
}

/* ================================================================
   REVIEW MODAL
   ================================================================ */

.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s var(--ease),
    visibility 0.25s var(--ease);
}
.review-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.review-modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.review-modal-overlay.is-open .review-modal-box {
  transform: translateY(0) scale(1);
}
.review-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.review-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.review-modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  padding-right: 2.5rem;
}
.review-modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
}
.review-form-group {
  margin-bottom: 1.35rem;
}
.review-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.required-star {
  color: var(--accent-bright);
  margin-left: 2px;
}
.review-form-group input[type="text"],
.review-form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-input);
  background: rgba(7, 10, 20, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.review-form-group input::placeholder,
.review-form-group textarea::placeholder {
  color: var(--text-muted);
}
.review-form-group input[type="text"]:focus,
.review-form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
  background: rgba(7, 10, 20, 0.8);
}
.char-count {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.star-picker {
  display: flex;
  gap: 6px;
  padding: 4px 0 2px;
}
.star-item {
  position: relative;
  display: inline-block;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.star-item i {
  display: block;
  pointer-events: none;
  transition: color 0.1s ease;
}
.star-picker .fa-solid {
  color: var(--gold);
}
.star-picker .fa-regular {
  color: rgba(255, 255, 255, 0.22);
}
.half-trigger {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 2;
}
.half-trigger:first-child {
  left: 0;
}
.half-trigger:nth-child(2) {
  left: 50%;
}
.star-value-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.review-form-error {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.review-submit-btn {
  width: 100%;
  justify-content: center;
}
.review-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.review-success-msg {
  text-align: center;
  padding: 2rem 1rem;
}
.review-success-msg i {
  font-size: 3rem;
  color: var(--good);
  display: block;
  margin-bottom: 1rem;
}
.review-success-msg p {
  font-size: 1.05rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ================================================================
   CONTACT — centered manifesto CTA
   ================================================================ */

.section.contact {
  padding: 130px 0;
}
.contact-shell {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: 32px;
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(
      120% 140% at 50% -20%,
      rgba(47, 107, 255, 0.22),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(22, 33, 60, 0.7), rgba(10, 14, 28, 0.6));
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}
.contact-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.contact-content {
  position: relative;
  z-index: 2;
}
.contact-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.contact-content > p {
  max-width: 56ch;
  margin: 0 auto 2.3rem;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
.contact-info p {
  font-size: 0.97rem;
  color: var(--text-muted);
}
.mailto-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 600;
}
.mailto-chip:hover {
  text-decoration: underline;
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  margin-top: auto;
  padding: 4rem 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(7, 10, 20, 0.6));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo-link {
  display: inline-flex;
  text-decoration: none;
}
.footer-logo {
  width: 56px;
  height: auto;
}
.footer-tagline {
  max-width: 240px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border-radius: var(--r-chip);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.25s,
    background 0.25s,
    color 0.25s,
    transform 0.2s;
}
.footer-social-link i {
  font-size: 1rem;
}
.footer-social-link:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}
.footer-social-link[aria-label*="LinkedIn"]:hover {
  background: #0a66c2;
}
.footer-icon {
  width: 14px;
  text-align: center;
  color: var(--text-muted);
  margin-right: 0.35rem;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1rem;
}
.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-col-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col-list a:hover {
  color: var(--accent-bright);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom strong {
  color: var(--text-soft);
  font-weight: 600;
}
.footer-reviews-widget {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-rating-stars {
  display: flex;
  gap: 2px;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.footer-rating-score {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.footer-rating-score span {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
}
.footer-rating-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}
.footer-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent-bright);
  text-decoration: none;
  margin-top: 0.6rem;
  transition:
    color 0.15s,
    gap 0.2s;
}
.footer-rating-link:hover {
  color: var(--text);
  gap: 0.5rem;
}
.footer-rating-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================================================================
   COOKIE BANNER (injected by cookies.js) — dark theme
   ================================================================ */

#cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  width: 100%;
  max-width: 460px;
  padding: 2.4rem;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease);
}
#cookie-banner.is-visible .cookie-modal {
  transform: translateY(0) scale(1);
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cookie-modal-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.72;
  margin-bottom: 2rem;
}
.cookie-modal-text a {
  color: var(--accent-bright);
  text-decoration: underline;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.btn-cookie-accept {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--r-chip);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(23, 72, 214, 0.5);
}
.btn-cookie-decline {
  width: 100%;
  padding: 13px 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--accent-line);
}
.cookie-modal-more {
  margin-top: 1.1rem;
  text-align: center;
}
.cookie-modal-more a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.cookie-modal-more a:hover {
  color: var(--accent-bright);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual {
    height: 380px;
    order: -1;
  }
  .strengths-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .strengths-panel-media {
    order: -1;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-side {
    position: static;
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 84px 0;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.6rem;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: rgba(10, 14, 28, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  .nav-link.is-active::after {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 56px 0 48px;
  }
  .hero-meta {
    gap: 1.6rem;
  }
  .project-card-media {
    aspect-ratio: 16 / 7;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-tagline {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    height: 340px;
  }
  .hero-chip {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .review-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .review-modal-box {
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
  }
  .cookie-modal {
    padding: 2rem 1.5rem;
  }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */

/* Reduced-motion: we keep the gentle ambient brand motion (it is subtle and
   central to the identity), but make sure content is never left hidden and
   smooth-scroll is off. To fully disable motion instead, re-add an
   `animation: none` reset here. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
