/* =========================== Fonts lokaal =========================== */
@font-face {
    font-family: 'Butler';
    src: url('fonts/Butler_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Cheyenne Sans';
    src: url('fonts/CheyenneSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* =========================== Body & achtergrond =========================== */
body {
    margin: 0;
    font-family: 'Cheyenne Sans', sans-serif;
    font-weight: 300;
    color: #282d26;
    line-height: 1.6;
    background: url("img/Recycled_papier_goede_kleur.jpg") no-repeat center center fixed;
    background-size: cover;
    padding-top: 100px;
}

/* =========================== Header =========================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-sizing: border-box;
}

header .logo img {
    height: 50px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
}

nav a {
    text-decoration: none;
    color: #333;
    font-family: 'Cheyenne Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    white-space: nowrap;
    transition: color 0.2s;
    padding: 0 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 0;
    height: 60%;
    width: 1px;
    background-color: #ddd;
}

nav a:hover {
    color: #000;
    font-weight: bold;
}

/* =========================== Secties (algemeen) =========================== */
section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
}

footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #444;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-top: 4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Butler', serif;
    font-weight: 500;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}


/* =========================== Over mij sectie =========================== */
.about-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.about-image img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.about-text {
    flex: 1;
    min-width: 250px;
}

/* =========================== Contact sectie =========================== */
.contact-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
}

.contact-form,
.contact-info {
    flex: 1;
    min-width: 250px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Cheyenne Sans', sans-serif;
    font-size: 1rem;
}

.contact-form button {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: #282d26;
    color: #fff;
    font-family: 'Cheyenne Sans', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #444;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.8rem;
}

/* =========================== Gallery grid =========================== */
.project-page .project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto;
    justify-items: center;
}

.project-page .project-gallery img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.project-page .project-gallery img:first-child {
    grid-column: 1 / 3;
}

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

@media (max-width: 600px) {
    .project-page .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-page .project-gallery img:first-child {
        grid-column: 1;
    }
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 45, 38, 0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    font-family: 'Butler', serif;
    font-size: 0.95rem;
    line-height: 1.3;
    border-radius: 12px;
    box-sizing: border-box;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* =========================== Responsive =========================== */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }

    header .logo img {
        height: 40px;
    }

    nav {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image img {
        max-width: 80%;
        margin-bottom: 1rem;
    }
}

/* =========================== HOME pagina hero =========================== */
/* =========================== HOME pagina hero =========================== */
body.home .hero {
    text-align: center;
    padding: 8rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    max-width: 1200px;
    margin: 3rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.home .hero-name {
    font-size: 5rem;
    font-family: 'Butler', serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0;
    display: flex;          /* zorgt dat woorden naast elkaar staan */
    flex-wrap: nowrap;      /* voorkomen dat ze automatisch onder elkaar gaan */
    justify-content: center;
    gap: 1rem;              /* ruimte tussen voor- en achternaam */
}

/* Voor mobiel: woorden onder elkaar */
@media (max-width: 600px) {
    body.home .hero-name {
        flex-direction: column; /* onder elkaar */
        font-size: 3rem;
        line-height: 1.2;
    }
}

body.home .hero-name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    animation: fadeUpBig 0.8s forwards;
}

body.home .hero-name span:nth-child(1) {
    animation-delay: 0.05s;
}

body.home .hero-name span:nth-child(2) {
    animation-delay: 0.05s;
}

body.home .hero-name span:nth-child(3) {
    animation-delay: 0.05s;
}

/* Voeg hier extra spans toe voor alle letters van je naam */
body.home .hero-name span:nth-child(13) {
    animation-delay: 0.05s;
}

@keyframes fadeUpBig {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

body.home .hero-portfolio {
    margin-top: 1rem;
    font-family: 'Butler', serif;
    font-size: 2.5rem;
    color: #5b6658;
}

body.home .hero-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: #282d26;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Cheyenne Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.home .hero-button:hover {
    background-color: #444;
    transform: scale(1.05);
}


body.home .intro,
body.home .featured-work,
body.home .quote,
body.home .contact-teaser {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

body.home .button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background-color: #282d26;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Cheyenne Sans', sans-serif;
    transition: background-color 0.3s;
}

body.home .button:hover {
    background-color: #444;
}

body.home .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

body.home .project-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

body.home .project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

body.home .quote blockquote {
    font-family: 'Butler', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: #282d26;
    margin: 0;
}

.insta-carousel {
    text-align: center;
    margin-top: 3rem;
    max-width: 800px;
    /*zelfde als je andere secties*/
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    /* Zorgt dat de carousel-track niet buiten dit vlak valt */
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 1rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
    will-change: transform;
}

.carousel img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.carousel img.active {
    transform: scale(1.2);
    z-index: 2;
}

.arrow {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #282d26;
    font-weight: bold;
    padding: 0 1rem;
    user-select: none;
    transition: color 0.2s;
    position: absolute;
    /* Zorgt dat het bovenop de carousel staat */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.arrow.left {
    left: 1rem;
}

.arrow.right {
    right: 1rem;
}

.arrow:hover {
    color: #5b6658;
}

/* =========================== Projectpagina: galerij met foto's =========================== */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-gallery img {
    max-width: 350px;
    /* zorgt dat ze nooit breder dan dit zijn */
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

/* Zorg dat het op mobiel goed schaalt */
@media (max-width: 600px) {
    .project-gallery img {
        max-width: 100%;
    }
}

/* =========================== Lightbox (foto vergroten bij klik) =========================== */
.lightbox {
    display: none; /* standaard onzichtbaar */
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.lightbox img:hover {
    transform: scale(1.02);
}
.back-button-container {
    max-width: 800px;
    margin: 2rem auto;
    text-align: left; /* Of center als je wilt */
}

.back-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #282d26;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Cheyenne Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #444;
    transform: scale(1.05);
}
/* Knoppen hover */
.hero-button,
.button,
.back-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #282d26;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Cheyenne Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hero-button:hover,
.button:hover,
.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #444;
}

/* Gallery-item hover alleen afbeelding */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* alleen image schaal */
}

/* Overlay fade-in */
.gallery-item .overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.project-gallery img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
}

.project-gallery img[alt*="Verticale"] {
    max-width: 200px; /* iets smaller zodat het evenwichtig oogt */
}

strong {
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Butler', serif;
}
