/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Galileo';
  src: url('fonts/galileo.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --max-width: 1800px;
  --roze: #FFD5E9;
  --donkerroze: #bf6a92;
  --donkerderroze: #804762;
  --blauw: #CBDCF4;
  --donkerblauw: #2c5ca4;
  --geel: #FFF9D2;
  --zwart: #111;
  --wit: #fff;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--zwart);
  background: var(--wit);
  overflow-x: hidden;
}

/* ---------- Layout ---------- */

.page {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 4rem);
}

/* ---------- Spacing ---------- */
section {
  padding-block: clamp(4rem, 8vw, 10rem);
}

/* ---------- Header ---------- */
.site-header {
  min-height: 180px;
  background: var(--geel);
  padding: 0;
}
.project-header {
  min-height: auto;
}
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.project-nav-home,
.project-nav-arrow {
  text-decoration: none;
  color: var(--donkerblauw);
  font-size: clamp(0.9rem, 1vw, 1rem);
  padding: 0.5rem 1rem;
  background: var(--blauw);
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-block;
}
.project-nav-home:hover,
.project-nav-arrow:hover {
  background: var(--donkerblauw);
  color: var(--wit);
}
.project-nav-arrows {
  display: flex;
  gap: 1.5rem;
}
.project-nav-bottom {
  padding-top: 2rem;
  padding-bottom: 0;
  margin-top: 3rem;
  margin-bottom: 0;
}

.text-large {
  font-size: clamp(1.3rem, 1.4vw, 1.5rem);
  color: var(--donkerblauw);
  position: relative;
}
.title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  font-family: 'Galileo', sans-serif;
  color: var(--donkerroze);
  font-weight: normal;
  position: relative;
  min-height: 1.05em;
}

.title-text {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.title-text.title-current {
  opacity: 1;
}
.subtitle {
  font-size: clamp(2rem, 10vw, 3rem);
  color: var(--donkerblauw);
  max-width: 60ch;
  font-family: 'Galileo', sans-serif;
  font-weight: normal;
}
.logo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
}
.logo img {
  width: 100%;
  height: auto;
  max-width: 180px;
}

/* ---------- Typografie ---------- */
h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  margin: 0.75rem 0 1rem;
  font-family: 'Galileo', sans-serif;
}

h4 {
  font-size: clamp(.8rem, 1.8vw, 1.6rem);
  color: var(--donkerblauw);
  font-family: 'Galileo', sans-serif;
  font-weight: normal;
  margin: 2rem 0;
  /* margin-bottom: clamp(1.1rem, 2.2vw, 2.2rem); */
}

p {
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  /* line-height: 1.6; */
}
.italic {
  font-style: italic;
}
.bold {
  font-weight: bold;
}
.center {
  text-align: center;
  margin:0 auto;
  max-width: unset;
}
/* ---------- Project grid ---------- */
.projects-section {
  background: var(--geel);
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  background: var(--blauw);
  color: var(--donkerblauw);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-family: inherit;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background: var(--donkerblauw);
  color: var(--wit);
}
.filter-btn.active {
  background: var(--donkerblauw);
  color: var(--wit);
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2vw, 2.5rem);
}

.project {
  min-width: 0;
  max-width: none;
  border: 1px solid var(--blauw);
  background-color: var(--blauw);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.project a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.project p {
  padding: .75rem;
}

  /* ---------- Project page ---------- */
.project-content{
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 5rem;
}

.project-text h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  color: var(--donkerblauw);
  font-family: 'Galileo', sans-serif;
  font-weight: normal;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.project-layout{
  padding-top: 1rem;
}
#project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.project-text p {
  font-size: clamp(1.3rem, 1.4vw, 1.5rem);
  color: var(--donkerblauw);
  max-width: 60ch;
}
.project-meta h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  color: var(--donkerblauw);
  font-family: 'Galileo', sans-serif;
  font-weight: normal;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.project-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-meta li {
  font-size: clamp(1.3rem, 1.4vw, 1.5rem);
  color: var(--donkerblauw);
}
.project-meta strong {
  font-weight: bold;
}
.project-subtitle {
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  padding: 1rem 0;
  margin: 0;
  font-family: 'Galileo', sans-serif;
  color: var(--donkerderroze);
}
.project-hero {
  margin: 0;
  max-height: 800px;
  object-fit: cover;
  overflow: hidden;
}
.project-hero img {
  width: 100%;
  display: block;
}
.project-videos {
  background: var(--geel);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
}
.videos iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.project-gallery {
  background: var(--roze);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  padding-top: 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 10px;
  gap: 1.5rem;
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  grid-row: span var(--row-span, 20);
}

/* ---------- About ---------- */
.about {
  /* background: #fafafa; */
  background-image: url('images/vorm3.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.wouter{
  background: var(--roze);
}

/* ---------- Instagram Feed ---------- */
.instagram-section {
  background: var(--wit);
}
.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.instagram-post {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blauw);
}
.instagram-post a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.instagram-post a:hover img {
  transform: scale(1.05);
}
.instagram-video-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.instagram-video-indicator::after {
  content: '▶';
  color: white;
  font-size: 12px;
  margin-left: 2px;
}

/* Mobile Instagram Feed */
@media (max-width: 768px) {
  .instagram-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
.handtekening{
  color: var(--donkerblauw);
  text-align: right;
  font-family: 'Galileo', sans-serif;
  font-size: clamp(1.3rem, 1.4vw, 1.5rem);
  position: absolute;
  transform: rotate(-12deg);
  top: 100%;
  left: 70%;
}
/* ---------- Footer ---------- */
footer {
  padding-block: 3rem;
  font-size: 0.9rem;
  background-color: var(--donkerderroze);
  color: var(--wit);
}
footer .text-large {
  color: inherit;
  max-width: none;
}
footer p {
  margin: 0.25em 0;
}
footer a {
  color: inherit;
  text-decoration: underline;
}
.contact-box-column a {
  text-decoration: none;
}
.contact-box-column-right {
  text-align: right;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-icons img {
  width: 24px;
  height: 24px;
  display: block;
}
.contact-box {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}
.contact-box-column{
  flex: 1;
}
@media (max-width: 1000px) { 
  /* Handtekening - centered underneath content */
  .handtekening {
    position: relative;
    transform: rotate(0deg);
    text-align: center;
    right: auto;
    left: auto;
    margin-top: 1rem;
    display: block;
    width: 100%;
  }
}
/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  /* Page padding - remove fixed left padding */
  .page {
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
  }
  
  /* Logo - make it relative or smaller */
  .logo {
    position: relative;
    margin-bottom: 1rem;
  }
  
  /* Header - reduce min-height */
  .site-header {
    min-height: auto;
    padding-block: 1rem;
  }
  
  /* Section padding - reduce */
  section {
    padding-block: clamp(2rem, 6vw, 4rem);
  }
  
  /* Project cards - full width on mobile */
  .projects {
    grid-template-columns: 1fr;
  }

  /* Project cards - full width on mobile */
  .project {
    min-width: 100%;
    max-width: 100%;
  }
  
  /* Filter buttons - smaller padding */
  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Contact box - stack vertically */
  .contact-box {
    flex-direction: column;
  }

  /* Title - reduce size for mobile and ensure it fits changing content */
  .title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    min-height: 1.2em;
  }
  
  /* Subtitle - reduce size for mobile */
  .subtitle {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  /* Project page h2s - reduce size for mobile */
  .project-text h2,
  .project-meta h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  /* Project content - stack columns on mobile */
  #project-content {
    grid-template-columns: 1fr;
  }
  
  /* h4 - reduce size for mobile */
  h4 {
    font-size: clamp(0.95rem, 3.5vw, 1.4rem);
  }
}