/* ============================================================
   style.css — Gedeelde opmaak voor alle portfolio pagina's
   Bewerk dit bestand alleen als je de opmaak wilt aanpassen.
   Voor inhoud: zie data.js
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap');

/* ── Kleurenpalet ── */
:root {
  --bg:           #F8FAFC;
  --card:         #FFFFFF;
  --border:       #E2E8F0;
  --text:         #1E293B;
  --muted:        #64748B;
  --coral:        #2563EB;   /* Royal Blue */
  --coral-light:  #EFF6FF;   /* Soft Blue */
  --amber:        #0ea5e9;   /* Sky Blue Accent */
  --amber-light:  #e0f2fe;   /* Pale Sky Background */
  --teal:         #1e3a8a;   /* Navy Blue */
  --teal-light:   #dbeafe;   /* Light Navy Background */
  --purple-light: #f1f5f9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0f172a;   /* Slate 900 Background */
    --card:         #1e293b;   /* Slate 800 Cards */
    --border:       #334155;   /* Slate 700 Borders */
    --text:         #f8fafc;   /* Slate 50 Text */
    --muted:        #94a3b8;   /* Slate 400 Muted Text */
    --coral:        #3b82f6;   /* Blue 500 Actions */
    --coral-light:  #1e3a8a;   /* Blue 900 Soft BG */
    --amber:        #38bdf8;   /* Sky 400 Accent */
    --amber-light:  #0c4a6e;   /* Sky 900 Accent BG */
    --teal:         #93c5fd;   /* Blue 300 Detail Text */
    --teal-light:   #172554;   /* Blue 950 Detail BG */
    --purple-light: #1e293b;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ════════════════════════════════════════
   NAVIGATIE
   ════════════════════════════════════════ */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.logo {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
  padding-bottom: 3px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--coral);
  border-bottom: 2px solid var(--coral);
}

/* ════════════════════════════════════════
   PAGINAKOP (gedeeld)
   ════════════════════════════════════════ */
.page-hero { padding: 40px 28px 24px; }
.page-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-title {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.page-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ════════════════════════════════════════
   BADGES
   ════════════════════════════════════════ */
.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.badge-school   { background: var(--teal-light);  color: var(--teal); }
.badge-personal { background: var(--amber-light); color: var(--amber); }
.badge-world    { background: var(--border);      color: var(--muted); }
.badge-row      { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }

/* ════════════════════════════════════════
   FILTERRIJ
   ════════════════════════════════════════ */
.filter-row {
  padding: 0 28px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: all .3s ease;
}
.filter-btn:hover  { border-color: var(--coral); color: var(--text); }
.filter-btn.active { background: var(--text); color: #27a3e6; border-color: var(--text); }

/* ════════════════════════════════════════
   KAARTGRID
   ════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 60px;
}

/* ════════════════════════════════════════
   PROJECTKAART
   ════════════════════════════════════════ */
.card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .15s ease, background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); }

/* Foto */
.card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: var(--border);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}
.card:hover .card-img img { transform: scale(1.05); }

@keyframes pulsePlaceholder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.photo-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.28);
  padding: 2px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  gap: 8px;
  margin-top: auto;
}
.pride-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  line-height: 1.4;
}
.refl-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  background: none;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.refl-btn:hover { background: var(--coral-light); }

.refl-panel {
  background: var(--coral-light);
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.refl-panel[hidden] { display: none; }
.refl-panel p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--teal);
  line-height: 1.75;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.refl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.refl-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--amber-light);
  color: #633806;
}

/* ════════════════════════════════════════
   OVER MIJ — index.html
   ════════════════════════════════════════ */
.hero {
  padding: 40px 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.hero-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--amber-light);
  flex-shrink: 0;
}
.hero-initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--amber-light);
  border: 3px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 28px;
  color: #633806;
  flex-shrink: 0;
}
.hero-text { flex: 1; }
.hero-greeting {
  font-size: 11px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-name {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 16px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 28px;
}

.about-strip { padding: 24px 28px 20px; }
.strip-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fact-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.fact-label { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.fact-value { font-size: 13px; font-weight: 500; color: var(--text); }

.hero-quote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  padding: 0 28px 20px;
  line-height: 1.7;
}

.photo-teaser { padding: 0 28px 40px; }
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.teaser-cell {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}
.teaser-cell img { width: 100%; height: 100%; object-fit: cover; }
.teaser-more {
  aspect-ratio: 4/3;
  border-radius: 8px;
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--coral);
  text-decoration: none;
  transition: border-color .15s;
}
.teaser-more:hover { border-color: var(--coral); }

/* ════════════════════════════════════════
   HOBBIES — index.html
   ════════════════════════════════════════ */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 0 0 24px 0;
}
.hobby-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: transform .15s ease;
}
.hobby-card:hover { transform: translateY(-2px); }
.hobby-title {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.hobby-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Skills pagina ── */
@keyframes fillBar {
  from { width: 0; }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 28px 60px;
}
.skill-category {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 18px 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.skill-cat-title {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.skill-name { font-size: 13px; color: var(--text); min-width: 160px; transition: color 0.3s ease; }
.skill-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}
.skill-bar {
  height: 100%;
  background: var(--coral);
  border-radius: 99px;
  transition: width .6s ease;
}
.skill-evidence {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
  padding-left: 172px;
}
.evidence-link {
  font-size: 10px;
  color: var(--coral);
  text-decoration: none;
  background: var(--coral-light);
  padding: 1px 6px;
  border-radius: 4px;
}
.evidence-link:hover { opacity: .8; }

/* ════════════════════════════════════════
   FOTOGRAFIE — fotografie.html
   ════════════════════════════════════════ */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
  padding: 0 28px 60px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.02); }

/* ════════════════════════════════════════
   POP — pop.html
   ════════════════════════════════════════ */
.pop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 28px 60px;
}
.pop-card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.pop-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.3s ease;
}
.pop-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}
.pop-title {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.3s ease;
}
.ring-wrap { text-align: center; flex-shrink: 0; }
.ring-wrap svg { display: block; }
.ring-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-top: 3px;
}
.ring-status { font-size: 10px; color: var(--muted); }

.smart-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.smart-cell {
  padding: 10px 10px 12px;
  border-right: 1px solid var(--border);
}
.smart-cell:last-child { border-right: none; }
.smart-letter {
  font-size: 14px;
  font-weight: 500;
  color: var(--coral);
  margin-bottom: 2px;
}
.smart-name {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}
.smart-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.45;
}

.reflect-bar {
  width: 100%;
  padding: 10px 16px;
  background: var(--bg);
  border: none;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  transition: background .2s ease, transform .1s ease;
}
.reflect-bar:hover { background: var(--coral-light); color: var(--coral); }
.reflect-bar:active { transform: scale(0.98); }
.refl-arrow { font-size: 12px; transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.refl-arrow.open { transform: rotate(180deg); }

/* ════════════════════════════════════════
   DATA SOURCE TOGGLE (data.js indicator)
   ════════════════════════════════════════ */
.data-hint {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  z-index: 999;
  opacity: .7;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg) scale(1.05); }
  50% { transform: rotate(5deg) scale(1.05); }
  75% { transform: rotate(-3deg) scale(1.05); }
}

.data-hint:hover {
  opacity: 1;
  animation: wiggle 0.5s ease-in-out;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.pop-card {
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.pop-grid > .pop-card:nth-child(1) { animation-delay: 0.1s; }
.pop-grid > .pop-card:nth-child(2) { animation-delay: 0.2s; }
.pop-grid > .pop-card:nth-child(3) { animation-delay: 0.3s; }

/* Filter Buttons Button Press */
.filter-btn {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-btn:active {
  transform: scale(0.92);
}

.data-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,40,32,.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.data-overlay.open { display: flex; }
.data-modal {
  background: var(--card);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 540px;
  width: calc(100% - 40px);
  max-height: 80vh;
  overflow-y: auto;
}
.data-modal h2 {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}
.data-modal .sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.data-section {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 8px;
  border-left: 3px solid var(--coral);
}
.data-section h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.data-section p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.data-section code {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  background: var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--coral);
}
.data-close {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

/* ════════════════════════════════════════
   RESPONSIVITEIT
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .grid         { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid  { grid-template-columns: 1fr; }
  .pop-grid     { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .teaser-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-facts  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links    { gap: 16px; }
}
@media (max-width: 540px) {
  .grid         { grid-template-columns: 1fr; padding: 0 16px 40px; }
  .filter-row   { padding: 0 16px 20px; }
  .page-hero    { padding: 28px 16px 16px; }
  .topbar       { padding: 0 16px; }
  .hero         { padding: 28px 16px 24px; flex-direction: column; gap: 16px; }
  .about-strip  { padding: 20px 16px; }
  .photo-teaser { padding: 0 16px 32px; }
  .gallery-grid { columns: 1; padding: 0 16px 40px; }
  .skills-grid  { padding: 0 16px 40px; }
  .pop-grid     { padding: 0 16px 40px; }
  .smart-grid   { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nav-links    { display: none; }
}
