/* ========================================
   KLEUREN & BASISVARIABELEN
======================================== */
:root {
  --green: #123524;
  --sand: #EFE9E1;
  --gold: #C1A96F;
  --text: #222;
}

/* ========================================
   ALGEMENE BODY & LAYOUT
======================================== */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
  background: var(--sand);
  color: var(--text);
  scroll-padding-top: 80px;
  height: 100%;
}

main {
  flex: 1;
}

/* ========================================
   HEADER & NAVIGATIE
======================================== */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--green);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
}

header h1 {
  margin: 0;
}

header nav a {
  margin: 0 1rem;
  color: white;
  text-decoration: none;
}

/* ========================================
   SECTIES ALGEMEEN
======================================== */
section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h2 {
  color: var(--green);
}

/* ========================================
   OVER MIJ SECTIE
======================================== */
.about-me {
  display: flex;
  align-items: left;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.about-text {
  flex: 1;
}

.about-photo {
  flex: 0 0 auto;
  margin-top: 1rem;
}

.profile-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--green);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   HERO IMAGE
======================================== */
.hero {
  position: relative;
  overflow: hidden;
  max-height: 500px;
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #EFE9E1 100%);
}

/* ========================================
   PROJECTEN SECTIE
======================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  max-width: 80%;
  margin: 0 auto;
}

.project-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  cursor: pointer;
}

.project-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-item:hover img {
  opacity: 0.3;
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(107, 190, 148, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item:hover .overlay {
  opacity: 1;
}

.overlay-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.project-name {
  font-size: 1.2rem;
  font-weight: bold;
}

.project-year {
  font-size: 0.9rem;
  opacity: 0.9;
}

#andere-projecten .overlay {
  background: rgba(193, 169, 111, 0.7);
}

/* ========================================
   SECTION FLEX LAYOUT
======================================== */
.section-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-flex .content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  flex-direction: row;
}

.section-flex.reverse .content {
  flex-direction: row-reverse;
}

.section-flex .text {
  flex: 1 1 300px;
}

.section-flex .images {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-flex .images img {
  width: 100%;
  object-fit: cover;
}

/* ========================================
   ALGEMENE AFBEELDINGEN LIMIT
======================================== */
section img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.text-photo img,
.concept-photos img,
.gallery img {
  max-height: fit-content;
  object-fit: cover;
}

/* ========================================
   LOAD MORE BUTTON
======================================== */
.load-more-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.load-more {
  display: inline-block;
  background: var(--green);
  color: white;
  border: 2px solid var(--green);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.load-more:hover {
  background: transparent;
  color: var(--green);
  transform: scale(1.05);
}

.load-more:focus {
  outline: none;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-me {
    flex-direction: column;
    text-align: center;
  }
  .profile-circle {
    width: 150px;
    height: 150px;
  }
  .section-flex .content,
  .section-flex.reverse .content {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  header {
    padding: 1rem;
  }
  nav a {
    margin: 0 0.5rem;
  }
  section {
    padding: 0 0.5rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .about-photo {
    flex: 0 0 100px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== FOTO SLIDER MET ASPECT-RATIO ===== */

.photo-slider {
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Geen aspect-ratio! */
}

.slides-track {
  display: flex;
  transition: transform 0.8s ease;
}

.slide {
  flex: 0 0 100%;
  text-align: center;
}

.slide img {
  width: 100%;
  height: auto; /* Laat hoogte bepalen door de afbeelding zelf */
  object-fit: contain; /* Of cover, wat jij wil */
  display: block;
}

.slide .caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}


/* Knoppen */
.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #043927;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
}

.prev-button:hover,
.next-button:hover {
  background: #055f3b;
  opacity: 1;
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

@media (max-width: 768px) {
  .prev-button,
  .next-button {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }
}
