:root {
    --achtergrond-kleur: oklch(20.768% 0.03985 265.767);
    --kaart-achtergrond: oklch(27.95% 0.03688 260.049);
    --accent-kleur: oklch(75.353% 0.13906 232.691);
    --tekst-hoofd: oklch(98.415% 0.00352 248.585);
    --tekst-licht: oklch(71.068% 0.0352 256.828);
    --rand-kleur: oklch(37.17% 0.0392 257.31);
}
*,
*::before,
*::after 
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: Arial, sans-serif;
    background-color: var(--achtergrond-kleur);
    color: var(--tekst-hoofd);
    line-height: 1.6;
    padding: 0;
}

.hoofd-kop {
    text-align: center;
    background: linear-gradient(180deg, oklch(25% 0.03 260%) 0%, var(--achtergrond-kleur) 100%);
    border-bottom: 1px solid var(--rand-kleur);
}

.portfolio-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid oklch(100% 0.00011 271.152 / 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    background-color: oklch(20.768% 0.03985 265.767 / 0.85); 

    @media (min-width: 48rem) {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.6rem 2rem;
    }

    .nav-brand {
        color: var(--tekst-hoofd);
        font-weight: bold;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        list-style: none;
        gap: 0.4rem;
        width: 100%;

        @media (min-width: 48rem) {
            flex-direction: row;
            gap: 1.5rem;
            width: auto;
        }

        li {
            width: 100%;
            @media (min-width: 48rem) {
                width: auto;
            }
        }

        a {
            color: var(--tekst-licht);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
            padding: 0.4rem 0.8rem;
            border-radius: 0.4rem;
            transition: all 0.2s ease;
            display: block;
            text-align: center;

            @media (min-width: 48rem) {
                font-size: 0.9rem;
                padding: 0.3rem 0.7rem;
                text-align: left;
            }

            &:hover {
                color: var(--tekst-hoofd);
                background-color: oklch(100% 0.00011 271.152 / 0.05);
            }

            &.active {
                color: var(--achtergrond-kleur);
                background-color: var(--accent-kleur);
            }
        }
    }
}

.header-content {
    padding: 3rem 1rem 2.5rem; 

    @media (min-width: 48rem) {
        padding: 4rem 1rem 3.5rem;
    }

    .hoofd-titel {
        font-size: 2rem;
        color: var(--tekst-hoofd);
        margin-bottom: 0.5rem;

        @media (min-width: 48rem) {
            font-size: 2.75rem;
        }
    }

    .sub-titel {
        color: var(--accent-kleur);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.85rem;
    }
}

.hoofd-container {
    width: 100%;
    max-width: 70rem;
    margin: 0 auto;
    padding: 1rem;

    @media (min-width: 48rem) {
        padding: 2rem;
    }
}

.fase-sectie {
    background-color: var(--kaart-achtergrond);
    border: 1px solid var(--rand-kleur);
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px oklch(0% 0 0 / 0.1), 0 2px 4px -2px oklch(0% 0 0 / 0.1);

    @media (min-width: 48rem) {
        flex-direction: row; 
        min-height: 21rem;

        &:nth-child(even) {
            flex-direction: row-reverse;
        }
    }

    .fase-afbeelding {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 1.25rem;

        @media (min-width: 48rem) {
            width: 45%;
            height: auto;
            min-height: 100%;
        }

        img {
            width: 100%;
            height: 100%;
            border-radius: 0.8rem;
            object-fit: cover;
        }
    }

    .fase-inhoud {
        padding: 1.5rem;

        @media (min-width: 48rem) {
            width: 55%;
            padding: 2.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .fase-nummer {
            font-size: 0.85rem;
            text-transform: uppercase;
            color: var(--accent-kleur);
            font-weight: bold;
            margin-bottom: 0.25rem;
        }

        .fase-titel {
            font-size: 1.4rem;
            margin-bottom: 1rem;
            border-bottom: 2px solid var(--rand-kleur);
            padding-bottom: 0.5rem;
        }

        .tekst-blok {
            margin-bottom: 1rem;

            &:last-child {
                margin-bottom: 0;
            }
        }

        .onderdeel-label {
            font-weight: bold;
            color: var(--accent-kleur);
            font-size: 0.9rem;
            text-transform: uppercase;
            display: block;
            margin-bottom: 0.2rem;
        }

        .onderdeel-tekst {
            color: var(--tekst-licht);
            font-size: 0.95rem;
        }

        .status-markering {
            background-color: oklch(75.353% 0.13906 232.691 / 0.1);
            padding: 0.75rem;
            border-left: 4px solid var(--accent-kleur);
            border-radius: 0 8px 8px 0;
        }
    }
}

code {
    background-color: oklch(0% 0 0 / 0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: monospace;
}

.code-uitleg-sectie {
    margin: 4rem 0;
    padding: 1rem;

    .sectie-kop {
        text-align: center;
        max-width: 45rem;
        margin: 0 auto 3rem;

        .sectie-hoofdtitel {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
            color: var(--tekst-hoofd);
        }

        .sectie-beschrijving {
            color: var(--tekst-licht);
            font-size: 0.95rem;
        }
    }

    .flowchart-grid {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;

        @media (min-width: 48rem) {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2.5rem;
        }

        .flowchart-kaart {
            background-color: var(--kaart-achtergrond);
            border: 1px solid var(--rand-kleur);
            border-radius: 1rem;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 0.2rem 1rem oklch(0% 0 0 / 0.2);

            @media (min-width: 48rem) {
                &:nth-child(3) {
                    grid-column: span 2;
                }
            }

            &:hover {
                .flowchart-afbeelding img {
                    transform: scale(1.03);
                }
            }

            .flowchart-afbeelding {
                width: 100%;
                min-height: 25rem;
                background-color: oklch(100% 0.00011 271.152 / 0.95);
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: hidden;

                @media (min-width: 48rem) {
                    height: 32rem;
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    padding: 1.5rem;
                    transition: transform 0.3s ease;
                }
            }

            .flowchart-info {
                padding: 1.5rem;
                border-top: 1px solid var(--rand-kleur);
                background-color: oklch(0% 0 0 / 0.15);

                h3 {
                    font-size: 1.2rem;
                    color: var(--tekst-hoofd);
                    margin-bottom: 0.5rem;
                }

                p {
                    color: var(--tekst-licht);
                    font-size: 0.95rem;
                }
            }
        }
    }
}

.hoofd-voet {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--tekst-licht);
    font-size: 0.85rem;
    border-top: 1px solid var(--rand-kleur);
    margin-top: 2rem;
}