@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500&display=swap');

* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ff-primary: 'Montserrat', sans-serif;
    --ff-secondary: 'Source Code Pro', monospace;

    --fw-reg: 300;
    --fw-bold: 900;

    --clr-light: rgb(220, 220, 220);
    --clr-dark: rgb(0, 0, 0);
    --clr-accent: rgb(164, 177, 199);

    --fs-h1: 3rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1rem;
    --fs-h4: 1.1rem;
    --fs-body: 1rem;

    --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, .25),
        0.125em 0.125em 0.25em rgba(0, 0, 0, .15);
}

@media (min-width: 824px) {
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 2.5rem;
        --fs-h3: 1.5rem;
        --fs-h4: 1rem;
        --fs-body: 1.125rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: var(--clr-dark);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

nav {
    font-family: var(--ff-primary);
}

.font-bold {
    color: rgb(0, 0, 0);
    font-size: 35px;
    padding: 0 40px;
    font-weight: bold !important;
}

.font-light {
    color: rgb(0, 0, 0);
    font-size: 17px;
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: var(--fw-reg);
}

section {
    padding: 5em 2em;
}

img {
    display: block;
    max-width: 100%;
}

strong {
    font-weight: var(--fw-bold);
    color: #000000;
}

h1,
h2,
h3,
h4 {
    line-height: 1.1;
    margin: 0;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

.section__title {
    margin-bottom: .25em;
}

.section__title--intro, p {
    font-weight: var(--fw-reg);
}

.section__title--intro strong {
    display: block;
}

.section__subtitle {
    margin: 0;
    font-size: var(--fs-h3);
}

.section__subtitle--intro,
.section__subtitle--portfolio {
    background: var(--clr-accent);
    padding: .25em 1em;
    font-family: var(--ff-secondary);
    margin-bottom: 1em;
}

.section__subtitle--extra {
    color: var(--clr-accent);
    font-weight: var(--fw-bold);
    margin-bottom: 2em;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 1em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 2;
   }

.logo {
    max-width: 100px;

}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
    height: calc(100vh - 60px);
    padding: 0; 
    position: relative;
}

.image-container::before,
.image-container::after {
    content: "";
    width: 20%; 
}

.image-container::before {
    order: -1; 
}

  .image-item {
    position: relative;
    width: calc((100% - (10% * 2) - (1% * 3)) / 4);;
    height: calc(100vh - 120px); 
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }
  
  .image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .5);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
  }
  
  .image-item:hover::before {
    opacity: 1;
  }
  
  .project-title {
    position: absolute;
    top: 80%;
    right: 0;
    transform: rotate(90deg);
    transform-origin: right top;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-weight: var(--fw-reg);
    font-size: 2.5rem;
    z-index: 11;
  }
  
  .image-item:hover .project-title {
    opacity: 1;
    transform: rotate(90deg) translateX(0%);
  }
  
  .image-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    background: transparent;
    cursor: pointer;
  }
  

.footer {
    text-align: center;
    font-size: 0.8rem;
   }

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer__link {
    font-weight: var(--fw-reg)
}

.footer__link:hover,
.social-list__link:hover {
    opacity: .7;
}

.footer__link:hover {
    text-decoration: underline;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0.5em 0 0;
    padding: 0;
}

.social-list__items {
    margin: 0 .5e;
}

.social-list__link {
    padding: .5em;
}

  .nav-tabs .nav-link {
    color: grey;
  }
  
  .nav-tabs .nav-link:hover {
    color: black;
  }
  
  .nav-tabs .nav-link.active {
    color: #000;
  }

  .tab button.active {
    color: black;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    font-weight: bold;
  }
  
  .tabcontent {
    display: none;
    border: none;
    border-top: none;
    text-align: justify;
  }
  
  .tabcontent {
    animation: fadeEffect 0.5s;
  }
  
  @keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  

  .custom-container-width {
    max-width: 70% !important;
  }
  
  .custom-container-width img {
    display: block;
    margin: auto;
  }
  
  @media screen and (max-width: 420px) {
    .custom-container-width {
      width: 100% !important;
    }
  }
  
  .design-container {
    max-width: 75rem;
    margin: 1.25rem auto;
    display: grid;
}

.design-container .design-content { 
  margin-top: 1.25rem;
  display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.design-container .design-content .left-side {
    grid-column: 1;
    grid-row: span 2;
}

.design-container .design-content .right-side {
    grid-column: 2;
    display: grid;
}

.design-container .design-content .right-side p.section__title--intro {
  margin: 0;
}

.grid-item {
  break-inside: avoid;
  margin-bottom: 0.625rem;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

.rewilding_cities .image_box {
  height: 18rem;
  animation: fadeRewilding_Cities 6s infinite;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

@keyframes fadeRewilding_Cities {
  0% {
    background-image: url('../img/rewilding_cities/rc30.png');
  }
  50% {
    background-image: url('../img/rewilding_cities/rc31.png');
  }
  100% {
    background-image: url('../img/rewilding_cities/rc32.png');
  }
}

.text-container {
  max-width: 75rem;
}

.container1 {
  max-width: 75rem;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3fr;
  text-align: justify;
  margin-top: 3.125rem;
}

.container1 .img11 {
max-height: 25;
}

.container1 .left_side {
  position: relative;
  margin-right: 1.25rem;
     }

     .container1 .right_side {
  position: relative;
  margin-left: 1.25rem;
}

.container2 {
  max-width: 75rem;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  text-align: justify;
}

.container2 .left_side {
  position: relative;
}

.container2 .right_side {
  position: relative;
  text-align: justify;
  margin-left: 1rem;
}

.container3 {
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
  gap: 1rem;
}

.container3 .left_side,
.container3 .right_side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container3 img {
  height: auto;
  width: 100%;
  object-fit: cover;
  max-height: 25rem;
}

.container3 .left_side p:last-child,
.container3 .right_side p:last-child {
  margin-top: 0.2rem;
  margin-bottom: -1rem;
  align-self: flex-start;
  text-align: left;
}

.container4 {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  text-align: justify;
  margin-top: 3.125rem;
  position: relative;
}

.container4 .left_side {
  position: relative;
  margin-right: 1.25rem;
  bottom: 1.25rem;
}

.container4 .right_side {
  position: relative;
  margin-left: 1.25rem; 
}

.buttons {
  position: relative;
  text-align: center;
  margin: 2rem;
}

.btn1 {
  border: 0.0625rem solid black; 
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  border-radius: 0.3125rem;
  margin: 2rem;
  display: inline-block;
  color: black;
  font-weight: var(--fw-reg);
}

.projects-grid {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.project {
  display: block;
  text-decoration: none;
  color: inherit;
  width: calc((100% - 6rem) / 4);
  text-align: center;
}

.project img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.project p {
  margin: 0;
}

.bunker-images {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bunker-images img {
  width: calc(50% - 1rem);
  height: auto;
}

.tabcontent .section__title--intro.no-top-margin {
  margin-top: 0;
  z-index: 1000;
}

.the_delta_shelter .ecology {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.the_delta_shelter .ecology .left-side, .right-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.the_delta_shelter .vision {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.vision img {
  max-width: 25rem;
  height: auto;
  margin: 0 auto;
}

.zonnehof .image_box2 {
    height: 18rem;
    animation: fadeZonnehof 15s infinite;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
  }
  
  @keyframes fadeZonnehof {
    0% {
      background-image: url('../img/zonnehof/z18.png');
    }
    10% {
      background-image: url('../img/zonnehof/z19.png');
    }
    20% {
      background-image: url('../img/zonnehof/z20.png');
    }
    30% {
      background-image: url('../img/zonnehof/z21.png');
    }
    40% {
      background-image: url('../img/zonnehof/z22.png');
    }
    50% {
      background-image: url('../img/zonnehof/z23.png');
    } 
    60% {
      background-image: url('../img/zonnehof/z24.png');
    }
    70% {
      background-image: url('../img/zonnehof/z25.png');
    }
    80% {
      background-image: url('../img/zonnehof/z26.png');
    }
    90% {
      background-image: url('../img/zonnehof/z27.png');
    }
    100% {
      background-image: url('../img/zonnehof/z28.png');
    }
  }

.card-portfolio {
    position: relative;
    overflow: hidden;
    border: none;

    @media screen and (min-width: 420px) {
        .img-size {
            height: 200px;
        }
    }
  }

    .card-body {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 3.5rem;
        width: 100%;
        text-align: center;

        .card-title {
            font-size: 1.65vw;
            margin: 0;
            text-transform: uppercase;
            font-weight: 800;
            letter-spacing: 0.1em;
            color: darkgray;
        }
    }

    .card-body {
        position: absolute;
        border-radius: 0.35rem;
        opacity: 0;
        height: 100%;
        transition: opacity 0.25s ease-in-out;
    }

    .card-body .card-title {
        color: black;
        font-weight: var(--fw-reg);
        font-size: 1.65vw;
    }

    @media screen and (min-width: 768px) {
        .card-body:hover {
            opacity: 50;
            background-color: rgba(255, 255, 255, .5);
        }
        .img-size {
            height: 500px;}
        }
