/* ================================================
   Flying Seahorse Consultancy — Stylesheet
   Design: Warm Editorial / Refined Professional
   Fonts: Playfair Display + Outfit
   Primary: #6B5FD6 | Accent: #D4A853
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap');

/* === CUSTOM PROPERTIES === */
:root {
  --primary:        #6B5FD6;
  --primary-dark:   #4e42b8;
  --primary-deeper: #3530a0;
  --primary-light:  #9088e2;
  --primary-pale:   #f0eeff;
  --primary-muted:  #e8e4ff;

  --accent:         #D4A853;
  --accent-dark:    #b8903a;
  --accent-pale:    #fdf5e4;

  --bg:             #f8f6ff;
  --bg-warm:        #fdfbff;
  --surface:        #ffffff;
  --text:           #1e1a3a;
  --text-muted:     #5e5880;
  --text-light:     #9490b0;
  --border:         #ddd8f8;
  --border-light:   #ede9ff;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  48px;

  --shadow-sm:  0 2px 8px  rgba(107,95,214,.07);
  --shadow-md:  0 6px 24px rgba(107,95,214,.12);
  --shadow-lg:  0 12px 48px rgba(107,95,214,.18);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --nav-height:  76px;
  --max-width:   1200px;
  --section-gap: 100px;
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 58ch;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-gap) 0; }
.section-sm { padding: 60px 0; }

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  overflow: visible;
  transition: background .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar.hero-nav { background: transparent; }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity .2s;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: filter .3s ease;
}
/* Logo icon has purple bg — looks great on both hero and scrolled nav */
.nav-logo img {
  border-radius: 10px;
}
.navbar.hero-nav .nav-logo img { filter: none; }
.navbar.scrolled .nav-logo img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(255,255,255,.85);
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background .2s, transform .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }
.navbar.scrolled .nav-cta { color: white !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  color: white;
}
/* === LANGUAGE TOGGLE === */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-xl);
  padding: 3px;
  gap: 0;
  flex-shrink: 0;
}
.navbar.scrolled .lang-toggle {
  background: var(--bg);
  border-color: var(--border);
}
.lang-btn {
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: var(--radius-xl);
  color: rgba(255,255,255,.55);
  transition: background .2s, color .2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  line-height: 1;
}
.lang-btn.active {
  background: white;
  color: var(--primary);
}
.navbar.scrolled .lang-btn { color: var(--text-muted); }
.navbar.scrolled .lang-btn.active {
  background: var(--primary);
  color: white;
}

.navbar.scrolled .hamburger { color: var(--text); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary) 60%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .4;
}

/* Decorative circles */
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -200px; right: -100px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: 50px; right: 30%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  color: white;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lead {
  color: rgba(255,255,255,.80);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.seahorse-wrap {
  position: relative;
  animation: seahorse-float 6s ease-in-out infinite;
}
.seahorse-wrap img,
.seahorse-wrap svg {
  width: clamp(260px, 28vw, 400px);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.30));
}

@keyframes seahorse-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(2deg); }
}

/* Glow ring behind seahorse */
.seahorse-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* === WAVE DIVIDER === */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}
.wave-divider svg { display: block; width: 100%; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(212,168,83,.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 30px rgba(212,168,83,.45);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: white;
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: white;
}

.btn-purple {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-purple:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--primary-pale);
  border-color: var(--primary);
  color: var(--primary);
}

/* === SERVICES SECTION === */
.services {
  background: var(--bg-warm);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  background: var(--primary-pale);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
}

.section-header h2 { margin-bottom: 20px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px;
  background: var(--primary-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: background .3s;
}
.service-card:hover .card-icon { background: var(--primary-muted); }
.card-icon svg { width: 28px; height: 28px; color: var(--primary); }

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.service-card p { margin-bottom: 28px; }

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-muted);
}
.feature-item::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--primary-pale);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 9l3 3 6-6' stroke='%236B5FD6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap .2s;
}
.card-link:hover { gap: 10px; }
.card-link svg { width: 16px; height: 16px; }

/* === WHY US SECTION === */
.why-us {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -200px; left: -100px;
  pointer-events: none;
}

.why-us .section-label { color: var(--accent); background: rgba(212,168,83,.15); }
.why-us h2 { color: white; }
.why-us .lead { color: rgba(255,255,255,.75); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.why-item {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  transition: background .3s, transform .3s;
}
.why-item:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.why-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.why-icon svg { width: 30px; height: 30px; color: var(--accent); }

.why-item h4 { color: white; margin-bottom: 12px; font-size: 1.1rem; }
.why-item p  { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.65; }

/* === CTA SECTION === */
.cta-section {
  background: var(--bg-warm);
  text-align: center;
}

.cta-inner {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--primary-pale);
  pointer-events: none;
}

.cta-inner .section-label { margin-bottom: 20px; }
.cta-inner h2 { margin-bottom: 20px; }
.cta-inner p  { margin-bottom: 40px; max-width: 52ch; margin-left: auto; margin-right: auto; }

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
}

.footer-main {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand { max-width: 300px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}
.footer-logo img { height: 36px; width: auto; display: block; border-radius: 8px; }

.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.7; }

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  letter-spacing: .02em;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-links a:hover { color: white; }

.footer-info { display: flex; flex-direction: column; gap: 10px; }
.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
}
.footer-info-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,.35); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); margin: 0; }

.kvk-info { display: flex; gap: 24px; flex-wrap: wrap; }
.kvk-info span { font-size: .78rem; color: rgba(255,255,255,.35); }

/* === CONTACT PAGE === */
.page-hero {
  background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

.page-hero h1 { color: white; margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 50ch; margin: 0 auto; }

.contact-section {
  background: var(--bg-warm);
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.form-card h2 { margin-bottom: 8px; }
.form-card > p { margin-bottom: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group:last-of-type { margin-bottom: 28px; }

label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107,95,214,.12);
  background: var(--surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check label {
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
  cursor: pointer;
}
.form-check label a { color: var(--primary); text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
}

/* Contact Sidebar */
.contact-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.info-items { display: flex; flex-direction: column; gap: 16px; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-item-icon {
  width: 38px; height: 38px;
  background: var(--primary-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-item-icon svg { width: 18px; height: 18px; color: var(--primary); }

.info-item-text { display: flex; flex-direction: column; gap: 2px; }
.info-item-text strong { font-size: .85rem; color: var(--text); font-weight: 600; }
.info-item-text span  { font-size: .85rem; color: var(--text-muted); }

/* === THANK YOU PAGE === */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary) 100%);
}

.thankyou-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.thankyou-icon {
  width: 80px; height: 80px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.thankyou-icon svg { width: 40px; height: 40px; color: var(--primary); }

.thankyou-card h1 { font-size: 2rem; margin-bottom: 16px; }
.thankyou-card p  { margin-bottom: 36px; }

/* === ANIMATIONS === */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fade-up .7s ease forwards; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .25s; }
.fade-up-3 { animation-delay: .4s; }
.fade-up-4 { animation-delay: .55s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === PUBLICATIONS & TOOLS SECTION === */
.publications {
  background: var(--bg);
  position: relative;
}

.pub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Canvas Tools */
.canvas-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.canvas-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.canvas-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.canvas-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.canvas-card:hover::after { transform: scaleX(1); }

.canvas-icon {
  width: 40px; height: 40px;
  background: var(--primary-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.canvas-icon svg { width: 20px; height: 20px; color: var(--primary); }

.canvas-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.canvas-doi {
  font-size: .72rem;
  color: var(--text-light);
  letter-spacing: .02em;
  font-family: 'Courier New', monospace;
}

.canvas-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap .2s;
}
.canvas-download:hover { gap: 8px; }
.canvas-download svg { width: 13px; height: 13px; }

/* Pub sub-header */
.pub-sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.pub-sub-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.pub-sub-divider {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* Book card */
.book-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.book-cover-img {
  width: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  box-shadow: 4px 6px 24px rgba(0,0,0,.18), -2px -2px 8px rgba(255,255,255,.08);
  display: block;
  object-fit: cover;
}

.book-info { flex: 1; }
.book-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.book-info p {
  font-size: .875rem;
  margin-bottom: 16px;
  line-height: 1.65;
}

.book-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; }
.book-meta span {
  font-size: .78rem;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
}

.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212,168,83,.25);
}

/* === MOBILE === */
@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .services-grid    { grid-template-columns: 1fr 1fr; }
  .why-grid         { grid-template-columns: 1fr 1fr; }
  .contact-layout   { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .footer-brand     { grid-column: 1 / -1; }
  .contact-sidebar  { position: static; }
  .hero .container  { grid-template-columns: 1fr; }
  .hero-illustration{ display: none; }
  .form-row         { grid-template-columns: 1fr; }
  .cta-inner        { padding: 48px 32px; }
  .form-card        { padding: 32px 24px; }
  .pub-grid         { grid-template-columns: 1fr; gap: 40px; }
  .book-card        { padding: 24px; }
}

@media (max-width: 640px) {
  :root { --section-gap: 56px; }

  .nav-links   { display: none; }
  .hamburger   { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--surface);
    padding: 16px 0 24px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-light);
  }

  .nav-links.mobile-open a {
    display: block;
    padding: 14px 24px;
    color: var(--text-muted) !important;
    width: 100%;
  }
  .nav-links.mobile-open a:hover { color: var(--text) !important; background: var(--bg); }
  .nav-links.mobile-open a::after { display: none !important; }
  .nav-links.mobile-open .nav-cta {
    margin: 8px 24px 0;
    width: auto;
    color: white !important;
    background: var(--primary) !important;
    text-align: center;
    justify-content: center;
  }

  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .why-grid       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; }
  .kvk-info       { flex-direction: column; gap: 4px; }
  .form-card      { padding: 28px 20px; }
  .thankyou-card  { padding: 40px 24px; }
  .services-grid  { grid-template-columns: 1fr; }
  .canvas-cards   { grid-template-columns: 1fr 1fr; }
  .book-card      { flex-direction: column; gap: 20px; }
}
