:root {
    --primary-teal: #00A99D;
    --primary-orange: #F47A20;
    --primary-green: #3BB54A;
    /* Lichte Modus (Standaard) */
    --bg-mode: #F5F7F9;
    --card-mode: #FFFFFF;
    --text-mode: #0A2A4A;
    --text-light: #6E7A86;
    --border-mode: #E6EAEE;
}

body.dark-mode,
body.dark {
    /* Donkere Modus Overrides */
    --bg-mode: #000000;
    --card-mode: #1A1A1A;
    --text-mode: #FFFFFF;
    --text-light: #A0A0A0;
    --border-mode: #333333;
}

* { box-sizing: border-box; }

/* Keep the global floating trust badge visually identical to the rest of the website. */
.floating-trust-wrapper,
.floating-trust-wrapper * {
    font-family: var(--font-default, 'Open Sans', sans-serif) !important;
    line-height: normal;
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: var(--bg-mode);
    color: var(--text-mode);
    margin: 0; 
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
    text-align: center;
    margin-top: 2rem;
}

.mode-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--card-mode);
    border: 1px solid var(--border-mode);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-mode);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.scroll-hint {
    background: var(--card-mode);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 25px;
    border: 1px solid var(--border-mode);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scroll-hint i {
    color: var(--primary-teal);
    font-size: 1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.metric-card {
    background: var(--card-mode);
    border: 1px solid var(--border-mode);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.metric-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 169, 157, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-mode);
    line-height: 1.2;
}

.metric-value span {
    color: var(--primary-orange);
}

.metric-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
    line-height: 1.4;
    display: block;
}

.hint-volume {
    color: var(--primary-teal);
    font-weight: 900;
    font-size: 1.4rem;
    display: inline-block;
    margin: 4px 0;
}

@media (max-width: 850px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .metric-card {
        padding: 16px;
        border-radius: 16px;
        gap: 12px;
    }

    .metric-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .metric-label {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .metric-value {
        font-size: 1.1rem;
    }

    .metric-hint {
        font-size: 0.75rem;
        margin-top: 8px;
    }

    .hint-volume {
        font-size: 1.2rem;
    }
}

.device-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.device-wrapper .device-selector {
    margin-top: 0;
}

.selector-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.selector-buttons {
    display: flex;
    gap: 10px;
    background: var(--card-mode);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border-mode);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Verberg de weergave kieser op mobiele apparaten */
@media (max-width: 600px) {
    .device-selector {
        display: none !important;
    }
}

.select-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--text-mode);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.select-btn:hover {
    background: rgba(0, 169, 157, 0.05);
    color: var(--primary-teal);
}

.select-btn.active {
    background: var(--primary-teal) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.3) !important;
}

/* Responsive indicator voor desktop */
@media (min-width: 1025px) {
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .select-btn[onclick*="laptop"] {
        background: var(--primary-teal);
        color: white;
    }
}

/* Responsive indicator voor tablet */
@media (min-width: 601px) and (max-width: 1024px) {
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .select-btn[onclick*="tablet"] {
        background: var(--primary-teal);
        color: white;
    }
}
    
    /* Zorg dat op mobiele apparaten alleen de mobiele weergave getoond wordt */
    .device-wrapper.laptop-view,
    .device-wrapper.tablet-view {
        display: none !important;
    }
    
    .device-wrapper.mobile-view {
        display: flex !important;
    }

/* Responsive indicator voor mobiel */
@media (max-width: 600px) {
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .select-btn[onclick*="mobile"] {
        background: var(--primary-teal);
        color: white;
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.mode-toggle i {
    font-size: 1.1rem;
    color: var(--primary-teal);
}

.device-title i {
    margin-right: 8px;
    color: var(--primary-teal);
}

.info-pill i {
    color: var(--primary-teal);
    margin-right: 5px;
}

.back-btn i {
    margin-right: 8px;
}

.portfolio-grid {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-wrapper {
    margin-bottom: 80px;
    width: 100%;
}

.category-header {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-mode);
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 1px;
}

.category-header i {
    opacity: 0.6;
}

/* Category Filter Tabs */
.filter-btn {
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--card-mode);
    border: 1px solid var(--border-mode);
    color: var(--text-mode);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    background: rgba(0, 169, 157, 0.05);
}

.filter-btn.active {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.2);
}

/* Filter & Search Dashboard */
.filter-search-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.main-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    background: var(--card-mode);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--border-mode);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.search-bar {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 20px;
    color: var(--primary-teal);
    font-size: 1.1rem;
}

.search-bar input {
    width: 100%;
    padding: 15px 15px 15px 55px;
    border-radius: 16px;
    border: 1px solid var(--border-mode);
    background: var(--bg-mode);
    color: var(--text-mode);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(0, 169, 157, 0.1);
}

.category-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 250px;
}

.category-select-wrapper i {
    position: absolute;
    left: 18px;
    color: var(--primary-teal);
    z-index: 2;
}

.category-select-wrapper select {
    width: 100%;
    padding: 15px 40px 15px 48px;
    border-radius: 16px;
    border: 1px solid var(--border-mode);
    background: var(--bg-mode);
    color: var(--text-mode);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: all 0.3s ease;
}

.category-select-wrapper:after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    color: var(--text-light);
    pointer-events: none;
}

.category-select-wrapper select:focus {
    border-color: var(--primary-teal);
}

.reset-link {
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-link:hover {
    color: var(--primary-orange);
    background: rgba(244, 122, 32, 0.05);
}

.no-results-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: var(--card-mode);
    border-radius: 30px;
    border: 2px dashed var(--border-mode);
}

.no-results-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results-state p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 25px;
}

.btn-refresh {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-teal);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 169, 157, 0.2);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.filter-btn.active {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
    box-shadow: 0 5px 15px rgba(0, 169, 157, 0.3);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    align-items: start;
}

.project-card.card-tablet {
    grid-column: span 1;
}

.project-card.card-mobile {
    grid-column: span 1;
}

.project-card {
    background: var(--card-mode);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-mode);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-teal);
    box-shadow: 0 25px 50px rgba(0, 169, 157, 0.15);
}

.project-preview {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: top center;
    border-bottom: 1px solid var(--border-mode);
    transition: background-image 0.3s ease;
}

.project-card:hover .project-preview {
    background-position: top center;
}

.project-info {
    padding: 20px;
}

.project-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.project-meta i {
    color: var(--primary-teal);
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.page-dots {
    color: var(--text-light);
    font-weight: 800;
    padding: 0 5px;
}

.page-btn {
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--card-mode);
    border: 1px solid var(--border-mode);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn:hover {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
    transform: translateY(-3px);
}

.page-btn.active {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.page-btn.small {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.page-btn i {
    font-size: 0.8rem;
}

.view-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(244, 122, 32, 0.3);
}

/* Slider Styles */
.header-section { text-align: center; max-width: 900px; margin-bottom: 60px; }
.google-info { display: inline-flex; background: var(--card-mode); padding: 6px; border-radius: 16px; border: 1px solid var(--border-mode); margin-bottom: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.info-pill { padding: 12px 24px; display: flex; flex-direction: column; align-items: center; }
.info-pill.active { background: rgba(0, 169, 157, 0.05); border-radius: 12px; }
.device-container { 
    display: flex; 
    flex-direction: column; /* Alles onder elkaar voor een overzichtelijke presentatie */
    gap: 40px; /* Verminderd van 60px naar 40px */
    align-items: center; 
    max-width: 1400px; 
    width: 100%; 
    padding: 20px 20px; /* Verminderd van 40px naar 20px */
}

.device-wrapper { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px;
    width: 100%;
}

.device-title { 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.2em; 
    background: var(--card-mode); 
    padding: 10px 30px; 
    border-radius: 50px; 
    border: 1px solid var(--border-mode);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mockup { 
    background: #000; 
    border: 12px solid var(--border-mode); 
    box-shadow: 0 40px 80px rgba(0,0,0,0.15); 
    position: relative; 
    overflow: hidden; 
}

.desktop-mockup { 
    width: 100%;
    max-width: 900px; /* Kleiner gemaakt van 1100px */
    aspect-ratio: 16/10; 
    border-radius: 20px 20px 2px 2px;
    border: 10px solid #222;
    border-bottom-width: 25px; /* De bekende dikkere Macbook onderrand */
}

/* Responsive Visibility Logic met override via JS */
.device-wrapper.laptop-view { display: flex; }
.device-wrapper.tablet-view { display: none; }
.device-wrapper.mobile-view { display: none; }

/* Forceer display als een device geselecteerd is via de selector */
body.show-laptop .device-wrapper.laptop-view { display: flex !important; }
body.show-laptop .device-wrapper.tablet-view, 
body.show-laptop .device-wrapper.mobile-view { display: none !important; }

body.show-tablet .device-wrapper.tablet-view { display: flex !important; }
body.show-tablet .device-wrapper.laptop-view, 
body.show-tablet .device-wrapper.mobile-view { display: none !important; }

body.show-mobile .device-wrapper.mobile-view { display: flex !important; }
body.show-mobile .device-wrapper.laptop-view, 
body.show-mobile .device-wrapper.tablet-view { display: none !important; }

/* Desktop default: Toon laptop, verberg anderen */
@media (min-width: 1025px) {
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.laptop-view { display: flex; }
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.tablet-view { display: none; }
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.mobile-view { display: none; }
}

@media (max-width: 1024px) {
    /* Standaard voor tablets als er GEEN expliciete keuze is gemaakt */
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.laptop-view { display: none; }
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.tablet-view { display: flex; }
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.mobile-view { display: none; }
}

@media (max-width: 600px) {
    /* Standaard voor mobiel als er GEEN expliciete keuze is gemaakt */
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.laptop-view { display: none; }
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.tablet-view { display: none; }
    body:not(.show-laptop):not(.show-tablet):not(.show-mobile) .device-wrapper.mobile-view { display: flex; }
}

.tablet-mockup { 
    width: 100%;
    max-width: 450px; /* Kleiner gemaakt van 550px */
    aspect-ratio: 3/4.2; 
    border-radius: 40px; 
    border: 12px solid #111;
    outline: 2px solid #333;
}

.mobile-mockup { 
    width: 330px; 
    aspect-ratio: 9/20; /* Samsung S24 Ultra verhouding */
    border-radius: 12px; /* Veel strakker, minder rond (Samsung look) */
    border: 4px solid #1a1a1a; /* Dunne zwarte bezel */
    background: #000;
    box-shadow: 0 40px 100px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

/* Dynamic Island/ Notch verwijderen voor Samsung */
.mobile-mockup::before {
    display: none;
}

.mobile-mockup .screen {
    border-radius: 8px;
    overflow: hidden;
}

/* Verwijder oude responsive tweaks die nu overbodig zijn door column layout */
@media (max-width: 1200px) {
    .device-container { gap: 50px; }
}
.screen { 
    width: 100%; 
    height: 100%; 
    overflow: hidden !important; /* Scrollen definitief uitgeschakeld */
    background: white; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.screen::-webkit-scrollbar { 
    display: none; 
}

.screen img { 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    object-position: top center; 
    display: block; 
    transition: opacity 0.3s ease; 
}

/* Photo Slider Side Navigation */
.mockup-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

@media (max-width: 800px) {
    .mockup-container {
        gap: 10px;
    }
    .side-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

.side-nav-btn {
    width: 60px;
    height: 60px;
    background: var(--card-mode);
    border: 1px solid var(--border-mode);
    border-radius: 50%;
    color: var(--primary-teal);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 10;
}

.side-nav-btn:hover {
    background: var(--primary-teal);
    color: white;
    transform: scale(1.1);
}

.side-nav-btn:active {
    transform: scale(0.95);
}

.back-btn { position: fixed; top: 30px; left: 30px; background: var(--card-mode); color: var(--text-mode); text-decoration: none; padding: 12px 24px; border-radius: 12px; font-weight: 700; border: 1px solid var(--border-mode); z-index: 1001; transition: all 0.2s ease; }
.back-btn:hover { background: var(--primary-teal); color: white; border-color: var(--primary-teal); transform: translateX(-5px); }

/* Controls styling */
.controls-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nav-card { 
    background: var(--card-mode); 
    padding: 12px; 
    border-radius: 24px; 
    border: 1px solid var(--border-mode); 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    width: fit-content;
}

.nav-btn { width: 50px; height: 50px; cursor: pointer; background: var(--primary-teal); color: white; border: none; border-radius: 16px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.nav-btn:hover { background: var(--primary-orange); transform: scale(1.1); box-shadow: 0 8px 16px rgba(244, 122, 32, 0.3); }
.nav-btn:active { transform: scale(0.95); }
.page-meta { padding: 0 10px; min-width: 180px; text-align: center; }
.cur-name { font-weight: 800; font-size: 1.1rem; display: block; color: var(--text-mode); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur-count { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; display: block; }

/* Nieuwe Top Meta Styles */
.page-meta-top {
    margin: 20px 0 10px 0;
    text-align: center;
    background: var(--card-mode);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-mode);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

.meta-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.meta-value {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-value .cur-name {
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--text-mode), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meta-value .cur-count {
    font-size: 0.7rem;
}
