body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}


header {
  background-color: #e6f2ff;  /* lichtblauw, matcht footer */
  padding: 20px;
  position: relative;  /* zodat absolute vlaggen binnen header goed positioneren */
  border-bottom: 1px solid #cfe3ff;
}

h1 {
  text-align: center;
}

nav {
  display: flex;
  justify-content: space-around;
}

#menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu li {
  display: inline-block;
  margin: 0 10px;
}


#menu a {
  text-decoration: none;
  color: #1a1a1a;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

#menu a:hover {
  background-color: rgba(0, 123, 255, 0.12);
}

main {
  padding: 20px;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #e6f2ff; /* lichtblauw */
  padding: 12px 16px;
  text-align: center;
  gap: 6px;
  border-top: 1px solid #cfe3ff;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* dichter bij elkaar */
  font-size: 0.9em;
  flex-wrap: wrap;
}

.footer-links a {
  color: #4a4a4a;
  text-decoration: none;
  padding: 2px 4px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #007BFF;
}

/* ===== LANGUAGE SWITCHER ===== */
#language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 1100;
}

.lang-flag {
  width: 28px;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid transparent;
  box-sizing: border-box;
  
  /* overgang voor hover en active state */
  transition: 
    opacity 0.15s ease, 
    transform 0.12s ease, 
    border-color 0.3s ease, 
    box-shadow 0.3s ease;
}

.lang-flag:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* active flag */
.lang-flag.active {
  border-color: #007BFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* ===== ABOUT PAGE ===== */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 80px auto;
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  gap: 40px;
}

.about-photo img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.about-photo img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-bottom: 15px;
  color: #007BFF;
  font-size: 32px;
  text-align: left;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-photo img {
    width: 180px;
    height: 180px;
  }
}

/* ===== HOME PAGE ===== */
/* === Force text-box styling for Home === */
.text-box {
  background-color: white !important;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  padding: 40px; 
  max-width: 1000px;
  margin: 40px auto;
  display: block;
}

.home-intro {
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.home-photo img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.home-photo img:hover {
  transform: scale(1.05);
}

.intro-text {
  font-size: 18px;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.6;
}

.highlights {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: nowrap; /* prevents wrapping on wide screens */
  max-width: 900px;
  margin: 0 auto;
}

.highlight {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  padding: 25px 30px;
  flex: 1; /* ensures equal width */
  min-width: 200px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.highlight i {
  font-size: 36px;
  color: #007BFF;
  margin-bottom: 10px;
}

.highlight h3 {
  font-size: 18px;
  margin: 0;
  color: #333;
}

.highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* Responsive: stack highlights on small screens */
@media (max-width: 768px) {
  .highlights {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }

  .highlight {
    width: 80%;
  }
}

/* Highlights Section */
#highlights {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.highlights-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.highlight {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.highlight h3 {
  margin-bottom: 10px;
  color: #007BFF;
}

.highlight p {
  font-size: 14px;
  color: #555;
}

/* Responsive */
@media(max-width: 768px) {
  .highlights-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== CV PAGE (text-only version) ===== */
.cv-page {
  max-width: 1000px;
  margin: 80px auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.cv-page h2 {
  color: #007BFF;
  font-size: 32px;
  margin-bottom: 10px;
  text-align: center;
}

.cv-intro {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

.cv-page section {
  margin-bottom: 25px;
}

.cv-page h3 {
  color: #222;
  margin-bottom: 10px;
}

.cv-page p, .cv-page li {
  font-size: 17px;
  line-height: 1.6;
}

.cv-page ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

.cv-buttons {
  text-align: center;
  margin-top: 40px;
}

.cv-buttons a, .cv-buttons button {
  padding: 12px 25px;
  border-radius: 5px;
  border: none;
  margin: 0 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
}

.cv-buttons a {
  background: #007BFF;
  color: white;
}

.cv-buttons button {
  background: #28A745;
  color: white;
}

.cv-buttons a:hover, .cv-buttons button:hover {
  opacity: 0.9;
}

/* Print optimization */
@media print {
  header, nav, .cv-buttons {
    display: none;
  }
  body {
    background: white;
  }
  .cv-page {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
}

/* ===== CONTACT PAGE ===== */
.contact-container {
  display: block;
  max-width: 1000px;              /* Zelfde breedte als About Me */
  margin: 80px auto;
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.contact-container h2 {
  color: #007BFF;
  font-size: 32px;
  margin-bottom: 20px;
  text-align: left;
}

.contact-container p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.contact-container form {
  width: 100%;
}

.contact-container form input,
.contact-container form textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.contact-container form button {
  background-color: #007BFF;
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.contact-container form button:hover {
  background-color: #0056b3;
}

.about-container form {
  width: 100%;
}

.about-container form input,
.about-container form textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}
#message{
  height: 250px;        /* pas aan naar 350px of 400px als je wilt */
  resize: vertical;     /* laat gebruiker het nog hoger maken */
}

.about-container form button {
  background-color: #007BFF;
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.about-container form button:hover {
  background-color: #0056b3;
}

/* ===== POPUP OVERLAY ===== */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

/* ===== POPUP BOX ===== */
.popup-box {
  background: white;
  width: 90%;
  max-width: 500px;
  margin: 120px auto;
  padding: 30px;
  border-radius: 15px;
  position: relative;
  animation: fadeIn 0.3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Close button */
.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: #444;
}

/* Popup animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.highlight:hover {
  cursor: pointer;
}
.popup-close-container {
  text-align: center;
  margin-top: 20px;
}

.popup-close-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.popup-close-button:hover {
  background-color: #0056b3;
}
/* .project-card {
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
} */

.project-card {
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}
.project-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #222222;
    margin-top: 0;
    margin-bottom: 1rem;
}