/* @font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Variable.woff2') format('woff2'),
         url('../fonts/CabinetGrotesk/CabinetGrotesk-Variable.woff') format('woff'),
         url('../fonts/CabinetGrotesk/CabinetGrotesk-Variable.ttf') format('truetype');
    font-weight: normal;
} */

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Regular.woff2') format('woff2'),
        url('../fonts/CabinetGrotesk/CabinetGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Medium.woff2') format('woff2'),
        url('../fonts/CabinetGrotesk/CabinetGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Bold.woff2') format('woff2'),
        url('../fonts/CabinetGrotesk/CabinetGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Extrabold.woff2') format('woff2'),
        url('../fonts/CabinetGrotesk/CabinetGrotesk-Extrabold.ttf') format('truetype');
    font-weight: 800;
}




@font-face {
    font-family: 'Clash Display';
    src: url('../fonts/ClashDisplay/ClashDisplay-Variable.woff2') format('woff2'),
        url('../fonts/ClashDisplay/ClashDisplay-Variable.woff') format('woff'),
        url('../fonts/ClashDisplay/ClashDisplay-Variable.ttf') format('truetype');
    font-weight: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --beige: #DFDDD1;
    --darkgreen: #374426;
    --darkestgreen: #112D16;
}

body {
    background-color: var(--beige);
    color: var(--darkgreen);
    font-family: 'Cabinet Grotesk';

    display: flex;
    flex-direction: column;
    align-items: center;
}

body.is-loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--darkgreen);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: min(78vw, 360px);
}

.page-loader-logo {
    width: min(56vw, 300px);
    height: auto;
}

.page-loader-logo path {
    fill: var(--beige) !important;
}

.page-loader-bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background-color: rgba(223, 221, 209, 0.25);
}

.page-loader-progress {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background-color: var(--beige);
}

h1 {
    font-family: 'Clash Display', sans-serif;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 7.2vw, 4.3rem);
    font-variation-settings: "wght" 700;
}

h2 {
    color: var(--darkestgreen);
    font-family: 'Clash Display', sans-serif;
    text-transform: uppercase;
    font-variation-settings: "wght" 700;
    font-size: clamp(1.35rem, 6.8vw, 1.85rem)
}

h3 {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(1.6rem, 6.8vw, 2.2rem);
    font-variation-settings: "wght" 700;
    text-transform: uppercase;
}

p {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 400;
}

a {
    list-style-type: none;
    text-decoration: none;
    color: var(--darkgreen);
}

.underline-link{
    text-decoration: underline;
    font-weight: 550;
}

.wrapper {
    max-width: 1500px;
    width: 100%;
    padding: 1.5rem 1.5rem;
}

@media screen and (min-width: 768px) {
    .wrapper {
        padding: 2rem 3rem;
    }
}

@media screen and (min-width: 1024px) {
    .wrapper {
        padding: 2rem 4rem;
    }
}

p {
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.primary-btn {
    background-color: var(--darkgreen);
    color: white;
    font-weight: 500;
    padding: .75rem 1rem;
    border-radius: 200px;
}

.icon {
    position: absolute;
}


.secondary-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    
    width: fit-content;
    border: var(--darkgreen) 1px solid;
    transition: all .3s ease;
    padding: .5rem 1rem;
    border-radius: 100rem;
    margin-top: 1.5em;
}

.secondary-btn:hover {
    background-color: var(--darkgreen);
    color: var(--beige);
}

.secondary-btn svg {
    width: .75rem;
    height: .75rem;
}
.secondary-btn svg path {
    transition: .45s ease;
}
.secondary-btn:hover svg path {
    fill: var(--beige);
}










/* NAV */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    transition: all .3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

#logo-svg {
    height: 1.5rem;
    fill: var(--darkgreen);
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: .5rem;

    transition: all .3s ease;
}

.contact-btn:hover {
    transform: scale(1.1);
}

.contact-btn svg {
    width: .75rem;
    height: .75rem;
}






/* Footer */
footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    padding-bottom: 2rem;
}

footer .footer-wrapper {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

footer .flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

footer .contact {
    gap: 1rem;
}

.links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: .45s ease;
}

.links a:hover {
    transform: scale(1.1);
}

.links h3 {
    text-transform: none;
    font-variation-settings: "wght" 400;
    font-size: 1.75rem;
}

.links svg {
    width: 1rem;
}

.copyright {
    font-size: .75rem;
}

@media screen and (max-width: 900px) {
    footer {
        gap: 2.5rem;
        padding-bottom: 1.5rem;
    }

    footer .footer-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    footer .flex {
        gap: 1.25rem;
    }

    .links {
        width: 100%;
        flex-wrap: wrap;
        row-gap: .75rem;
    }

    .links h3 {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }
}










/* HERO */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 60vh;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .hero {
        gap: 3rem;
    }
}

@media screen and (min-width: 1024px) {
    .hero {
        gap: 4rem;
    }
}

#icon-hero-1 {
    left: 5vw;
    display: none;
}

#icon-hero-2 {
    right: 5vw;
    top: 10vw;
    display: none;
}

@media screen and (min-width: 1024px) {
    #icon-hero-1 {
        left: 10vw;
        display: block;
    }

    #icon-hero-2 {
        right: 10vw;
        display: block;
    }
}


.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.hero-line-mask {
    display: block;
    overflow: visible;
}

.hero-line {
    display: inline-block;
}

.hero-char-mask {
    display: inline-flex;
    overflow: hidden;
    vertical-align: bottom;
}

.hero-char {
    display: inline-block;
    will-change: transform;
}

.hero-char--space {
    width: .28em;
}

.interactiveContainer {
    position: relative;
    z-index: 1;
}

.interactiveDot {
    display: inline-block;
    width: 2em;
    height: 1em;
    border-radius: 100px;
    cursor: pointer;
    z-index: 2;
    position: relative;
    top: 7px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    animation: ScalingLoop 1.5s infinite;
}

#firstDot {
    background-image: url(../images/ik.jpeg);
    animation-delay: 0s;
}

#secondDot {
    background-image: url(../images/ik-2.jpeg);
    animation-delay: .15s;
}

#thirdDot {
    animation-delay: .3s;
}

.interactiveDot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interactiveCard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.01);
    width: fit-content;
    height: fit-content;
    visibility: hidden;
    cursor: grab;
    transition: visibility .7s ease, transform .7s ease;
}

.interactiveCard img {
    width: min(80vw, 400px);
    height: clamp(250px, 50vw, 400px);
    object-fit: cover;
    border-radius: .3em;
}


@keyframes ScalingLoop {
    0% {
        transform: scale(.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(.95);
    }
}

@keyframes SubtleBounce {
    0% {
        transform: scale(.98);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(.98);
    }
}

@media screen and (min-width: 700px) {

    .interactiveDot:hover+.interactiveCard,
    .interactiveCard:hover {
        visibility: visible;
        z-index: 15;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media screen and (max-width: 400px) {
    .interactiveDot {
        display: none;
    }
}











/* MARQUEE */

.marquee {
    overflow: hidden;
    background-color: var(--beige);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

body:not(.projecten-detail-pagina) .marquee {
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: slide 40s linear infinite;
}

.marquee-track--reverse {
    animation-name: slide-reverse;
}

.marquee-text {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(1.35rem, 4.4vw, 1.8rem);
    font-variation-settings: "wght" 700;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 0.5rem;
    flex-shrink: 0;
    color: var(--darkestgreen);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slide-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}



/* Projecten */

.projecten-section {
    padding: 12rem 0;
}

@media (max-width: 1024px) {
    .projecten-section {
        padding: 8.5rem 0;
    }
}

@media (max-width: 640px) {
    .projecten-section {
        padding: 5.5rem 0;
    }
}

.projecten-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.projecten-grid>.project {
    min-width: 0;
}

.projecten-grid>.project:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
}

@media (max-width: 768px) {
    .projecten-grid {
        grid-template-columns: 1fr;
    }

    .projecten-grid>.project:last-child:nth-child(odd) {
        grid-column: auto;
        aspect-ratio: 1 / 1;
    }
}


.projecten-grid .project {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #DFDDD1;
}


.projecten-grid .project>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

    transform: scale(1);
    filter: brightness(.84);
    transition: transform .45s ease, filter .45s ease;
}

.projecten-grid .project>.project-name {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 2;
    background: var(--beige);
    color: var(--darkgreen);
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    padding: .5rem 1.25rem .75rem 0;
    border-bottom-right-radius: 1rem;
    transition: color .45s ease;
}

.projecten-grid .project>.project-name>.project-name-label {
    display: inline-block;
}

.projecten-grid .project>.arrow-icon {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;

    width: 60px;
    height: 60px;
    border-radius: 999px;
    background-color: var(--darkgreen);

    padding: 0;
    transition: width .45s ease, background-color .45s ease;
}

@media (max-width: 640px) {
    .projecten-grid {
        gap: 1rem;
    }

    .projecten-grid .project>.project-name {
        padding: .5rem .8rem .65rem 0;
    }

    .projecten-grid .project>.arrow-icon {
        width: 50px;
        height: 50px;
        right: 0.6rem;
        bottom: 0.6rem;
    }

    .projecten-grid .project>.arrow-icon svg {
        width: 28px;
        height: 28px;
        right: 10px;
    }

    .projecten-grid .project:hover>.arrow-icon {
        width: calc(100% - 1.2rem);
    }
}

.projecten-grid .project>.arrow-icon svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: block;
}

.projecten-grid .project:hover>.project-name {
    color: var(--darkestgreen);
}

.projecten-grid .project:hover>img {
    transform: scale(1.1);
    filter: brightness(1);
}

.projecten-grid .project:hover>.arrow-icon {
    width: calc(100% - 1.5rem);
    background-color: var(--darkestgreen);
}

.projecten-grid .project>div svg {
    display: block;
}






/* About me */

.aboutme-section {
    padding: 9rem 0;
    display: flex;
    align-items: end;
    gap: 1rem;
}

.aboutme-section img {
    max-width: 6rem;
    max-height: fit-content;
}

.aboutme-section p {
    text-transform: uppercase;
    margin-top: 1rem;
    font-family: 'Clash Display', sans-serif;
    max-width: 60rem;
}

@media (max-width: 900px) {
    .aboutme-section {
        padding: 5.5rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .aboutme-section img {
        max-width: 4.5rem;
    }
}

.marquee-tags {
    gap: 1.25rem;
    margin-bottom: 18rem;
}

.marquee-tags h2 {
    font-size: 1.25rem;
    font-variation-settings: "wght" 500;
    border: var(--darkgreen) 2px solid;
    padding: .75rem 2rem;
    border-radius: 100rem;
}

@media (max-width: 900px) {
    .marquee-tags {
        margin-bottom: 8rem;
    }
}

@media (max-width: 640px) {
    .marquee-tags {
        margin-bottom: 4rem;
        gap: .75rem;
    }

    .marquee-tags h2 {
        font-size: 1rem;
        padding: .55rem 1.25rem;
    }

    .hero {
        min-height: 52vh;
        gap: 1.5rem;
    }

    .primary-btn {
        width: 100%;
        max-width: 10rem;
        text-align: center;
    }
}




/* Projectenpagina */

.projecten-detail-pagina .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-detail {
    max-width: 1100px;
    padding: 10rem 0;
}

.project-detail .header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
}

.project-detail .main-img {
    max-height: 55rem;
    width: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

.project-detail .text .project-tag {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

.project-detail .text .time {
    font-weight: 600;
}

.project-detail .text .main-text {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-images {
    padding: 3rem 0;
    display: flex;
    gap: 2rem;
    width: 100%;
    overflow: visible;
}

.project-image-hover {
    position: relative;
    display: block;
    flex: 1 1 0;
    min-width: 0;
}

.project-images .project-image-base {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: .75rem;
    cursor: pointer;
    animation: SubtleBounce 2.5s ease-in-out infinite;
}

.project-image-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.01);
    width: fit-content;
    height: fit-content;
    visibility: hidden;
    z-index: 100;
    pointer-events: none;
    transition: visibility .75s ease, transform .75s ease;
}
.project-image-card:hover {
    cursor: pointer;
}

.project-image-card img {
    width: 1100px;
    max-width: 96vw;
    max-height: 92vh;
    object-fit: cover;
    border-radius: .75rem;
}

@media (min-width: 1100px) {
    .project-image-hover:hover .project-image-card,
    .project-image-card:hover {
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
    }
    
    .project-image-hover:first-child:hover .project-image-card,
    .project-image-hover:first-child .project-image-card:hover {
        transform: translate(calc(-50% + 280px), -50%) scale(1);
    }
    
    .project-image-hover:last-child:hover .project-image-card,
    .project-image-hover:last-child .project-image-card:hover {
        transform: translate(calc(-50% - 280px), -50%) scale(1);
    }
}

@media (max-width: 768px) {
    .project-images {
        flex-direction: column;
        gap: 1rem;
    }

    .project-images .project-image-base {
        width: 100%;
    }

    .project-image-card {
        display: none;
    }
}


.button-wrapper {
    display: flex;
    justify-content: end;
}

.detailproject-marquee {
    margin: 12rem 0;
}

.projects-all {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.projects-all li {
    list-style-type: none;
}
.projects-all a {
    display: flex;
    flex-direction: row;
    text-transform: none;
    align-items: center;
    justify-content: space-between;
    transition: .45s ease all;

    position: relative;
    isolation: isolate;
    padding: 3rem 0;
}
.projects-all a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-color: transparent;
    z-index: -1;
    transition: background-color .45s ease;
}
.projects-all a:hover {
    background-color: transparent;
}
.projects-all a:hover::before {
    background-color: var(--darkgreen);
}
.projects-all a:hover h2, .projects-all a:hover h4 {
    color: var(--beige);
}
.projects-all a:hover svg path {
    fill: var(--beige);
}
.projects-all a:hover .secondary-btn {
    border: var(--beige) 1px solid;
    color: var(--beige);
}

.projects-all a:hover {
    z-index: 10;
}


.projects-all .holder {
    display: flex;
    align-items: center;
}
.projects-all li h3 {
    margin-left: auto;
}
.projects-all .project-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(42vw, 34rem);
    max-height: 80vh;
    object-fit: cover;
    border-radius: .75rem;
    transform: translate(-50%, -50%) scale(.01);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 20;
    transition: transform .45s ease, opacity .45s ease, visibility .45s ease;
}

.projects-all a:hover .project-img {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.projects-all .title {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 3rem;
}
.projects-all .star-icon {
  width: 2rem;
}

@media (max-width: 1024px) {
    .project-detail {
        padding: 7rem 0;
    }

    .project-detail .header {
        padding: 3rem 0;
    }

    .detailproject-marquee {
        margin: 8rem 0;
    }

    .projects-all .title {
        margin-left: 2rem;
        gap: 1.5rem;
    }

    .projects-all a {
        padding: 2.25rem 0;
    }
}

@media (max-width: 768px) {
    .project-detail {
        padding: 4rem 0;
    }

    .project-detail .header {
        padding: 2rem 0;
        gap: .75rem;
    }

    .project-detail .header svg {
        width: 2.75rem;
        height: 2.75rem;
    }

    .project-detail .main-img {
        border-radius: .85rem;
    }

    .project-detail .text .project-tag {
        font-size: 1.1rem;
    }

    .button-wrapper {
        justify-content: flex-start;
    }

    .detailproject-marquee {
        margin: 5rem 0;
    }

    .projects-all a {
        padding: 1.25rem 0;
    }

    .projects-all .holder {
        width: 100%;
        min-width: 0;
    }

    .projects-all .title {
        margin-left: 1rem;
        gap: .75rem;
    }

    .projects-all .title h2 {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }

    .projects-all .secondary-btn {
        margin-left: 1rem;
        flex-shrink: 0;
    }
}

@media (max-width: 520px) {
    .projects-all a {
        align-items: flex-start;
        flex-direction: column;
        gap: .85rem;
    }

    .projects-all .secondary-btn {
        margin-left: 0;
    }

    .projects-all .star-icon {
        width: 1.4rem;
    }

    .projects-all .title {
        margin-left: .75rem;
    }
}

@media (hover: none), (pointer: coarse) {
    .projects-all a::before {
        transition: none;
    }

    .projects-all .project-img {
        display: none;
    }
}