/*
  STYLESHEET VOOR TWAN MEURS - PERSOONLIJKE WEBSITE
  Versie: 7.4 (Definitief & Compleet - Mobile Overlay Fix)
  CORRECTED VERSION WITH WORKING CURSOR
*/

/* ======== 1. ALGEMENE STIJLEN & VARIABELEN ======== */

:root {
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --color-background: #0F0F0F;
  --color-background-dark: #0A0A0A;
  --color-background-card: #141414;
  --color-border: #262626;
  --color-text-light: #F5F5F5;
  --color-text-medium: #A3A3A3;
  --color-text-dark: #737373;
  --color-accent: #B10000;
  --color-accent-hover: #8a0000;
  --color-whatsapp: #B10000;
  --header-height: 80px;
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.4s ease-in-out;
  --transition-slow: 0.8s;
  --reveal-easing: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); font-size: 100%; }
body { overflow-x: hidden; font-family: var(--font-primary); background-color: var(--color-background); color: var(--color-text-medium); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-secondary); color: var(--color-text-light); line-height: 1.2; font-weight: 700; }
p { margin-bottom: 1rem; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

/* ======== 2. HEADER & NAVIGATIE ======== */
.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1001; background-color: rgba(15, 15, 15, 0); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); transition: background-color 0.3s ease; }
.header.scrolled { background-color: rgba(15, 15, 15, 0.9); }
.header__container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.header__logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.header__logo-icon { height: 50px; width: auto; }
.header__logo-text { font-family: var(--font-secondary); font-size: 1.5rem; color: var(--color-text-light); }
.header__menu { display: flex; align-items: center; gap: 2.5rem; }
.header__nav { display: flex; gap: 2rem; }
.nav-link { position: relative; font-size: 0.9rem; font-weight: 500; color: var(--color-text-medium); text-transform: uppercase; letter-spacing: 1px; padding: 0.5rem 0; }
.nav-link:hover, .nav-link.active { color: var(--color-text-light); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-accent); transition: width var(--transition-medium); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header__language { display: flex; align-items: center; gap: 0.5rem; }
.lang-link { color: var(--color-text-dark); }
.lang-link.active { color: var(--color-text-light); font-weight: 700; }
.lang-separator { color: var(--color-border); }
.header__toggle { display: none; background: none; border: none; padding: 0; z-index: 1002; }
.header__toggle span { display: block; width: 25px; height: 2px; background-color: var(--color-text-light); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.header--open .header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header--open .header__toggle span:nth-child(2) { opacity: 0; }
.header--open .header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======== 3. HERO SECTIE ======== */
.hero { height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; color: var(--color-text-light); }
.hero__bg { position: absolute; top: -10vh; left: 0; width: 100%; height: 120vh; z-index: -1; background: linear-gradient(rgba(15, 15, 15, 0.8), var(--color-background)), url('https://images.unsplash.com/photo-1554224155-8d04421cd6e2?q=80&w=2072&auto=format&fit=crop') no-repeat center center/cover; }
.hero__content { max-width: 800px; position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--color-text-medium); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.scroll-down-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid var(--color-text-medium); border-radius: 20px; opacity: 0.7; z-index: 1; }
.scroll-down-indicator::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background-color: var(--color-text-medium); border-radius: 2px; animation: scroll-anim 2s infinite; }
@keyframes scroll-anim { 0% { opacity: 1; top: 8px; } 50% { opacity: 0; top: 20px; } 100% { opacity: 1; top: 8px; } }

/* ======== 4. ALGEMENE SECTIE & COMPONENTEN STIJLEN ======== */
.section { padding: 6rem 0; border-bottom: 1px solid var(--color-border); position: relative; z-index: 1; }
.section:last-of-type { border-bottom: none; }
.section--dark { background-color: var(--color-background-dark); }
.section-title { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 1rem; }
.section-subtitle { font-family: var(--font-primary); font-weight: 500; color: var(--color-text-medium); font-size: 1.2rem; margin-bottom: 2rem; }
.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 5px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; border: 2px solid transparent; transition: all var(--transition-fast); }
.btn-primary { background-color: var(--color-accent); color: var(--color-text-light); border-color: var(--color-accent); }
.btn-primary:hover { background-color: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-text-light); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.grid-2-col { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }

/* ======== 5. SPECIFIEKE SECTIES ======== */
.about__image { width: 100%; max-width: 400px; height: auto; display: block; border-radius: 8px; border: 1px solid var(--color-border); object-fit: cover; aspect-ratio: 1 / 1.1; }
.case-study-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem; }
.case-study { background-color: var(--color-background-card); border: 1px solid var(--color-border); border-radius: 8px; padding: 2.5rem; display: flex; flex-direction: column; gap: 2rem; transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
.case-study:hover { transform: translateY(-8px); box-shadow: 0 0 30px rgba(177, 0, 0, 0.2), 0 10px 20px rgba(0,0,0,0.2); border-color: var(--color-accent); }
.case-study__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.case-study__client { font-family: var(--font-primary); color: var(--color-text-medium); font-weight: 500; margin-bottom: 1rem; }
.case-study__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background-color: rgba(177, 0, 0, 0.1); color: var(--color-accent); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.case-study__par { display: flex; flex-direction: column; gap: 1rem; }
.par__item { border-left: 3px solid var(--color-border); padding-left: 1rem; }
.par__label { display: block; color: var(--color-text-light); font-weight: 700; margin-bottom: 0.25rem; }
.timeline { position: relative; max-width: 700px; margin: 4rem auto 0; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; top: 10px; left: 0; width: 2px; height: calc(100% - 10px); background-color: var(--color-border); }
.timeline__item { position: relative; padding-bottom: 3rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:hover::before { transform: scale(1.5); }
.timeline__item::before { content: ''; position: absolute; top: 10px; left: -2.7rem; width: 14px; height: 14px; border-radius: 50%; background-color: var(--color-accent); border: 3px solid var(--color-background); z-index: 1; transition: transform var(--transition-fast); }
.timeline__content { background-color: var(--color-background-card); padding: 1.5rem; border-radius: 5px; border: 1px solid var(--color-border); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.timeline__content:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.25); }
.timeline__title { font-size: 1.25rem; }
.timeline__company { color: var(--color-text-medium); margin-bottom: 1rem; }
.timeline__description { font-size: 0.95rem; margin-bottom: 0; }
.timeline__date { position: absolute; padding-right: 0.75rem; top: 5px; right: 0; font-weight: 700; color: var(--color-text-dark); }
.section--dark .timeline__item::before { border-color: var(--color-background-dark); }
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.expertise-card { background-color: var(--color-background-card); border: 1px solid var(--color-border); padding: 2.5rem; border-radius: 8px; }
.expertise-card__title { font-size: 1.5rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 1rem; }
.expertise-card__title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background-color: var(--color-accent); }
.expertise-card__list { list-style: none; padding: 0; margin: 0; }
.expertise-card__list li { padding: 0.5rem 0; color: var(--color-text-medium); border-bottom: 1px solid var(--color-border); }
.expertise-card__list li:last-child { border-bottom: none; }
.recognition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.recognition-card { text-align: center; padding: 2rem; transition: transform var(--transition-fast); }
.recognition-card:hover { transform: translateY(-5px); }
.recognition-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.recognition-card__title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.recognition-card__desc { color: var(--color-text-medium); font-size: 0.95rem; max-width: 300px; margin: 0 auto; }
.testimonial-card { background-color: var(--color-background-card); border-left: 4px solid var(--color-accent); padding: 2.5rem; max-width: 800px; margin: 4rem auto 0; border-radius: 0 5px 5px 0; }
.testimonial-quote { font-size: 1.1rem; font-style: italic; color: var(--color-text-light); margin-bottom: 2rem; }
.testimonial-author { text-align: right; }
.author-name { display: block; font-weight: 700; color: var(--color-text-light); }
.author-title { font-size: 0.9rem; color: var(--color-text-dark); }

/* ======== 6. FOOTER ======== */
.footer { background-color: var(--color-background-dark); text-align: center; padding: 5rem 0; border-top: 1px solid var(--color-border); }
.footer__title { font-size: 2.5rem; }
.footer__text { color: var(--color-text-medium); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.footer__socials { margin: 2.5rem 0; display: flex; justify-content: center; gap: 1.5rem; }
.footer__socials a { color: var(--color-text-dark); transition: color var(--transition-fast), transform var(--transition-fast); }
.footer__socials a:hover { color: var(--color-text-light); transform: scale(1.1); }
.footer__socials svg { width: 28px; height: 28px; }
.footer__copyright { font-size: 0.85rem; color: var(--color-text-dark); margin-top: 2rem; margin-bottom: 0; }

/* ======== 7. WHATSAPP KNOP ======== */
.whatsapp-btn { position: fixed; bottom: 1.5rem; right: 1.5rem; background-color: var(--color-whatsapp); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 15px rgba(0,0,0,0.3); z-index: 999; transition: transform var(--transition-fast), background-color var(--transition-fast); }
.whatsapp-btn:hover { transform: scale(1.1); background-color: #8a0000; }
.whatsapp-btn svg { width: 32px; height: 32px; fill: white; }

/* ======== 8. ANIMATIE SYSTEEM ======== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity var(--transition-slow) var(--reveal-easing), transform var(--transition-slow) var(--reveal-easing); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-0 { transition-delay: 0s; }
.reveal--delay-1 { transition-delay: 150ms; }
.reveal--delay-2 { transition-delay: 300ms; }
.reveal--delay-3 { transition-delay: 450ms; }

/* ======== 9. CUSTOM CURSOR STIJLEN (GEOPTIMALISEERD) ======== */

/* Verberg de standaard cursor op de body en interactieve elementen */
body.cursor-active, 
body.cursor-active a, 
body.cursor-active button, 
body.cursor-active .btn,
body.cursor-active .timeline__content,
body.cursor-active .case-study {
  cursor: none;
}

/* Laat de standaard tekst-cursor wel zien op input velden */
input[type="text"], input[type="email"], textarea, input[type="search"], input[type="password"] {
  cursor: text;
}

.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  
  /* DE KERN: We sturen alles aan met CSS variabelen */
  --cursor-opacity: 0;
  --cursor-scale: 0;
  --follower-x: -100px; /* Start buiten beeld */
  --follower-y: -100px;
  --cursor-x: -100px;
  --cursor-y: -100px;

  /* Pas transform en opacity toe via de variabelen */
  opacity: var(--cursor-opacity);
  transform: 
    translate(var(--cursor-x), var(--cursor-y)) 
    translate(-50%, -50%) 
    scale(var(--cursor-scale));

  /* Vertel de browser wat er gaat animeren voor performance winst */
  will-change: transform, opacity;
}

.cursor-follower {
  transform: 
    translate(var(--follower-x), var(--follower-y)) 
    translate(-50%, -50%) 
    scale(var(--cursor-scale));
}

.cursor {
  width: 8px;
  height: 8px;
  background-color: #B10000;
  border-radius: 50%;
  mix-blend-mode: difference;
  
  /* De 'dot' mag wel een transitie op transform hebben voor de schaal-effecten */
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.cursor-follower {
  width: 32px;
  height: 32px;
  border: 2px solid #B10000;
  border-radius: 50%;
  mix-blend-mode: difference;
  
  /* 
   * BELANGRIJK: GEEN 'transform' in de transitie! 
   * De soepele positie wordt al door JavaScript geregeld.
  */
  transition: 
    opacity 0.3s ease-out, 
    background-color 0.3s ease-out, 
    border-color 0.3s ease-out, 
    width 0.3s ease-out, 
    height 0.3s ease-out;
}

/* --- STATES --- */

/* Wanneer de cursor actief is, maak hem zichtbaar en zet op de juiste schaal */
body.cursor-active .cursor,
body.cursor-active .cursor-follower {
  --cursor-opacity: 1;
  --cursor-scale: 1;
}

/* Groei-effect bij hovers */
body.cursor-grow.cursor-active .cursor-follower {
  --cursor-scale: 2.5;
  background-color: rgba(177, 0, 0, 0.2); /* Semi-transparante achtergrond */
  border-color: transparent;
}
body.cursor-grow.cursor-active .cursor {
  --cursor-scale: 0; /* Verberg de 'dot' binnen de grote cirkel */
}

/* Krimp-effect bij klikken */
body.cursor-down.cursor-active .cursor-follower {
   --cursor-scale: 0.7;
}

/* Verberg-effect bij tekstvelden (de JS zet de standaard browser cursor aan) */
body.cursor-text.cursor-active .cursor,
body.cursor-text.cursor-active .cursor-follower {
  --cursor-opacity: 0;
  --cursor-scale: 0;
}


/* ======== 10. KLIK GOLF-EFFECT (RIPPLE) ======== */
/* Deze was al goed, maar ik heb de variabele voor de kleur toegevoegd */
.ripple { 
  position: fixed; 
  border-radius: 50%; 
  transform: translate(-50%, -50%); 
  pointer-events: none; 
  animation: ripple-effect 0.6s linear; 
  border: 2px solid #B10000; 
  z-index: 9998; 
}
@keyframes ripple-effect { 
  from { transform: translate(-50%, -50%) scale(0); opacity: 1; } 
  to { transform: translate(-50%, -50%) scale(4); opacity: 0; } 
}





/* 10.5 icon upgrade */
.recognition-card__icon svg {
  width: 40px;
  height: 40px;
  stroke: #B10000; /* je huidige kleur */
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.recognition-card__icon svg {
  filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.3));
}
.recognition-card__icon svg {
  transition: transform 0.2s ease;
}
.recognition-card:hover .recognition-card__icon svg {
  transform: scale(1.1);
}





/* ======== 11. RESPONSIVITEIT & MOBIELE NAVIGATIE ======== */
/* Deze media query is perfect, geen wijzigingen nodig */
@media (hover: none), (max-width: 768px) {
  .cursor,
  .cursor-follower {
    display: none !important;
  }
  body, a, button, .btn {
    cursor: auto;
  }
  body.cursor-active, body.cursor-active a, body.cursor-active button {
    cursor: auto;
  }
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
 
.footer__socials a svg {
  width: 28px;
  height: 28px;
  transition: fill 0.2s ease;
}

.footer__socials a:hover svg {
  fill: #B10000;
}

@media (max-width: 850px) {
    .header__logo-text { display: none; }
    .header__menu { display: none; }
    .header__toggle { display: block; }
    .header--open .header__menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--color-background);
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        animation: fadeInMenu 0.4s ease;
    }
    @keyframes fadeInMenu { from { opacity: 0; } to { opacity: 1; } }
    .header--open .header__nav {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .header--open .nav-link {
        font-size: 1.5rem;
        color: var(--color-text-light);
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUpMenuLink 0.4s ease forwards;
    }
    @keyframes fadeInUpMenuLink { to { opacity: 1; transform: translateY(0); } }
    .header--open .header__nav a:nth-child(1) { animation-delay: 0.1s; }
    .header--open .header__nav a:nth-child(2) { animation-delay: 0.2s; }
    .header--open .header__nav a:nth-child(3) { animation-delay: 0.3s; }
    .header--open .header__nav a:nth-child(4) { animation-delay: 0.4s; }
    .header--open .header__nav a:nth-child(5) { animation-delay: 0.5s; }
    .header--open .header__language { margin-top: 1rem; font-size: 1.2rem; }
    .timeline { padding-left: 0; margin-left: 1.5rem; }
    .timeline::before { left: -1.5rem; }
    .timeline__item::before { left: -2.2rem; }
    .timeline__date { position: static; margin-top: 0.5rem; text-align: right; }
}
@media (min-width: 768px) {
  .grid-2-col { grid-template-columns: repeat(2, 1fr); }
  .about__text { order: 1; }
  .about__image-container { order: 2; }
  .case-study-grid { grid-template-columns: repeat(2, 1fr); }
}
