/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: #111;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.terugknop {
    width: 50px;
    height: 100%;
    display: inline-block;
    transform-origin: center;
    transition: transform 300ms ease-in-out;
}

.terugknop:hover {
    transform: scale(1.2) rotate(720deg);
    /* 3 x 360 = 1080 graden */
}

.main-project-detail {
    max-width: 1300px;
    margin: 0 auto;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.main-header>h1.brand {
    font-weight: 800 !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-bd {
    height: 40px;
}

.top-nav {
    display: flex;
    gap: 16px;
}

.top-nav a {
    font-weight: 600;
    color: #111;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.top-nav a:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Home grid */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    min-height: calc(100vh - 88px);
}

.titel-pagina {
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0px auto 50px auto;
}

.titel-paginareis {
    font-size: 2.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
        font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 50px auto 50px auto;
}

.wastewise-image {
    width: 50%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.projects-page {
    padding: 48px 24px 72px;
    max-width: 1300px;
    margin: 0 auto;
}

.watisadd {
    width: 50%;
    margin: 50px auto;
    background: #fff;
    /* optioneel, nodig voor zichtbare schaduw op transparante achtergronden */
    border-radius: 8px;
    /* optioneel, maakt de schaduw vloeiender */
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.watisadd:hover {
    transform: translateY(-4px);
    /* licht optillen voor effect */
}

.about-page {
    padding: 48px 24px 72px;
    max-width: 1300px;
    margin: 0 auto;
}

.music-page{
   
    padding: 48px 24px 72px;
    max-width: 1300px;
    margin: 0 auto;
}



.project-detail-page {
    padding: 48px 24px 72px;
    max-width: 1300px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}

p {
    font-size: 1.55rem;
    line-height: 1.7;
}

.about-copy p {
    color: #334155;
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 20px;
}

.about-copy h1 {
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.about-photo {
    height: 500px;
    width: auto;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-music{
    width: 50%;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
    object-fit: cover;
}


.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
    object-fit: cover;
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}





.project-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.text-section {
    max-width: 1000px;
    margin: 150px auto;
}

.text-section p {
    font-size: 20px;
    line-height: 1.3;
}

.text-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

/* Rij 1 */
.project-detail-grid>.project-detail-copy,
.project-detail-grid>.project-detail-images {
    display: grid;
    gap: 20px;
}

.project-detail-copy p {
    font-size: 20px;
    line-height: 1.3;
}

.copy-p {
    font-size: 20px;
    line-height: 1.3;
    margin-top: 20px;
}

.project-detail-grid {
    display: grid;
    gap: 40px;
}

/* Rij 1: tekst + images */
.project-detail-grid {
    grid-template-columns: 1fr 1fr;
}

.project-detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.artikel-image-1 {
    width: auto;
    max-height: 400px;
    border-radius: 10px;
    margin: 0 auto;
}

.artikel-image-2 {
    width: auto;
    max-height: 400px;
    max-width: 700px;
    border-radius: 10px;
    margin: 0 auto;
}

/* Rij 2: 3 images */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin: 50px auto;
}

.project-gallery-image {
    width: auto;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* Rij 3: image + tekst */
.project-detail-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-detail-bottom .image img {
    width: 100%;
}

/* Images algemeen */
img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tablet */
@media (max-width: 900px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiel */
@media (max-width: 600px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-detail-bottom {
        grid-template-columns: 1fr;
    }

    .project-detail-bottom .image {
        order: -1;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111;
    font-weight: 700;
    margin-bottom: 24px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #000;
}


.project-link {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 24px;
    background: #111;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-link:hover {
    transform: translateY(-2px);
    background: #222;
}

.projects-intro {
    max-width: 720px;
    margin-bottom: 40px;
    position: relative;
    margin: 0 auto;
}

.projects-intro .eyebrow {
    display: inline-block;
    font-size: 0.92rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #334155;
}

.projects-intro h1 {
    font-size: clamp(2.6rem, 4vw, 3.8rem);
}

.projects-intro p {
    max-width: 620px;
    color: #334155;
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    background: none;
    width: 100%;
    height: 450px;
    flex: none;
    /* voorkomt stretch in grid */
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 0.20s ease-out;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 34px 72px rgba(15, 23, 42, 0.18);
}

.project-card:hover::before {
    opacity: 1;
}

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

.project-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-card-content {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.project-card-text {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.project-card-content h2 {
    color: #fff;
    font-size: clamp(3rem, 2.6vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.project-subtitle {
    color: #ffffff;
    font-size: clamp(1rem, 1.1vw, 1rem);
    text-align: center;
    margin: 0;
    padding-top: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.video-player-container {
    width: 80%;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    margin: 24px auto 0 auto;
    position: relative;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.titel-video {
    margin: 100px auto 0 auto;
    text-align: center;

}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 28px solid #111;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    margin-left: 6px;
}

.video-play-btn:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}





.modal-main {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    min-height: 0;
    overflow: hidden;
}

.modal-gallery {
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: auto;
    min-height: 300px;
}

.modal-gallery-image {
    width: 110%;
    height: 110%;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.modal-copy {
    grid-column: span 3;
    padding: 32px 36px 36px;
    overflow-y: auto;
    min-height: 0;
}

.project-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.project-modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.modal-inner {
    position: relative;
    width: 80%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.2);
    overflow-y: auto;
    /* 👈 dit is de key */
    display: flex;
    gap: 0;
    max-height: 90vh;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: #111;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100%;
}

.modal-copy {
    padding: 36px 36px 44px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
}

.modal-copy .eyebrow {
    color: #64748b;
    margin-bottom: 18px;
}

.modal-copy h2 {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    margin: 0 0 18px;
}

.modal-copy p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 700;
    transition: background 0.25s ease;
}

.modal-link:hover {
    background: #333;
}

.card {
    position: relative;
    width: 100%;
    min-height: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));
    transition: background 0.35s ease;
}

.card-text {
    position: absolute;
    left: 50%;
    top: 85%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2.6rem;
    font-weight: 1000;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    transition: transform 0.35s ease-out, font-size 0.35s ease-out, left 0.35s ease-out, top 0.35s ease;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card.is-hovered::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
}

.card.is-hovered .card-text {
    left: 14%;
    top: 80%;
    transform: translateY(-35%) rotate(-90deg);
    transform-origin: left center;
    font-size: 4rem;
    text-align: left;
}

.card,
.card:visited,
.card:active,
.card:hover {
    color: inherit;
    text-decoration: none;
}



.gallery {
    display: flex;
    gap: 20px;
    width: 1100px;
    height: 500px;
    margin: 100px auto;
}

.item {
    flex: 1;
    transition: flex 0.5s ease, filter 0.3s ease;
    background-size: cover;
    background-position: center;
}

.item:hover {
    flex: 6;
    filter: brightness(1.2);
}

.gallery .item {
    position: relative;
    overflow: hidden;
}

.gallery .item::before {
    content: '';
    position: absolute;
    inset: 0;
    /* vervangt width/height 100% */
    background: linear-gradient(#fff,
            transparent,
            transparent,
            transparent,
            #fff);
    pointer-events: none;
}

.gallery .item:nth-child(even) {
    transform: translateY(30px);
}

.gallery .item:nth-child(odd) {
    transform: translateY(-30px);
}

.gallery .item::after {
    content: attr(data-text);
    position: absolute;
    bottom: -50px;
    color: #000;
    font-size: 3em;
    font-weight: 900;
    left: 50%;
    transform: translateX(-50%);

    padding: 5px auto;
    white-space: nowrap;
    transition: 0.5s;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    opacity: 0;
    transition-delay: 0s;

}

.gallery .item:hover::after {
    bottom: 50px;
    opacity: 1;
    transition-delay: 0.10s;

}

.p-reis{
    color: #334155;
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 20px;
    margin: 0 50px;
}

.fotographie-image-1 {
    width: auto;
    max-height: 400px;
    border-radius: 10px;
    margin: 0 auto;
}



.koffie {
    padding: 180px 20px;
    text-align: center;
}

.koffie h2 {
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.koffie p {
    max-width: 720px;
    margin: 0 auto;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.7;
}

.mail-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.mail-button:hover {
    background-color: #333;
}

.project-subtitle {
    text-align: center;
    color: white;
    margin-top: -30px;
    margin-bottom: 40px;
}

.project-hero img {
    width: 80%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.project-detail-copy h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.project-detail-copy h3 {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #444;
}

.project-detail-copy {
    max-width: 540px;
}

/* Footer */
.site-footer {
    padding: 20px 24px;
    text-align: center;
    background: rgba(243, 244, 246, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #334155;
    font-size: 0.95rem;
}

.hover-gallery {
    display: flex;
    width: 100%;
    height: 500px;
    gap: 10px;
    overflow: hidden;
}

/* standaard smal */
.gallery-item {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 14px;
    cursor: pointer;
    transition: flex 0.6s ease, filter 0.4s ease;
    filter: brightness(0.9);
}

/* titel */
.gallery-item h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.3rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ACTIVE (JS zet deze class) */
.gallery-item.active {
    flex: 4;
    filter: brightness(1);
}

.gallery-item.active h3 {
    opacity: 1;
    transform: translateY(0);
}

/* niet-active items krimpen */
.hover-gallery.has-active .gallery-item {
    flex: 0.7;
    filter: brightness(0.5);
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 88px);
    }

    .card-text {
        font-size: 2rem;
        left: 50%;
        top: 52%;
        transform: translate(-50%, -50%);
    }

    .card.is-hovered .card-text {
        left: 10%;
        top: 60%;
        transform: translateY(-35%) rotate(-90deg);
        font-size: 2.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .modal-inner {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 220px;
    }
}

/* Mobile Responsive - Phone Sizes */
@media (max-width: 768px) {

    /* Header Adjustments */
    .main-header {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .logo-bd {
        height: 32px;
    }

    .main-header>h1.brand {
        font-size: 1.1rem;
        letter-spacing: 0.06em;
    }

    .top-nav {
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        order: 3;
    }

    .top-nav a {
        font-size: 0.9rem;
        padding: 6px 8px;
    }

    /* Hero Grid */
    .hero-grid {
        min-height: 60vh;
    }

    .card-text {
        font-size: 1.5rem;
        top: 50%;
    }

    .card.is-hovered .card-text {
        font-size: 1.8rem;
    }

    /* Page Layout */
    .projects-page,
    .about-page,
    .project-detail-page {
        padding: 32px 16px 48px;
    }

    .titel-pagina {
        margin-bottom: 32px;
        font-size: 1.8rem;
    }

    /* About Page */
    .about-content {
        gap: 24px;
    }

    .about-copy p {
        font-size: 1.1rem;
        margin: 12px;
    }

    .about-copy h1 {
        font-size: 2rem;
    }

    .about-photo {
        height: 300px;
    }

    /* Project Cards */
    .projects-grid {
        gap: 16px;
    }

    .project-card {
        min-height: 320px;
        height: 320px;
    }

    .project-card-content h2 {
        font-size: 1.8rem;
    }

    .project-subtitle {
        font-size: 0.9rem;
    }

    /* Text Sections */
    .text-section {
        margin: 80px auto;
    }

    .text-section p,
    .text-section h2 {
        font-size: 0.95rem;
    }

    /* Project Detail Grid */
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-detail-images {
        gap: 16px;
    }

    .artikel-image-1,
    .artikel-image-2 {
        max-height: 300px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 32px auto;
    }

    .project-gallery-image {
        max-height: 300px;
    }

    .project-detail-bottom {
        gap: 16px;
    }

    .project-detail-copy {
        max-width: 100%;
    }

    .project-detail-copy p {
        font-size: 1rem;
    }

    /* Video Player */
    .video-player-container {
        width: 95%;
        margin: 16px auto 0;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn::after {
        border-left: 20px solid #111;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 4px;
    }

    /* Gallery Lightbox */
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
        padding: 0 12px;
    }

    #lightboxImage {
        border-radius: 16px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 12px;
        right: 12px;
    }

    /* Hover Gallery */
    .hover-gallery {
        height: 300px;
        gap: 8px;
        margin: 24px 0;
    }

    .gallery-item h3 {
        font-size: 1rem;
        bottom: 12px;
        left: 12px;
        padding: 8px;
    }

    /* Project Intro */
    .projects-intro {
        margin: 0 auto 24px;
    }

    .projects-intro h1 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

    .projects-intro p {
        font-size: 0.95rem;
    }

    /* Back Link */
    .terugknop {
        width: 40px;
    }

    .back-link {
        gap: 0.3rem;
        font-size: 0.95rem;
    }

    /* Coffee Section */
    .koffie {
        padding: 48px 16px;
    }

    .koffie h2 {
        font-size: 1.8rem;
    }

    .koffie p {
        font-size: 0.95rem;
    }

    /* Footer */
    .site-footer {
        font-size: 0.85rem;
        padding: 16px 12px;
    }

    /* General Text */
    p {
        font-size: 1.1rem;
    }

    /* Modal */
    .modal-inner {
        width: 95vw;
        max-height: 85vh;
    }

    .modal-copy {
        padding: 24px 20px;
    }

    .modal-copy h2 {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }

    .modal-copy p {
        font-size: 0.9rem;
    }

    /* Main Project Detail */
    .main-project-detail {
        max-width: 100%;
    }

    .project-link {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .wastewise-image {
        width: 90%;
        max-height: 300px;
    }

    .watisadd {
        width: 95%;
        margin: 32px auto;
    }
}

/* Extra Small Screens - Phones */
@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
    }

    .logo-bd {
        height: 28px;
    }

    .main-header>h1.brand {
        font-size: 0.95rem;
    }

    .top-nav {
        gap: 6px;
        margin-top: 6px;
    }

    .top-nav a {
        font-size: 0.8rem;
        padding: 5px 6px;
    }

    .hero-grid {
        min-height: 50vh;
    }

    .card-text {
        font-size: 1.2rem;
    }

    .card.is-hovered .card-text {
        font-size: 1.4rem;
    }

    .projects-page,
    .about-page,
    .project-detail-page {
        padding: 20px 12px 32px;
    }

    .titel-pagina {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .about-copy p {
        font-size: 0.95rem;
        margin: 8px;
    }

    .about-copy h1 {
        font-size: 1.6rem;
    }

    .about-photo {
        height: 240px;
    }

    .project-card {
        min-height: 260px;
        height: 260px;
    }

    .project-card-content h2 {
        font-size: 1.4rem;
    }

    .project-subtitle {
        font-size: 0.8rem;
    }

    .text-section {
        margin: 50px auto;
    }

    .text-section p,
    .text-section h2 {
        font-size: 0.9rem;
    }

    .project-gallery {
        margin: 24px auto;
    }

    .projekt-gallery-image {
        max-height: 250px;
    }

    .artikel-image-1,
    .artikel-image-2 {
        max-height: 250px;
    }

    .video-player-container {
        width: 100%;
    }

    .video-play-btn {
        width: 50px;
        height: 50px;
    }

    .video-play-btn::after {
        border-left: 18px solid #111;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }

    .lightbox-content {
        max-width: 98vw;
        max-height: 70vh;
    }

    .lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .hover-gallery {
        height: 240px;
        gap: 6px;
    }

    .gallery-item h3 {
        font-size: 0.85rem;
        bottom: 8px;
        left: 8px;
    }

    .projects-intro h1 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .projects-intro p {
        font-size: 0.9rem;
    }

    .koffie {
        padding: 32px 12px;
    }

    .koffie h2 {
        font-size: 1.4rem;
    }

    .koffie p {
        font-size: 0.9rem;
    }

    .site-footer {
        font-size: 0.8rem;
        padding: 12px 8px;
    }

    p {
        font-size: 0.95rem;
    }

    .modal-inner {
        width: 98vw;
        max-height: 80vh;
    }

    .modal-copy h2 {
        font-size: 1.4rem;
    }

    .modal-copy p {
        font-size: 0.85rem;
    }

    .project-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .wastewise-image {
        width: 100%;
    }

    .watisadd {
        width: 100%;
    }

    .terugknop {
        width: 36px;
    }

    .back-link {
        font-size: 0.9rem;
    }
}

/* Touch-friendly and Accessibility */
@media (hover: none) and (pointer: coarse) {

    /* Mobile touch devices - no hover effects needed */
    .top-nav a:hover {
        background: transparent;
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:hover::before {
        opacity: 0;
    }

    .card-text {
        font-weight: 900;
    }

    button,
    .project-link,
    .modal-link,
    .top-nav a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Improved Mobile Typography */
@media (max-width: 768px) {
    html {
        font-size: 16px;
        /* Ensures 16px base for better mobile readability */
    }

    body {
        line-height: 1.6;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-break: break-word;
    }
}