/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #333;
}

/* SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

/* HEADER & NAVIGATION */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
}
.header-hidden {
  transform: translateY(-100%);
}
/* Single flex row for .nav-container */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo on left, .right-side on right */
  padding: 1rem 10%;
}

/* Logo inside navbar */
.logo img {
  height: 50px; /* Adjust this value to fit your navbar */
  width: auto;
  display: block;
}


/* Main nav in the middle */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s;
}
.main-nav ul li a:hover {
  color: #007BFF;
}

/* Right side: Language + Hamburger in one row */
.right-side {
  display: flex;
  align-items: center; /* ensure vertical alignment */
  gap: 1rem; /* space between language switcher and hamburger */
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.75rem;
}
.language-switcher a {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: none;
}
.language-switcher a:hover {
  color: #007BFF;
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none; /* show it below breakpoint */
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* Mobile nav (hidden by default) */
.mobile-nav {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mobile-nav ul {
  list-style: none;
  padding: 1rem 10%;
}
.mobile-nav ul li {
  margin-bottom: 0.5rem;
}
.mobile-nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
}

/* Show hamburger & hide main nav below 870px */
@media (max-width: 870px) {
  .main-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* HERO SECTION */
.hero {
  width: 100%;
  height: 100vh;
  background: url('img/hero.png') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  margin-left: 5%;
  margin-top: 15%;
  text-align: left;
  color: #fff;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.hero-button {
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.hero-button:hover {
  background-color: #0056b3;
}

/* BRANDS CAROUSEL */
.brands-carousel {
  overflow: hidden;
  background-color: #fff;
  padding: 4rem 0;
}
.carousel-track {
  display: flex;
  align-items: center;
  animation: scroll 20s linear infinite;
}
.carousel-item {
  flex: 0 0 auto;
  margin: 0 2rem;
}
.carousel-item img {
  max-height: 80px;
  object-fit: contain;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CONTAINER */
.container {
  margin: 0 10%;
}
.references-card {
  margin-top: 6rem !important;
  margin-bottom: 6rem !important;
}

/* DIENSTEN SECTION */
.diensten-section {
  padding: 4rem 1rem;
  background-color: #f8f8f8;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}
.diensten-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.diensten-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}
.diensten-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  
}

@media (max-width: 1200px) {
  .diensten-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .diensten-grid {
    grid-template-columns: 1fr;
  }
  .g-recaptcha {
    transform: scale(0.8);
    transform-origin: 0 0;
  }
}
@media (max-width: 600px) {
  .contact-container {
    flex-direction: column;
    width: 100%;
    gap: 1rem; /* reduce gap if needed */
  }
  .contact-info,
  .contact-form {
    width: 100%;
  }
}


.dienst-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dienst-card:hover {
  transform: translateY(-5px);
}
.dienst-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.dienst-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.dienst-card p {
  font-size: 1rem;
  color: #555;
}

/* Card-stijl voor de referentiesectie (zelfde als Over Mij en Diensten) */
.references-card {
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

/* Grid voor de referentiekaarten: standaard 3 kolommen */
.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Responsief: 2 kolommen op kleinere schermen */
@media (max-width: 768px) {
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* En eventueel 1 kolom op heel kleine schermen */
@media (max-width: 480px) {
  .references-grid {
    grid-template-columns: 1fr;
  }
}

/* Card-stijl voor de referentiesectie */
.references-card {
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}
.intro-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
/* Zorg dat de H2 binnen de references-card gecentreerd wordt en dezelfde stijl heeft */
.references-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Grid voor de referentiekaarten: standaard 3 kolommen, responsief naar 2 of 1 */
.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .references-grid {
    grid-template-columns: 1fr;
  }
}

/* Stijl voor elke referentiekaart */
.reference-card {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.reference-card:hover {
  transform: translateY(-5px);
}

/* Zorg dat de afbeelding vierkant is en afgerond */
.reference-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.reference-card:hover img {
  transform: scale(1.05);
}

.gallery-modal {
  display: flex; /* standaard verborgen */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.pagination {
  margin-top: 1.5rem;
  text-align: center;
}

.pagination a {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  margin: 0 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: #007BFF;
  background-color: #fff;
  border: 2px solid #007BFF;
  border-radius: 50%; /* Cirkel */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s;
}
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column-reverse;
  }
}

.pagination a:hover {
  background-color: #007BFF;
  color: #fff;
  transform: scale(1.1);
}

.pagination a.active {
  background-color: #007BFF;
  color: #fff;
}
@media (max-width: 600px) {
  .intro-image img {
    max-width: 100%;
  }
  
  .container {
    margin: 0;
    width: 100%;
    padding: 0 1rem; /* Optional: adds a little side padding */
  }
}


/* Voor kleinere schermen */
@media (max-width: 480px) {
  .pagination a {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    font-size: 0.9rem;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .intro-card {
    flex-direction: column;
  }
}

/* CONTACT SECTION */
/* Contactsectie: Card-stijl, 80% breed en gecentreerd */
.contact-card {
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

/* Zorg ervoor dat de inhoud van de card flexibel is */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1.5rem;
}
.contact-logo {
  max-width: 200px;
  margin-bottom: 1rem;
}
.contact-info p {
  margin: 0.5rem 0;
}
.contact-form {
  flex: 1.5;
  min-width: 300px;
}
#contactForm {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  margin-bottom: 0.3rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button[type="submit"] {
  background-color: #007BFF;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
.footer-info p {
  margin: 0.25rem 0;
}

/* INTRO SECTION (Updated to look like a card) */
.intro-section {
  padding: 4rem 1rem 1rem 0rem;
  background-color: #fff;
}

.intro-card {
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

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

.intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.intro-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.intro-image img {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
}
