/* =========================
   GLOBAL STYLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: black;
    color: white;
    line-height: 1.6;
}

/* =========================
   NAVIGATION
========================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    /* New styles for see-through effect */
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    backdrop-filter: blur(10px);     /* subtle blur behind navbar */
}

.logo {
    font-weight: bold;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}
.logo {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
}

/* =========================
   DROPDOWN
========================= */
.language-dropdown {
    position: relative;
}

.language-btn {
    background: #111;
    color: white;
    border: 1px solid #333;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 5px;
}

.language-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    display: none;
    overflow: hidden;
    min-width: 150px;
    z-index: 1000;
}

.language-menu div {
    padding: 10px 15px;
    cursor: pointer;
    color: white;
}

.language-menu div:hover {
    background: #222;
}

.language-menu.show {
    display: block;
}

/* =========================
   SECTIONS
========================= */
section {
    padding: 120px 60px;
    min-height: 100vh;
}

/* =========================
   HERO
========================= */
.hero-container {
    position: relative;       /* allows absolute GIF positioning */
    width: 100vw;
    height: 250px;            /* banner height */
    overflow: hidden;
}

/* =========================
   HERO BANNER
========================= */
/* HERO BANNER */
.hero-banner {
    width: 100%;              /* full screen width */
    height: 250px;             /* adjust banner height */
    background-image: url('images/');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* GIF on the right, overlapping banner */
.hero-gif {
    position: absolute;         /* remove from normal flow */
    top: 80%;                   /* vertically center relative to banner */
    right: 40px;                /* distance from right edge */
    transform: translateY(-50%);/* center GIF exactly */
    width: 400px;               /* natural size */
    max-width: 90%;             /* responsive on smaller screens */
    border-radius: 20px;
    z-index: 2;
}

/* TEXT UNDER BANNER */
.hero-text {
    max-width: 1200px;
    color: white;
    padding: 80px;
    text-align: left;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-banner {
        height: 180px;
    }

    .hero-gif {
        width: 250px;
        right: 20px;
    }

    .hero-text {
        margin: 15px 20px 40px 20px;
    }
}


/* =========================
   CAROUSEL TITLE
========================= */

.carousel-title {
    max-width: 1700px;
    margin: 60px auto 20px auto;
    padding: 0 40px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: left;
}

/* =========================
   CAROUSEL
========================= */

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 40px auto 42px; /* top and bottom spacing */
    overflow: hidden; /* keeps slides inside */
}

/* Left & right gradient overlays */
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, black, transparent);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, black, transparent);
}

/* Carousel track setup */
.carousel {
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: scroll 45s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}

/* =========================
   CAROUSEL CARDS & IMAGES
========================= */
.project-card {
    flex: 0 0 300px;   /* all cards same width */
    height: 250px;     /* all cards same height */
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #222;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card img {
    width: 100%;
    height: 100px;      /* fill the card fully */
    object-fit: cover; /* crop nicely if needed */
    border-radius: 15px;
    filter: brightness(0.9); /* slightly darker normally */
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-link:hover .project-card {
    transform: scale(1.05); /* subtle zoom */
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

.project-link:hover img {
    transform: scale(1.05);    /* subtle zoom on hover */
    filter: brightness(1.3);   /* slightly brighter on hover */
}

/* =========================
   SECTIONS
========================= */
section {
    padding: 80px 60px; /* reduced top/bottom padding */
    min-height: auto;   /* let section height adapt to content */
}

#projects {
    padding-top: 40px;   /* reduce space from carousel above */
    padding-bottom: 80px; /* normal bottom spacing */
}
/* =========================
   PROJECT CARDS
========================= */
.project-card {
    min-width: 300px;
    background: #111;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #222;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 10px;
    transition: transform 0.4s ease;
}

.project-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-link:hover .project-card {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

.project-link:hover img {
    transform: scale(1.05);
}

/* =========================
   SECTION TITLES
========================= */
.section-title {
    text-align: center;
    margin-bottom: 80px;
    font-size: 2rem;
}

/* =========================
   PROJECT LIST
========================= */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: 1100px;
    margin: auto;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-row img {
    width: 50%;
    border-radius: 20px;
}

.project-text {
    width: 50%;
}

.project-text h3 {
    margin-bottom: 15px;
}

.project-text p {
    line-height: 1.6;
    opacity: 0.85;
}

/* =========================
   PROJECT IMAGE LINK (DETAIL/GALLERY)
========================= */
.project-image-link {
    display: block;
    width: 50%;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}

.project-image-link img {
    width: 100%;
    border-radius: 20px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-image-link:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.project-image-link:hover {
    box-shadow: 0 20px 50px rgba(255,255,255,0.08);
}

/* Hero: tekst en GIF netjes naast elkaar */
.hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 60px);
    width: 100%;
}

.hero-text {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.hero-gif-wrapper {
    flex: 0 1 40%;
    min-width: 0;
    position: relative;
}

.hero-gif {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
}

/* Smalle schermen: GIF onder de tekst */
@media (max-width: 760px) {
    .hero-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-gif-wrapper {
        width: 100%;
        max-width: 320px;
        flex: none;
        align-self: center;
    }

    .hero-gif {
        width: 100%;
        max-width: 100%;
    }
}/* Voorkom dat de hero achter de navigatiebalk verdwijnt */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Geef ruimte onder de navigatiebalk */
#home {
    padding-top: 100px;
    box-sizing: border-box;
}

/* Laat de hero meegroeien met de inhoud */
.hero,
.hero-banner {
    height: auto;
    min-height: 0;
    box-sizing: border-box;
}

.hero-banner {
    padding: 30px 5%;
}

/* Op kleinere schermen stapelen tekst en GIF */
@media (max-width: 760px) {
    #home {
        padding-top: 90px;
    }

    .hero-banner {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 24px;
        padding: 20px 6%;
    }

    .hero-text,
    .hero-gif-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .hero-gif-wrapper {
        align-self: center;
        max-width: 300px;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        overflow-wrap: anywhere;
    }

    .welcome-text {
        overflow-wrap: break-word;
    }
}

/* =========================
   HOMEPAGE INTRO
========================= */

#home {
    min-height: auto;
    padding: 125px clamp(20px, 6vw, 90px) 70px;
    scroll-margin-top: 90px;
    box-sizing: border-box;
}

#home .hero {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

#home .hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 5vw, 80px);
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
}

#home .hero-text {
    flex: 1 1 0;
    min-width: 0;
    max-width: 720px;
    padding: 20px 0;
    text-align: left;
}

#home .hero-eyebrow,
.section-eyebrow {
    margin: 0 0 16px;
    color: #999;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
}

#home .hero-text h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 6.5vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

#home .hero-text .welcome-text {
    max-width: 590px;
    margin: 0 0 28px;
    color: #bcbcbc;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.8;
}

#home .hero-cta {
    display: inline-flex;
    padding: 12px 17px;
    border: 1px solid #555;
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    transition: background .25s, transform .25s;
}

#home .hero-cta:hover {
    background: #181818;
    transform: translateY(-2px);
}

#home .hero-gif-wrapper {
    position: relative;
    flex: 0 1 38%;
    min-width: 0;
    max-width: 420px;
    margin: 0;
}

#home .hero-gif {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* =========================
   DESIGN PROCESS
========================= */

.process-section {
    min-height: 0;
    padding: 48px clamp(20px, 6vw, 90px) 70px;
    border-top: 1px solid #202020;
    border-bottom: 1px solid #202020;
    background: #080808;
}

.process-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.process-section h2 {
    max-width: 650px;
    margin: 0 0 30px;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.2;
    font-weight: 500;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.process-step {
    min-width: 0;
    padding: 22px;
    border: 1px solid #292929;
    border-radius: 12px;
    background: #101010;
    transition: border-color .25s, transform .25s;
}

.process-step:hover {
    border-color: #555;
    transform: translateY(-3px);
}

.process-number {
    color: #777;
    font-size: .78rem;
    letter-spacing: .1em;
}

.process-step h3 {
    margin: 18px 0 6px;
    font-size: 1.05rem;
    font-weight: 500;
}

.process-step p {
    color: #aaa;
    font-size: .9rem;
    line-height: 1.65;
}

/* =========================
   PROJECT SECTIONS
========================= */

#carosel-section,
#projects {
    min-height: 0;
    scroll-margin-top: 90px;
}

#carosel-section {
    padding-top: 55px;
    padding-bottom: 45px;
}

#projects {
    padding-top: 30px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 760px) {
    #home {
        padding: 105px 22px 48px;
    }

    #home .hero-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    #home .hero-text {
        width: 100%;
        padding: 10px 0 0;
    }

    #home .hero-text h1 {
        font-size: clamp(2.35rem, 10vw, 4rem);
    }

    #home .hero-gif-wrapper {
        width: min(100%, 300px);
        max-width: 300px;
        flex: none;
        align-self: center;
    }

    .process-section {
        padding: 40px 22px 48px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .process-step {
        padding: 17px 19px;
    }

    .process-step h3 {
        margin-top: 9px;
    }

    #carosel-section,
    #projects {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #home .hero-cta,
    .process-step {
        transition: none;
    }
}

/* =========================
   FIX HOMEPAGE GIF + NAVBAR
========================= */

/* Navigatiebalk blijft bovenaan */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Homepage begint onder de navigatiebalk */
#home {
    padding-top: 125px;
    overflow: visible;
}

/* Hero houdt tekst en GIF binnen de beschikbare ruimte */
#home .hero {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

#home .hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 5vw, 80px);
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 20px 0;
    overflow: visible;
}

/* Tekst links */
#home .hero-text {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 20px 0;
}

/* GIF rechts, zonder absolute positionering */
#home .hero-gif-wrapper {
    position: relative;
    flex: 0 1 38%;
    width: 38%;
    min-width: 0;
    max-width: 420px;
    margin: 0;
}

/* GIF blijft binnen de hero */
#home .hero-gif {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    object-fit: contain;
    z-index: 1;
}

/* Mobiele weergave */
@media (max-width: 760px) {
    #home {
        padding: 105px 22px 48px;
    }

    #home .hero-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    #home .hero-text {
        width: 100%;
        padding: 10px 0 0;
    }

    #home .hero-gif-wrapper {
        width: 100%;
        max-width: 300px;
        flex: none;
        align-self: center;
    }

    #home .hero-gif {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================
   ABOUT PAGE
========================= */
.about-intro {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    margin-bottom: 20px;
}

.about-text p {
    max-width: 700px;
}
.intro-text {
    white-space: pre-line;
}

.about-image {
    width: 280px;
    border-radius: 25px;
    border: 0px solid #222;
}

@media (max-width: 900px) {
    .about-intro {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .about-image {
        width: 220px;
    }

    .project-row,
    .project-row.reverse {
        flex-direction: column;
    }

    .project-row img,
    .project-text,
    .project-image-link {
        width: 100%;
    }
}
/* =========================
Work histery
========================*/

/* WORK HISTORY */
.work-history {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    color: #f5f5f5;
}

.work-history h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* Timeline container */
.timeline {
    position: relative;
    padding-left: 170px;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 145px;
    width: 1px;
    background: #444;
}

/* Individual item */
.timeline-item {
    position: relative;
    margin-bottom: 38px;
    transition: transform 0.3s ease;
}

/* Timeline dot */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #111;
    outline: 1px solid #f5f5f5;
    transition: background 0.3s ease,
                transform 0.3s ease;
}

/* Date */
.timeline-date {
    position: absolute;
    right: calc(100% + 35px);
    top: 3px;
    width: 110px;
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: right;
}

/* Content */
.timeline-content {
    padding: 0 0 4px 0;
}

.timeline-content h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 500;
}

.timeline-content p {
    margin: 0;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}



.timeline-item:hover::before {
    background: #999;
    transform: scale(1.3);
}

/* Mobile */
@media (max-width: 600px) {
    .work-history {
        padding: 0 15px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 4px;
    }

    .timeline-item::before {
        left: -25px;
    }

    .timeline-date {
        position: static;
        display: block;
        width: auto;
        text-align: left;
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .timeline-content h3 {
        font-size: 1.05rem;
    }
}



/* =========================
   SKILLS PROGRESS BARS
========================= */

.skills {
    max-width: 600px;
    margin-bottom: 80px;
}

.skill {
    margin-bottom: 20px;
}

.bar {
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
}

/* The animated fill */
.bar div {
    height: 10px;
    background: white;
    width: 0;                    /* IMPORTANT: start at 0 */
    border-radius: 10px;
    transition: width 1.2s ease-in-out;
}


/* HOBBIES */
.hobbies {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.hobby {
    background: #111;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #222;
    width: 220px;
    text-align: center;
}

.hobby img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 10px;
}

.hobby p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* MOBILE */
@media (max-width: 900px) {
    .hobbies {
        justify-content: center;
    }

    .hobby {
        width: 100%;
        max-width: 300px;
    }
}
/* SPLIT SKILLS */
.skills-split {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

/* LEFT & RIGHT COLUMNS */
.skills-left,
.skills-right {
    flex: 1;
    min-width: 250px;
}

/* SKILL ROW */
.skill {
    display: flex;
    align-items: center;
    gap: 15px; /* space between icon and text */
    margin-bottom: 20px;
}

/* ICON */
.skill-icon {
    font-size: 1.8rem;
    width: 40px;      /* fixed width to prevent collapsing */
    flex-shrink: 0;   /* prevent shrinking */
    text-align: center;
    color: white;     /* ensure visible */
}

/* INFO (text + bar) */
.skill-info {
    flex: 1;          /* take remaining space */
    text-align: left; /* left-aligned text */
}

/* PROGRESS BAR */
.bar {
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    margin-top: 5px;
}

.bar div {
    height: 10px;
    background: white;
    width: 0; /* start empty */
    transition: width 1s ease-in-out;
}

/* =========================
Hobbies
==========================*/

/* HOBBY GALLERY */
.hobbies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 40px auto;
}

.hobby {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 360px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 18px;
    background: #111;
    text-align: left;
    transition: border-color 0.35s ease;
}

.hobby img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    filter: brightness(0.72);
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}
/* TITLE - ALWAYS VISIBLE */
.hobby h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 45px 22px 20px;
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.9)
    );
    z-index: 2;
}
/* DESCRIPTION - HIDDEN BY DEFAULT */
.hobby p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    margin: 0;
    padding: 20px 22px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease,
                transform 0.35s ease;
}

/* HOVER */
.hobby:hover h3 {
    bottom: 280px;
}

.hobby:hover p {
    opacity: 1;
    transform: translateY(0);
}

.hobby:hover img {
    transform: scale(1.06);
    filter: brightness(0.45);
}

@media (max-width: 650px) {
    .hobbies {
        grid-template-columns: 1fr;
    }

    .hobby {
        height: 320px;
    }

    /* Keep descriptions accessible on touch screens */
    .hobby p {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hobby,
    .hobby img,
    .hobby p {
        transition: none;
    }
}


/* =========================
   Project gallery page
========================= */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Max 3 columns */
    gap: 30px;
    margin-top: 60px;
}
@media (max-width: 1000px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 650px) {
    .project-gallery {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    border: 1px solid #222;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-overlay p {
    font-size: 1rem;
    line-height: 1.4;
}


/* =====================================
   ABOUT PAGE — CONSISTENT STYLE
   Add at the bottom of style.css
===================================== */

/* Consistent spacing for the About page */
.about-page {
    padding: 120px 60px 80px;
}

.about-page > h2 {
    max-width: 1100px;
    margin: 70px auto 25px;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Keep the introduction aligned */
.about-page .about-intro {
    max-width: 1100px;
    margin: 0 auto 90px;
}

/* Shared card styling */
.about-page .skill,
.about-page .timeline-content,
.about-page .hobby {
    background: #111;
    border: 1px solid #292929;
    border-radius: 16px;
    transition: border-color 0.3s ease,
                background 0.3s ease,
                transform 0.3s ease;
}

.about-page .skill:hover,
.about-page .timeline-item:hover .timeline-content,
.about-page .hobby:hover {
    background: #151515;
    border-color: #555;
}

/* =====================================
   WORK HISTORY
===================================== */

.about-page .work-history {
    max-width: 1100px;
    margin: 0 auto 70px;
    padding: 0;
}

.about-page .work-history h2 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 25px;
}

.about-page .timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.about-page .timeline::before,
.about-page .timeline-item::before {
    display: none;
}

.about-page .timeline-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin: 0;
}

.about-page .timeline-date {
    position: static;
    width: auto;
    padding-top: 18px;
    text-align: right;
    color: #999;
    white-space: normal;
}

.about-page .timeline-content {
    padding: 16px 20px;
}

.about-page .timeline-content h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.about-page .timeline-content p {
    font-size: 0.9rem;
    color: #aaa;
}

/* =====================================
   SOFTWARE AND HARDWARE SKILLS
===================================== */

.about-page .skills-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 35px;
}

.about-page .skills-left,
.about-page .skills-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.about-page .skill {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-width: 0;
    min-height: 82px;
    padding: 15px 18px;
    margin: 0;
    text-align: left;
}

.about-page .skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #202020;
    border: 1px solid #303030;
    border-radius: 12px;
    font-size: 1.35rem;
}

.about-page .skill-info {
    flex: 1;
    min-width: 0;
}

.about-page .skill-info span {
    display: block;
    margin-bottom: 9px;
    font-size: 0.92rem;
    color: #eee;
}

/* Slimmer progress bars */
.about-page .bar {
    width: 100%;
    height: 4px;
    margin-top: 0;
    background: #303030;
    border-radius: 10px;
    overflow: hidden;
}

.about-page .bar div {
    height: 100%;
    background: #ddd;
    border-radius: 10px;
    transition: width 1.2s ease-in-out;
}

/* =====================================
   HOBBIES — PHOTO CARDS
===================================== */

.about-page .hobbies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-page .hobby {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 340px;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.about-page .hobby img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
    filter: brightness(0.72);
    transition: transform 0.5s ease,
                filter 0.5s ease;
}

.about-page .hobby:hover img {
    transform: scale(1.04);
    filter: brightness(0.55);
}

/* Description over the image */
.about-page .hobby p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 60px 18px 20px;
    color: white;
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.96)
    );
    transform: translateY(8px);
    transition: opacity 0.3s ease,
                transform 0.3s ease;
}

.about-page .hobby:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 900px) {
    .about-page {
        padding: 100px 28px 60px;
    }

    .about-page .hobbies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-page .hobby {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .about-page {
        padding: 90px 18px 45px;
    }

    .about-page > h2,
    .about-page .work-history h2 {
        font-size: 1.5rem;
        margin-top: 48px;
    }

    .about-page .skills-split,
    .about-page .hobbies {
        grid-template-columns: 1fr;
    }

    .about-page .timeline-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .about-page .timeline-date {
        text-align: left;
        padding-top: 0;
        font-size: 0.85rem;
    }

    .about-page .hobby {
        height: 320px;
    }

    /* Show descriptions on touch devices */
    .about-page .hobby p {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page .skill,
    .about-page .timeline-content,
    .about-page .hobby,
    .about-page .hobby img,
    .about-page .hobby p,
    .about-page .bar div {
        transition: none;
    }
}

/* =========================
   Project pages
========================= */
.project-detail {
    max-width: 1000px;
    margin: auto;
    padding: 140px 40px;
}

.project-intro {
    max-width: 700px;
    opacity: 0.85;
    margin-bottom: 40px;
    line-height: 1.6;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 images per row */
    gap: 30px;
    margin-top: 40px;
}

.project-gallery-grid img {
    width: 100%;
    border-radius: 20px;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.project-gallery-grid img:hover {
    transform: scale(1.08);
    filter: brightness(0.8);
}

.back-button {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 20px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
    background: #222;
    transform: scale(1.05);
}
/* LIGHTBOX */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(255,255,255,0.2);
}

#lightbox-caption {
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    margin-top: 15px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
/* NAVIGATION ARROWS FIX */
.lightbox .prev,
.lightbox .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* center vertically */
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 50px;
    user-select: none;
    z-index: 3000; /* ensure on top of image */
    background-color: rgba(0,0,0,0.3); /* semi-transparent background */
    border-radius: 50%;
    text-align: center;
}

.lightbox .prev {
    left: 30px;
}

.lightbox .next {
    right: 30px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
}


/* ==================================
   PROJECT DETAIL PAGE
================================== */

.project-detail {
    max-width: 1180px;
    margin: 0 auto;
    padding: 125px 6% 80px;
    color: #f5f5f5;
}

.project-header {
    max-width: 850px;
    margin-bottom: 45px;
}

.project-back-link {
    display: inline-block;
    margin-bottom: 38px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.project-back-link:hover {
    color: white;
}

.project-eyebrow {
    margin: 0 0 14px;
    color: #999;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.6;
}

.project-detail .section-title {
    max-width: 850px;
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.project-subtitle {
    max-width: 680px;
    margin: 0;
    color: #bdbdbd;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.8;
}

/* Main image */

.project-hero-image {
    width: 100%;
    margin: 0 0 100px;
    overflow: hidden;
    background: #151515;
    border-radius: 12px;
}

.project-hero-image img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-hero-image img:hover {
    transform: scale(1.015);
}

/* Content sections */

.project-content {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    column-gap: 9%;
    row-gap: 28px;
    margin-bottom: 110px;
}

.project-section-heading h2 {
    max-width: 420px;
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.project-description {
    color: #c2c2c2;
    font-size: 1rem;
    line-height: 1.9;
}

.project-description p:first-child {
    margin-top: 0;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-section-intro {
    grid-column: 2;
    margin: 0;
    color: #c2c2c2;
    line-height: 1.9;
}

/* Gallery */

.project-detail .project-gallery-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 18px;
}

.project-figure {
    min-width: 0;
    margin: 0;
}

.project-figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 560px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #151515;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.project-figure img:hover {
    opacity: 0.82;
}

.project-figure figcaption {
    margin-top: 12px;
    color: #999;
    font-size: 0.85rem;
    line-height: 1.6;
}

.final-design-gallery {
    margin-top: 10px;
}

/* Project information */

.project-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.project-facts > div p:last-child {
    margin: 0;
    color: #e5e5e5;
    line-height: 1.7;
}

.project-footer {
    display: flex;
    justify-content: center;
    padding-top: 55px;
}

.project-detail .back-button {
    display: inline-block;
    padding: 13px 22px;
    border: 1px solid #555;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.project-detail .back-button:hover {
    background: #222;
    border-color: #aaa;
}

/* Responsive */

@media (max-width: 760px) {
    .project-detail {
        padding: 110px 6% 55px;
    }

    .project-header {
        margin-bottom: 30px;
    }

    .project-detail .section-title {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .project-hero-image {
        margin-bottom: 65px;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 75px;
    }

    .project-section-heading h2 {
        max-width: 100%;
    }

    .project-section-intro {
        grid-column: 1;
    }

    .project-detail .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-figure img {
        max-height: none;
    }

    .project-facts {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-detail img,
    .project-detail a {
        transition: none;
    }
}


/* Footer onderaan iedere pagina */
.site-footer {
    width: 100%;
    box-sizing: border-box;
    padding: 40px 6% 20px;
    margin-top: 80px;
    background: #0a0a0a;
    border-top: 1px solid #292929;
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 30px;
}

.footer-name {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-content p {
    color: #999999;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    color: #bdbdbd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #292929;
    color: #777777;
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .site-footer {
        padding: 30px 6% 18px;
        margin-top: 50px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
/* FIX: Project gallery images */
.project-gallery .project-card {
    height: auto;
    min-width: 0;
    padding: 0;
}

.project-gallery .project-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}/* Skills iconen kleiner maken */
.skill-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}
/* FULL-WIDTH PROJECT VIDEO */
.project-video-figure {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
}

.project-video-figure video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: inherit;
    cursor: pointer;
}
/* LIGHTBOX VIDEO */
#lightbox-video {
    display: none;
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    border-radius: 8px;
}
/* VIDEO SPACING AND ROUNDED CORNERS */
.project-video-figure {
    margin-top: 60px; /* Space between the last image and video */
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.project-video-figure video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
}


/* =====================================
   FINAL MOBILE WIDTH FIX
===================================== */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Prevent flex and grid children from expanding */
section,
main,
.hero,
.hero-banner,
.about-page,
.project-detail,
.projects-list,
.project-content,
.project-gallery,
.project-gallery-grid,
.process-inner,
.about-intro {
    min-width: 0;
    max-width: 100%;
}

img,
video {
    max-width: 100%;
}

/* MOBILE */
@media (max-width: 760px) {

    /* GENERAL PAGE WIDTH */
    section {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* NAVIGATION */
    nav {
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    nav .logo {
        font-size: 0.95rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-right {
        width: auto;
        min-width: 0;
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
    }

    .links {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
    }

    .links a {
        margin: 0;
        font-size: clamp(0.68rem, 2.5vw, 0.82rem);
        white-space: nowrap;
    }

    .language-btn {
        padding: 8px;
        min-height: 40px;
        white-space: nowrap;
    }

    /* HOMEPAGE */
    #home {
        width: 100%;
        padding: 105px 18px 45px;
    }

    #home .hero-banner {
        width: 100%;
        padding: 10px 0;
    }

    #home .hero-text {
        width: 100%;
        max-width: 100%;
    }

    #home .hero-text h1 {
        font-size: clamp(2rem, 9vw, 3.5rem);
        overflow-wrap: break-word;
    }

    #home .hero-gif-wrapper {
        width: 100%;
        max-width: 280px;
    }

    /* PROCESS SECTION */
    .process-section {
        padding: 35px 18px;
        width: 100%;
    }

    .process-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    /* CAROUSEL */
    .carousel-title {
        padding: 0;
        font-size: 1.5rem;
    }

    .carousel-wrapper {
        width: 100%;
    }

    /* ABOUT PAGE */
    .about-page {
        width: 100%;
        padding: 90px 18px 45px;
    }

    .about-page .about-intro {
        width: 100%;
        gap: 25px;
    }

    .about-page .skills-split,
    .about-page .hobbies {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    /* PROJECT PAGES */
    .project-detail {
        width: 100%;
        max-width: 100%;
        padding: 110px 18px 45px;
    }

    .project-content {
        width: 100%;
        min-width: 0;
    }

    .project-gallery-grid,
    .project-detail .project-gallery-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .project-hero-image,
    .project-video-figure {
        width: 100%;
        max-width: 100%;
    }

    /* FOOTER */
    .site-footer {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* VERY SMALL PHONES */
@media (max-width: 350px) {

    nav {
        padding: 8px;
        gap: 5px;
    }

    nav .logo {
        font-size: 0.85rem;
    }

    .nav-right {
        gap: 5px;
    }

    .links {
        gap: 5px;
    }

    .links a {
        font-size: 0.65rem;
    }

    .language-btn {
        padding: 6px;
        font-size: 0.7rem;
    }
}
@media (max-width: 760px) {

    nav {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    /* Title - top left */
    nav .logo {
        order: 1;
        margin: 0;
        font-size: 1.1rem;
        white-space: nowrap;
    }

    /* Right side wrapper */
    .nav-right {
        display: contents;
    }

    /* Language button - top right */
    .language-dropdown {
        order: 2;
        margin-left: auto;
        position: relative;
    }

    .language-btn {
        min-height: 40px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    /* Links - second row */
    .links {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .links a {
        margin: 0;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}
/* =========================
   MOBILE RESPONSIVE STYLES
========================= */

@media (max-width: 760px) {

    /* HOME PAGE */
    #home .hero-text {
        padding-right: 15px;
        box-sizing: border-box;
    }

    #home .welcome-text {
        padding-right: 10px;
        box-sizing: border-box;
    }


    /* PROJECT OVERVIEW PAGE */
    .project-page {
        padding-top: 190px !important;
        padding-left: 18px;
        padding-right: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-page .section-title {
        position: relative;
        z-index: 1;
        margin-top: 0;
    }


    /* INDIVIDUAL PROJECT PAGES */
    .project-detail {
        padding: 150px 18px 45px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }

    .project-header {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }

    .project-header h1,
    .project-header .section-title {
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .project-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        height: auto;
        overflow: visible;
        gap: 20px;
    }

    .project-gallery-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        height: auto;
        gap: 30px;
        align-items: start;
    }

    .project-figure {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: auto;
        min-width: 0;
        margin: 0;
    }

    .project-figure img,
    .project-figure video {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .project-figure figcaption {
        display: block;
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 12px;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .project-video-figure {
        margin-top: 25px;
    }

    .project-description {
        width: 100%;
        height: auto;
    }


    /* ABOUT PAGE – HOBBIES */
    .hobbies {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hobbies .hobby {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        height: auto;
        min-height: 0;
        overflow: visible;
        gap: 0;
    }

    .hobbies .hobby img {
        order: 1;
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .hobbies .hobby h3 {
        order: 2;
        position: relative;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 15px 0 8px;
        padding: 0;
        width: 100%;
        line-height: 1.3;
        z-index: 1;
    }

    .hobbies .hobby p {
        order: 3;
        position: relative;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        padding: 0;
        width: 100%;
        line-height: 1.6;
    }

}