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

button, summary {
	cursor: pointer;
}





/*********************/
/* CUSTOM PROPERTIES */
/*********************/
:root {
	--color-dark:#1C3434;	
	--color-neonMint:#79FB97;	
  --color-neonMintHover: #5ed67e;
	--Color-paleClay:#EEE5DF;
	--Color-ivoryDust:#F4F1EA;
	--color-white:#FFFFFF;

  
}




/*********************/
/*       FONTS       */
/*********************/
@font-face {
  font-family: 'Hind';
  src: url('../fonts/Hind-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Hind';
  src: url('../fonts/Hind-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Hind';
  src: url('../fonts/Hind-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Hind';
  src: url('../fonts/Hind-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}




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

body {
	font-family: 'Hind', sans-serif;
	font-weight: 400;
	color: var(--color-dark);
	background-color: var(--Color-ivoryDust);
	margin: 0 auto;
  overflow-x: hidden;
}

body.projects-page,
body.about-page,
body.contact-page{
  margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a {
	color: var(--color-dark);
	text-decoration: none;
	font-weight: bold;
}

a:hover {
  	text-decoration: underline;
}




/****************/
/*    BUTTON    */
/****************/
.button {
    display: inline-flex; /* ipv flex */
    padding: 0.75em 1.5em;
    margin-right: 1em;
    justify-content: center;
    align-items: center;
    gap: 0.625em;

    border-radius: 9px;
    background-color: var(--color-neonMint);
    text-decoration: none; 
    width: auto;           /* belangrijk: voorkomt 100% breedte */
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.button:hover {
    text-decoration: none;
    background-color: var(--color-neonMintHover);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}




/****************/
/*     NAV      */
/****************/
header {
    background-color: var(--Color-ivoryDust); 
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000; 
    padding: .5rem 4rem;
    border-bottom: 2px solid var(--Color-paleClay);
}

/* Nav: gecentreerd, gelimiteerd in breedte */
.main-nav {
  max-width: 90em;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav img {
  height: 2.4rem;
  width: auto;
}

/* Horizontale uitlijning van nav-links */
.main-nav ul {
  display: flex;
  gap: 4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul li a{
  font-weight: bold;
  color: var(--color-dark);

  position: relative;
  text-decoration: none;
}

/* HOVER effect met het lijntje eronder */
.main-nav ul li a::before{
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 40px;
  background-color: var(--color-dark);
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .25s ease-in-out;
}

.main-nav ul li a:hover::before{
  transform-origin: left;
  transform: scaleX(1);
}




/****************/
/*     HERO     */
/****************/
.hero-home {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  width: 100%;
  padding: 4rem 4rem;
  box-sizing: border-box;
}

.hero-home > .container {
  display: flex;
  width: 100%;
  max-width: 90em;
  margin: 0 auto;
  gap: 2rem;
  align-items: center;
  /* flex-wrap niet aanzetten, zodat ze naast elkaar blijven */
}

.hero-home > .container > div:nth-of-type(1) {
  flex: 0 1 60%;      /* tekst neemt 60% van de container breedte */
  max-width: 50em;    /* maar max 50em */
  min-width: 20em;    /* minimaal 20em breed */
}

.hero-home > .container > div:nth-of-type(1) h1 {
  color: var(--Color-deepPine);
  font-family: Hind;
  font-size: 3.3rem;
  font-style: normal;
  font-weight: 700;
  line-height: 116%; 
  margin-bottom: .5em;
}

.hero-home > .container > img {
  flex: 0 0 38%;         /* neemt 38% van de containerbreedte */
  max-width: 38%;
  width: 100%;           /* vult zijn eigen kolom */
  height: auto;
  object-fit: contain;
}

/* Tekst onderstrepen in de H1 */
.onderstreept-detail {
    background-image: linear-gradient(var(--color-neonMint), var(--color-neonMint));
    background-repeat: no-repeat;
    background-size: 100% 8px; /* breedte x dikte van de underline */
    background-position: 0 70%; /* horizontaal 0, verticaal positie */
}

/* Tekst onderstrepen in de H2 */
h2 .onderstreept-detail {
    background-image: linear-gradient(var(--color-neonMint), var(--color-neonMint));
    background-repeat: no-repeat;
    background-size: 100% 5px; /* breedte x dikte van de underline */
    background-position: 0 70%; /* horizontaal 0, verticaal positie */
}





/****************/
/*   PROJECTS   */
/****************/
.projects {
  width: 100%;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 4rem 5rem 4rem;
}

.projects > div {
  max-width: 90em;
  margin: 0 auto;
}

.projects > div h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Flex container van de links */
.projects > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 90em;
  margin: 0 auto;
}

/* De flex-items zijn nu de <a> */
.projects > div > div a {
  flex-shrink: 0;
  border-radius: 1rem;
  overflow: hidden; /* Zorgt dat zoom niet buiten container gaat */
}

/* Breedtetoewijzing aan de <a> met nth-child */
.projects > div > div a:nth-child(1) {
  flex: 2 1 58%;
}

.projects > div > div a:nth-child(2) {
  flex: 1 1 37%;
}

.projects > div > div a:nth-child(3) {
  flex: 1 1 37%;
}

.projects > div > div a:nth-child(4) {
  flex: 2 1 58%;
}

/* Afbeelding vult altijd de hele link container */
.projects > div > div a img {
  width: 100%;
  height: 25em;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.4s ease;
  display: block; /* Voorkomt whitespace onder de afbeelding */
}

/* Hover zoom op afbeelding */
.projects > div > div a:hover img {
  transform: scale(1.05);
}





/****************/
/* OPEN TO WORK */
/****************/
.open-to-work {
  overflow: hidden;
  background-color: var(--Color-paleClay);
  color: var(--color-dark);
  padding: 0.6rem 0 0.6rem 0;
  white-space: nowrap;
}

.open-to-work .scroll {
  overflow: hidden;
  width: 100%;
}

.open-to-work .scroll-track {
  display: flex;
  width: max-content;
  animation: scroll-text 70s linear infinite;
}

.open-to-work .scroll-track > span {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.open-to-work .dot {
   color: var(--color-neonMint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  margin: 0 1.8rem;
  transform: translateY(0.08em); /* kleine verticale aanpassing */
}

/* De animatie */
@keyframes scroll-text {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}




/****************/
/*     ABOUT    */
/****************/
.about-section {
  width: 100%;
  padding: 4rem 4rem;
  box-sizing: border-box;
}

.container-about-section {
  max-width: 75em;         /* nieuwe max breedte */
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 6rem;
  align-items: center;
  flex-wrap: nowrap;       /* niet onder elkaar, tenzij in media query */
}

/* Afbeelding: 38% breed, schaalt mee */
.about-section img {
  flex: 0 0 32%;           /* Verkleind van 38% → 32% */
  max-width: 32%;
  width: 100%;
  height: auto;
  border-radius: 1.8rem;
  object-fit: cover;
}

/* Artikel: neemt resterende ruimte in */
.about-section article {
  flex: 1 1 62%;           /* rest van de ruimte (100% - 38%) */
  max-width: 100%;         /* geen harde beperking */
}

/* Tekststijl */
.about-section article h2 {
  font-size: 2.5rem;
  margin-bottom: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.about-section article a {
  display: inline-block;
  margin-right: 1rem;
  margin-top: 2rem;
}


/****************/
/*    FOOTER    */
/****************/
footer {
  background-color: var(--color-dark);
  padding: 3rem 4rem 1rem; /* wat meer onderruimte voor small */
  color: var(--color-white);
  font-family: 'Hind', sans-serif;
}

footer .container2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 90em;
  margin: 0 auto;
  padding: 0 0 1em 0;
}

footer .container2 .contactLeft {
  flex: 1 1 40%;
}

footer h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
}

footer h2 strong {
  color: var(--color-neonMint);
}

footer p {
  margin: 0 0 1rem 0;
  font-weight: 400;
}

footer ul {
  flex: 1 1 40%;
  list-style: none;
  padding: 0;
  margin: 1em 0 0 0;
  text-align: left; /* lijst links uitlijnen */
}

footer li {
  margin-bottom: 0.5rem;
  font-weight: 400;
}

/* HOVER EFFECT OP DE LINKJES */
footer ul li a {
  color: var(--color-white);
  font-weight: normal;
  text-decoration: none;
  display: inline-flex;       /* zodat icoon en tekst naast elkaar staan */
  align-items: center;
  gap: 0.5em;                 /* ruimte tussen icoon en tekst */
  position: relative;
  text-decoration: none;
}

footer ul li a span {
  position: relative;
  display: inline-block;
  padding-bottom: 2px; /* onderlijn-ruimte bij tekst */
}

footer ul li a span::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 40px;
  background-color: var(--color-white);
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

footer ul li a:hover span::before {
  transform-origin: left;
  transform: scaleX(1);
}

/* Styling voor het icoon in de link */
footer ul li a .icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  margin-right: 0.5em;        /* marge rechts van het icoon */
}

/* Hover effect op links uitzetten */
footer ul li a:hover {
  text-decoration: none;
}

/* Voor copyright onderaan de pagina */
footer small {
  display: block;
  text-align: center;
  margin-top: 3rem;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-white);
}





/*********************/
/*********************/
/*  APARTE PAGINA's  */
/*********************/
/****************/
/*   PROJECTS   */
/****************/
body.projects-page{
  background-color: var(--Color-ivoryDust);
}

body.projects-page .projects {
  background-color: var(--Color-ivoryDust);
  color: var(--color-dark);
  padding: 3rem 4rem 5rem 4rem;
}




/*********************/
/*   CONTACT PAGINA  */
/*********************/
.contactSection {
  min-height: 84vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 64em;
  margin: 0 auto;
  padding: 4rem 2rem;
  background-color: var(--Color-ivoryDust);
  font-family: 'Hind', sans-serif;
  color: var(--color-dark);
  flex-wrap: nowrap;
}

.contactSection > .contactLeft {
  flex: 1 1 50%;
  min-width: 31em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.contactSection > .contactLeft h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-dark);
}

.contactSection > .contactLeft p {
  margin: 0 0 1rem 0;
  font-weight: 400;
}

.contactSection > .contactRight {
  flex: 1 1 50%;
  min-width: 31em;
  background-color: var(--color-dark);
  padding: 2rem;
  border-radius: 1.8rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contactSection > .contactRight h3 {
  margin: 0 0 1.2rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-white);
}

.contactSection > .contactRight ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.contactSection > .contactRight li {
  margin-bottom: 0.2rem;
  font-weight: 400;
}

.contactSection > .contactRight ul li a {
  color: var(--color-white);
  font-weight: normal;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  position: relative;
}

.contactSection > .contactRight ul li a span {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.contactSection > .contactRight ul li a span::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;             /* oude dikte terug */
  border-radius: 40px;
  background-color: var(--color-white);
  bottom: 2px;
  left: 0;
  transform-origin: right;  /* terug naar origine bij niet-hover */
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.contactSection > .contactRight ul li a:hover span::before {
  transform-origin: left;   /* origine aan linkerzijde bij hover */
  transform: scaleX(1);
}

/* Styling icoon blijft gelijk */
.contactSection > .contactRight ul li a .icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  margin-right: 0.5em;
}










/****************/
/*  RESPONSIVE  */
/****************/
@media (max-width: 768px) {

  /* NAVIGATIE */
  header {
  padding: 1rem; /* minder padding zijkanten */
  }

  .main-nav {
    max-width: 100%;   /* volle breedte gebruiken op mobiel */
    margin: 0;         /* geen auto margin */
  }

  .main-nav img {
    height: 1.8rem;
    width: auto;
  }

  .main-nav ul {
    gap: 1rem;         /* minder ruimte tussen links */
  }
 


  /* HERO - EERSTE SECTIE */
  .hero-home {
  flex-direction: column;
  padding: 3rem 1rem;          /* alle kanten 1rem padding */
  gap: 1.5rem;
}

  .hero-home > .container {
    flex-direction: column;
    max-width: 100%;        /* breedte voluit */
    margin: 0;
  }

  .hero-home > .container > div:nth-of-type(1) h1 {
    font-size: 2.2rem;        /* kleiner lettertype voor mobiel */
  }

  .hero-home > .container > img {
    max-width: 100%;        /* afbeelding voluit in container */
  }


  /* PROJECTS - TWEEDE SECTIE*/
  .projects {
    padding: 3rem 1rem;
  }

  .projects > div h2 {
    font-size: 1.8rem; /* kleiner dan desktop */
  }

   .projects > div > div {
    gap: 1rem; /* minder ruimte tussen */
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Eerste en vierde afbeelding: liggend, iets minder hoog en breder */
  .projects > div > div a:nth-child(1),
  .projects > div > div a:nth-child(4) {
    flex: 2 1 60%;  /* breder */
  }
  .projects > div > div a:nth-child(1) img,
  .projects > div > div a:nth-child(4) img {
    height: 12em;  /* lager dan desktop */
    width: 100%;   /* vult link container */
  }

  /* Tweede en derde afbeelding: staand, smaller en hoger */
  .projects > div > div a:nth-child(2),
  .projects > div > div a:nth-child(3) {
    flex: 1 1 35%; /* smaller */
  }
  .projects > div > div a:nth-child(2) img,
  .projects > div > div a:nth-child(3) img {
    height: 12em; /* hoger */
    width: 100%;  /* vult link container */
  }
  

  /* OPEN TO WORK */
  .open-to-work .scroll-track > span {
    font-size: .9rem; /* iets kleiner dan desktop */
  }

  .open-to-work .dot {
    font-size: 1.3rem; /* ook iets kleiner */
    margin: 0 1rem;    /* eventueel wat minder margin */
    transform: translateY(0.12em); /* kleine aanpassing passend bij kleinere grootte */
  }


  /* ABOUT - VIERDE SECTIE */
   .about-section {
    padding: 3rem 1rem;       /* minder padding op smaller scherm */
  }

  .about-section .container-about-section {
    flex-direction: column;
    max-width: 100%;
    margin: 0;
    gap: 1.5rem;
    align-items: flex-start;  /* tekst netjes links */
  }

  .about-section img {
    max-width: 100%;
    flex: none;              /* flexen uitzetten zodat afbeelding breedte 100% */
    border-radius: 1rem;
  }

  .about-section article {
    flex: none;
    max-width: 100%;
    padding: 1rem 0;  
  }

  .about-section article h2 {
    font-size: 1.8rem;       /* iets kleiner lettertype */
  }

  .about-section article p {
    margin-bottom: 1em;
  }
  


   /* CONTACT - FOOTER */
   footer {
    padding: 2rem 1rem 1rem; /* iets minder */
  }

  footer .container2 {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0;
  }

  footer .container2 .contactLeft,
  footer ul {
    flex: 1 1 100%;
    text-align: left;
  }

  footer h2 {
    font-size: 1.8rem;      /* zelfde als .projects h2 */
    margin-bottom: 0.1rem;  /* iets minder spacing */
  }

  footer p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }

  footer ul {
    margin-top: 0.5rem;
  }

  footer li {
    margin-bottom: 0.4rem;
  }

  footer ul li a {
    font-size: 1rem;
  }

  footer small {
    margin-top: 2rem;
    font-size: 0.8rem;
  }




  /* PROJECTS - PAGINA */
  body.projects-page .projects {
    padding: 3rem 1rem;
  }


  /* CONTACT - PAGINA */
  .contactSection {
    flex-direction: column;      /* blokken onder elkaar */
    align-items: flex-start;     /* links uitlijnen */
    padding: 3rem 1rem;           /* iets minder padding */
    gap: 1.5rem;                 /* iets minder ruimte tussen blokken */
    min-height: auto;            /* geen vaste hoogte op mobiel */
  }

  .contactSection > .contactLeft,
  .contactSection > .contactRight {
    flex: none;                  /* vaste breedte */
    width: 100%;                 /* volle breedte nemen */
    min-width: auto;             /* min-width resetten */
    text-align: left;            /* tekst links uitlijnen */
  }

  .contactSection > .contactLeft h2 {
    font-size: 1.8rem;           /* iets kleiner dan desktop */
    margin-bottom: 0.5rem;
  }

  .contactSection > .contactLeft p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .contactSection > .contactRight {
    padding: 2rem 2rem;
    margin-bottom: 3em;
    border-radius: 1rem;         /* iets minder afgerond */
  }

  .contactSection > .contactRight h3 {
    font-size: 1.2rem;
    margin-bottom: .8rem;
  }

  .contactSection > .contactRight li {
    margin-bottom: 0.1rem;
  }

  .contactSection > .contactRight ul li a {
    font-size: 1rem;
  }
}