* {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
    --black: #050505;
    --white: #ffffff;
    --glass-dark: rgba(12, 12, 12, 0.74);
    --glass-light: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.24);
    --soft-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

body {
    background: #f4f4f1;
    color: var(--black);
}

img {
    display: block;
}

/*----NAV BAR ---*/

.thisPage {
    color: black;
    background-color: white;
}

nav {
    display: flex;
    justify-content: space-around;
    height: 70px;
    background-image: linear-gradient(black, rgb(56, 56, 56))
}

nav a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 25px;
}

#hamburger{
    display: none;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

#hamburger:focus-visible,
nav a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -3px;
}

@media screen and (max-width: 768px){
    #menu{
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.5s ease;

    }

    #menu.open{
        max-height: 500px;
        display: flex;
        flex-direction: column;
    }

    #hamburger{
        display: block;
        font-size: 40px;
        text-align: center;
        padding: 30px 0;
    }

    nav{
        display: block;
        height: auto;
        transition: height 7s;

    }

    nav a{
        font-size: 40px;
        padding: 30px 0;
    }
}

/* ---- FOOTER ----*/
footer {
    display: flex;
    height: 70px;
    background-image: linear-gradient(rgb(56, 56, 56), black);
    color: white;
    justify-content: center;
    align-items: center;
}

/** ---- PAGE TITLE **/

h1 {
    text-align: center;
    margin: 28px 20px;
    font-weight: 700;
    line-height: 1.1;
}

/** ---- MAIN ---- **/


#introduction {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.11), transparent 28%),
        var(--black);
}

#introduction img {
    grid-column: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#introImg {
    width: 100%;
    height: 650px;
}

#introText {
    color: white;
    grid-column: 1/3;
    font-size: clamp(30px, 4vw, 40px);
    margin: auto 75px;
    padding: 38px;
    background: var(--glass-dark);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#introText p {
    font-weight: 200;
}

@media screen and (max-width: 768px) {
    #introText {
        margin: 100px 24px;
        padding: 28px;
    }

    #introImg {
        display: none;
    }


    #introduction {
        grid-template-columns: 1fr;
    }
}

/*---- JEUGD ----*/
#jeugd {
    min-height: 650px;
    font-size: clamp(28px, 3.3vw, 35px);
    font-weight: 200;
    display: flex;
    align-items: center;
}

#jeugd p {
    margin: 75px;
    padding: 36px;
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/*-- LA HAINE INTRODUCTION ---*/

#laHaineIntro {
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.12), transparent 25%),
        var(--black);
    min-height: 650px;
    font-size: clamp(28px, 3.3vw, 35px);
    font-weight: 200;
    display: flex;
    align-items: center;
    color: white;
}

#laHaineIntro p {
    margin: 75px;
    padding: 36px;
    background: var(--glass-dark);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/*--- ANDERE WERKEN ---*/

#andereWerken {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#andereWerken img {
    grid-column: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#werkenImg {
    width: 100%;
    height: 650px;
}

#werkenText {
    color: rgb(0, 0, 0);
    grid-column: 1/3;
    font-size: clamp(30px, 4vw, 40px);
    margin: auto 75px;
    padding: 38px;
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

#werkenText p {
    font-weight: 200;
}

@media screen and (max-width: 768px) {
    #andereWerken {
        grid-template-columns: 1fr;
    }

    #werkenImg {
        display: none;
    }

    #werkenText {
        margin: 100px 24px;
        padding: 28px;
    }

}

@media screen and (max-width: 768px) {
    #jeugd p,
    #laHaineIntro p {
        margin: 24px;
        padding: 28px;
    }
}

/* --- POEM **/

#LaHaine {
    font-weight: 900;
    letter-spacing: 0;
    animation: poemTitleReveal 0.8s ease both;

}

#poemMain::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: var(--poem-progress, 0%);
    height: 4px;
    background: currentColor;
    mix-blend-mode: difference;
    transition: width 0.08s linear;
}

#poemOne {
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: black;
    align-items: start;
    min-height: 120vh;
    transition: background-color 0.4s ease;
}

#poemImgOne {
    grid-column: 1;
    position: sticky;
    top: 100px;
    height: 400px;
    justify-self: center;
    align-self: start;
    margin: 0;
    opacity: 0.72;
    transform: translateY(56px) scale(0.96);
    filter: blur(2px);
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}

#poemImgOne img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#poemTextOne {
    color: white;
    grid-column: 2 / 4;
    font-size: 40px;
    margin: auto 75px;
    max-width: 980px;
    line-height: 1.22;
    text-wrap: balance;
    padding-left: 28px;
    border-left: 4px solid rgba(255, 255, 255, 0.76);
    opacity: 0;
    transform: translateY(56px);
    transition: opacity 1s ease, transform 1s ease;
}

#poemTextOne p {
    font-weight: 200;
}

/* ---- POEM TWO ---*/

#poemTwo {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: rgb(255, 255, 255);
    min-height: 120vh;
    transition: background-color 0.4s ease;
}

#poemImgTwo {
    grid-column: 3;
    position: sticky;
    top: 100px;
    height: 400px;
    justify-self: center;
    align-self: start;
    margin: 0;
    opacity: 0.72;
    transform: translateY(56px) scale(0.96);
    filter: blur(2px);
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}

#poemImgTwo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#poemTextTwo {
    color: black;
    grid-column: 1 / 3;
    font-size: 40px;
    margin: 0 75px;
    max-width: 980px;
    line-height: 1.22;
    text-wrap: balance;
    padding-left: 28px;
    border-left: 4px solid rgba(0, 0, 0, 0.72);
    opacity: 0;
    transform: translateY(56px);
    transition: opacity 1s ease, transform 1s ease;
}

#poemTextTwo p {
    font-weight: 200;
}


/*--- POEM THREE ---- */

#poemThree {
    background-color: black;
    color: white;
    height: 120vh;
    display: flex;
    transition: background-color 0.4s ease;
}

#poemThree article {
    font-size: 30px;
    font-weight: 200;
    margin: auto;
    max-width: 980px;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
    padding: 0 38px;
    border-top: 2px solid rgba(255, 255, 255, 0.55);
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    opacity: 0;
    transform: translateY(56px) scale(0.94);
    transition: opacity 1s ease, transform 1s ease;
}

/*------ POEM FOUR ----- */

#poemFour {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: rgb(255, 255, 255);
    height: 120vh;
    transition: background-color 0.4s ease;
}

#poemFour img {
    grid-column: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#poemImgFour {
    width: 100%;
    height: 650px;
    margin: auto;
    opacity: 0.72;
    transform: translateY(56px) scale(0.96);
    filter: blur(2px);
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}

#poemTextFour {
    color: rgb(0, 0, 0);
    grid-column: 1/3;
    font-size: 40px;
    margin: auto 75px;
    max-width: 980px;
    line-height: 1.22;
    text-wrap: balance;
    padding-left: 28px;
    border-left: 4px solid rgba(0, 0, 0, 0.72);
    opacity: 0;
    transform: translateY(56px);
    transition: opacity 1s ease, transform 1s ease;
}

#poemTextFour p {
    font-weight: 200;
}

#poemOne.is-visible #poemTextOne,
#poemOne.is-visible #poemImgOne,
#poemTwo.is-visible #poemTextTwo,
#poemTwo.is-visible #poemImgTwo,
#poemThree.is-visible article,
#poemFour.is-visible #poemTextFour,
#poemFour.is-visible #poemImgFour {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

#poemOne.is-visible #poemImgOne,
#poemTwo.is-visible #poemImgTwo,
#poemFour.is-visible #poemImgFour {
    animation: poemImageFloat 5s ease-in-out infinite;
}

@keyframes poemTitleReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes poemImageFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    #LaHaine,
    #poemTextOne,
    #poemTextTwo,
    #poemThree article,
    #poemTextFour,
    #poemImgOne,
    #poemImgTwo,
    #poemImgFour {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

@media screen and (max-width: 768px) {

    #poemImgFour {
        display: none;
    }

    #poemOne,
    #poemTwo,
    #poemThree,
    #poemFour {
        display: grid;
        grid-template-columns: 1fr;
    }

    #poemOne,
    #poemTwo,
    #poemThree,
    #poemFour p {
        display: flex;
        text-align: center;
        align-items: center;
        font-size: 40px;
    }

    #poemOne {
        grid-template-columns: 1fr;
    }

    #poemImgOne {
        position: sticky;
        inset: 0;
        top: 0;
        height: 100%;
        z-index: 0; 
    }

    #poemImgOne img {
        margin: auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #poemTextOne {
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(6px);
        padding: 16px;
        border-radius: 16px;
        border-left: 0;
        line-height: 1.18;
    }

    #poemImgTwo{
        display: none;
    }

    #poemTextTwo,
    #poemTextFour {
        margin: auto 32px;
        padding-left: 18px;
        line-height: 1.18;
    }

    #poemThree article {
        margin: auto 32px;
    }

}

/*--- GALLERY ---*/

#mainImage img {
    width: 100%;
    max-height: 72vh;
    object-fit: cover;
}

#containerGallery img {
    width: min(400px, 100%);
    height: 240px;
    object-fit: cover;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#containerGallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
}

#containerGallery {
    display: flex;
    justify-content: center;
    margin: 50px;
    gap: 28px;
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
        linear-gradient(135deg, #ececec, #cfcfcf);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#containerGallery h3 {
    margin: 20px;
    text-align: center;
    font-size: clamp(24px, 4vw, 30px);

}

.gallerySection {
    background-color: rgba(255, 255, 255, 0.58);
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

}

@media screen and (max-width: 768px) {
    #containerGallery {
        flex-direction: column;
        margin: 24px;
        padding: 18px;
    }
}
