/* =========================================
AraTechnics
Auteur: Arne (AraTechnics.be)
========================================= */

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('/assets/fonts/Roboto-Light.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/Roboto-Regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: url('/assets/fonts/Roboto-Italic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/Roboto-Medium.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 500;
    src: url('/assets/fonts/Roboto-MediumItalic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/Roboto-Bold.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 700;
    src: url('/assets/fonts/Roboto-BoldItalic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    src: url('/assets/fonts/Roboto-Black.woff2') format('woff2');
}

/* =========================================
Globale Variabelen & Reset
========================================= */
:root {
    --primary-color: #00ff00;
    --secondary-color: #1a1a1a;
    --background-color: #0d0d0d;
    --text-color: #f0f0f0;
    --text-color-darker: #bcbcbc; /* opgetild voor leesbaarheid: 7.8:1 -> 10.7:1 */
    --font-family: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;     
    user-select: none;        
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    scrollbar-width: thin;
    /* Baan doorzichtig: enkel de greep is zichtbaar, geen balk erachter. */
    scrollbar-color: #434343 transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform var(--transition-speed) ease-out;
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =========================================
Header & Navigatie
========================================= */
#header {
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 8vh;
}

.logo a {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    margin-left: -20px;
    margin-right: 10px;
    height: 55px;
    width: auto;
}

.logo a:hover {
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

.nav-links a::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease-in-out;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all var(--transition-speed) ease;
}

@keyframes grid-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100px 100px; }
}


/* =========================================
Hero Sectie
========================================= */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; 
    opacity: 0.5;
}

#interactive-glow-orb {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.3) 0%, rgba(0, 255, 0, 0) 60%);
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: left 0.2s ease-out, top 0.2s ease-out, opacity 0.5s ease-out;
}

.hero-content {
    z-index: 1;
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    padding: 0 1rem;
    pointer-events: none;
}

.hero-content > * {
    pointer-events: auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateZ(50px);
}

.hero-tagline {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    transform: translateZ(20px);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
    background-color: transparent;
    color: var(--primary-color);
    display: inline-block;
    transform: translateZ(10px);
    transform: translateY(-5px) scale(1.05) translateZ(10px);
}

/* =========================================
Over Mij Sectie
========================================= */
.about-section {
    padding: 6rem 0;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1.5;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color-darker);
}

.about-text p:first-of-type {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.about-image-wrapper {
    flex: 1;
    width: 100%;
    max-width: 400px;
    position: relative;
    aspect-ratio: 1 / 1;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    transition: transform var(--transition-speed) ease;
}

.about-image-wrapper:hover::before {
    transform: rotate(5deg) scale(0.95);
}

.about-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover .about-image {
    transform: translate(-50%, -50%) scale(1.05);
}

@media screen and (max-width: 992px) {
    .about-image-wrapper{
        max-width: 120px;
    }

    .about-image{
        max-width: 100px;
    }
}

/* =========================================
Diensten Sectie 
========================================= */
.services-section {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    justify-content: center;

}

/* Tablet: 2 kolommen */
@media screen and (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 kolommen */
@media screen and (min-width: 1200px) {
    .services-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .services-grid .service-card {
        width: 350px;
        flex-shrink: 0; 
    }
    .services-section .container {
        max-width: 1600px;
        width: 100%;
    }
}

.service-card {
    background-color: var(--background-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 0, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--text-color-darker);
}

.service-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* =========================================
Portfolio Sectie
========================================= */
.portfolio-section {
    padding: 6rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    justify-content: center; 
    gap: 2rem;
    margin-bottom: 3rem;
    /* Zorgt dat de grid container soepel meebeweegt */
    transition: all 0.5s ease;
}

/* =========================================
   Portfolio Kaart Stijl & Animatie
   ========================================= */
.portfolio-item {
    background-color: var(--background-color);
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
    /* Animatie instellingen voor soepel in/uitklappen */
    transition: 
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
        opacity 0.5s ease, 
        max-height 0.6s ease-in-out, 
        margin 0.5s ease,
        padding 0.5s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;

    /* Standaard status (zichtbaar) */
    opacity: 1;
    max-height: 1000px;
    transform: translateY(0);
}

/* De 'Animation' state (onzichtbaar maar bestaat wel) */
.item-hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    pointer-events: none;
    transform: translateY(-50px) scale(0.95);
    overflow: hidden; 
}

/* De 'Layout' state (volledig weg uit de grid om gaten te voorkomen) */
.portfolio-item.hard-hidden {
    display: none;
}

/* Hover effect (alleen als item zichtbaar is) */
.portfolio-item:not(.item-hidden):hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 0, 0.2);
    border-color: var(--primary-color);
}

/* Afbeelding Wrapper (Vaste hoogte) */
.portfolio-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Content onder de foto */
.portfolio-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1; /* Duwt footer naar beneden bij ongelijke tekst */
    justify-content: space-between;
}

.portfolio-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
}

/* De Link Knop */
.portfolio-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    background-color: transparent;
    cursor: pointer;
}

.portfolio-link:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}



/* =========================================
   Portfolio Tags 
   ========================================= */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center; /* Centreert de tags, pas aan naar 'flex-start' voor links uitlijnen */
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 50px; /* Zorgt voor de pil-vorm */
    
    /* Kleurstelling in jouw huisstijl */
    background-color: rgba(0, 255, 0, 0.1); /* 10% groen, dus transparant donker */
    color: var(--primary-color); /* Jouw neon groen */
    border: 1px solid var(--primary-color); /* Dun groen randje */
    
    transition: all 0.3s ease;
    cursor: default;
}

/* Optioneel: Hover effect op de tags */
.tag:hover {
    background-color: var(--primary-color);
    color: var(--background-color); /* Zwarte tekst op groene achtergrond */
    box-shadow: 0 0 10px var(--primary-color);
}

/* =========================================
   Toon Meer Knop Stijl
   ========================================= */
.portfolio-footer {
    text-align: center;
    margin-top: 1rem;
}

#load-more-btn {
    background-color: transparent; 
    border: 2px solid var(--primary-color);
    color: var(--primary-color); 
    
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    
    /* Zorgt dat de knop niet verspringt in breedte bij tekstwissel */
    min-width: 200px; 
}

#load-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4); 
    transform: translateY(-3px);
}

#load-more-btn:focus {
    outline: none;
}

/* =========================================
Portfolio Popup
========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 10px;
    width: 92%;
    max-width: 1150px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-color-darker);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.popup-close:hover {
    color: var(--primary-color);
}

#popup-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.popup-body {
    display: grid;
    /* Beeldkolom stopt bij 520px (zo groot wordt de hoofdfoto toch maar);
       alle overblijvende ruimte gaat naar de tekst. */
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 2.2rem;
}

.popup-images {
    position: relative;
}

#popup-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: var(--background-color);
    border-radius: 5px;
    transition: opacity 0.4s ease-in-out;
}

#popup-main-image.fade-out {
    opacity: 0;
}

.popup-main-image{
    max-width: 500px;
}

.popup-thumbnails {
    display: flex;
    /* Terugloop naar een tweede rij: een miniatuur is vast 100px breed, dus vanaf
       vijf stuks past de rij niet meer binnen de 500px en liep ze over de tekst. */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin-top: 1rem;
}

.popup-thumbnails img {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-speed) ease;
}

.popup-thumbnails img:hover, .popup-thumbnails img.selected {
    border-color: var(--primary-color);
}

/* De beschrijving is een eigen scrollkader: de screenshots blijven staan
   terwijl je door de tekst scrolt. De titel scrollt niet mee. */
.popup-body { align-items: start; }

.popup-description {
    display: flex;
    flex-direction: column;
    max-height: 62vh;
    min-height: 0;
}

.popup-description h3 {
    flex: none;
    margin-bottom: 0.7rem;
    font-size: 1.4rem;
}

.popup-description p {
    color: var(--text-color-darker);
    line-height: 1.7;
}

/* Scrollt op zichzelf, maar oogt niet als een apart kader: geen rand en geen
   achtergrond. Enkel de scrollbalk ernaast verraadt dat er meer tekst is. */
#popup-description-text {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 1rem; /* ruimte zodat de tekst niet onder de scrollbalk loopt */
}

#popup-description-text::-webkit-scrollbar { width: 8px; }
#popup-description-text::-webkit-scrollbar-track { background: transparent; }
#popup-description-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
#popup-description-text::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* Tussentitels: eigen regel en lichter dan de lopende tekst */
.popup-sub {
    display: block;
    margin: 1.5rem 0 0.35rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
}
.popup-sub:first-child { margin-top: 0; }

/* Link in de beschrijving: lichter dan de standaard groene text-link,
   met een groene onderlijn zodat hij nog duidelijk een link is */
.popup-description a.text-link {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 0, 0.55);
    text-underline-offset: 3px;
}
.popup-description a.text-link:hover { color: var(--primary-color); }

@media screen and (max-width: 768px) {
    .popup-body { grid-template-columns: 1fr; gap: 1.2rem; }
    .popup-content { padding: 1.6rem; }
    #popup-title { font-size: 1.5rem; margin-bottom: 1.2rem; }
    .popup-main-image, .popup-thumbnails { max-width: none; }
    /* Lager kader op mobiel, anders duwt het de screenshots uit beeld */
    .popup-description { max-height: 45vh; }
}

/* =========================================
Contact Sectie & Validatie
========================================= */
.contact-section {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Alles horizontaal centreren */
    text-align: center;
    background-color: var(--secondary-color);
    padding: 3rem;
    border-radius: 15px;
    max-width: 800px; /* Zorgt dat de box niet te breed wordt */
    margin: 0 auto;
}

.contact-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Zorgt voor centrering van tekst, hub en info */
}

/* Zorg dat de sectietitel ook gecentreerd is */
.contact-text .section-title {
    text-align: center;
}

.social-links {
    margin-left: 30px;
    display: flex;
    gap: 15px;          
    margin-top: 15px;
    width: 100%;
}

.contact-text .section-title {
    text-align: left;
    margin-bottom: 5px;
}

.contact-text p {
    margin-bottom: 2rem;
    color: var(--text-color-darker);
    font-size: 1.1rem;
}

.contact-details {
    /* margin-top:auto duwt dit blok naar de onderkant van de kolom, maar geeft
       geen vaste tussenruimte: staat de kolom vol, dan plakt het tegen de
       verzendknop. De padding zorgt dat er altijd lucht tussen zit.
       Meer of minder ruimte? Draai aan padding-top. */
    margin-top: auto;
    padding-top: 2.5rem;
    order: 2;
}

.social-links {
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.social-links a {
    margin-right: 1rem;
    display: inline-block;
}

.social-links svg {
    width: 30px;
    height: 30px;
    color: var(--text-color-darker);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-links a:hover svg {
    color: var(--primary-color);
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links svg { width: 24px; height: 24px; color: var(--text-color-darker); transition: 0.3s; }
.social-links a:hover svg { color: var(--primary-color); }



/* =========================================
   REVIEW-OPROEP (contactsectie)
   Bewust rustiger dan de hoofd-CTA: dit is voor bestaande klanten.
========================================= */
.review-cta {
    margin: 0 0 1.4rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid var(--primary-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    max-width: 420px;
}

.review-stars {
    display: block;
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    line-height: 1;
}

.review-copy {
    margin: 0.4rem 0 0.6rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-color-darker);
}

.review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

/* Op aanraakschermen minstens 44px hoog houden, anders is hij lastig te raken.
   Met een muis mag hij compacter. */
@media (pointer: coarse) {
    .review-btn { min-height: 44px; }
}

.review-btn:hover,
.review-btn:focus-visible {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.review-btn .btn-arrow {
    transition: transform var(--transition-speed) ease;
}

.review-btn:hover .btn-arrow {
    transform: translate(2px, -2px);
}

@media screen and (max-width: 600px) {
    .review-cta { max-width: none; }
    .review-btn { width: 100%; justify-content: center; }
}


/* =========================================
Footer
========================================= */
#footer {
    padding: 3rem 0 5rem 0; /* Iets meer ruimte onderaan voor de vorm */
    text-align: center;
    background-color: #000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Dit zorgt dat de teksten (Copyright, links, made by) heel dicht op elkaar staan */
    gap: 0.5rem; 
}

.footer-info {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-color-darker);
    margin: 0; /* Geen marges rondom de tekst voor strakke uitlijning */
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.2rem 0; /* Heel klein beetje ruimte boven en onder de links */
}

/* =========================================
   Footer Feedback Form
   ========================================= */
.footer-feedback-wrapper {
    width: 100%;
    max-width: 450px;
    text-align: center;
    background-color: #0d0d0d;
    padding: 2rem;
    
    /* Zorgt dat het formulier pas een stuk ONDER de tekst begint */
    margin-top: 3rem; 

    /* DE HAP ERUIT (Tech Look) */
    /* Dit snijdt de hoek rechtsonder schuin af */
    clip-path: polygon(
        0 0,              /* Linksboven */
        100% 0,           /* Rechtsboven */
        100% calc(100% - 30px), /* Rechtsonder (begin schuinte) */
        calc(100% - 30px) 100%, /* Rechtsonder (einde schuinte) */
        0 100%            /* Linksonder */
    );
    
    /* Omdat we snijden, vervalt de border. 
       We geven een subtiele lichte border aan de bovenkant voor diepte */
    border-top: 1px solid #222;
}

.footer-feedback-wrapper h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: left;
    margin-left: 2px;
}

.feedback-btn {
    align-self: flex-start;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 5px; /* Standaard afronding */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

/* Status berichtjes */
.feedback-status {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
    text-align: left;
}
.feedback-status.success { color: #2ecc71; }
.feedback-status.error { color: #e74c3c; }


/* Het contactformulier vulde het paneel niet: .contact-text is een flex-kolom
   met align-items:center, en een flex-kind krimpt daardoor tot zijn eigen
   inhoudsbreedte. De inputs staan wel op width:100%, maar dan van een veel te
   smal formulier. Een expliciete breedte maakt de velden en de knop zo breed
   als het paneel toelaat. */
.contact-form {
    width: 100%;
    max-width: 620px;
    text-align: left;
}

.contact-form .submit-button {
    width: 100%;
}

/* Standaard Input Stijl */
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #fff;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color-darker);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

/* Label verplaatsen bij focus of inhoud.
   Het zweeft bóven het veld, dus het heeft een eigen achtergrond nodig om de
   rand eronder te maskeren. Die achtergrond is bewust dezelfde als die van het
   veld (#2a2a2a) en niet die van de sectie: zo leest het als een labeltje dat
   bij het veld hoort, in plaats van een blok dat er los op geplakt is.
   Tekstkleur volgt het veld, rand wit zoals de focusrand, hoeken licht
   afgerond in dezelfde stijl als het veld zelf. */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-color);
    background-color: #2a2a2a;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 0.05rem 0.45rem;
    line-height: 1.4;
}

/* 
   === VALIDATIE LOGICA (Direct tijdens typen) === 
*/

/* ROOD: Zodra je typt (niet placeholder shown) EN het is nog ongeldig (bijv te kort) */
.form-group input:not(:placeholder-shown):invalid,
.form-group textarea:not(:placeholder-shown):invalid {
    border-color: #ff4d4d; /* Rood */
}

/* GROEN: Zodra je typt (niet placeholder shown) EN het is geldig */
.form-group input:not(:placeholder-shown):valid,
.form-group textarea:not(:placeholder-shown):valid {
    border-color: #2ecc71; /* Groen */
}

/* De twee vinkjes horen bij elkaar, dus dicht op elkaar. Alleen ná het laatste
   vinkje komt er weer ruimte, vóór de verzendknop. */
.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-color-darker);
}
.form-group-checkbox:last-of-type {
    margin-bottom: 1.75rem;
}

.form-group-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 0.7rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}
/* Het label is klikbaar: het hele regeltje telt als raakvlak, zonder dat het
   vakje zelf groter hoeft. Verandert niets aan de opmaak. */
.form-group-checkbox label {
    cursor: pointer;
}

.form-group-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    width: 100%;
    font-size: 1.1rem;
}

.submit-button:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

#form-status {
    margin-top: 1rem;
    font-weight: 700;
    display: none;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
}

#form-status.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    display: block;
}

#form-status.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
}

/* Mobiele aanpassing */
@media screen and (max-width: 768px) {
    .footer-feedback-wrapper {
        padding: 1.5rem;
        width: 100%;
        /* Op mobiel misschien een iets kleinere hap? */
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    }
    
    .feedback-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
Scroll Animaties
========================================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll[data-origin="left"] {
    transform: translateX(-50px);
}

.reveal-on-scroll[data-origin="right"] {
    transform: translateX(50px);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}


/* =========================================
Dark Scrollbar
========================================= */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #434343;
  border-radius: 20px;
  /* Doorzichtige rand + padding-box: de greep blijft smaller dan de baan,
     zonder een gekleurde ring rond de greep. */
  border: 3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #5e5e5e;
}

/* =========================================
Responsive Design
========================================= */
@media screen and (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .contact-text .section-title {
        text-align: center;
    }
}

@media screen and (max-width: 1100px) {

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--background-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50%;
        max-width: 300px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links li {
        opacity: 0;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .toggle {
        position: fixed;
        right: 2rem;
    }
    
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .about-content {
        flex-direction: column;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        justify-items: center; 
    }

    .portfolio-item {
        width: 90%;
        max-width: 400px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .popup-body {
        grid-template-columns: 1fr;
    }

    #popup-title {
        font-size: clamp(1.5rem, 6vw, 1.8rem); 
        line-height: 1.3;
        word-break: break-word;
    }

    .popup-thumbnails {
        flex-wrap: wrap;
        justify-content: center;
    }

    .popup-thumbnails img {
        flex-grow: 1;
        max-width: 90px;
    }

    .popup-content {
        padding: 2rem 1.5rem;
        scrollbar-width: thin;
        scrollbar-color: #434343 var(--secondary-color);
    }
    .popup-content::-webkit-scrollbar {
        width: 8px;
    }
    .popup-content::-webkit-scrollbar-track {
        background: var(--secondary-color);
    }
    .popup-content::-webkit-scrollbar-thumb {
        background-color: #434343;
        border-radius: 20px;
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }
}

/* =========================================
Cookiebanner
========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #1e1e1e;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show { bottom: 0; }

.cookie-banner p {
    margin: 0;
    color: var(--text-color-darker);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Beide knoppen even prominent (gelijke grootte/positie) - GDPR/GBA-conform.
   2px-rand op beide zodat de box-afmetingen exact gelijk zijn. */
.cookie-button {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.3s ease, filter 0.3s ease;
}
.cookie-button.primary { background-color: var(--primary-color); color: var(--background-color); }
.cookie-button.primary:hover { filter: brightness(1.12); }
.cookie-button.secondary { background-color: transparent; color: var(--text-color); }
.cookie-button.secondary:hover { background-color: rgba(0, 255, 0, 0.12); }

.cookie-settings-open {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .cookie-banner { flex-direction: column; text-align: center; padding: 1.5rem 1rem; }
    .cookie-buttons { margin-top: 1rem; }
}

/* --- Reviews als eigen sectie (sinds 3/09) ---
   Het review-blok stond eerst in de contactkolom en had daarom een smalle
   max-width. Als losse sectie mag het wat ruimer, in dezelfde breedte als de
   FAQ-lijst zodat de twee onder elkaar uitgelijnd blijven. */
.reviews-body {
    max-width: 820px;
}

.reviews-body .review-cta {
    max-width: none;
    margin: 0;
    padding: 1.4rem 1.6rem;
}

/* De twee kaartjes bij "Wat ik bied" moeten even hoog zijn en allebei drie
   regels tekst tonen. De kaarthoogte regelt de flex-/grid-layout al; deze
   min-height houdt ook de RUIMTE voor drie regels vast, zodat de kaartjes
   gelijk blijven ongeacht de schermbreedte of hoe de tekst afbreekt.
   Bereken: 3 regels x regelhoogte 1.6 = 4.8em. */
.service-card p {
    min-height: 4.8em;
}

/* =========================================
Hulpzinnen onder het berichtveld
Klikbare zinnetjes die de bezoeker op weg helpen, zodat een aanvraag meteen
genoeg informatie bevat i.p.v. "ik wil een website".
========================================= */
.veld-hulp {
    margin: -0.75rem 0 1.5rem;
}

.veld-hulp-titel {
    display: block;
    font-size: 0.78rem;
    color: var(--text-color-darker);
    margin-bottom: 0.55rem;
}

.veld-hulp-knoppen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.veld-chip {
    font-family: inherit;
    font-size: 0.78rem;
    color: var(--text-color-darker);
    background-color: transparent;
    border: 1px solid #333;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.veld-chip::before {
    content: "+ ";
    color: var(--primary-color);
}

.veld-chip:hover,
.veld-chip:focus-visible {
    color: var(--text-color);
    border-color: var(--primary-color);
    background-color: rgba(0, 255, 0, 0.07);
    outline: none;
}

/* Even bevestigen dat de klik aankwam: het chipje licht kort op. */
.veld-chip.is-gebruikt {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Het berichtveld groeit mee met de tekst (zie js/index.js). Geen handmatige
   greep: de hoogte wordt door de inhoud bepaald. Pas boven MAX_HOOGTE zet de
   JS overflow-y weer op auto en verschijnt de scrollbalk hieronder.
   Die krijgt dezelfde dunne, donkere stijl als de paginascrollbalk, maar met
   de VELDKLEUR als baan, zodat hij in het veld opgaat in plaats van erop te
   liggen. scrollbar-width/-color werkt in Firefox en nieuwe Chrome; de
   ::-webkit-regels dekken de oudere Chrome, Edge en Safari. */
#contact-message {
    overflow-y: hidden;
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: #434343 #2a2a2a;
}

#contact-message::-webkit-scrollbar {
    width: 8px;
}

#contact-message::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 0 5px 5px 0;
}

#contact-message::-webkit-scrollbar-thumb {
    background: #434343;
    border-radius: 999px;
    /* Randje in de veldkleur maakt de greep smaller en laat hem zweven
       binnen de baan i.p.v. tegen de rand te plakken. */
    border: 2px solid #2a2a2a;
}

#contact-message::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==========================================================================
   PAGINAOVERGANG (js/overgang.js)
   wipe-bezig wordt gezet door het kleine script bovenaan de pagina en houdt
   de inhoud verborgen tot het doek erover ligt. Het valt na 2 seconden altijd
   vanzelf weg, dus een pagina kan hierdoor niet onzichtbaar blijven staan.
   ========================================================================== */
html.wipe-bezig { background: #000; }
html.wipe-bezig body { visibility: hidden; }

.ara-wipe {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    display: block;
}
.ara-wipe--blokkeer { pointer-events: auto; }   /* tijdens het toeschuiven */
