/* Kleurenpalet */
:root {
  --dark-green: #2f4f46;
  --green: #5d7d61;
  --light-green: #b8c4a7;
  --beige: #d9c8a1;
  --white: #ffffff;
}

/* Algemene styling */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--dark-green);
  background-color: var(--white);
  scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark-green);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center; /* houd navigatie op 1 lijn */
  padding: 15px 10%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  overflow: visible; /* laat de krul uitsteken */
  height: 80px; /* vaste hoogte, slank en consistent */
}

/* Logo container */
.logo {
  position: relative;
  overflow: visible;
}

/* SVG logo zelf */
.logo img {
  position: absolute;
  top: -83px;          /* laat het logo omhoog vallen zodat het niet de balkhoogte beïnvloedt */
  left: -47px;
  height: 165px;       /* formaat van je logo */
  transform: translateY(20px); /* krul steekt mooi onder de balk uit */
  display: block;
  object-fit: contain;
  filter: drop-shadow(3px 3px 3px rgba(0,0,0,0.2));
  pointer-events: none; /* voorkomt dat je per ongeluk klikt op het logo */
}

/* Navigatielinks */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
  font-weight: 500;
}

.navbar a:hover {
  opacity: 0.7;
}


/* Secties */
.section {
  padding: 100px 10%;
  min-height: 100vh;
}

h1, h2, h3 {
  margin: 0;
}

/* Buttons */
button {
  background-color: var(--green);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: var(--dark-green);
}

/* Placeholder blokken (fotovervangers) */
.placeholder {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.green { background: var(--green); }
.dark-green { background: var(--dark-green); }
.light-green { background: var(--light-green); }
.beige { background: var(--beige); }

.placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* HOME */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-green);
  color: white;
  min-height: 100vh;       /* vult het hele scherm */
  padding: 0 10%;          /* geen witruimte onder */
  position: relative;
  overflow: hidden;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.home-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center; /* verticale centrering */
  position: relative;
  z-index: 10; /* boven andere elementen */
}

.intro-title {
  font-size: 3rem;
  font-weight: 600;
  color: var(--beige);
  margin-bottom: 20px;
}

.home-text {
  flex: 1;
  padding-right: 40px;
}

.home-image {
  flex: 1;
  border-radius: 15px;
}

/* Rotating words */
.rotating-words {
  z-index: 11;
  position: relative;
}

.rotating-words .word {
  font-size: 2rem;
  font-weight: 500;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
  color: #fff;
}

.rotating-words .word.active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-words .word.exit {
  opacity: 0;
  transform: translateY(-30%);
}


/* Verwijder witruimte tussen secties */
#about {
  margin-top: 0;
}

/* wit vlak tussen secties */
.white-gap {
  background: var(--white);
  height: 120px; /* pas aan hoe groot de witte ruimte moet zijn */
  width: 100%;
}

/* ABOUT */
.about-section {
  position: relative;
  width: 100%;
  background: var(--white);
  margin: 0;
  padding: 0;
}

/* groene achtergrond */
.about-content-box {
  background: var(--dark-green);
  min-height: 420px; /* iets hoger voor ademruimte */
  display: flex;
  align-items: center; /* 👈 centreert alles verticaal */
  justify-content: space-between;
  padding: 70px 10%;
  position: relative;
  overflow: visible;
}

/* verticale tekst "OVER MIJ" */
.about-vertical {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 700; /* Bold */
  font-size: 2rem;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

/* tekstblok */
.about-text-block {
  color: #fff;
  line-height: 1.7;
  max-width: 600px;
  font-family: 'Open Sans Condensed', sans-serif;
}

/* naam */
.about-name {
  font-weight: 800; /* Extra Bold */
  font-size: 2.4rem; /* iets groter voor hiërarchie */
  color: #fff;
  margin-bottom: 10px;
}

/* subtitel */
.about-subtitle {
  font-weight: 300; /* Light */
  font-size: 1.3rem; /* iets kleiner dan naam */
  margin-bottom: 25px;
  color: #fff;
  letter-spacing: 0.5px;
}

/* paragraaftekst */
.about-paragraph {
  font-weight: 300;
  font-size: 1.2rem; /* 👈 iets groter voor leesbaarheid */
  line-height: 1.6;
  color: #fff;
  margin-bottom: 14px;
}

/* profielfoto */
.about-photo-wrapper {
  position: absolute;
  top: 49%;
  right: 10.1%;
  transform: translateY(-50%); /* 👈 centreren */
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.about-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* witte tussenruimte boven Over mij */
.white-gap {
  background: var(--white);
  height: 120px;
  width: 100%;
}

/* responsive weergave */
@media (max-width: 992px) {
  .about-content-box {
    flex-direction: column;
    align-items: center;
    padding: 100px 8% 80px 8%;
  }

  .about-vertical {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
  }

  .about-photo-wrapper {
    position: static;
    transform: none;
    margin: 40px auto 0 auto;
    width: 220px;
    height: 220px;
  }

  .about-text-block {
    text-align: center;
    max-width: 90%;
  }
}




/* PROJECTEN */
.projects-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
  grid-template-columns: repeat(2, 1fr); /* standaard: 2 naast elkaar (ook mobiel) */
}

.project-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.project-info {
  padding: 20px;
}

.projects-section {
  position: relative;
  background: var(--white);
}

.projects-vertical {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 700;               /* Bold zoals bij 'Over mij' */
  font-size: 2rem;
  letter-spacing: 3px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dark-green);       /* Goed contrast op wit */
  z-index: 2;
}

/* PROJECT DETAIL */
.project-detail {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(47, 79, 70, 0.98);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-y: auto;
  padding: 60px;
}

.project-detail.hidden {
  display: none;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 50px;
  background: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  border: none;
}

/* Fade-in animatie */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/*fonts*/
.projects-section .project-card,
.projects-section .project-info,
.projects-section .project-info h3,
.projects-section .project-info p {
  font-family: 'Open Sans Condensed', sans-serif;
}

/* Optionele, nette gewichten zoals in 'Over mij' */
.projects-section .project-info h3 {
  font-weight: 800;   /* Extra Bold (matcht .about-name) */
  font-size: 1.6rem;
  margin: 0 0 6px 0;
  color: var(--dark-green);
}
.projects-section .project-info p {
  font-weight: 300;   /* Light (matcht .about-paragraph) */
  font-size: 1.1rem;
  margin: 0;
  color: var(--green);
}

.project-image {
  width: 100%;
  height: 250px;           /* zelfde hoogte als placeholder */
  object-fit: cover;       /* vult mooi het vlak */
  border-radius: 15px 15px 0 0;  /* afgeronde bovenhoeken zoals bij de card */
  display: block;
}


/* Responsive */
@media (max-width: 768px) {
  .home, .about-content {
    flex-direction: column;
  }

  .navbar ul {
    gap: 10px;
  }
}
@media (max-width: 992px) {
  .projects-vertical {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
  }
  .projects-content {
    padding-left: 0;
  }
}
/* desktop/laptop */
@media (min-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 naast elkaar op grote schermen */
  }
}

/* FOOTER */ 
.footer { 
    background-color: var(--dark-green); 
    color: var(--white); 
    padding: 40px 10%; 
    text-align: center; 
    font-family: 'Poppins', sans-serif; 
    margin-top: 60px; 
} 

.footer-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
} 

.footer-name { 
    font-size: 1.2rem; 
    font-weight: 600; 
    margin-bottom: 10px; 
    color: var(--beige); 
    letter-spacing: 1px; 
} 

.footer-contact p { 
    margin: 4px 0; 
} 

.footer a { 
    color: var(--white); 
    text-decoration: none; 
    font-weight: 500; 
    transition: opacity 0.3s ease; 
} 

/* na klikken op navbar doorgestuurd worden */
#overmij { scroll-margin-top: 140px; }
#projecten { scroll-margin-top: 10px; }
#contact { scroll-margin-top: 140px; }


/* Responsief */ 
@media (min-width: 768px) { 
    .footer-content { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
    } 
    .footer-contact { 
        display: flex; 
        gap: 40px; 
    } 
}

