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

/* Zorg dat tekst niet overal huge is */
body,
p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem; /* basisgrootte, schaalbaar op mobiel */
  line-height: 1.5;
}

/* Body vult hele breedte, geen vaste 70rem */
body {
  max-width: 70rem; /* max-breedte op grote schermen */
  width: 100%; /* maar op kleine schermen: volledig scherm */
  margin: 0 auto; /* centreren op grote schermen */
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #e8e6e1;
}

h1,
h2,
h3,
nav {
  font-family: Exo, sans-serif;
}

/* =============================
   HEADER
   ============================= */
header {
  font-size: 1.9rem;
  color: white;
  padding: 0.75rem;
  background-color: #515151;
  border-radius: 0.5rem 0.5rem 0 0;
}

/* =============================
   MAIN
   ============================= */
main {
  flex: 1; /* vult de ruimte tussen header en footer */
  background-color: white;
  padding: 1.5rem;
  margin: 0;
}

main a {
  color: #515151;
  font-weight: bold;
}

main a:hover,
main a.active {
  color: #9fa3a5;
  font-weight: bold;
}

/* =============================
   NAVBAR (hamburger)
   ============================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background-color: #3f3f3f;
}

.logo {
  color: white;
  font-size: 20px;
  font-weight: bold;
}

/* LINKS */
.nav-links {
  list-style: none;
  display: none; /* hidden on small screens */
  flex-direction: column;
  width: 100%;
  padding-left: 0;
  margin: 0;
}

.nav-links li {
  text-align: left;
}

.nav-links a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
}

.nav-links a:hover {
  background-color: #686868;
  font-weight: bold;
}

/* HAMBURGER */
.hamburger {
  font-size: 26px;
  color: black;
  cursor: pointer;
}

/* SHOW MENU WHEN CLICKED */
.nav-links.show {
  display: flex;
}

/* Desktop: horizontale navbar */
@media screen and (min-width: 776px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    width: auto;
  }

  .nav-links li {
    margin-left: 20px;
  }
}

/* =============================
   FOTO'S / FIGURE
   ============================= */
figure {
  display: flex;
  justify-content: center;
  margin-top: 1.875rem;
  margin-bottom: 1.5rem;
}

img {
  width: 100%;
  max-width: 32rem; /* max op grote schermen */
  border-radius: 0.625rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
}

/* werkplekleren-afbeelding iets breder */
.werkplekleren img {
  width: 100%;
  max-width: 40rem;
  border-radius: 0;
  box-shadow: none;
}

/* Project-kaart-beeld */
.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* =============================
   HOMEPAGINA NAVIGATIE
   ============================= */
.homepagina nav {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.homepagina nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* onder elkaar */
  align-items: center;
  gap: 1.25rem;
}

.homepagina nav li {
  margin: 0;
  display: inline-block;
}

.homepagina nav a {
  width: 12rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  justify-content: center;
  color: white;
  background-color: #515151;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
}

/* =============================
   FOOTER
   ============================= */
footer {
  background-color: #515151;
  color: white;
  text-align: center;
  margin-top: 0;
  padding: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  border-top: 1px solid #9fa3a5;
  border-radius: 0 0 0.5rem 0.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #8b9caa;
}

footer p {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

/* =============================
   OVER MIJ
   ============================= */
.overmij p {
  font-size: 1rem;
  padding: 0 1.5rem;
  text-align: justify;
  hyphens: auto;
}

.overmij h2,
.overmij h3 {
  padding-left: 1.5rem;
  text-align: left;
  font-size: 1.5rem;
  text-decoration: underline;
}

.opleiding h3 {
  padding-left: 1.5rem;
  font-weight: bold;
  color: #323c43;
  text-align: left;
  font-size: 1.2rem;
  text-decoration: none;
}

.opleiding p {
  font-size: 1rem;
  padding: 0 1.5rem;
  text-align: left;
  hyphens: auto;
}

/* tijdstippen onder elkaar, niet extreem ver naar rechts */
.opleiding time {
  display: block;
  text-align: left;
  padding-left: 8rem;
  color: #a3a2a2;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* =============================
   PROJECTEN
   ============================= */
.projecten h2 {
  padding-left: 1.5rem;
  text-align: left;
  font-size: 1.5rem;
  text-decoration: underline;
}

.projecten p {
  font-size: 1rem;
  padding: 0 1.5rem;
  hyphens: auto;
}

/* Basis: op kleine schermen onder elkaar */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
  margin: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  border-radius: 12px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background-color: #fff;
}

/* vanaf tablet: naast elkaar */
@media (min-width: 768px) {
  .projects-grid {
    flex-direction: row; /* naast elkaar */
    flex-wrap: wrap; /* volgende rij als er geen plaats meer is */
    justify-content: flex-start;
  }

  .project-card {
    max-width: 18rem; /* vaste breedte voor de cards */
  }
}

/* =============================
   CONTACTFORMULIER
   ============================= */
fieldset {
  border: 0;
}

.contact p {
  font-size: 1rem;
  padding: 0 1.5rem;
  text-align: center;
}

/* Tekstvakken (naam, email, onderwerp, bericht) */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%; /* op klein scherm full width */
  max-width: 30rem; /* limiet op groot scherm */
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 0.5rem;
  box-sizing: border-box;
}

/* =============================
   PROJECT1 PAGINA
   ============================= */
.Project h2 {
  padding-left: 1.5rem;
  text-align: left;
  font-size: 1.5rem;
  text-decoration: underline;
}

.Project p {
  font-size: 1rem;
  padding: 0 1.5rem;
  text-align: justify;
}

.Project ul,
.Project li {
  text-align: left;
}

/* =============================
   KLEINE SCHERMEN EXTRA
   ============================= */
@media (max-width: 480px) {
  main {
    padding: 1rem;
  }

  .homepagina nav a,
  .overmij nav a,
  .Project nav a,
  .projecten nav a,
  .werkplekleren nav a,
  .contact nav a {
    width: 100%;
    max-width: 14rem;
    font-size: 0.95rem;
    padding: 0.7rem;
  }
}
