/* ============================ */
/* ========== GLOBAL ========== */
/* ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #fff;
  color: #1A152D;
  line-height: 1.5;
  font-size: 1.125rem; /* default text size */
  opacity: 1;
  transition: opacity 0.3s ease;
}

.btn {
  background-color: #AA043F;
  font-family: 'Manrope', sans-serif;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1.125rem;
  border-radius: 24px;
  margin-top: 2rem;
  transition: background 0.3s ease; /* snappier */
  cursor: pointer ;
  
}

.btn:hover {
  background: #C9D9E0;
  color:  #AA043F;
  transition: background 0.3s ease; /* snappier */
}





@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================ */
/* ========== GRID ============ */
/* ============================ */

.container {
  margin: 1.5rem auto 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;

}

[class*="col-"] {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.col-1  { flex: 0 0 8.3333%;  max-width: 8.3333%;  }
.col-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3  { flex: 0 0 25%;      max-width: 25%;      }
.col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-6  { flex: 0 0 50%;      max-width: 50%;      }
.col-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-9  { flex: 0 0 75%;      max-width: 75%;      }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-12 { flex: 0 0 100%;     max-width: 100%;     }

/* ============================ */
/* ========== HEADER ========== */
/* ============================ */



.menu {
  font-size: 1.125rem;
  align-items: center;
}

.menu .left  { text-align: left; }
.menu .right { text-align: right; }

.menu-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease; /* snappier */

  
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.menu-link:hover::after {
  transform: scaleX(1);
}





.hero {
  margin-bottom: 8rem;
  margin-top: 10rem;
}


.hero h1 {
  font-size: 2.688rem;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero p {
  max-width: 37.5rem;
  margin: 0 auto;
}

/* Animated intro sentences */
.sentence {
  display: inline;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}
.sentence:nth-child(1) { animation-delay: 0.1s; }
.sentence:nth-child(2) { animation-delay: 0.2s; }
.sentence:nth-child(3) { animation-delay: 0.4s; }
.sentence:nth-child(4) { animation-delay: 0.6s; }
.sentence:nth-child(5) { animation-delay: 0.8s; }

/* ============================ */
/* ========== FILTERS ========= */
/* ============================ */

.filter-section {
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: 'Manrope', sans-serif;
  padding: 0.25rem 0.5rem;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  transition: background 0.5s;
  border-radius: 0.25rem;
  font-size: 1.125rem;
  font-weight: 100;
  margin-right: 0.5rem;
}

.filter-btn:hover {
  background: #C9D9E0;
  color: #1A152D;
}

.filter-btn.active {
  background: #C9D9E0;
  color: #1A152D;
}

.filter-btn.active::after {
  content: ' ×';
  font-weight: 400;
  margin-left: 0.25rem;
  color: inherit;
  opacity: 0;
  transform: scale(0);
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.filter-btn.active::after {
  opacity: 1;
  transform: scale(1);
}

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

.portfolio-grid {
  margin-bottom: 1.5rem;
}

.portfolio-item {
  margin-bottom: 8rem;
  padding: 0.5rem;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: relative;
  overflow: hidden;
}

.portfolio-item.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.portfolio-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.portfolio-item a:hover img {
  transform: scale(1.05);
}

.portfolio-item h3 {
  font-size: 0.875rem;
  font-weight: 200;
  display: inline;
}

.portfolio-item h4 {
  font-size: 0.875rem;
  font-weight: 200;
  display: inline;
  color: #666666;
}

/* Scroll-triggered fade effect */
.scroll-fade {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}



/* ============================ */
/* ========== FOOTER ========== */
/* ============================ */

footer {
  text-align: left;
  font-size: 1.125rem;
  margin: 0;
}




.custom-footer {
  background-color: #C9D9E0;
  height: 28rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  padding-top: 4rem;
  align-items: flex-start;
  position: relative;
  width: 100vw;

margin-left: -1rem;
margin-top: -1.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer-block {
  margin-bottom: 3rem;
}

.footer-info,
.footer-links {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-info .bottom-info,
.footer-links .bottom-links {
  margin-top: 7rem;
}

.footer-logo {
  position: absolute;
  bottom: 1.5rem; /* 24px */
  right: 1rem;    /* 16px */
  font-size: 1.5rem;
}



.footer-links a,
.footer-info a {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.footer-links a::after,
.footer-info a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after,
.footer-info a:hover::after {
  transform: scaleX(1);
}

/* ============================ */
/* ====== PROJECT PAGE ======== */
/* ============================ */



/* Hide the original text and replace with alternate text on hover */
.project-back-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

/* Original text wrapper */
.project-back-link > span {
  display: inline-block;
  transition: opacity 1s ease;
}

/* Hide original text on hover */
.project-back-link:hover > span {
  opacity: 0;
}


.project-back-link::after {
  content: "< Back to home";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 1s ease;
  white-space: nowrap;
  pointer-events: none;
}

/* Fade in on hover */
.project-back-link:hover::after {
  opacity: 1;
}



/* Project Hero Section */
.project-hero {
  
  width: 100vw;
  height: auto;
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
}



.project-hero .back-home {
  position: absolute;
  top: 17rem;
  font-size: 1.125rem;
}

.project-hero .hero-text {
  margin-top: 17rem;
}

.project-hero .hero-text p {
  font-size: 1.125rem;
  margin: 0 0 1.5rem 0; /* bottom space between paragraphs */
}



.project-heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}



.project-tags span {
  font-family: 'Manrope', sans-serif;
  padding: 0.25rem 0.5rem;
  background: #f5f5f5;
  border: none;
  border-radius: 0.25rem;
  font-size: 1.125rem;
  font-weight: 100;
  margin-right: .5rem;
  margin-bottom: .5rem;
}
/* ============================ */
/* ====== PROJECT MEDIA ======= */
/* ============================ */

/* Portrait media (grid, small spacing) */
.media-portraits {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.media-portraits .col-6 {
  flex: 0 0 50%; /* Ensure each item takes up 6 columns (50% width) */
  max-width: 50%; /* Ensure the max width of each item is 50% */
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-bottom: 1rem; /* Space between items */
}

.media-portraits img,
.media-portraits video {
  width: 100%;  /* Make sure both images and videos fit within their parent */
  height: auto; /* Keep aspect ratio intact */
  object-fit: cover; /* Ensure they cover the container without distortion */
  display: block;
}

/* Remove margin-bottom for last portrait item (image or video) */
.media-portraits .col-6:last-child img,
.media-portraits .col-6:last-child video {
  margin-bottom: 0 !important; /* Remove bottom margin from the last portrait item */
}

/* Landscape media (no grid, full width) */
.media-landscape {
  padding: 0;
  margin: 0 0 1rem 0; /* Space below each media item */
}

.media-landscape img,
.media-landscape video {
  width: 100vw;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

/* Remove margin-bottom for last landscape item (image or video) */
.media-landscape img:last-child,
.media-landscape video:last-child {
  margin-bottom: 0 !important; /* Remove bottom margin from the last landscape item */
}

/* Ensure all media items in the container have no bottom margin for the last item */
.project-media .container {
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw;
}

/* Remove margin-bottom for the last item in each section */
.media-portraits .col-6:last-child,
.media-landscape img:last-child,
.media-landscape video:last-child {
  margin-bottom: 0 !important; /* Remove bottom margin for last media item */
}





/* ============================ */
/* ======== RESPONSIVE ======== */
/* ============================ */

/* Show/hide based on screen size */
.desktop-only {
  display: flex;
}
.mobile-only {
  display: none;
}

/* MOBILE MENU STYLES */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;


    
  }

  /* Zorg dat .col-11 geen padding heeft op mobiel */
  .col-11 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Maak de .btn kleiner op mobiel */
  .btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-top: 1.5rem;
  }


  .hero h1 {
    font-size: 1.125rem;
    line-height: 1.8rem;
    max-width: 100%;
  }

  .hero h1 .sentence {
    font-size: inherit;
    line-height: inherit;

  }




  .mobile-only {
    display: flex !important;
    flex-direction: column;
  }

  .menu-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .menu-brand {
    font-size: 1.125rem;
    font-weight: 200;
    flex-grow: 1;
  }

  .menu-mobile-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  #lang-toggle-mobile {
    font-size: 1rem;
    background: none;
    border: 1px solid #1A152D;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    appearance: none;
  }

  .hamburger {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.3s ease;
  }

  .hamburger.open {
    transform: rotate(90deg);
  }

  .menu-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
  }

  .menu-links.open {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1rem;
    gap: 1rem;
  }

  .menu-links a {
    font-size: 1.125rem;
    text-decoration: none;
    color: inherit;
  }

  .hero {
    padding: 3rem 0;
    margin: 0;
  }

  /* .hero h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    max-width: 100%;
  } */

  .hero .col-10 {
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
  }

  #filter-select {
    width: 100%;
    font-size: 1rem;
    border: 1px solid #1A152D;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'Manrope', sans-serif;
  }

  .portfolio-grid {
    flex-direction: column;
  }

  .portfolio-item {
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 2rem;
  }

  .custom-footer.mobile-only {
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: #EEEB70;
    height: auto;
  }

  .custom-footer.mobile-only .footer-block {
    margin: 0;
    padding: 1rem;
    border-bottom: 1px solid #1A152D;
    width: 100%;
    text-align: left;
  }

  .custom-footer.mobile-only .footer-block p {
    margin: 0.25rem 0;
    font-size: 1.125rem;
  }

  .custom-footer.mobile-only hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0;
  }

  a {
    text-decoration: none;
    color: #1A152D;
  }

  .hero-text-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-text-mobile h2 {
    font-size: 1.125rem;
    font-weight: 700;
  }

  .project-tags span {
    font-size: 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .project-description p {
    line-height: 1.5;
  }

  .project-description.short p {
    max-height: 6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
  }

  .project-description.expanded p {
    max-height: none;
    -webkit-line-clamp: unset;
  }

  #read-more-btn,
  #read-less-btn {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: #1A152D;
    font-size: 1rem;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
  }

  #read-less-btn {
    display: none;
  }

  .hero-text-mobile .back-to-home {
    font-size: 1rem;
    text-decoration: none;
    color: inherit;
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .hero-text-mobile .back-to-home:hover {
    text-decoration: underline;
  }

  .hero-text-mobile .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* margin-bottom: 1rem; */
  }

  .hero-text-mobile .project-description  {
    margin-top: 1rem;
    background: none;
    border: 1px solid #1A152D;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
  }




  #lang-toggle {
    margin-right: 1rem;
    float: right;
  }

  .media-portraits {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
  
  }

  .media-portraits .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
  }

  .media-portraits video {
    width: 100vw; /* full width of screen */
    height: auto;
    display: block;
  }

  .media-landscape {
    padding: 0;
    margin: 0 0 1rem 0; /* space below each media item */
  }

  .media-landscape img,
  .media-landscape video {
    width: 100vw;
    height: auto;
    display: block;
    margin-bottom: 1rem;
  }

  .project-media .container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw;
  }

  

    /* Remove bottom spacing on the last media item (image or video) */
    .media-portraits .col-6:last-child video,
    .media-portraits .col-6:last-child img,
    .media-landscape img:last-child,
    .media-landscape video:last-child {
      margin-bottom: 0 !important;
    }
  }
 
  




  




/* DESKTOP toggle alignment fix */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }

  #lang-toggle {
    margin-right: 1rem;
    float: right;
  }

}



