/* ============================================================
   Caribbean IT Solutions — Design System
   Dark / Light theme · NL/EN · Norre-inspired
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ===== DARK (default) ===== */
:root {
  --bg:        #080808;
  --bg-2:      #0f0f0f;
  --bg-3:      #141414;
  --border:    rgba(255, 255, 255, 0.08);
  --border-h:  rgba(255, 255, 255, 0.22);
  --text:      #f0f0f0;
  --muted:     #888888;
  --accent:    #c8ff57;      /* lime — used for bg (buttons, dots) */
  --accent-t:  #c8ff57;      /* lime — used for text/borders */
  --accent-btn-color: #080808; /* text ON accent bg */
  --container: 1280px;
  --nav-h:     72px;
  --radius:    14px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --nav-scrolled-bg: rgba(8, 8, 8, 0.88);
}

/* ===== LIGHT THEME ===== */
html.light {
  --bg:        #f5f5f0;
  --bg-2:      #ebebе5;
  --bg-3:      #e2e2dc;
  --border:    rgba(0, 0, 0, 0.09);
  --border-h:  rgba(0, 0, 0, 0.2);
  --text:      #0d0d0d;
  --muted:     #6a6a6a;
  --accent:    #c8ff57;      /* keep lime for button bg */
  --accent-t:  #4a7800;      /* dark green for text on light bg */
  --accent-btn-color: #0d0d0d;
  --nav-scrolled-bg: rgba(245, 245, 240, 0.9);
}

/* Gradient overrides for light mode */
html.light .grad-blue   { background: linear-gradient(135deg, #dce8ff 0%, #c0d8ff 100%); }
html.light .grad-brown  { background: linear-gradient(135deg, #fde8d0 0%, #f5c898 100%); }
html.light .grad-navy   { background: linear-gradient(135deg, #dce4ff 0%, #c0cfff 100%); }
html.light .grad-green  { background: linear-gradient(135deg, #d8f0db 0%, #b8e2bc 100%); }
html.light .grad-purple { background: linear-gradient(135deg, #ead8ff 0%, #d4b8ff 100%); }
html.light .grad-teal   { background: linear-gradient(135deg, #d0eeee 0%, #a8dcdc 100%); }
html.light .grad-tech   { background: linear-gradient(135deg, #dde0ff 0%, #c2c8ff 100%); }
html.light .project-thumb-text { color: rgba(0,0,0,0.18); }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s, color 0.35s;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-scrolled-bg);
  border-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent-t); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Nav right: toggles + CTA + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Small icon/text buttons (lang + theme) */
.nav-btn {
  width: 38px; height: 38px;
  border-radius: 100px;
  border: 1px solid var(--border-h);
  background: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-btn:hover {
  border-color: var(--text);
  background: rgba(128,128,128,0.08);
}
.nav-btn svg { width: 15px; height: 15px; }

/* Theme toggle: hide/show icon based on mode */
.nav-btn.theme-btn .icon-moon { display: none; }
html.light .nav-btn.theme-btn .icon-sun  { display: none; }
html.light .nav-btn.theme-btn .icon-moon { display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-btn-color);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: #d4ff70; transform: translateY(-1px); }
html.light .nav-cta:hover { background: #b8ef3a; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: all 0.35s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent-t); }
.mobile-nav-bottom {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 12px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-btn-color); }
.btn-primary:hover { background: #d4ff70; transform: translateY(-2px); }
html.light .btn-primary:hover { background: #b8ef3a; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}
.btn-outline:hover {
  background: rgba(128,128,128,0.07);
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}
.btn-arrow .circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-h);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.btn-arrow:hover .circle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-btn-color);
  transform: rotate(45deg);
}

/* ===== SECTIONS ===== */
section { padding: 120px 0; }

.section-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 64px;
}
.section-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 65% at 88% 25%, rgba(200, 255, 87, 0.18) 0%, transparent 68%),
    radial-gradient(ellipse 50% 55% at 2% 90%, rgba(200, 255, 87, 0.11) 0%, transparent 65%),
    radial-gradient(ellipse 75% 45% at 50% -8%, rgba(80, 160, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s;
}
html.light .hero-noise {
  background:
    radial-gradient(ellipse 60% 65% at 88% 25%, rgba(74, 120, 0, 0.13) 0%, transparent 68%),
    radial-gradient(ellipse 50% 55% at 2% 90%, rgba(74, 120, 0, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 75% 45% at 50% -8%, rgba(0, 80, 180, 0.05) 0%, transparent 70%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 10%, black 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 10%, black 10%, transparent 80%);
  pointer-events: none;
}
html.light .hero::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}

.hero-content { position: relative; z-index: 1; will-change: opacity, transform; }

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 255, 87, 0.08);
  border: 1px solid rgba(200, 255, 87, 0.2);
  color: var(--accent-t);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 40px;
  animation: heroReveal 0.9s var(--ease) 0.05s both;
}
html.light .hero-badge {
  background: rgba(74, 120, 0, 0.07);
  border-color: rgba(74, 120, 0, 0.2);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.5s ease-in-out infinite;
}
html.light .hero-badge-dot { background: var(--accent-t); }

/* ===== HERO TITLE — slow staggered reveal ===== */
@keyframes heroReveal {
  0%   { opacity: 0; transform: translateY(48px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.hero-title {
  font-size: clamp(64px, 11vw, 148px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.93;
  margin-bottom: 48px;
}
.hero-title .line {
  display: block;
  animation: heroReveal 1.3s var(--ease) both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.55s; }
.hero-title .line:nth-child(3) { animation-delay: 0.9s; }

.hero-title .accent { color: var(--accent-t); }
.hero-title .outline {
  -webkit-text-stroke: 2px rgba(200, 200, 200, 0.3);
  color: transparent;
}
html.light .hero-title .outline {
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.18);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  animation: heroReveal 1s var(--ease) 1.15s both;
}
.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.75;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; }

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--muted));
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}


/* ===== STATS STRIP ===== */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 44px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(40px, 4.5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-num sup {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--accent-t);
  font-weight: 700;
}
.stat-label { font-size: 14px; color: var(--muted); }

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.4s var(--ease);
  cursor: pointer;
}
.project-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
.project-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-thumb-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}
.project-card:hover .project-thumb-bg { transform: scale(1.04); }
.project-info {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.project-meta { flex: 1; }
.project-num {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 6px;
}
.project-name {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}
.project-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.project-card:hover .project-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-btn-color);
  transform: rotate(45deg);
}

/* ===== SERVICES ===== */
.services-list { border-top: 1px solid var(--border); }
.service-item {
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 72px 1fr 56px;
  gap: 32px;
  align-items: center;
  transition: padding-left 0.3s var(--ease);
}
.service-item:hover { padding-left: 20px; }
.service-idx { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.service-body { display: flex; flex-direction: column; gap: 8px; }
.service-name {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 600; letter-spacing: -0.025em;
}
.service-desc { font-size: 14px; color: var(--muted); max-width: 620px; line-height: 1.7; }
.service-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border);
  background: none; display: flex;
  align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.3s var(--ease); flex-shrink: 0;
}
.service-item:hover .service-btn {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-btn-color); transform: rotate(45deg);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testi-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.testi-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
.testi-stars { display: flex; gap: 3px; color: var(--accent-t); font-size: 14px; }
.testi-quote { font-size: 15px; line-height: 1.75; color: var(--text); flex: 1; }
.testi-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--accent-t); flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-co { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-item {
  padding: 40px 28px;
  display: flex; flex-direction: column; gap: 16px;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.process-item:last-child { border-right: none; }
.process-item:hover { background: var(--bg-2); }
.process-step {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-t);
}
.process-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.process-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 28px 0; background: none; border: none;
  color: var(--text); font-size: 18px; font-weight: 500;
  text-align: left; gap: 24px; transition: color 0.2s;
}
.faq-q:hover { color: var(--muted); }
.faq-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px; color: var(--muted);
  line-height: 1; transition: all 0.35s var(--ease);
}
.faq-item.open .faq-icon {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-btn-color); transform: rotate(45deg);
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a-inner {
  padding-bottom: 28px; color: var(--muted);
  font-size: 15px; line-height: 1.8; max-width: 720px;
}
.faq-item.open .faq-a { max-height: 400px; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 130px 0;
}
.cta-title {
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 700; letter-spacing: -0.05em;
  line-height: 0.92; margin-bottom: 32px;
}
.cta-title .ac { color: var(--accent-t); }
.cta-sub {
  font-size: 17px; color: var(--muted); margin-bottom: 48px;
  max-width: 480px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.cta-btns { display: flex; justify-content: center; gap: 16px; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.footer-logo span { color: var(--accent-t); }
.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.footer-col a {
  font-size: 14px; color: var(--muted); padding: 6px 0;
  transition: color 0.2s; display: block;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer-status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; animation: blink 2.5s ease-in-out infinite;
}

/* ===== PAGE HERO (Portfolio / About) ===== */
.page-hero {
  padding-top: calc(var(--nav-h) + 100px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 100% at 95% 60%, rgba(200, 255, 87, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at -5% 100%, rgba(200, 255, 87, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
html.light .page-hero::before {
  background:
    radial-gradient(ellipse 55% 100% at 95% 60%, rgba(74, 120, 0, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at -5% 100%, rgba(74, 120, 0, 0.05) 0%, transparent 65%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 110% 100% at 50% 0%, black 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 110% 100% at 50% 0%, black 20%, transparent 85%);
  pointer-events: none;
}
html.light .page-hero::after {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}
.page-hero-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.page-hero-title {
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 700; letter-spacing: -0.045em;
  line-height: 0.93; margin-bottom: 24px;
}
.page-hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.7; }

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===== ABOUT PAGE ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: start;
}
.about-photo {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; background: var(--bg-3);
  border: 1px solid var(--border); position: relative;
}
.about-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; font-weight: 700;
  letter-spacing: -0.04em; color: rgba(200, 255, 87, 0.1);
}
html.light .about-photo-placeholder { color: rgba(74, 120, 0, 0.1); }
.about-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-stats-mini {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat-mini {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.stat-mini-num {
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
}
.stat-mini-num sup { font-size: 0.5em; color: var(--accent-t); vertical-align: super; }
.stat-mini-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.about-content { display: flex; flex-direction: column; gap: 40px; }
.about-bio { font-size: 17px; color: var(--muted); line-height: 1.8; }

.timeline { border-top: 1px solid var(--border); }
.timeline-item {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-year { font-size: 13px; color: var(--muted); font-weight: 500; padding-top: 3px; }
.timeline-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.timeline-co { font-size: 13px; color: var(--accent-t); margin-bottom: 8px; }
.timeline-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.skill-pill {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; transition: border-color 0.3s;
}
.skill-pill:hover { border-color: var(--border-h); }
.skill-pill-name { font-size: 14px; font-weight: 500; }
.skill-pill-badge {
  font-size: 11px; font-weight: 600; color: var(--accent-t);
  background: rgba(200, 255, 87, 0.08); border-radius: 100px; padding: 3px 10px;
  white-space: nowrap;
}
html.light .skill-pill-badge { background: rgba(74, 120, 0, 0.08); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-item:nth-child(3) { border-right: none; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 56px; }
  .about-photo { max-width: 420px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 8px; }

  .hero-title { font-size: clamp(48px, 14vw, 80px); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-ctas { flex-wrap: wrap; }

  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .stat-item { padding: 32px 20px; }

  .projects-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 24px; }

  .service-item { grid-template-columns: 48px 1fr; gap: 20px; }
  .service-btn { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-item:nth-child(2) { border-right: none; }
  .process-item:nth-child(3) { border-top: 1px solid var(--border); }
  .process-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .process-item:nth-child(5) { border-top: 1px solid var(--border); grid-column: 1 / -1; border-right: none; }

  .cta-btns { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .timeline-item { grid-template-columns: 90px 1fr; gap: 16px; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats-mini { grid-template-columns: 1fr 1fr; }

  .portfolio-grid > *:last-child { grid-column: 1; max-width: 100% !important; }
}

/* ===== GRADIENT PRESETS ===== */
.grad-blue   { background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6e 60%, #0d2040 100%); }
.grad-brown  { background: linear-gradient(135deg, #1e0e04 0%, #3d1c08 60%, #2a1005 100%); }
.grad-navy   { background: linear-gradient(135deg, #060e22 0%, #0e2254 60%, #091530 100%); }
.grad-green  { background: linear-gradient(135deg, #061a0a 0%, #0f3d1a 60%, #082812 100%); }
.grad-purple { background: linear-gradient(135deg, #130830 0%, #2a1256 60%, #1a0c40 100%); }
.grad-teal   { background: linear-gradient(135deg, #041a1a 0%, #0a3a3a 60%, #062828 100%); }
.grad-tech   { background: linear-gradient(135deg, #0a0a1e 0%, #16164a 60%, #0c0c2e 100%); }

/* ===== CASE STUDY PAGES ===== */
.case-cover-wrap {
  margin-bottom: 80px;
}
.case-cover {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 16/9; object-fit: cover;
  border: 1px solid var(--border); display: block;
}
.case-meta-grid {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px; overflow: hidden;
}
.case-meta-item {
  flex: 1; min-width: 130px;
  padding: 22px 28px;
  border-right: 1px solid var(--border);
}
.case-meta-item:last-child { border-right: none; }
.case-meta-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.case-meta-value {
  font-size: 15px; font-weight: 500; color: var(--text);
}
.case-meta-value a { color: var(--accent-t); text-decoration: none; }
.case-meta-value a:hover { text-decoration: underline; }
.case-body {
  max-width: 740px; margin: 0 auto; padding-bottom: 80px;
}
.case-section { margin-bottom: 64px; }
.case-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-t); margin-bottom: 14px;
}
.case-section h2 {
  font-size: clamp(26px, 3.5vw, 38px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 24px; line-height: 1.15;
}
.case-section p {
  font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 16px;
}
.case-section p:last-child { margin-bottom: 0; }
.case-list {
  list-style: none; padding: 0; margin: 0 0 16px;
  border-top: 1px solid var(--border);
}
.case-list li {
  font-size: 15px; line-height: 1.75; color: var(--muted);
  padding: 14px 0 14px 28px; position: relative;
  border-bottom: 1px solid var(--border);
}
.case-list li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--accent-t); font-size: 13px; top: 15px;
}
.case-nav-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px 0 0; border-top: 1px solid var(--border);
  gap: 16px;
}
.case-nav-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.case-nav-link:hover { color: var(--text); }
.case-nav-dir {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px;
}
.case-nav-title { font-size: 15px; font-weight: 600; color: var(--text); display: block; }
.case-nav-link.prev { text-align: left; }
.case-nav-link.next { text-align: right; flex-direction: row-reverse; }

@media (max-width: 768px) {
  .case-meta-item {
    flex: 50%; border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .case-meta-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .case-meta-item:last-child { border-bottom: none; border-right: none; }
  .case-nav-row { flex-direction: column; gap: 24px; }
  .case-nav-link.next { flex-direction: row; text-align: left; }
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-info-block { position: sticky; top: calc(var(--nav-h) + 40px); }
.contact-info-title {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 20px;
}
.contact-info-sub {
  font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 48px;
}
.contact-details { border-top: 1px solid var(--border); }
.contact-detail-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.contact-detail-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.contact-detail-value {
  font-size: 15px; font-weight: 500; color: var(--text);
}
.contact-detail-value a {
  color: var(--accent-t); text-decoration: none;
}
.contact-detail-value a:hover { text-decoration: underline; }
.contact-avail {
  display: flex; align-items: center; gap: 8px;
  margin-top: 32px;
}
.contact-avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c8ff57; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 18px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
  outline: none; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-t); background: var(--bg);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px; cursor: pointer;
}
html.light .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.form-note { font-size: 13px; color: var(--muted); }
.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-btn-color);
  border: none; border-radius: 100px;
  padding: 14px 32px; font-family: var(--font);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn-submit:hover { transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-submit svg { width: 16px; height: 16px; }

/* Success / Error states */
.form-success {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 60px 40px; gap: 20px;
}
.form-success.active { display: flex; }
.form-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(200, 255, 87, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-t);
}
.form-success-icon svg { width: 32px; height: 32px; }
.form-success h3 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}
.form-success p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.form-error-msg {
  display: none; padding: 12px 16px;
  background: rgba(255, 80, 80, 0.1); border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px; font-size: 14px; color: #ff5050;
}
.form-error-msg.active { display: block; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-info-block { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 24px; }
  .form-submit-row { flex-direction: column; align-items: stretch; }
  .btn-submit { justify-content: center; }
}

/* ===== SECTION ACCENT ORBS & GRIDS ===== */

#projecten, #diensten, #reviews, #werkwijze {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* [01] Featured Projects — orb top-right + grid fading in from right */
#projecten::before {
  content: '';
  position: absolute;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,87,0.10) 0%, transparent 70%);
  right: -200px; top: -120px;
  z-index: -1; pointer-events: none;
}
#projecten::after {
  content: '';
  position: absolute;
  inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 88% 10%, black 0%, transparent 65%);
  mask-image: radial-gradient(ellipse 65% 55% at 88% 10%, black 0%, transparent 65%);
}

/* [02] Services — orb bottom-left only */
#diensten::before {
  content: '';
  position: absolute;
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,87,0.09) 0%, transparent 70%);
  left: -220px; bottom: -160px;
  z-index: -1; pointer-events: none;
}

/* [03] Testimonials — orb left + grid corner bottom-right */
#reviews::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,87,0.09) 0%, transparent 70%);
  left: -190px; top: 50%; transform: translateY(-50%);
  z-index: -1; pointer-events: none;
}
#reviews::after {
  content: '';
  position: absolute;
  inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 100% 95%, black 0%, transparent 65%);
  mask-image: radial-gradient(ellipse 55% 65% at 100% 95%, black 0%, transparent 65%);
}

/* [04] Process — orb right, centered */
#werkwijze::before {
  content: '';
  position: absolute;
  width: 660px; height: 660px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,87,0.08) 0%, transparent 70%);
  right: -190px; top: 50%; transform: translateY(-50%);
  z-index: -1; pointer-events: none;
}

/* Light mode */
html.light #projecten::before,
html.light #reviews::before,
html.light #werkwijze::before {
  background: radial-gradient(circle, rgba(74,120,0,0.07) 0%, transparent 70%);
}
html.light #diensten::before {
  background: radial-gradient(circle, rgba(74,120,0,0.06) 0%, transparent 70%);
}
html.light #projecten::after,
html.light #reviews::after {
  background-image:
    linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px);
}
