/* =========================================
   PORTFOLIO STYLESHEET
   ========================================= */

/* --- 1. VARIABELEN --- */
:root {
  --roos: #8C5E58;
  --koffie: #1E1014;
  --zilver: #C5BAAF;
  --dennen: #31493C;
  --bordeaux: #5E0B15;
}

/* --- 2. RESET & BASIS --- */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body { 
  font-family: 'Inter', sans-serif;
  background-color: #fdfcfb; 
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(140,94,88,0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(49,73,60,0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--koffie); 
  line-height: 1.6; 
}

body::before {
  content: '';
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(49, 73, 60, 0.07) 60px, rgba(49, 73, 60, 0.07) 62px);
  z-index: -10; 
  pointer-events: none; 
}

/* --- 3. TYPOGRAFIE & GLOBALS --- */
h1, h2, h3, h1 *, h2 *, h3 *, .logo { 
  font-family: 'Poppins', sans-serif; 
}

a { 
  text-decoration: none; 
  transition: 0.3s; 
}

::selection { background-color: var(--roos); color: white; }
::-moz-selection { background-color: var(--roos); color: white; }

:focus-visible {
  outline: 3px dashed var(--roos);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- 4. SCROLLBAR --- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #fdfcfb; }
::-webkit-scrollbar-thumb { background: var(--dennen); border-radius: 10px; border: 3px solid #fdfcfb; }
::-webkit-scrollbar-thumb:hover { background: var(--roos); }

/* --- 5. UTILITIES (Meertaligheid & Animaties) --- */
.en { display: none; }
body.lang-en .nl { display: none; }
body.lang-en .en { display: inline-block; }

.verborgen { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.zichtbaar { opacity: 1; transform: translateY(0); }

@keyframes scrollAnimatie {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

@keyframes zweven {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* --- 6. NAVIGATIE --- */
nav { 
  background: rgba(253, 252, 251, 0.3); 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 10%; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-bottom: 1px solid rgba(197, 186, 175, 0.3);
  position: sticky; 
  top: 0; 
  z-index: 100;
}

nav .logo { font-size: 24px; font-weight: 800; color: var(--bordeaux); letter-spacing: 1px; }
nav ul { list-style: none; display: flex; gap: 30px; align-items: center; }
nav ul li a { color: var(--koffie); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
nav ul li a:hover { color: var(--dennen); }

.lang-switch {
  background: var(--dennen);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
.lang-switch:hover { background: var(--roos); }

/* --- 7. HERO SECTIE --- */
.hero { 
  height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; 
  background: linear-gradient(135deg, rgba(140,94,88,0.15) 0%, rgba(49,73,60,0.1) 100%); padding: 0 20px; 
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--koffie); }
.hero h1 span { color: var(--roos); }
.hero p { font-size: 1.2rem; color: #555; max-width: 600px; margin: 0 auto 30px; }

.btn { 
  padding: 15px 35px; background-color: var(--bordeaux); color: white; border-radius: 30px; 
  font-weight: bold; font-size: 1rem; display: inline-block; box-shadow: 0 4px 15px rgba(94,11,21,0.2); 
}
.btn:hover { background-color: var(--dennen); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(49,73,60,0.3); }

.scroll-indicator { margin-top: 60px; display: flex; justify-content: center; }
.muis { width: 26px; height: 40px; border: 2px solid var(--bordeaux); border-radius: 20px; position: relative; }
.muis::before { 
  content: ''; width: 4px; height: 8px; background: var(--roos); border-radius: 2px; 
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollAnimatie 1.5s infinite; 
}

/* --- 8. ALGEMENE SECTIE STYLING --- */
.sectie-titel { 
  position: relative; display: inline-block; left: 50%; transform: translateX(-50%); 
  text-align: center; font-size: 2.5rem; margin-bottom: 60px; color: var(--koffie); 
}
.sectie-titel span { color: var(--dennen); }
.sectie-titel::after { 
  content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); 
  width: 60px; height: 4px; background-color: var(--roos); border-radius: 2px; 
}

/* --- 9. OVER MIJ SECTIE --- */
.over-mij { padding: 100px 10%; background-color: white; }
.over-mij-container { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; max-width: 1100px; margin: 0 auto; }

.over-mij-foto { flex: 1; min-width: 250px; text-align: center; position: relative; z-index: 1; }
.over-mij-foto img { 
  width: 100%; max-width: 350px; border-radius: 20px; border: 5px solid var(--roos); 
  box-shadow: 0 10px 25px rgba(30,16,20,0.1); object-fit: cover; aspect-ratio: 1/1; animation: zweven 6s ease-in-out infinite; 
}
.over-mij-foto::before {
  content: ''; position: absolute; top: 20px; left: -20px; width: 100%; max-width: 350px; height: 100%; border-radius: 20px;
  background: repeating-linear-gradient(-45deg, var(--dennen), var(--dennen) 3px, transparent 3px, transparent 12px);
  z-index: -1; opacity: 0.6;
}

.over-mij-tekst { flex: 2; min-width: 300px; }
.over-mij-tekst h3 { font-size: 2rem; color: var(--bordeaux); margin-bottom: 15px; }
.over-mij-tekst p { margin-bottom: 15px; font-size: 1.1rem; color: #555; }

.interesses { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.label-interesse { background-color: var(--dennen); color: white; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 4px 10px rgba(49,73,60,0.2); }

/* --- 10. PROJECTEN SECTIE --- */
.projecten { padding: 100px 10%; max-width: 1400px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.kaart { 
  background: white; border-radius: 15px; padding: 30px; box-shadow: 0 5px 20px rgba(30,16,20,0.04); 
  transition: 0.4s ease; border-bottom: 4px solid transparent; position: relative; overflow: hidden; 
}
.kaart:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(30,16,20,0.08); border-bottom: 4px solid var(--roos); }
.kaart h3 { margin-bottom: 15px; font-size: 1.4rem; }
.kaart h3 a { color: var(--bordeaux); }
.kaart p { color: #555; font-size: 1rem; margin-bottom: 20px; }

.labels { display: flex; gap: 10px; font-size: 0.85rem; color: var(--koffie); font-weight: 600; }
.label { background: var(--zilver); padding: 5px 12px; border-radius: 20px; }

.loader-container {
  grid-column: 1 / -1; 
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--zilver);
  border-top: 4px solid var(--bordeaux);
  border-radius: 50%;
  animation: draai 1s linear infinite;
}
@keyframes draai {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- 11. FOOTER --- */
footer { background-color: var(--koffie); color: var(--zilver); padding: 60px 10% 30px; text-align: center; margin-top: 50px; font-size: 0.9rem; }
.footer-content { max-width: 1100px; margin: 0 auto; }
.footer-logo { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; color: white; }
.footer-content p { margin-bottom: 25px; font-size: 1rem; opacity: 0.8; }

.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.social-links a { 
  display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; 
  background-color: rgba(197, 186, 175, 0.1); color: var(--zilver); border-radius: 50%; font-size: 1.5rem; transition: all 0.3s ease; 
}
.social-links a:hover { background-color: var(--dennen); color: white; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(140, 94, 88, 0.4); }

.footer-bottom { border-top: 1px solid rgba(197, 186, 175, 0.2); padding-top: 20px; font-size: 0.85rem; }

/* --- 12. MOBIELE WEERGAVE (RESPONSIVE) --- */
@media (max-width: 768px) {
  /* Menu onder elkaar zetten ipv naast elkaar */
  nav { flex-direction: column; gap: 15px; padding: 15px 5%; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
  
  /* Teksten iets kleiner maken */
  .hero h1 { font-size: 2.2rem; }
  .sectie-titel { font-size: 2rem; }
  
  /* Over mij sectie centreren */
  .over-mij-container { flex-direction: column; text-align: center; }
  .interesses { justify-content: center; }
  .over-mij-foto::before { display: none; } /* Verbergt de strepen op mobiel voor rust */
}

/* --- 13. PRINT STYLESHEET (Ctrl+P / Opslaan als PDF) --- */
@media print {
  body {
    background: white; /* Geen donkere achtergronden printen (kost inkt) */
    color: black;
  }
  nav, .scroll-indicator, .btn {
    display: none; /* Navigatie en knoppen hoef je niet te printen */
  }
  .hero {
    height: auto;
    padding: 50px 0;
  }
  .kaart {
    break-inside: avoid; /* Zorgt dat een projectkaart niet halverwege afbreekt op een nieuwe pagina */
    border: 1px solid #ccc;
    box-shadow: none;
  }
}