@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --text: #def0f2;
    --background: #050a0a;
    --primary: #a2d1d7;
    --secondary: #2e3c6b;
    --accent: #6167bd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--background);
    color: var(--text);
}

header {
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: start;
}

header p {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary);
}

nav {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    gap: 20px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(162, 209, 215, 0.6);
}

main {
    display: flex;
    width: 100%;
    min-height: fit-content;
    padding: 0;
    display: flex;
    justify-content: center;
    padding: 5vh;
}

p {
    font-family: 'Inter', 'sans-serif';
}

.cvCard {
    width: 600px;
    height: auto;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    position: relative;
    border-radius: 15px;
    background: transparent;
    padding: 5px;
    gap: 40px;
}

/* blurred border behind it */
.cvCard::before {
    content: "";
    position: absolute;
    inset: -8px;
    /* roughly your border thickness */
    border-radius: inherit;
    border: 10px solid var(--primary);
    filter: blur(3px);
    /* blur strength */
    opacity: 0.9;
    /* optional */
    pointer-events: none;
    z-index: -1;
    /* behind the card */
}

.meCard {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: space-around;
    text-align: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
}


.cvCard article {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: space-around;
    text-align: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
}

/*
projects.php
*/

.subpageCard {
    /* responsive width with a sensible cap */
    width: min(80vw, 1100px);
    height: auto;
    max-width: 1100px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    position: relative;
    border-radius: 15px;
    background: transparent;
    padding: 5px;
    gap: 40px;
    /* remove native fieldset border if used */
    border: none;
    /* make space at the top for the legend cut-out */
    padding-top: 1.5rem;
    margin: 0 auto;
}

/* blurred border behind it */
.subpageCard::before {
    content: "";
    position: absolute;
    inset: -8px;
    /* roughly your border thickness */
    border-radius: inherit;
    border: 10px solid var(--primary);
    filter: blur(3px);
    /* blur strength */
    opacity: 0.9;
    /* optional */
    pointer-events: none;
    z-index: -1;
    /* behind the card */
}

/* Legend styling: visually cut-out the glowing border */
fieldset.subpageCard legend {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    padding: 0 12px;
    background: var(--background);
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    border-radius: 6px;
}

.subpageCard article {
    margin-top: 30px;
    display: flex;
    flex-direction: column !important;
    width: 100%;
    height: auto;
    justify-content: space-around;
    text-align: center;
    gap: 10px;
}

.projectHighlight {
    display: flex;
    padding: 10px 10px 20px 10px;
}

.projectHighlight span {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 10px;
    width: 50%;
    padding: 10px;
}

.projectTitleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.projectTitleRow h3 {
    margin: 0;
    color: var(--primary);
}

.projectRepoLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: 10px;
    border: 1px solid rgba(162, 209, 215, 0.55);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    background: linear-gradient(180deg, rgba(46, 60, 107, 0.55), rgba(5, 10, 10, 0.9));
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.projectRepoLink:hover,
.projectRepoLink:focus-visible {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(97, 103, 189, 0.5), rgba(46, 60, 107, 0.75));
    transform: translateY(-1px);
}

.projectRepoLink:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


.subpageCard h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    padding-bottom: 5px;
}

.indexImgs {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 15px;
    padding-bottom: 8px;
    max-width: 50%;
}

.projectImagePhone {
    display: block;
    width: 100%;
    width: auto;
    border-radius: 10px;
    overflow: hidden;
    justify-self: center;
}

.projectImagePhone img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/*
skills
*/

.projectHighlightSkills {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
}

.projectHighlightSkills .skillBar {
    width: min(420px, 100%);
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.projectHighlightSkills .skillSegment {
    height: 100%;
    display: block;
}

.projectHighlightSkills .skillSegment.php {
    width: 70%;
    background: #8a5cf6;
}

.projectHighlightSkills .skillSegment.html {
    width: 10%;
    background: #3b82f6;
}

.projectHighlightSkills .skillSegment.css {
    width: 10%;
    background: #f97316;
}

.projectHighlightSkills .skillSegment.js {
    width: 10%;
    background: #facc15;
}

.projectHighlightSkills .skillLegend {
    display: flex;
    flex-direction: row;
    width: 80%;
    gap: 8px 16px;
}

.projectHighlightSkills .legendItem {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.projectHighlightSkills .legendColor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.projectHighlightSkills .legendColor.php {
    background: #8a5cf6;
}

.projectHighlightSkills .legendColor.html {
    background: #3b82f6;
}

.projectHighlightSkills .legendColor.css {
    background: #f97316;
}

.projectHighlightSkills .legendColor.js {
    background: #facc15;
}

.onzeKlant {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(162, 209, 215, 0.45);
    background:
        linear-gradient(135deg, rgba(97, 103, 189, 0.22), rgba(46, 60, 107, 0.32)),
        radial-gradient(circle at top right, rgba(162, 209, 215, 0.18), rgba(5, 10, 10, 0.9) 65%);
}

.profilePhoto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(162, 209, 215, 0.65);
    flex-shrink: 0;
}

.profilePhoto img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.klantInfo {
    display: flex;
    width: auto;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.klantInfo h4 {
    color: var(--primary);
    font-size: 16px;
}

.klantInfo h3 {
    color: var(--primary);
    font-size: 20px;
}

.klantInfo p {
    font-size: 14px;
    line-height: 1.4;
}

.klantInfo a {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(162, 209, 215, 0.6);
}

.klantInfo a:hover,
.klantInfo a:focus-visible {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.klantInfo a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* photoGallery */

.imgGallery {
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: auto;
}

.imgGallery h2 {
    text-align: left;
    margin-left: 10px;
    color: var(--primary);
}

.imgGallery .warning {
    font-size: 14px;
    color: orange;
    text-align: left;
    margin-left: 10px;
}

.galleryContainer {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: auto;
    justify-content: space-evenly;
    margin-top: 10px;
}

.galleryGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: min-content;
}

.galleryImgs {
    min-width: 34%;
}

.videoContainer {
    width: 100%;
    height: auto;

    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(162, 209, 215, 0.35);
    background: rgba(5, 10, 10, 0.6);
}

.videoContainer video {
    display: block;
    width: 100%;
    height: auto;
}

.imgContainer {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.imgContainer img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Project contact section */

.projectContactSection {
    width: 100%;
    height: auto;
    padding: 100px 0px;
}

.contactArticle {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: stretch;
    padding: 10px 16px 24px;
}

.contactArticle span {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 50%;
    padding: 20px;
}

.contactCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
    border: 1px solid rgba(162, 209, 215, 0.4);
    background:
        linear-gradient(180deg, rgba(46, 60, 107, 0.18), rgba(5, 10, 10, 0.9)),
        radial-gradient(circle at top right, rgba(162, 209, 215, 0.12), transparent 58%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contactCardAccent {
    border-color: rgba(162, 209, 215, 0.7);
    background:
        linear-gradient(140deg, rgba(97, 103, 189, 0.26), rgba(46, 60, 107, 0.3)),
        radial-gradient(circle at top right, rgba(162, 209, 215, 0.18), rgba(5, 10, 10, 0.92) 65%);
}

.contactArticle h2 {
    margin: 0;
    color: var(--primary);
    font-size: 24px;
}

.contactArticle p {
    line-height: 1.55;
    font-size: 15px;
    color: rgba(222, 240, 242, 0.95);
}

.contactLink {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(162, 209, 215, 0.55);
    padding: 8px 14px;
    background: linear-gradient(180deg, rgba(97, 103, 189, 0.35), rgba(46, 60, 107, 0.75));
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contactLink:hover,
.contactLink:focus-visible {
    transform: translateY(-1px);
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(97, 103, 189, 0.62), rgba(46, 60, 107, 0.95));
}

.contactLink:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.projectContactSection a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

@media screen and (max-width: 1280px) {
    .projectHighlight {
        align-items: center;
    }

    .projectHighlight span {
        width: 100%;
    }

    .indexImgs {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        max-width: 30%;
    }

}

@media screen and (max-width: 900px) {
    .galleryGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projectTitleRow {
        justify-content: center;
    }

    .projectHighlight {
        flex-direction: column-reverse;
        align-items: center;
    }

    .indexImgs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 90%;
    }

    .projectHighlight span,
    .galleryWrap {
        width: 100%;
    }

    .onzeKlant {
        flex-direction: column;
        align-items: flex-start;
    }

    .galleryContainer {
        flex-direction: column;
        align-items: center;
    }

    .galleryGrid {
        width: 100%;
    }

    .contactArticle {
        flex-direction: column;
        gap: 14px;
        padding: 10px 8px 20px;
    }

    .contactArticle span {
        width: 100%;
        padding: 18px;
    }
}

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

    .profilePhoto {
        width: 100px;
        height: 100px;
    }
}

/*
end projects.php 
*/

.meCard .imgContainer {
    width: 240px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.meCard .imgContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cardHalf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
}

#iconSlider {
    max-width: 300px;
    overflow-x: hidden;
    width: 100%;
    border-radius: 10px;
}

#track {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.codingIcon {
    min-width: 65px !important;
    min-height: 65px !important;
    padding: 10px;
    background: var(--secondary);
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 90%);
    border-radius: 10px;
    border: 2px solid var(--accent);
    flex: 0 0 auto;
    margin-left: 10px;
}

.codingIcon svg {
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

@media screen and (max-width: 768px) {
    main {
        padding: 5vh;
    }

    .cvCard {
        width: 100%;
    }

    .cvCard article {
        gap: 20px;
    }

    .meCard {
        flex-direction: column-reverse !important;
    }

    .cvCard .imgContainer {
        width: 80%;
        aspect-ratio: 1 / 1;
    }

    .cvCard .imgContainer img {
        object-position: 0px 10%;
    }

    .cardHalf {
        width: 50%;
    }

    .codingIcon {
        min-width: 50px !important;
        min-height: 50px !important;
        padding: 7px !important;
        margin-left: 5px !important;
    }
}

@media screen and (max-width: 550px) {
    h3 {
        font-size: 15px;
    }

    h1 {
        font-size: 25px;
    }

    p {
        font-size: 12px;
    }
}

/* Scholen en opleidingen */

.textHalf {
    max-width: 40%;
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.textHalf h2 {
    font-size: 20px;
    font-weight: bold;
    border-bottom: 2px solid var(--primary);

    color: var(--primary);
}

.textHalf p {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.textHalf a {
    color: var(--accent);
    font-style: italic;
}

.schoolTrack {
    border: 3px solid var(--primary);
    border-radius: 10px;
    padding: 10px;
    height: 100%;
}

.loopbaanTitle {
    font-weight: bold;
    color: var(--primary);
    text-align: center;
}

.schoolListing {
    text-align: left;
    width: 100%;
}

.schoolListing h3 {
    font-size: 16px;
    color: var(--primary);
}

.schoolListing p {
    font-size: 14px;
}

.schoolListing a {
    color: var(--accent);
    text-decoration: none;
    font-style: italic;

}

.br-line {
    height: 30px;
    width: 80%;
    border-left: 5px dotted gray;
    margin: 5px 0;
}

.schoolInfo {
    gap: 5px;
}

/*Projecten sectie*/

.projectenArticle {
    width: 100%;
    display: flex;
    flex-direction: column !important;
    align-items: center;
    gap: 15px;
}

.projectenArticle h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    padding-bottom: 5px;
}

.projectenContainer {
    width: 100%;
    gap: 18px;
    height: 100%;
    padding: 12px;
}

.projectListing {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid rgba(162, 209, 215, 0.45);
    background: linear-gradient(180deg, rgba(46, 60, 107, 0.25), rgba(5, 10, 10, 0.9));
    min-height: 220px;
    
    color: white;
    text-decoration: none;
}

.projectListing .imgContainer {
    display: flex;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 100%;
    margin: 0 auto;
    gap: 10px;
    overflow: hidden;
}

.projectListing img {
    width: calc(50% - 10px);
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}


.projectListing h3 {
    color: var(--primary);
    font-size: 18px;
}

.projectListing p {
    font-size: 14px;
    line-height: 1.4;
}

.aboutMe {
    display: flex;
    flex-direction: column !important;
    gap: 12px;
    text-align: left;
    max-width: 600px;
}

.aboutMe h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0px;
}

.aboutMe span {
    color: var(--text);
    text-align: start;
    padding: 10px;
    gap: 10px;
}

.aboutMe span a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}



.aboutMe p {
    line-height: 1.4;
}

.aboutMe h3 {
    font-size: 18px;
    color: var(--primary);
    margin-top: 6px;
}

.aboutMeHighlight {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 30px;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(162, 209, 215, 0.45);
    background:
        linear-gradient(135deg, rgba(97, 103, 189, 0.22), rgba(46, 60, 107, 0.32)),
        radial-gradient(circle at top right, rgba(162, 209, 215, 0.18), rgba(5, 10, 10, 0.9) 65%);
}

.aboutMeHighlight p {
    font-weight: bold;
}

.codeerTalen {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
}

.ERDFotos {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    height: auto;
    gap: 10px;
    justify-content: center;
}

ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 6px 0 0;
}

ul li {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(162, 209, 215, 0.5);
    background: linear-gradient(180deg, rgba(46, 60, 107, 0.35), rgba(5, 10, 10, 0.85));
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(162, 209, 215, 0.5);
}

ul li:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(97, 103, 189, 0.5), rgba(46, 60, 107, 0.85));
}

.cvCard .footer {
    padding: 100px;
}

@media screen and (max-width: 900px) {
    .projectenContainer {
        grid-template-columns: 1fr;
    }
}
.lightboxOpen {
    overflow: hidden;
}

.zoomableImage {
    cursor: zoom-in;
    transition: transform 220ms ease, filter 220ms ease;
}

.zoomableImage:hover,
.zoomableImage:focus-visible {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 3vw;
    background: rgba(5, 10, 10, 0.86);
    backdrop-filter: blur(6px);
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightboxImage {
    max-width: 94vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);

    transform: scale(0.88);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 220ms ease;
}

.lightbox.is-open .lightboxImage {
    transform: scale(1);
    opacity: 1;
}

.lightboxClose {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    color: var(--text);
    background: rgba(97, 103, 189, 0.65);
    transition: transform 200ms ease, background 200ms ease;
}

.lightboxClose:hover,
.lightboxClose:focus-visible {
    transform: scale(1.08);
    background: rgba(97, 103, 189, 0.95);
}
