/* =========================

   COLORS

========================= */



:root {

--background: #080808;

--surface: #111111;

--surface-light: #181818;



--purple: #6f42c1;

--purple-light: #956fd6;



--white: #f5f5f5;

--grey-light: #b8b8b8;

--grey: #999999;

--grey-dark: #666666;



--border: #242424;

}





/* =========================

   RESET

========================= */



* {

margin: 0;

padding: 0;

box-sizing: border-box;

}



html {

scroll-behavior: smooth;

}



body {

font-family: Arial, Helvetica, sans-serif;



background:

radial-gradient(

circle at 50% 5%,

rgba(111, 66, 193, 0.18) 0%,

rgba(111, 66, 193, 0.08) 20%,

rgba(8, 8, 8, 0) 45%

),

#080808;



color: var(--white);



line-height: 1.6;

}



img {

max-width: 100%;

display: block;

}



a {

color: inherit;

text-decoration: none;

}



button,

input,

textarea {

font: inherit;

}





/* =========================

   GENERAL

========================= */



section {

max-width: 1200px;



margin: 0 auto;

padding: 100px 40px;

}



.section-label {

color: var(--purple-light);



font-size: 13px;

font-weight: 700;

letter-spacing: 2px;



margin-bottom: 15px;

}



section > h2 {

font-size: 42px;

line-height: 1.1;



margin-bottom: 45px;

}





/* =========================

   HEADER

========================= */



.header {

max-width: 1200px;



margin: 0 auto;

padding: 28px 40px;



display: flex;

justify-content: space-between;

align-items: center;

}



.logo {

font-size: 24px;

font-weight: 800;



letter-spacing: -1px;

}



.logo span {

color: var(--purple);

}



.navigation {

display: flex;

gap: 32px;

}



.navigation a {

color: var(--grey-light);



font-size: 15px;



transition: color 0.2s ease;

}



.navigation a:hover {

color: var(--purple-light);

}





/* =========================

   HERO

========================= */



.hero {

min-height: 78vh;



display: flex;

flex-direction: column;

justify-content: center;



padding-top: 80px;

padding-bottom: 120px;

}



.hero-label {

color: var(--purple-light);



font-size: 13px;

font-weight: 700;



letter-spacing: 3px;



margin-bottom: 24px;

}



.hero h1 {

font-size: clamp(60px, 9vw, 110px);



line-height: 0.95;



letter-spacing: -5px;



margin-bottom: 18px;

}



.hero h1 span {

color: var(--purple);

}



.hero h2 {

max-width: 800px;



color: #d7d7d7;



font-size: clamp(30px, 5vw, 58px);



line-height: 1.05;

letter-spacing: -2px;



margin-bottom: 28px;

}



.hero > p:not(.hero-label) {

max-width: 600px;



color: var(--grey);



font-size: 18px;



margin-bottom: 35px;

}



.button {

width: fit-content;



display: inline-block;



padding: 14px 22px;



background-color: var(--purple);

color: var(--white);



font-size: 14px;

font-weight: 700;



border-radius: 5px;



transition:

background-color 0.2s ease,

transform 0.2s ease;

}



.button:hover {

background-color: var(--purple-light);



transform: translateY(-2px);

}





/* =========================

   WORK

========================= */



.work {

border-top: 1px solid var(--border);

}



.project-grid {

display: grid;



grid-template-columns: repeat(2, 1fr);



gap: 30px;

}



.project-card {

padding: 16px;



background-color: var(--surface);



border: 1px solid var(--border);

border-radius: 8px;



transition:

transform 0.25s ease,

border-color 0.25s ease;

}



.project-card:hover {

transform: translateY(-5px);



border-color: var(--purple);

}



.project-card img,

.project-placeholder {

width: 100%;

height: 300px;



object-fit: cover;



border-radius: 5px;



margin-bottom: 22px;

}



.project-placeholder {

display: flex;

justify-content: center;

align-items: center;



background-color: var(--surface-light);



color: var(--grey-dark);

}



.project-category {

color: var(--purple-light);



font-size: 12px;

font-weight: 700;



letter-spacing: 1px;



text-transform: uppercase;



margin-bottom: 8px;

}



.project-card h3 {

font-size: 28px;



margin-bottom: 10px;

}



.project-card > p:not(.project-category):not(.project-technologies) {

color: #a8a8a8;



margin-bottom: 18px;

}



.project-technologies {

color: #737373;



font-size: 13px;



margin-bottom: 20px;

}



.project-link {

display: inline-block;



color: var(--white);



font-size: 14px;

font-weight: 700;



margin-bottom: 5px;



transition: color 0.2s ease;

}



.project-link:hover {

color: var(--purple-light);

}



.project-grid {

margin-bottom: 45px;

}





/* =========================
   SKILLS
========================= */

.skills {
    position: relative;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.skills h2 {
    margin-bottom: 12px;
}

.skills-intro {
    max-width: 520px;
    color: var(--grey);
    line-height: 1.6;
}


/* =========================
   FLOATING SKILLS
========================= */

.skills-space {
    position: relative;
    width: 100%;
    height: 330px;
    margin-top: 35px;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );
}

.skills-space::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -120px;
    width: 520px;
    height: 220px;
    transform: translateX(-50%);
    background: rgba(111, 66, 193, 0.18);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.floating-skill {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;
    height: 72px;
    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.82);

    color: rgba(245, 245, 245, 0.68);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    z-index: 2;
    will-change: transform;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.floating-skill.skill-strong {
    min-width: 82px;
    height: 82px;

    border-color: rgba(149, 111, 214, 0.9);
    background: rgba(111, 66, 193, 0.16);
    color: var(--white);

    box-shadow:
        0 0 25px rgba(111, 66, 193, 0.24),
        inset 0 0 20px rgba(111, 66, 193, 0.08);
}

.floating-skill:hover {
    z-index: 5;
    border-color: var(--purple-light);
    background: rgba(111, 66, 193, 0.18);
    color: var(--white);

    box-shadow:
        0 0 25px rgba(111, 66, 193, 0.28),
        0 0 50px rgba(111, 66, 193, 0.12);
}

.floating-skill.skill-strong:hover {
    background: rgba(111, 66, 193, 0.28);

    box-shadow:
        0 0 22px rgba(111, 66, 193, 0.48),
        0 0 55px rgba(111, 66, 193, 0.18);
}


/* =========================
   SKILLS LEGEND
========================= */

.skills-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 8px;

    color: var(--grey-dark);
    font-size: 12px;
}

.skills-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.legend-dot.strong {
    border-color: var(--purple);
    background: var(--purple);
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.6);
}


/* =========================

   ABOUT

========================= */



.about {

border-top: 1px solid var(--border);

}



.about-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 70px;
    align-items: center;
}

.about-text {
    order: 1;
}

.about-image {
    order: 2;
}



.about-image img {

width: 100%;

height: 460px;



object-fit: cover;



border-radius: 8px;



border: 1px solid var(--border);

}



.about-text h3 {

max-width: 550px;



font-size: 32px;

line-height: 1.2;



margin-bottom: 25px;

}



.about-text p {

max-width: 650px;



color: #a8a8a8;



font-size: 17px;

line-height: 1.8;



margin-bottom: 18px;

}





/* =========================

   CONTACT

========================= */



.contact {

border-top: 1px solid var(--border);

}



.contact > p:not(.section-label) {

color: var(--grey);



margin-top: -25px;

margin-bottom: 35px;

}



.contact form {

max-width: 650px;



display: flex;

flex-direction: column;



gap: 10px;

}



.contact label {

color: #cfcfcf;



font-size: 13px;

font-weight: 600;



margin-top: 12px;

}



.contact input,

.contact textarea {

width: 100%;



padding: 14px 15px;



background-color: var(--surface);

color: var(--white);



border: 1px solid #303030;

border-radius: 5px;



outline: none;



transition: border-color 0.2s ease;

}



.contact input:focus,

.contact textarea:focus {

border-color: var(--purple);

}



.contact textarea {

min-height: 150px;



resize: vertical;

}



.contact button {

width: fit-content;



margin-top: 15px;

padding: 14px 22px;



background-color: var(--purple);

color: var(--white);



border: none;

border-radius: 5px;



font-weight: 700;



cursor: pointer;



transition:

background-color 0.2s ease,

transform 0.2s ease;

}



.contact button:hover {

background-color: var(--purple-light);



transform: translateY(-2px);

}





/* =========================

   PROJECT DETAIL

========================= */



.project-detail {

max-width: 900px;

}



.back-link {

display: inline-block;



color: var(--grey);



font-size: 14px;



margin-bottom: 50px;

}



.back-link:hover {

color: var(--purple-light);

}



.project-detail h1 {

font-size: clamp(48px, 8vw, 85px);



line-height: 1;

letter-spacing: -4px;



margin-bottom: 10px;

}



.project-detail .project-category {

color: var(--purple-light);

}



.project-year {

color: #777777;



margin-bottom: 40px;

}



.project-detail-image {

width: 100%;

max-height: 600px;



object-fit: cover;



border-radius: 8px;



margin-bottom: 60px;

}



.project-detail .project-placeholder {

height: 450px;



margin-bottom: 60px;

}



.project-detail h2 {

font-size: 26px;



margin-top: 45px;

margin-bottom: 15px;

}



.project-detail > p {

color: #a8a8a8;



font-size: 17px;

}





/* =========================

   FOOTER

========================= */



.footer {

max-width: 1200px;



margin: 0 auto;



padding: 35px 40px;



border-top: 1px solid var(--border);



color: var(--grey-dark);



font-size: 13px;

}





/* =========================

   RESPONSIVE

========================= */



@media (max-width: 800px) {



section {

padding: 75px 24px;

}



.header {

padding: 24px;

}



.navigation {

gap: 18px;

}



.navigation a {

font-size: 13px;

}



.hero {

min-height: auto;



padding-top: 100px;

padding-bottom: 100px;

}



.hero h1 {

letter-spacing: -3px;

}



.project-grid {

grid-template-columns: 1fr;

}



.project-card img,

.project-placeholder {

height: 260px;

}



section > h2 {

font-size: 36px;

}



.footer {

padding: 30px 24px;

}



.about-content {

display: grid;

grid-template-columns: 1fr 380px;

gap: 70px;

align-items: center;

}



.about-image {

max-width: 400px;

}



.about-image img {

height: 450px;

}
}





@media (max-width: 550px) {



.header {

align-items: flex-start;

}



.navigation {

display: none;

}



.hero h1 {

font-size: 58px;

}



.hero h2 {

font-size: 32px;



letter-spacing: -1px;

}



.hero > p:not(.hero-label) {

font-size: 16px;

}



.project-card {

padding: 12px;

}



.project-card img,

.project-placeholder {

height: 220px;

}



.about > p:last-child {

font-size: 17px;

}



.about-content {

grid-template-columns: 1fr;

gap: 40px;

}



.about-text {

order: 1;

}



.about-image {

order: 2;

}



.about-image img {

width: 100%;

max-width: 400px;

height: auto;

}

}

/* =========================
   FLOATING SKILLS - MOBILE
========================= */

@media (max-width: 800px) {
    .skills-space {
        height: 290px;
        margin-top: 25px;
    }

    .floating-skill {
        min-width: 58px;
        height: 58px;
        padding: 0 11px;
        font-size: 10px;
    }

    .floating-skill.skill-strong {
        min-width: 66px;
        height: 66px;
    }

    .skills-legend {
        gap: 18px;
        flex-wrap: wrap;
    }
}

@media (max-width: 550px) {
    .skills-space {
        height: 270px;
    }

    .floating-skill {
        min-width: 52px;
        height: 52px;
        padding: 0 9px;
        font-size: 9px;
    }

    .floating-skill.skill-strong {
        min-width: 60px;
        height: 60px;
    }
}

/* =====================================================
   PROJECT CASE STUDY
===================================================== */

.case-study {
    overflow: visible;
}


/* =====================================================
   PROJECT HERO
===================================================== */

.project-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 120px;
}

.project-hero .back-link {
    display: inline-block;
    margin-bottom: 60px;
    color: var(--grey);
    transition: color 0.25s ease;
}

.project-hero .back-link:hover {
    color: var(--purple-light);
}

.project-hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.project-category {
    margin-bottom: 18px;
    color: var(--purple-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-hero h1 {
    margin: 0 0 25px;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.95;
}

.project-intro {
    max-width: 550px;
    margin-bottom: 40px;
    color: var(--grey-light);
    font-size: 1.1rem;
    line-height: 1.7;
}


/* META */

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-meta-item span {
    color: var(--grey);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-meta-item strong {
    max-width: 400px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
}


/* HERO IMAGE */

.project-hero-visual {
    width: 100%;
}

.project-hero-image {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--grey);
}


/* =====================================================
   STICKY PROJECT STORY
===================================================== */

.project-story {
    position: relative;

    max-width: none;
    margin: 0;

    padding: 0 40px;

    /*
     * Fallback.
     * JavaScript past dit aan volgens het aantal stappen.
     */
    height: 400vh;
}


/* Dit scherm blijft staan tijdens het scrollen */

.story-container {
    position: sticky;
    top: 0;

    width: 100%;
    max-width: 1200px;
    height: 100vh;

    margin: 0 auto;

    overflow: hidden;
}


/* =====================================================
   SCROLLBAR IN HET MIDDEN
===================================================== */

.story-timeline {
    position: absolute;

    top: 15%;
    bottom: 15%;
    left: 50%;

    width: 8px;

    transform: translateX(-50%);

    background: #242424;

    border-radius: 999px;

    z-index: 10;
}


/* Oude timeline-lijn niet meer nodig */

.story-line {
    display: none;
}


/* Paarse bewegende scrollbar */

.story-progress {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    border-radius: 999px;

    background: linear-gradient(
        to bottom,
        var(--purple-light),
        var(--purple)
    );

    box-shadow:
        0 0 12px rgba(149, 111, 214, 0.7),
        0 0 30px rgba(111, 66, 193, 0.35);

    transform: translateY(0);

    will-change: transform;
}


/* =====================================================
   STORY STEPS
===================================================== */

.story-steps {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}


/*
 * Alle stappen liggen boven elkaar.
 * JavaScript bepaalt welke zichtbaar is.
 */

.story-step {
    position: absolute;
    inset: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}


/* We gebruiken geen bolletjes */

.story-dot {
    display: none;
}


/* =====================================================
   STORY CONTENT
===================================================== */

.story-content {
    position: relative;

    width: calc(100% - 90px);
    max-width: 470px;

    padding: 32px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0)
        ),
        var(--surface);

    opacity: 0;

    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        border-color 0.55s ease,
        box-shadow 0.55s ease;

    will-change: transform, opacity;
}


/* Oneven stappen links */

.story-step-left .story-content {
    grid-column: 1;
    justify-self: start;

    transform: translateY(70px);
}


/* Even stappen rechts */

.story-step-right .story-content {
    grid-column: 2;
    justify-self: end;

    transform: translateY(70px);
}


/* Nummer */

.story-number {
    display: block;

    margin-bottom: 15px;

    color: var(--purple-light);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}


/* Titel */

.story-content h2 {
    margin: 0 0 18px;

    color: var(--white);

    font-size: clamp(1.6rem, 3vw, 2.3rem);
}


/* Tekst */

.story-content p {
    margin: 0;

    color: var(--grey-light);

    line-height: 1.7;
}


/* Afbeelding */

.story-image {
    display: block;

    width: 100%;
    max-height: 300px;

    margin-top: 25px;

    object-fit: cover;

    border-radius: 12px;
}


/* =====================================================
   ACTIEVE STAP
===================================================== */

.story-step.is-active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}

.story-step.is-active .story-content {
    opacity: 1;

    transform: translateY(0);

    border-color: rgba(149, 111, 214, 0.45);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 35px rgba(111, 66, 193, 0.1);
}


/* =====================================================
   VORIGE STAP
===================================================== */

.story-step.is-before {
    opacity: 0;
    visibility: hidden;
}

.story-step.is-before .story-content {
    opacity: 0;

    transform: translateY(-70px);
}


/* =====================================================
   PROJECT ZONDER STORY
===================================================== */

.project-story-empty {
    max-width: 1200px;

    margin: 0 auto;

    padding: 80px 40px 120px;

    color: var(--grey);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .project-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .project-hero-content {
        max-width: 700px;
    }

    .project-hero-image {
        max-height: 500px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .project-hero {
        padding: 50px 20px 80px;
    }

    .project-hero .back-link {
        margin-bottom: 40px;
    }

    .project-meta {
        gap: 30px;
    }


    /* STORY */

    .project-story {
        padding: 0 20px;
    }

    .story-container {
        height: 100vh;
    }


    /* Scrollbar naar links op gsm */

    .story-timeline {
        top: 15%;
        bottom: 15%;

        left: 8px;

        width: 6px;

        transform: none;
    }

    .story-progress {
        height: 70px;
    }


    /* Content rechts van scrollbar */

    .story-step {
        display: flex;

        align-items: center;

        padding-left: 40px;
    }

    .story-step-left .story-content,
    .story-step-right .story-content {
        width: 100%;
        max-width: none;

        transform: translateY(60px);
    }

    .story-step.is-active .story-content {
        transform: translateY(0);
    }

    .story-step.is-before .story-content {
        transform: translateY(-60px);
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .story-content,
    .story-step,
    .story-progress {
        transition: none;
    }

}