/* =============================
   ALGEMEEN
============================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Century Gothic";
    src: url("fonts/CenturyGothic.woff2") format("woff2"),
         url("fonts/CenturyGothic.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Century Gothic";
    background-color: #ffffff;
    color: #333;
}

/* =============================
   HEADER
============================= */
header {
    background-color: #ffffff;
    padding: 0;
}

.page-title {
    text-align: center;
    margin: 24px auto 16px;
    font-size: 28px;
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    margin: 0 16px;
}

.logo {
    height: auto;
    width: auto;
    margin-right: 24px;
}

/* =============================
   NAVIGATIE
============================= */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 100px);
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.2s;
}

nav a:hover {
    color: #000000;
}

html {
  scrollbar-gutter: stable;
}

/* =============================
   MAIN CONTENT
============================= */
main {
    flex: 1;
    padding: 1em;
    box-sizing: border-box;
}

/* =============================
   GALLERY
============================= */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1em;
    padding: 0 10px;
}

.gallery-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 10px;
    border-radius: 5px;
    transition: transform 0.2s;
    object-fit: cover;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* =============================
   PROJECTEN
============================= */
.project {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #000000;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.project h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffffff;
}

.project p {
    font-size: 16px;
    color: #ffffff;
}

.project img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Projectgalerij */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    justify-items: center;
    margin: 20px 0;
}

.project-gallery img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =============================
   CONTACTFORMULIER
============================= */
.contact-info {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #000000;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: "Century Gothic";
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    font-size: 16px;
    font-family: "Century Gothic";
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form button {
    padding: 12px;
    font-size: 16px;
    font-family: "Century Gothic";
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.contact-form button:hover {
    background-color: #000000;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* =============================
   MAP-SECTION
============================= */
.map-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}

/* =============================
   FOOTER
============================= */
footer {
    text-align: center;
    padding: 5px 0 10px;
    background-color: #ffffff;
}

footer a {
    margin: 0 10px;
    color: #333;
    text-decoration: none;
}

footer a:hover {
    color: #000000;
}

/* =============================
   SOCIALS
============================= */
.socials {
    text-align: center;
    margin-top: 1em;
}

.socials a {
    margin: 0 10px;
    color: #333;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, filter 0.2s;
}

.social-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* =============================
   MEDIA QUERIES
============================= */

/* Kleinere schermen (mobiel) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        height: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    nav {
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    nav a {
        margin: 5px 0;
        font-size: 16px;
    }

    .gallery {
        flex-direction: column;
        gap: 10px;
    }

    .contact-form {
        margin: 20px 10px;
        padding: 15px;
    }
}

/* Extra kleine schermen */
@media (max-width: 700px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .gallery-image {
        max-width: 100%;
        margin: 5px 0;
    }
}

/* =============================
   Hero-sectie
============================= */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text {
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 40px;
  border-radius: 10px;
}

.btn-primary {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #000000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #000000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* =============================
   Introblok
============================= */
.intro {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.intro-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.intro-text {
  flex: 1;
  min-width: 280px;
}

.intro-text p {
  font-size: 18px;
  color: #555;
}

.intro-image {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =============================
   Project preview
============================= */
.home-projects {
  text-align: center;
  padding: 40px 20px;
}

.home-projects h2 {
  margin-bottom: 20px;
}

.btn-link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Mobiel */
@media (max-width: 768px) {
  .hero-text {
    font-size: 90%;
    padding: 15px 20px;
  }

  .intro-container {
    flex-direction: column;
  }

  .intro-image {
    width: 80%;
  }
}

/* =============================
   Over mij pagina
============================= */
.page-header {
  text-align: center;
  margin-top: 40px;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header .subtitle {
  color: #555;
  font-size: 18px;
}

.about-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h2 {
  margin-bottom: 15px;
}

.about-text p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

.about-image {
  width: 320px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.light-bg {
  background-color: #000000;
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.vision-container {
  max-width: 800px;
  margin: 0 auto;
}

.vision-container p {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.6;
}

.light-bg blockquote {
  margin-top: 25px;
  font-style: italic;
  color: #ffffff;
  font-size: 20px;
}

.centered {
  text-align: center;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  .about-image {
    width: 80%;
  }
}


/* ===== Project Slider ===== */
.project-slider {
  position: relative;
  max-width: auto;
  margin: 0 auto 2rem;
  padding: 0 48px; /* ruimte voor pijlen */
}

.ps-viewport {
  overflow: hidden;
  width: 100%;
  padding: 12px 0;
}

.ps-track {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  transition: transform 0.4s ease;
  will-change: transform;
}

.ps-slide {
  flex: auto;     /* 3 per rij op desktop */
  padding: 0 16px;
  box-sizing: border-box;
}

.ps-card {
  display: block;
  flex-direction: column;
  text-align: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  color: inherit;
  text-decoration: none;
  height: auto;
  margin-bottom: 4px;
  box-sizing: border-box;
}

.ps-card img,
.ps-card .gallery-image {
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #ffffff;
}

.ps-card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  color: #333;
  flex-shrink: 0;
}

.ps-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

.ps-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 40px;
  border: none;
  border-radius: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition: opacity .2s, background-color .2s;
}
.ps-btn:hover { background: rgba(0,0,0,0.7); }
.ps-btn:disabled { opacity: .35; cursor: default; }

.ps-btn-prev { left: 4px; }
.ps-btn-next { right: 4px; }

/* Responsive: 2 per rij op tablets, 1 per rij op mobiel */
@media (max-width: 1024px) {
  .ps-slide { flex-basis: 50%; }
  .ps-card img,
  .ps-card .gallery-image {
    height: 180px;
  }
}
@media (max-width: 640px) {
  .project-slider { padding: 0 40px; }
  .ps-slide { flex-basis: 100%; }
  .ps-card img,
  .ps-card .gallery-image {
    height: 220px;
  }
}

/* No-JS fallback: track niet schuiven, gewoon onder elkaar */
.no-js .ps-track { flex-wrap: wrap; }
.no-js .ps-slide { flex-basis: 100%; }

/* ===== Lightbox ===== */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  grid-template-rows: 60px 1fr 60px;
  place-items: center;
  gap: 0;
  z-index: 9999;
}

.lb[hidden] { display: none; }

.lb-stage {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  max-width: min(92vw, 1400px);
  max-height: 80vh;
  margin: 0;
  padding: 0;
  text-align: center;
}

#lb-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}

#lb-caption {
  margin-top: 10px;
  color: #eee;
  font-size: 14px;
}

.lb-close {
  grid-column: 3;
  grid-row: 1;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: rgba(0,0,0,.35);
  border: 1px solid #ffffff;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  place-self: start end;
  margin: 8px;
}
.lb-close:hover { background: rgba(0,0,0,.55); }

.lb-nav {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: rgba(0,0,0,.35);
  border: 1px solid #ffffff;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-prev { grid-column: 1; grid-row: 2; }
.lb-next { grid-column: 3; grid-row: 2; }
.lb-nav:hover { background: rgba(0,0,0,.55); }

@media (max-width: 640px) {
  .lb { grid-template-columns: 48px 1fr 48px; grid-template-rows: 48px 1fr 48px; }
  #lb-image { max-height: 60vh; }
}

/* --- Lightbox stacking fixes --- */
.lb { isolation: isolate; } /* eigen stacking-context, voorkomt externe interferentie */

.lb-stage {
  position: relative;  /* maak z-index werkzaam */
  z-index: 1;          /* lager dan knoppen */
}

.lb-close,
.lb-nav {
  position: relative;  /* nodig voor z-index */
  z-index: 3;          /* boven de foto */
}

/* Vergroot tikvlak op mobiel en zorg dat knoppen altijd bovenop blijven */
@media (max-width: 640px) {
  .lb-close, .lb-nav { width: 52px; height: 52px; border-radius: 26px; }
}

/* Als de afbeelding toch je taps "vangt" op touch-devices, laat taps door */
@media (hover: none) {
  #lb-image { pointer-events: none; }
}

/* =============================
   PROJECTEN: slider full width + centered
   (compenseert main padding: 1em)
============================= */

/* main heeft padding: 1em; -> compenseer dit zodat de slider tot aan de randen gaat */
.home-projects {
  margin-left: 0px;
  margin-right: 0px;
  width: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* slider zelf: 100% breed */
.project-slider {
  max-width: none;      /* verwijdert de 1200px limiet */
  width: 100%;
  margin: auto;
  padding: 0 64px;      /* ruimte voor pijlen */
  box-sizing: border-box;
}

/* viewport blijft 100% */
.ps-viewport {
  width: 100%;
}

/* optioneel: cards iets groter op grote schermen */
@media (min-width: 1400px) {
  .ps-card img,
  .ps-card .gallery-image {
    height: 240px;
  }
}

