/* --- VARIABLES --- */
:root {
  --primary: rgba(0, 133, 255, 0.9);
  --light-blue: #e6f2ff;
  --white: #ffffff;
  --dark: #333333;
  --font: 'Inter', sans-serif;

  /* Reviews section */
  --speed: 60s;        /* groter = langzamer */
  --review-max: 45ch;  /* max breedte per review */
  --text-muted: color-mix(in oklab, CanvasText 60%, transparent);
  --stars-color: var(--primary);
}

/* --- GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* PREVENTS HORIZONTAL SCROLL */
  width: 100%;        /* Ensures full width usage */
}

body {
  font-family: var(--font);
  color: var(--dark);
  overflow-x: hidden; /* DOUBLE SAFETY */
  width: 100%;
  position: relative; /* Helps contain absolute elements */
}

/* --- SECTION BACKGROUNDS & SCROLL MARGIN --- */
#klantcases, #waarom, #over {
  background: var(--light-blue);
}
#diensten, #oplossingen, #recensies, #contact {
  background: var(--white);
}
#diensten, #klantcases, #oplossingen, #waarom, #recensies, #over, #contact {
  scroll-margin-top: 65px;
}

/* --- LOADER --- */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid var(--light-blue);
  border-top: 6px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- NAVBAR --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
  z-index: 100;
}
header.scrolled {
  background: var(--primary);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 45px;
  width: auto;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  font-family: var(--font);
}
nav .nav-links {
  display: flex;
  gap: 30px;
}
nav .nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: color 0.2s;
}
nav .nav-links a:hover {
  color: var(--light-blue);
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* --- HERO SECTION --- */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
  overflow: hidden;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-content h1, .hero-content p, .hero-content .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation-delay: 0.3s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  margin: 0 10px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  animation-delay: 0.6s;
}
.btn-primary {
  background: var(--white);
  color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  transform: scale(1.05);
  background: var(--primary);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover, .btn-outline:focus {
  transform: scale(1.05);
  background: var(--white);
  color: var(--primary);
}

/* Verberg mobiele elementen standaard op desktop */
.read-more-btn, .case-modal {
  display: none;
}

/* Zorg dat de popup wel flex wordt als hij actief is (wordt overschreven in media query) */
.case-modal.active {
  display: flex;
}

/* --- GENERAL SECTION STYLES --- */
section {
  padding: 70px 40px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin: 0 0 2rem;
  /* font-size: 2.5rem; */
  font-size: clamp(1.4rem, 1vw + 1rem, 2rem);
  letter-spacing:-0.01em;
  color: var(--primary);
}

/* --- SERVICES (DIENSTEN) SECTION --- */
#diensten .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 20px; /* optionally align with benefit-item */
  padding-top: 30px; /* more padding on top for better alignment */
  border-radius: 20px; /* match benefit-item */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft, deep shadow like Klantcases */
  border: 1px solid rgba(0, 133, 255, 0.1); /* subtle blue border like benefit-item */
  text-align: center;
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 250px;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}
.card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

  /* --- KLANTCASES: NEW OPPOSING SLIDER --- */

@media (min-width: 901px) {
  .container-klantcases {
    /* max-width: 70%; */
    max-width: 1200px;
    margin: 0 auto;
  }

  .carousel-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
  }

  .case-box {
    /* Adjust height to your desired value (e.g., 450px) */
    height: 500px; 
    background-color: var(--light-blue);
    overflow: hidden; 
    position: relative;
    padding: 0;
    border-radius: 10px;
    box-sizing: border-box;
  }

  /*  Implement the 65% (Image) and 35% (Text) split */
  .image-box-container {
    width: 65%; 
    max-width: 65%; /* Ensure the image box is 65% of the container */
  }

  .text-box-container {
    width: 35%; 
    max-width: 35%; /* Ensure the text box is 35% of the container */
  }

  /* Wrapper for all content items */
  .case-content-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
  }

  /* Individual Content Item */
  .case-item {
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align text to the left */
    padding: 30px;
    box-sizing: border-box;
    text-align: left;
    position: relative;
  }

  .case-item h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 10px;
  }

  .case-item p {
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
  }

  /* Image specific styling */
  .image-box-container .case-item {
    align-items: center; /* Center image visually */
  }

  .case-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures the image fits without cropping */
    display: block;
    border-radius: 20px;
  }

  /* --- Controls (Re-using existing button styles where possible) --- */
  .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
  }

  /* Use your existing button styles for .case-arrow (renamed to .prev-btn, .next-btn) */
  .carousel-controls .prev-btn, 
  .carousel-controls .next-btn {
    /* Mimic the old case-arrow style for consistency */
    appearance: none;
    border: none;
    background: var(--primary);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
  }

  .carousel-controls .prev-btn:hover, 
  .carousel-controls .next-btn:hover {
    transform: scale(1.1);
    background: #0056b3; /* Darker primary */
  }

  .carousel-controls .prev-btn:disabled, 
  .carousel-controls .next-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
  }

  .intext-hyperlink {
      /* Verwijdert de onderstreping */
      text-decoration: none; 
      
      /* Maakt de tekst dikgedrukt */
      font-weight: bold;      
      
      /* Maakt de tekst zwart */
      color: var(--primary);           
  }
}

/* --- Responsive Styles for New Carousel (MOBILE WITH MODAL) --- */
@media (max-width: 900px) {

  /* 1. De Kaart: Vaste hoogte, strak uiterlijk */
  .carousel-container {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    height: auto; /* Vaste look */
  }

  /* 2. Afbeelding Container */
  .image-box-container {
    width: 100%;
    height: 220px; /* Iets compacter */
    flex-shrink: 0;
    background-color: var(--light-blue);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
  }

  .image-wrapper {
    display: flex;
    height: 100%;
  }

  .image-box-container .case-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Vult mooi het vak */
  }

  /* 3. Tekst Container (Preview Versie) */
  .text-box-container {
    width: 100%;
    background: var(--white);
    position: relative;
    overflow: hidden;
    /* Vaste hoogte voor de tekst preview */
    height: 220px; 
  }

  .text-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .text-box-container .case-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .case-item h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
  }

  /* De "..." magie (Line Clamping) */
  .case-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maximaal 3 regels tonen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
  }

  /* De "Lees Meer" knop */
  .read-more-btn {
    display: inline-block;
    margin-top: auto; /* Duwt knop naar onderen */
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    padding: 5px 10px;
  }

  /* --- Controls (Re-using existing button styles where possible) --- */
  .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
  }

  /* Use your existing button styles for .case-arrow (renamed to .prev-btn, .next-btn) */
  .carousel-controls .prev-btn, 
  .carousel-controls .next-btn {
    /* Mimic the old case-arrow style for consistency */
    appearance: none;
    border: none;
    background: var(--primary);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
  }

  .carousel-controls .prev-btn:hover, 
  .carousel-controls .next-btn:hover {
    transform: scale(1.1);
    background: #0056b3; /* Darker primary */
  }

  .carousel-controls .prev-btn:disabled, 
  .carousel-controls .next-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
  }
  /* --- MODAL (POPUP) STYLING --- */
  .case-modal {
    display: none; /* Standaard verborgen */
    position: fixed; 
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); /* Donkere achtergrond */
    backdrop-filter: blur(5px);
    align-items: flex-end; /* Slide in van onderen */
    justify-content: center;
  }

  .case-modal.active {
    display: flex;
    animation: fadeIn 0.3s;
  }

  .case-modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 600px;
    height: 85vh; /* Vult 85% van schermhoogte */
    border-radius: 20px 20px 0 0; /* Alleen bovenkant ronde hoeken */
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-body {
    padding: 30px 25px;
    overflow-y: auto; /* Hierdoor kan je scrollen in de popup! */
    flex: 1;
  }

  .modal-body img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .modal-body h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
  }

  .case-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    background: rgba(255,255,255,0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* --- SOLUTIONS (OPLOSSINGEN) SECTION --- */

/* This is only new thing we want in the style */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Swiper navigation and pagination styling for waarom section */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

.oplossingen-swiper .swiper-pagination {
  position: static;   /* Removes the absolute positioning inside the swiper */
  margin-top: 45px;   /* Adds space between the slides and the bullets */
}

.swiper-pagination-bullet-active {
  background: var(--primary);
}

/* --- "WHY US" (WAAROM) SWIPER SECTION --- */

#waarom .waarom-swiper {
  width: 100%;
  max-width: 800px; /* Or the max-width of your content */
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* This is crucial */
}

#waarom .swiper-slide {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: auto;
  min-height: 500px;
}

.horizontal-panel {
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horizontal-panel .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.section-heading {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.horizontal-panel p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #555;
}

.benefits-grid, .values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

.benefit-item, .value-item {
  background: var(--white);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid rgba(0, 133, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.benefit-item:hover, .value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.benefit-item i, .value-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.benefit-item span, .value-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

/* Swiper navigation and pagination styling for waarom section */
#waarom .swiper-button-next,
#waarom .swiper-button-prev {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

#waarom .swiper-button-next:hover,
#waarom .swiper-button-prev:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

#waarom .swiper-button-next::after,
#waarom .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

#waarom .swiper-pagination-bullet-active {
  background: var(--primary);
}

/* Responsive adjustments for waarom section */
@media (max-width: 768px) {
  #waarom {
    padding: 50px 20px;
  }
  
  .horizontal-panel {
    padding: 20px;
  }
  
  .section-heading {
    font-size: 2rem;
  }
  
  .horizontal-panel p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .benefits-grid, .values-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }
  
  #waarom .swiper-button-next,
  #waarom .swiper-button-prev {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }
  
  #waarom .swiper-button-next::after,
  #waarom .swiper-button-prev::after {
    font-size: 14px;
  }
}

/* --- REVIEWS SECTION --- */

.marquee{ position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track{
  display:flex; width:max-content;
  animation: scroll-ltr var(--speed) linear infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce){ .marquee__track{ animation:none; } }

.reviews{ display:inline-flex; align-items:stretch; gap:1rem; padding:1rem 0; margin:0; list-style:none; }
.review{
  display:inline-flex; flex-direction:column; align-items:center; text-align:center;
  margin-left:1.5rem; margin-right:1.5rem;
  gap:1rem; padding:.75rem 1rem; max-width:var(--review-max);
  white-space:normal; font-size:.95rem; line-height:1.35;
  background:none; box-shadow:none; border-radius:0;
}
.review p{ margin:0; font-weight:500; letter-spacing:.001em; }
.review .meta{ font-size:.85rem; color:var(--text-muted); }

.stars{ display:inline-flex; gap:.25rem; height:1rem; }
.star{ width:1rem; height:1rem; fill:var(--stars-color); opacity:.95; }

.marquee__fade{ pointer-events:none; position:absolute; inset-block:0; width:clamp(16px,5vw,80px); }
.marquee__fade--left{ left:0; background:linear-gradient(90deg, color-mix(in oklab, Canvas 0%, transparent) 0%, transparent 100%); }
.marquee__fade--right{ right:0; background:linear-gradient(270deg, color-mix(in oklab, Canvas 0%, transparent) 0%, transparent 100%); }

/* links -> rechts: beweeg van -50% naar 0% met twee identieke lijsten */
@keyframes scroll-ltr{ 0%{ transform:translateX(-50%);} 100%{ transform:translateX(0%);} }

.container{ max-width:1100px; margin:0 auto; padding:0 1rem; }

@media (max-width: 500px) {
  .review {
    /* Verlaag de marges links en rechts op mobiel */
    margin-left: 0.5rem;
    margin-right: 0.5rem;

    /* Zet een nieuwe maximale breedte.
     80vw = 80% van de schermbreedte.
     Dit zorgt dat één review grotendeels het scherm vult en goed leesbaar is.
    */
    max-width: 60vw;
  }
}

/* --- ABOUT US (OVER ONS) SECTION --- */
#over {
  text-align: center;
}
.founders-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
}
.founder-card {
  text-align: center;
  flex: 0 0 auto;
}
.founder-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}
.founder-photo:hover {
  transform: scale(1.05);
}
.founder-name {
  margin-top: 15px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}
.founder-title {
  font-size: 1.1rem;
  color: #666;
  margin-top: 5px;
}
.about-us-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #555;
}
.linkedin-link {
  color: var(--primary); 
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
.linkedin-link i {
  margin-left: 6px; /* space between name and icon */
  font-size: 1em;
}
.linkedin-link:hover {
  color: #0077b5;  /* LinkedIn blue - upon hover*/ 
  text-decoration: underline;
}

/* --- CONTACT SECTION --- */
#contact .contact-wrapper {
  display: flex;
  gap: 40px;
  flex-direction: column;
}
#contact form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#contact input, #contact textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  font-family: var(--font);
}
#contact button {
  width: fit-content;
  align-self: flex-start;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s;
}
#contact button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#contact button:hover:not(:disabled) {
  transform: scale(1.05);
}
#contact .success {
  color: green;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.5s;
}
#contact .success.show {
  opacity: 1;
}

/* --- BACK TO TOP BUTTON --- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  z-index: 100;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-footer .container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}
.footer-col {
  flex: 1;
  min-width: 200px;
}
.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin: 0.5rem 0;
}
.footer-top a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-top a:hover {
  color: var(--light-blue);
}
.footer-col i {
  font-size: 1.2rem;
}
.site-footer .footer-bottom {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255,255,255,0.5);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
/* duwt alles erna (jouw twee <a>.terms) naar rechts */
.footer-bottom .copyright {
  margin-right: auto;           /* <-- zet links vast en rest naar rechts */
}
/* “tab”-achtige spacing tussen de twee links */
.footer-bottom .terms + .terms {
  margin-left: 2rem;            /* pas aan naar smaak (1.5rem, 3rem, …) */
}
.footer-bottom .terms {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.footer-bottom .terms:hover { text-decoration: underline; }
.footer-bottom .terms i { font-size: 0.9rem; }

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
  .horizontal-scroll-section {
    height: auto;
  }
  .waarom-container {
    position: static;
    flex-direction: column;
    padding: 40px;
  }
  .scrollable-content-window, .horizontal-content-wrapper {
    overflow: visible;
    height: auto;
    width: auto;
    flex-direction: column;
    transform: none !important;
  }
  .horizontal-panel {
    width: 100%;
    padding: 40px 0;
    height: auto;
  }
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;    /* ← push it all the way to the right */
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--white);
  }
  nav .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
  }
  nav .nav-links.active {
    display: flex;
  }
  nav .nav-links a {
    color: var(--white);
    margin: 10px 0;
  }
}
@media (max-width: 600px) {
  .benefits-grid, .values-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    font-size: 2rem;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- RESPONSIVE HEADER: Make sure it looks good on phone as well --- */
@media (max-width: 768px) {
  /* Reduce header padding on mobile */
  header {
    padding: 8px 20px;
  }
  
  /* Scale down logo elements */
  .logo-img {
    height: 40px; /* Reduced from 70px */
    width: auto;
  }
  
  .logo-text {
    font-size: 1.1rem; /* Reduced from 1.35rem */
    font-weight: 600;
  }
  
  /* Adjust menu toggle */
  .menu-toggle {
    font-size: 1.3rem; /* Slightly smaller */
  }
  
  /* Fix nav links positioning */
  nav .nav-links {
    top: 60px; /* Adjusted to match smaller header */
    right: 20px;
    width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
}

@media (max-width: 480px) {
  /* Even smaller screens */
  header {
    padding: 6px 15px;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .menu-toggle {
    font-size: 1.2rem;
  }
  
  /* Adjust hero content for smaller screens */
  .hero-content h1 {
    font-size: 2rem; /* Reduced from 3rem */
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1rem; /* Reduced from 1.2rem */
  }
  
  /* Make buttons stack vertically on very small screens */
  .hero-content .btn {
    display: block;
    margin: 10px auto;
    width: fit-content;
  }
  
  /* Adjust section padding */
  section {
    padding: 50px 20px;
  }
  
  /* Adjust section titles */
  .section-title {
    font-size: 2rem;
  }
}