/* NEW: Universal box-sizing reset for consistent layout */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  line-height: 1.6;
  background-color: #f0f4f8;
  color: #333;
}

h1, h2 {
  font-family: 'Lato', sans-serif;
}

h2 {
  color: #004080;
  margin-top: 0;
  margin-bottom: 1.5rem;
  /* Removed global text-align here, now set specifically for each h2 */
}

/* Specific H2 alignment based on user's request */
/* Center "Onze Diensten" H2 */
#diensten h2 {
    text-align: center;
}
#home h2 {
    text-align: center;
}
/* Keep "Over Nico Molenaar" H2 to the left */
#about h2 {
    text-align: left;
}

/* Keep these H2s centered (as per previous agreement) */
#ervaring h2,
#visuals h2, /* Assuming your visuals gallery section has id="visuals" */
#contact h2 {
    text-align: center;
}


/* Links */
a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Normalize ul and p defaults for consistent alignment */
ul {
  list-style-position: outside; /* Ensures bullet points themselves are outside the text block */
  margin: 0; /* Remove default top/bottom margins from lists */
  padding-left: 2.5em; /* Explicitly define bullet indent for consistency across browsers */
}

li {
  margin-bottom: 0.5rem; /* Add some space between list items */
}

p {
  margin: 0; /* Remove default top/bottom margins from paragraphs */
}


/* Header */
header {
  background: linear-gradient(135deg, #004080, #0077cc);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: 3.5rem;
  margin: 0;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0 0;
  padding: 0; /* Remove default padding from nav ul */
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

header nav a:hover {
  color: #ffcc00;
}

/* Main Content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Section styling */
section {
  margin: 2rem 0;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* About section */
.about-section {
  display: flex; /* Keeps the side-by-side layout */
  align-items: flex-start; /* Aligns content to the top */
}

.about-section .about-text {
  flex: 1;
  text-align: left; /* Keep text left-aligned */
  padding-left: 2.5em; /* This padding-left should align with the ul indent */
  margin-right: 2rem; /* Manually add space between text and image */
}

.about-section .about-image img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto; /* Centers the image within its own div */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* Ervaring logos grid */
.ervaring-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  justify-content: center;
  align-items: start;
  padding: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.ervaring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.9rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  height: 100%;
  justify-content: flex-start;
}

.ervaring-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.ervaring-item img {
  max-width: 100px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  transition: none;
}

.ervaring-item p {
  margin: 0;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
}


/* Visuals Gallery */
.visuals-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.visuals-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.visuals-gallery img:hover {
  transform: scale(1.03);
}


/* Contact Section */
#contact p {
  line-height: 1.8;
  text-align: center;
}

#contact a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.linkedin-button {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  max-width: 200px;

  background-color: #0077b5;
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 1rem;
}

.linkedin-button:hover {
  background-color: #005f93;
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

footer a {
  color: #ffcc00;
  font-size: 1rem;
  font-weight: normal;
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .ervaring-logos {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  .ervaring-item img {
    max-width: 90px;
    max-height: 60px;
  }
  .ervaring-item p {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  header nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
  main {
    padding: 1rem;
  }
  section {
    padding: 1.5rem;
  }
  /* about-section stacks on smaller screens */
  .about-section {
    flex-direction: column;
    align-items: center;
  }
  /* Text aligns left when stacked, but remove specific padding/margin for better centering */
  .about-section .about-text {
      text-align: left;
      padding-left: 0; /* REMOVED specific padding-left when stacked */
      margin-bottom: 1.5rem;
      margin-right: 0; /* REMOVED specific margin-right when stacked */
  }

  .ervaring-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .ervaring-item img {
    max-width: 80px;
    max-height: 50px;
  }
  .ervaring-item p {
    font-size: 0.8rem;
  }
  .visuals-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
  }
  .visuals-gallery img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 2rem 0.5rem;
  }
  header h1 {
    font-size: 2rem;
  }
  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ervaring-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .ervaring-item img {
    max-width: 70px;
    max-height: 45px;
  }
  .ervaring-item p {
    font-size: 0.75rem;
  }
  .visuals-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  .visuals-gallery img {
    height: 120px;
  }
  .linkedin-button {
    width: fit-content;
    max-width: 90%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  /* Subkopjes in "Over Nico Molenaar" */
.about-section .about-text h3 {
  margin: 1.1rem 0 0.4rem;
  color: #004080;
  font-size: 1.1rem;
}

/* Ruimte tussen de paragrafen in de about-tekst */
.about-section .about-text p {
  margin: 0 0 0.9rem;
}
}