﻿body {
    background: radial-gradient(1000px 600px at 40% 0%, rgba(255,255,245,0.3), transparent 70%), linear-gradient(180deg, #dcd8d3 0%, #c8c3be 100%);
    
}
.projecten-page {
    padding-top: 6rem;
}
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: clip; 
    border-radius: var(--card-radius, 20px);
    background: linear-gradient(180deg, var(--card-bg-1, #2a3037), var(--card-bg-2, #23282e));
    box-shadow: 0 18px 42px rgba(0,0,0,.40), 0 6px 16px rgba(0,0,0,.28);
    transform: translateZ(0);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, filter .45s ease;
    color: var(--text-strong, #f7f9fd); 
    text-decoration: none;     
}

    .project-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,0));
        pointer-events: none;
    }

    .project-card::before {
        content: "";
        position: absolute;
        inset: -22%;
        background: radial-gradient(60% 42% at 50% -8%, var(--card-glow, rgba(90,170,255,.16)), transparent 70%);
        filter: blur(22px);
        opacity: 0;
        transition: opacity .45s ease;
        z-index: -1;
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 26px 64px rgba(0,0,0,.52), 0 10px 26px rgba(0,0,0,.34);
        filter: saturate(1.04);
    }

        .project-card:hover::before {
            opacity: 1;
        }

    .project-card:focus-visible,
    .project-card:focus-within {
        outline: 0;
        box-shadow: 0 0 0 3px color-mix(in oklab, #ffffff 30%, transparent), 0 0 0 8px color-mix(in oklab, var(--card-glow, rgba(90,170,255,.16)) 65%, transparent), 0 26px 64px rgba(0,0,0,.52), 0 10px 26px rgba(0,0,0,.34);
    }

.project-card__title {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    padding: clamp(12px, 2.6vw, 18px) clamp(14px, 2.8vw, 20px);
    min-height: clamp(60px, 10vw, 90px);  genoeg “body” voor contrast 
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.42) 22%, rgba(0,0,0,.66) 100%);
    backdrop-filter: blur(3px) saturate(1.05);
    -webkit-backdrop-filter: blur(3px) saturate(1.05);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    color: #fff;
    z-index: 2;
}
.project-card .media,
.project-card {
    position: relative;
}

    .project-card .media::after,
    .project-card > img::after { 
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-radius: inherit;
        background: radial-gradient(120% 80% at 50% 20%, rgba(0,0,0,0) 60%, rgba(0,0,0,.08) 100%);
        mix-blend-mode: multiply; 
        opacity: .9; 
    }

.project-card__title h3,
.project-card__title h5 {
    margin: 0;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.24;
    font-size: clamp(1.02rem, 1.3vw, 1.18rem);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.55); 
}
.project-card--force-dark .project-card__title {
    background: rgba(12,14,18,.78);
}
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-card::before,
    .project-card::after {
        transition: none !important;
    }
}

.project-card > img,
.project-card .media > img {
    width: 100%;
    height: auto; 
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-card::before,
    .project-card::after {
        transition: none !important;
    }
}
a.cta-premium {
    --cta-bg: #1b1f24; 
    --cta-bg-2: #161a1e;
    --cta-edge: rgba(255,255,255,.08); 
    --cta-text: #f4f6fa;
    --cta-muted: #c9ced6;
    --cta-accent: #f29a5c; 
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--cta-text);
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) padding-box, linear-gradient(180deg, var(--cta-bg), var(--cta-bg-2)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 var(--cta-edge);
    backdrop-filter: blur(5px) saturate(1.03);
    -webkit-backdrop-filter: blur(5px) saturate(1.03);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, color .22s ease;
}

    a.cta-premium:hover {
        transform: translateY(-2px);
        filter: saturate(1.03);
        box-shadow: 0 16px 36px rgba(0,0,0,.26), 0 0 0 4px color-mix(in oklab, var(--cta-accent) 18%, transparent);  heel subtiele ring 
    }

    a.cta-premium:active {
        transform: translateY(-1px);
    }
     

    a.cta-premium .ms-1 {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        color: var(--cta-muted);
        transition: transform .22s ease, color .22s ease, opacity .22s ease;
        opacity: .95;
    }

    a.cta-premium:hover .ms-1 {
        transform: translateX(2px);
        color: var(--cta-text);
        opacity: 1;
    }

@media (max-width:576px) {
    a.cta-premium {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.cta-premium, a.cta-premium .ms-1 {
        transition: none !important;
    }
}

.project-card {
    max-width: 420px; 
    flex: 0 1 clamp(260px, 32vw, 420px);
    margin-inline: 0;
}

.row:has(.project-card),
.d-flex:has(.project-card),
.container:has(> .project-card) {
    justify-content: center !important; 
}

.project-card {
    margin: clamp(12px, 2vw, 16px);
}

@media (max-width: 768px) {
    .project-card {
        max-width: 95%;
        flex-basis: 95%;
        margin-inline: auto;
    }

  
}

.home-projects-rail .project-rail {
    --rail-h: clamp(200px, 26vw, 280px);
    height: var(--rail-h);
    overflow: visible;
    padding-block: 6px 14px;
    
}
.home-projects-rail {
    background: linear-gradient(180deg, #dcd8d3 0%, #c8c3be 100%);
}

.home-projects-rail .project-rail__track {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    height: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
}

    .home-projects-rail .project-rail__track::-webkit-scrollbar {
        display: none;
    }

.home-projects-rail .project-card {
    --card-h: calc(var(--rail-h) - 40px);
    height: var(--card-h);
    width: calc(var(--card-h) * 4 / 3);
    flex: 0 0 auto;
    margin: 0;
}

    .home-projects-rail .project-card > img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

.home-projects-rail .project-card__title {
    padding: 10px 14px;
    min-height: 54px;
}

 Responsiveness 
@media (max-width: 576px) {
    .home-projects-rail .project-rail {
        --rail-h: 210px;
    }

    .home-projects-rail .project-rail__track {
        mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .home-projects-rail .project-rail {
        --rail-h: 240px;
    }
}


@media (max-width: 576px) {
    .home-projects-rail .all-projects-link {
        font-size: .95rem;
        text-shadow: 0 1px 3px rgba(0,0,0,.25);
    }
}
.home-projects-rail .all-projects-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,.15);
    transition: transform .25s ease, color .25s ease;
}

.home-projects-rail .all-projects-link::after {
        content: "→";
        font-size: 1.1em;
        transition: transform .25s ease;
    }

   .home-projects-rail .all-projects-link:hover {
        color: #000;
        transform: translateY(-1px);
    }

        .home-projects-rail .all-projects-link:hover::after {
            transform: translateX(4px);
        }
.rail-heading {
    position: relative;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.3px;
    text-transform: none;
    color: #1b1f24;
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    background: linear-gradient(180deg, #1c1f23 0%, #50565f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
}

    .rail-heading::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 90px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, transparent, #f29a5c 25%, #f29a5c 75%, transparent);
        box-shadow: 0 0 10px rgba(242, 154, 92, .6);
    }

@media (max-width: 576px) {
    .rail-heading {
        font-size: 1.8rem;
        filter: drop-shadow(0 1px 4px rgba(0,0,0,.25));
    }

        .rail-heading::after {
            width: 70px;
            height: 2px;
        }
}

#projectDetailModal .modal-dialog {
    margin: 10vh auto 8vh;
    padding: 0 12px;
 max-width: 960px;
}

#projectDetailModal .modal-content {
    border-radius: 18px;
    overflow: hidden;
}

#projectDetailModal .modal-header {
    border-bottom: 1px solid rgba(37,100,207,.22);
}

#projectDetailModal .modal-footer {
    border-top: 1px solid rgba(37,100,207,.22);
}

#projectDetailModal .modal-body {
    padding: 16px;
    height: min(72vh, 760px);
    overflow: hidden;
}

#projectDetailModal .modal-body > .row {
    height: 100%;
}

#projectDetailModal .modal-body .col-12.col-lg-6 {
    height: 100%;
}

#projectDetailModal #projectModalCarousel {
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
}

#projectDetailModal #projectModalCarousel img,
#projectDetailModal #projectModalCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#projectDetailModal #projectModalIntro,
#projectDetailModal #projectModalBody,
#projectDetailModal #projectModalMeta {
    max-width: 100%;
}

#projectDetailModal .col-12.col-lg-6:last-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#projectDetailModal #projectModalBody {
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
}

#projectDetailModal #projectModalBody::-webkit-scrollbar {
    width: 10px;
}

#projectDetailModal #projectModalBody::-webkit-scrollbar-thumb {
    background: rgba(37,100,207,.30);
    border-radius: 999px;
}

#projectDetailModal #projectModalBody::-webkit-scrollbar-track {
    background: rgba(0,0,0,.06);
    border-radius: 999px;
}

@media (max-width: 991.98px) {
    #projectDetailModal .modal-body {
        height: min(78vh, 900px);
    }

    #projectDetailModal .modal-body > .row {
        height: 100%;
        align-content: start;
    }

    #projectDetailModal .modal-body .col-12.col-lg-6:first-child {
        height: clamp(220px, 32vh, 360px);
    }

    #projectDetailModal .modal-body .col-12.col-lg-6:last-child {
        height: calc(100% - clamp(220px, 32vh, 360px));
    }
}
#projectDetailModal .modal-body {
    padding-bottom: 3rem;
}


#projectPrevBtn,
#projectNextBtn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

 vorige – rustiger 
#projectPrevBtn {
    background: linear-gradient(180deg, #2a66f5, #1f54d6);
    color: #fff;
    opacity: .85;
}


    #projectPrevBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.25);
    }

 volgende – primary / premium 
#projectNextBtn {
    background: linear-gradient(180deg, #2a66f5, #1f54d6);
    color: #fff;
}

    #projectNextBtn:hover {
        transform: translateY(-2px);
        filter: saturate(1.05);
        box-shadow: 0 16px 38px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25);
    }

    #projectPrevBtn:active,
    #projectNextBtn:active {
        transform: translateY(-1px);
    }
.projecten-page {
    padding-bottom: 8rem;
}

.project-card {
    margin: clamp(2rem, 4vw, 40px) clamp(16px, 2vw, 20px);
}
