@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

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

html {
    min-height: 100%;
    overflow-y: scroll;
    background: #5C8099;
}

:root {
    --bg: #7A9DB5;
    --text: #f8f6e8;
    --text-light: #f8f6e8;
    --primary: #FEFFAF;
    --accent: #FFB6C1;
    --accent-hover: #FF8FA3;
    --padding-x: 6rem;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #5C8099;
    color: var(--text);
    line-height: 1.5;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%23FFB6C1"/></svg>') 10 10, auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav,
header,
main,
.about-page,
.project-page {
    background: var(--bg);
}

main {
    flex-grow: 1;
}


a {
    color: inherit;
    text-decoration: none;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%23FF8FA3"/></svg>') 10 10, pointer;
}

button, .cv-download {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%23FF8FA3"/></svg>') 10 10, pointer;
}

/* Container voor consistente uitlijning */
.container {
    width: 100%;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: lowercase;
}

.nav-links {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    gap: 2.5rem;
    font-size: 1rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    position: relative;
}

.nav-links a {
    color: var(--primary);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 400;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 6'%3E%3Cpath d='M0 3 Q5 0 10 3 T20 3' fill='none' stroke='%23E6E2C5' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 20px 6px;
    background-position: 0 0;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1), width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-underline.moving {
    animation: wave-flow 0.25s linear 4 !important;
}

@keyframes wave-flow {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 20px 0;
    }
}

/* Header */
header {
    padding-top: 6rem;
    padding-bottom: 3rem;
}

header h1,
header .tagline {
    max-width: 800px;
}

header h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    margin-left: -0.06em;
    color: var(--primary);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 380px;
    line-height: 1.4;
    font-weight: 400;
}

/* Projects Slider */
main {
    padding: 0 0 4rem;
    margin-top: -10px;
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
    padding: 0 var(--padding-x);
    position: relative;
}

.projects {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll 51s linear infinite;
}

.slider-wrapper:hover {
    cursor: grab;
}

.slider-wrapper:hover .projects {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.project-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.project-card a {
    display: block;
}

.project-card img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    background: #e8e4d4;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-info {
    padding: 0.75rem 0;
}

.project-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    transition: color 0.2s;
}

.project-card:hover .project-info h2 {
    color: var(--primary);
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
}


/* Footer */
footer {
    background: #5C8099;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-left {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-links a {
    color: var(--text);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Project Detail Page */
.project-page {
    padding: 8rem var(--padding-x) 4rem;
}

.project-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.project-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    line-height: 1.1;
    margin-left: -0.04em;
    color: var(--primary);
}

.project-meta {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    margin-top: 0.2rem;
    font-weight: 400;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 500px;
    font-weight: 400;
}

.project-images,
.project-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-images img,
.project-media img,
.project-media video {
    width: 100%;
    display: block;
}

.project-media video {
    border-radius: 4px;
}

/* Scrollable image container */
.scroll-container {
    height: 500px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
}

.scroll-container img {
    width: 100%;
    display: block;
}

/* Image Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    background: transparent;
}

.slideshow-container {
    display: flex;
    transition: transform 0.4s ease;
    height: 70vh;
}

.slideshow-container img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slideshow-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 0;
    transition: background 0.2s;
}

.slideshow-dot.active,
.slideshow-dot:hover {
    background: white;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slideshow-arrow:hover {
    background: white;
}

.slideshow-arrow.prev {
    left: 1rem;
}

.slideshow-arrow.next {
    right: 1rem;
}

/* iPhone Mockup */
.iphone-mockup {
    position: relative;
    height: 570px;
    width: 100%;
    margin-top: -30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-frame {
    position: relative;
    height: 570px;
    width: auto;
    z-index: 2;
    pointer-events: none;
}

.iphone-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 559px;
    width: auto;
    object-fit: contain;
    border-radius: 38px;
    z-index: 1;
}

/* Grid voor meerdere afbeeldingen (fallback) */
.project-images img:first-child,
.project-media > *:first-child {
    grid-column: 1 / -1;
}

.project-images:has(img:nth-child(3)),
.project-media:has(*:nth-child(3)) {
    grid-template-columns: 1fr 1fr;
}

.project-images:has(img:nth-child(3)) img:first-child,
.project-media:has(*:nth-child(3)) > *:first-child {
    grid-column: 1 / -1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--primary);
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-light);
}

/* About Page */
.about-page {
    padding: 12rem var(--padding-x) 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: sticky;
    top: 8rem;
}

.photo-stack {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: -60px;
}

.about-photo {
    position: absolute;
    max-height: 342px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.photo-back {
    transform: rotate(-3deg);
    top: 0;
    left: 40px;
    z-index: 1;
}

.photo-front {
    transform: rotate(8deg);
    top: 40px;
    left: 300px;
    z-index: 2;
}

.about-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-intro h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1.2rem;
    line-height: 1.1;
    margin-left: -0.04em;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 400;
}

.about-cv h2,
.about-contact h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-cv {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cv-download {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.2s;
}

.cv-download:hover {
    background: var(--primary);
    color: var(--bg);
}

.cv-download-secondary {
    border-color: var(--text);
    color: var(--text);
    opacity: 0.7;
}

.cv-download-secondary:hover {
    opacity: 1;
    background: var(--text);
    color: var(--bg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-links a {
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--primary);
}

/* Skills */
.about-skills h2,
.about-experience h2,
.about-education h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 50px;
}

/* Experience */
.experience-item {
    margin-bottom: 1.5rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.experience-role {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.1rem;
}

.experience-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Education */
.education-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.education-school {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Clients */
.about-clients h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.client-logo {
    height: 30px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.client-logo:hover {
    opacity: 1;
}

.client-logo-large {
    height: 60px;
}

.client-logo-white {
    filter: brightness(0) invert(1);
}

/* Letter Page (Sollicitaties) */
.letter-page {
    padding: 8rem var(--padding-x) 4rem;
}

.letter-content {
    max-width: 600px;
}

.letter-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.letter-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    margin-left: -0.04em;
}

.letter-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.letter-body {
    font-size: 1.1rem;
    line-height: 1.9;
}

.letter-body p {
    margin-bottom: 1.5rem;
}

.letter-greeting {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    :root {
        --padding-x: 3rem;
    }

    nav .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .nav-links {
        font-size: 0.9rem;
    }

    header {
        padding-top: 5.5rem;
        padding-bottom: 1.5rem;
    }

    .about-page {
        padding-top: 5.5rem;
    }

    .about-intro h1 {
        margin-top: 0;
    }

    main {
        padding: 1rem 0 3rem;
    }

    .slider-wrapper {
        padding: 0 var(--padding-x);
    }

    .projects {
        gap: 1rem;
    }

    .project-card {
        flex: 0 0 220px;
    }

    .project-card img {
        width: 220px;
        height: 220px;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .footer-left {
        font-size: 0.75rem;
    }

    .footer-links {
        font-size: 0.8rem;
        gap: 1.5rem;
    }

    .client-logo {
        height: 22px;
    }

    .client-logo-large {
        height: 40px;
    }

    .project-page {
        padding: 7rem var(--padding-x) 3rem;
    }

    .project-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .about-left {
        display: contents;
    }

    .about-intro {
        order: 1;
    }

    .about-cv {
        order: 2;
    }

    .about-right {
        order: 3;
    }

    .about-skills {
        order: 4;
    }

    .about-clients {
        order: 5;
    }

    .photo-stack {
        position: relative;
        height: 350px;
        margin: 1rem 0;
    }

    .about-photo {
        max-height: 280px;
    }

    .photo-back {
        left: 20px;
    }

    .photo-front {
        left: 180px;
    }

    .project-images:has(img:nth-child(3)) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --padding-x: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 0.85rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .slider-wrapper {
        padding: 0 var(--padding-x);
    }

    .project-card {
        flex: 0 0 180px;
    }

    .project-card img {
        width: 180px;
        height: 180px;
    }

    .slider-wrapper {
        margin-top: 10px;
    }

    /* About page mobiel */
    .about-page {
        padding-top: 5.5rem;
    }

    .about-intro h1 {
        margin-top: 0;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
    }

    .about-left {
        display: contents;
    }

    .about-intro {
        order: 1;
    }

    .about-cv {
        order: 2;
    }

    .about-right {
        order: 3;
    }

    .about-skills {
        order: 4;
    }

    .about-clients {
        order: 5;
    }

    .photo-stack {
        position: relative;
        height: 300px;
        margin: 1rem 0;
    }

    .about-photo {
        max-height: 240px;
    }

    .photo-back {
        left: 0;
    }

    .photo-front {
        left: 140px;
    }
}
