/* ========================================
   Heckwerk - Main Stylesheet
   www.heckwerk.nl
   ======================================== */

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

:root {
    --teal: #1E7B7B;
    --olive: #7A8B5A;
    --peach: #F4C590;
    --light-blue: #C1D5D9;
    --cool-gray: #6B7F8C;
    --burnt-orange: #C17247;
    --dark-gray: #2F4550;
    --sand: #D4B896;
    --bg: #F8F6F3;
    --white: #ffffff;
    --text: #2F4550;
    --text-light: #666666;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: 0.2s ease;
    --max-image-height: 550px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oxygen', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--dark-gray);
}

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

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    background: var(--dark-gray);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    font-family: 'Electrolize', sans-serif;
    font-size: 28px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo:hover {
    color: var(--white);
}

.logo .hash {
    color: var(--teal);
    font-weight: bold;
    font-size: 32px;
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    font-family: 'Electrolize', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: rgba(30, 123, 123, 0.3);
}

/* --- Hero Section (Homepage) --- */
.hero {
    padding: 80px 0 60px;
}

.hero .container {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.hero-content {
    max-width: 800px;
    flex: 1;
}

.hero-image {
    flex: 0 0 320px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal) 0%, var(--light-blue) 100%);
    min-height: 240px;
    position: relative;
}

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

.hero-image img:only-child {
    transform: scale(1.15);
    transition: transform 6s ease-out;
}

.hero-image.zoomed-out img:only-child {
    transform: scale(1);
}

.hero-image img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 2.5s ease;
}

.hero-image.revealed img:nth-child(2) {
    opacity: 1;
}

.hero h1 {
    font-family: 'Electrolize', sans-serif;
    font-size: 44px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* --- Category Grid (Homepage) --- */
.categories-section {
    padding: 0 0 80px;
}

.categories-section h2 {
    font-family: 'Electrolize', sans-serif;
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--text);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--white);
    padding: 32px;
    padding-bottom: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border-top: 5px solid;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

div.category-card {
    cursor: default;
}

div.category-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.category-card[data-category="trainingen"] {
    border-color: var(--teal);
}

.category-card[data-category="lesmateriaal"] {
    border-color: var(--olive);
}

.category-card[data-category="audiovisueel"] {
    border-color: var(--peach);
}

.category-card[data-category="advies"] {
    border-color: var(--light-blue);
}

.category-card[data-category="digitaal"] {
    border-color: var(--cool-gray);
}

.category-card[data-category="publicaties"] {
    border-color: var(--burnt-orange);
}

.category-card h3 {
    font-family: 'Electrolize', sans-serif;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
}

.category-card .hash {
    font-size: 24px;
    margin-right: 0;
}

.category-card[data-category="trainingen"] .hash {
    color: var(--teal);
}

.category-card[data-category="lesmateriaal"] .hash {
    color: var(--olive);
}

.category-card[data-category="audiovisueel"] .hash {
    color: var(--peach);
}

.category-card[data-category="advies"] .hash {
    color: var(--light-blue);
}

.category-card[data-category="digitaal"] .hash {
    color: var(--cool-gray);
}

.category-card[data-category="publicaties"] .hash {
    color: var(--burnt-orange);
}

.category-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.5;
}

/* Expertise page: 2×2 grid + category colors */
.expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
}

.expertise-didactiek    { background: rgba(122, 139, 90, 0.1);   border-color: var(--olive); }
.expertise-ict          { background: rgba(107, 127, 140, 0.1);  border-color: var(--cool-gray); }
.expertise-geografie    { background: rgba(193, 213, 217, 0.35); border-color: var(--light-blue); }
.expertise-communicatie { background: rgba(193, 114, 71, 0.1);   border-color: var(--burnt-orange); }

.expertise-didactiek    .hash { color: var(--olive); }
.expertise-ict          .hash { color: var(--cool-gray); }
.expertise-geografie    .hash { color: var(--light-blue); }
.expertise-communicatie .hash { color: var(--burnt-orange); }

/* Expertise accordion */
.expertise-grid .category-card { cursor: pointer; }
.expertise-grid .category-card h3 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; }
.expertise-grid .category-card.open h3 { margin-bottom: 12px; }
.expertise-body { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.expertise-grid .category-card.open .expertise-body { max-height: 600px; }
.expertise-arrow { flex-shrink: 0; margin-left: 12px; transition: transform 0.35s ease; }
.expertise-grid .category-card.open .expertise-arrow { transform: rotate(180deg); }
.expertise-grid div.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.category-card .project-count {
    display: inline-block;
    margin-bottom: 12px;
    font-family: 'Electrolize', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* --- Portfolio Page --- */
.page-header {
    padding: 48px 0 32px;
}

.page-header h1 {
    font-family: 'Electrolize', sans-serif;
    font-size: 36px;
    color: var(--text);
}

/* Filter Section */
.filter-section {
    position: relative;
    background: var(--white);
    padding: 24px 20px;
    padding-right: 72px;
    margin-bottom: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.filter-description {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-light);
    min-height: 0;
    max-width: 800px;
}

.filter-description:empty {
    display: none;
}

/* Search toggle button */
.featured-filter-btn {
    border-color: var(--dark-gray) !important;
    color: var(--dark-gray) !important;
    padding: 9px 9px 10px 9px !important;
    line-height: 1;
}

.featured-filter-btn:hover {
    background: var(--bg);
}

.featured-filter-btn.active {
    background: var(--dark-gray);
    color: var(--white) !important;
}

.filter-buttons.search-active .featured-filter-btn {
    display: none;
}

.search-toggle-btn {
    position: absolute;
    top: 24px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px !important;
    border-color: var(--cool-gray) !important;
    color: var(--cool-gray) !important;
}

.search-toggle-btn:hover {
    background: var(--bg);
}

.search-toggle-btn .search-icon,
.search-toggle-btn .search-close-icon {
    display: block;
}

.search-toggle-btn .search-close-icon {
    display: none;
}

.filter-buttons.search-active .search-toggle-btn {
    background: var(--cool-gray);
    color: var(--white) !important;
}

.filter-buttons.search-active .search-toggle-btn .search-icon {
    display: none;
}

.filter-buttons.search-active .search-toggle-btn .search-close-icon {
    display: block;
}

/* Search input (inside filter-buttons) */
.search-input {
    width: 0;
    max-width: 0;
    height: 0;
    font-family: 'Oxygen', sans-serif;
    font-size: 14px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    transition: width 0.25s ease, max-width 0.25s ease, height 0.25s ease, padding 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    overflow: hidden;
}

.filter-buttons.search-active .search-input {
    width: 240px;
    max-width: 240px;
    height: 36px;
    padding: 8px 14px;
    border-color: #e0ddd8;
    opacity: 1;
}

.search-input:focus {
    outline: none;
    border-color: var(--teal);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Animate category buttons in/out */
.category-filter-btn {
    max-width: 250px;
    overflow: hidden;
    transition: max-width 0.25s ease, opacity 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}

.filter-buttons.search-active .category-filter-btn {
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    border-color: transparent;
    opacity: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 40px;
}

.filter-btn {
    font-family: 'Electrolize', sans-serif;
    padding: 8px 9px;
    border: 2px solid;
    background: var(--white);
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: all var(--transition);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.filter-btn:hover {
    transform: translateY(-1px);
}

.filter-btn.active {
    color: var(--white);
}

.filter-btn[data-filter="all"] {
    border-color: var(--dark-gray);
    color: var(--dark-gray);
}

.filter-btn[data-filter="all"].active {
    background: var(--dark-gray);
    color: var(--white);
}

.filter-btn[data-filter="trainingen"] {
    border-color: var(--teal);
    color: var(--teal);
}

.filter-btn[data-filter="trainingen"].active {
    background: var(--teal);
    color: var(--white);
}

.filter-btn[data-filter="lesmateriaal"] {
    border-color: var(--olive);
    color: var(--olive);
}

.filter-btn[data-filter="lesmateriaal"].active {
    background: var(--olive);
    color: var(--white);
}

.filter-btn[data-filter="audiovisueel"] {
    border-color: var(--peach);
    color: var(--dark-gray);
}

.filter-btn[data-filter="audiovisueel"].active {
    background: var(--peach);
    color: var(--dark-gray);
}

.filter-btn[data-filter="advies"] {
    border-color: var(--light-blue);
    color: var(--dark-gray);
}

.filter-btn[data-filter="advies"].active {
    background: var(--light-blue);
    color: var(--dark-gray);
}

.filter-btn[data-filter="digitaal"] {
    border-color: var(--cool-gray);
    color: var(--cool-gray);
}

.filter-btn[data-filter="digitaal"].active {
    background: var(--cool-gray);
    color: var(--white);
}

.filter-btn[data-filter="publicaties"] {
    border-color: var(--burnt-orange);
    color: var(--burnt-orange);
}

.filter-btn[data-filter="publicaties"].active {
    background: var(--burnt-orange);
    color: var(--white);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
}

.portfolio-section-heading {
    grid-column: 1 / -1;
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: var(--text);
    margin: 48px 0 0;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.portfolio-section-heading:first-child {
    margin-top: 0;
}

.project-card.other-card-hidden,
.project-card.section-card-hidden {
    display: none;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.other-card-reveal {
    animation: cardReveal 0.35s ease both;
}

.show-other-wrapper {
    grid-column: 1 / -1;
    margin-top: 64px;
}

.show-other-wrapper:first-child {
    margin-top: 15px;
}

.show-other-wrapper:not(:first-of-type) {
    margin-top: 0;
    padding-top: 80px;
    border-top: 2px solid rgba(107, 127, 140, 0.5);
}
.show-other-wrapper:not(:first-of-type):has([data-filter="trainingen"])   { border-top-color: rgba(30, 123, 123, 0.55); }
.show-other-wrapper:not(:first-of-type):has([data-filter="lesmateriaal"]) { border-top-color: rgba(122, 139, 90, 0.55); }
.show-other-wrapper:not(:first-of-type):has([data-filter="audiovisueel"]) { border-top-color: rgba(244, 197, 144, 0.85); }
.show-other-wrapper:not(:first-of-type):has([data-filter="advies"])       { border-top-color: rgba(193, 213, 217, 0.95); }
.show-other-wrapper:not(:first-of-type):has([data-filter="digitaal"])     { border-top-color: rgba(107, 127, 140, 0.55); }
.show-other-wrapper:not(:first-of-type):has([data-filter="publicaties"])  { border-top-color: rgba(193, 114, 71, 0.55); }

.show-other-btn {
    --section-accent: var(--dark-gray);
    --section-bg: rgba(47, 69, 80, 0.08);
    --section-text: var(--white);
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: var(--section-accent);
    border: 0;
    color: var(--section-text);
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 14px 11px;
    border-radius: 0;
    position: relative;
    cursor: default;
    letter-spacing: 0.02em;
}

.section-heading-static {
    pointer-events: none;
}

.show-other-btn[data-filter="trainingen"] { --section-accent: var(--teal); --section-bg: rgba(30, 123, 123, 0.12); }
.show-other-btn[data-filter="lesmateriaal"] { --section-accent: var(--olive); --section-bg: rgba(122, 139, 90, 0.14); }
.show-other-btn[data-filter="audiovisueel"] { --section-accent: var(--peach); --section-bg: rgba(244, 197, 144, 0.34); --section-text: var(--dark-gray); }
.show-other-btn[data-filter="advies"] { --section-accent: var(--light-blue); --section-bg: rgba(193, 213, 217, 0.5); --section-text: var(--dark-gray); }
.show-other-btn[data-filter="digitaal"] { --section-accent: var(--cool-gray); --section-bg: rgba(107, 127, 140, 0.16); }
.show-other-btn[data-filter="publicaties"] { --section-accent: var(--burnt-orange); --section-bg: rgba(193, 114, 71, 0.14); }

.antiquariaat-heading { --section-accent: #8a7e6e; --section-bg: rgba(138, 126, 110, 0.10); --section-text: var(--white); }

#projectGrid[data-active-filter="publicaties"] .show-other-btn {
    --section-accent: var(--burnt-orange);
    --section-bg: rgba(193, 114, 71, 0.14);
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: var(--dark-gray);
    display: flex;
    transition: transform var(--transition);
    pointer-events: none;
}

.project-card:hover .card-arrow,
.category-card:hover .card-arrow {
    transform: translateY(-2px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.project-card.hidden {
    display: none;
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--light-blue);
}

.project-card-image img,
.project-card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-image .placeholder-icon {
    font-size: 48px;
    color: var(--white);
    font-family: 'Electrolize', sans-serif;
    opacity: 0.8;
}

.project-card-image .placeholder-title {
    font-size: 28px;
    color: var(--dark-gray);
    font-family: 'Electrolize', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    line-height: 1.3;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.html-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a3e 0%, #0d0d2e 100%);
}

.html-icon {
    font-size: 48px;
    color: #6699ff;
    font-family: monospace;
    font-weight: bold;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--dark-gray);
    color: var(--white);
    font-size: 16px;
    font-family: 'Oxygen', sans-serif;
    font-weight: 400;
    padding: 6px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 10;
    line-height: 1;
}

.project-card[data-first-category="trainingen"] .featured-badge   { background: var(--teal); }
.project-card[data-first-category="lesmateriaal"] .featured-badge { background: var(--olive); }
.project-card[data-first-category="audiovisueel"] .featured-badge { background: var(--peach); color: var(--dark-gray); }
.project-card[data-first-category="advies"] .featured-badge       { background: var(--light-blue); color: var(--dark-gray); }
.project-card[data-first-category="digitaal"] .featured-badge     { background: var(--cool-gray); }
.project-card[data-first-category="publicaties"] .featured-badge  { background: var(--burnt-orange); }


.project-card-body {
    padding: 20px;
    padding-bottom: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-dots {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.category-dot:hover {
    transform: scale(1.4);
    opacity: 0.8;
}

/* Geen hover-effect voor dots waarvan het filter al actief is */
#projectGrid[data-active-filter="trainingen"]  .category-dot[data-filter="trainingen"]:hover,
#projectGrid[data-active-filter="lesmateriaal"] .category-dot[data-filter="lesmateriaal"]:hover,
#projectGrid[data-active-filter="audiovisueel"] .category-dot[data-filter="audiovisueel"]:hover,
#projectGrid[data-active-filter="advies"]       .category-dot[data-filter="advies"]:hover,
#projectGrid[data-active-filter="digitaal"]     .category-dot[data-filter="digitaal"]:hover,
#projectGrid[data-active-filter="publicaties"]  .category-dot[data-filter="publicaties"]:hover {
    transform: none;
    opacity: 1;
    cursor: default;
}

.dot-trainingen {
    background: var(--teal);
}

.dot-lesmateriaal {
    background: var(--olive);
}

.dot-audiovisueel {
    background: var(--peach);
}

.dot-advies {
    background: var(--light-blue);
}

.dot-digitaal {
    background: var(--cool-gray);
}

.dot-publicaties {
    background: var(--burnt-orange);
}

.project-card-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 17px;
    margin-top: 5px;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
}

.project-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.project-card-meta {
    font-size: 13px;
    color: var(--text-light);
    font-family: 'Electrolize', sans-serif;
}

/* --- Project Detail Page --- */
.breadcrumb {
    padding: 24px 0 16px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--teal);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-light);
}

.project-detail {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 48px;
}

.project-header {
    border-bottom: 2px solid var(--bg);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.project-header .category-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.project-header h1 {
    font-family: 'Electrolize', sans-serif;
    font-size: 36px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.project-title {
    flex: 1;
}

.project-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--dark-gray);
    color: var(--dark-gray);
    font-size: 30px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.project-nav-btn:hover {
    background: var(--dark-gray);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.project-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--text-light);
    color: var(--text-light);
}

.project-nav-btn.disabled:hover {
    background: var(--white);
    color: var(--text-light);
    transform: none;
    box-shadow: none;
}

.project-detail-wrapper {
    position: relative;
}

.project-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--dark-gray);
    color: var(--dark-gray);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 50;
    transition: all var(--transition);
    line-height: 1;
}

.project-close-btn:hover {
    background: var(--dark-gray);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.project-meta {
    margin-left: 60px;
}

.project-meta-text {
    color: var(--text-light);
    font-size: 15px;
}

.featured-star {
    color: var(--dark-gray);
    font-size: 14px;
    margin-right: 4px;
}

.category-badge {
    font-family: 'Electrolize', sans-serif;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--white);
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
    transition: transform var(--transition), opacity var(--transition);
}

.category-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: var(--white);
}

.badge-trainingen {
    background: var(--teal);
}

.badge-lesmateriaal {
    background: var(--olive);
}

.badge-audiovisueel {
    background: var(--peach);
    color: var(--dark-gray);
}

.badge-audiovisueel:hover {
    color: var(--dark-gray);
}

.badge-advies {
    background: var(--light-blue);
    color: var(--dark-gray);
}

.badge-advies:hover {
    color: var(--dark-gray);
}

.badge-digitaal {
    background: var(--cool-gray);
}

.badge-publicaties {
    background: var(--burnt-orange);
}

.project-featured-image {
    width: 100%;
    max-width: 900px;
    margin: 32px auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.project-featured-image img {
    max-width: 100%;
    max-height: var(--max-image-height);
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid var(--light-blue);
    border-radius: var(--radius);
}

.carousel-caption {
    text-align: center;
    font-size: 15px;
    line-height: 1.3;
    color: var(--text-light);
    margin: 0 0 8px;
    padding: 0 8px;
}

.carousel-caption-highlight {
    width: 100%;
    padding: 14px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.project-featured-image .placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: var(--white);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
}

.iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 80vh;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Custom play overlay — bedekt Safari native controls overlay vóór eerste afspelen */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.video-play-overlay .video-play-btn {
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    padding-left: 4px;
    transition: background 0.15s, transform 0.15s;
}

.video-play-overlay:hover .video-play-btn {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.swf-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.swf-container > * {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: top;
}

ruffle-player, ruffle-object {
    --splash-screen-background: #2F4550;
}

/* --- Carousel --- */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    width: 100%;
    min-width: 0;
    flex: 0 0 100%;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-slide img {
    max-width: 100%;
    max-height: var(--max-image-height);
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(47, 69, 80, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.carousel-arrow:hover {
    background: rgba(30, 123, 123, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-prev {
    left: 16px;
}

.carousel-arrow-next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(47, 69, 80, 0.5);
    border-radius: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: var(--white);
}

.project-content {
    max-width: 800px;
}

.project-content h2 {
    font-family: 'Electrolize', sans-serif;
    font-size: 24px;
    margin: 32px 0 16px;
    color: var(--text);
}

.project-content h2:first-child {
    margin-top: 0;
}

.project-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}

.project-content ul {
    margin: 16px 0 16px 28px;
}

.project-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-links {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    margin: 32px 0;
}

.project-links h3 {
    font-family: 'Electrolize', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
}

.project-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.project-links-list a {
    color: var(--teal);
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-links-list a::before {
    content: "→";
}

.project-links-list a:hover {
    text-decoration: underline;
}

/* Credits */
.project-credits {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    margin: 32px 0;
}

.project-credits h3 {
    font-family: 'Electrolize', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
}

.project-credits-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
}

.credit-role {
    font-family: 'Electrolize', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.credit-name {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.credit-name a {
    color: var(--teal);
}

.credit-name a:hover {
    text-decoration: underline;
}

/* Related Projects */
.related-projects {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid var(--bg);
}

.related-projects h2 {
    font-family: 'Electrolize', sans-serif;
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    color: inherit;
}

.related-card h4 {
    font-family: 'Electrolize', sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.related-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.related-card .category-dots {
    margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark-gray);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
    color: var(--teal);
}

.footer-tagline {
    font-family: 'Electrolize', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* --- Content Page (Expertise, Contact) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 48px;
    margin-top: 32px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-family: 'Electrolize', sans-serif;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text);
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-label {
    font-family: 'Electrolize', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 16px;
    color: var(--text);
}

a.contact-value {
    color: var(--teal);
}

a.contact-value:hover {
    text-decoration: underline;
}

/* Workspace photo */
.contact-workspace {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 2px solid var(--bg);
}

.workspace-image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 2px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--light-blue) 100%);
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.workspace-image img {
    width: 100%;
    height: auto;
    display: block;
}

.workspace-image {
    cursor: pointer;
}

.workspace-image img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    opacity: 1;
    transform: scale(1) translateX(0);
    transition: opacity 2s ease, transform 6s ease;
}

.workspace-image.zoomed img:nth-child(2) {
    opacity: 0;
    transform: scale(1.9) translateX(8%);
    transition: opacity 2s ease 3.6s, transform 6s ease;
}

.image-caption {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Electrolize', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    font-family: 'Oxygen', sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    border: 2px solid #e0ddd8;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    font-family: 'Electrolize', sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 32px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    align-self: flex-start;
}

.btn-submit:hover {
    background: var(--dark-gray);
    transform: translateY(-1px);
}

/* --- No Results --- */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results p {
    font-size: 18px;
    margin-bottom: 8px;
}

/* --- Loading --- */
.loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-gray);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 16px;
        width: 100%;
    }

    .site-header .container {
        position: relative;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-image {
        flex: none;
        width: 100%;
        max-height: 300px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .featured-filter-btn {
        padding: 7px 9px !important;
    }

    .search-toggle-btn {
        padding: 0 12px !important;
        top: 24px;
        height: 29px;
    }

    .search-toggle-btn svg {
        width: 14px;
        height: 14px;
    }

    .filter-buttons.search-active .search-input {
        flex: 1;
        width: auto;
        max-width: none;
        font-size: 12px;
        padding: 0 10px;
        align-self: stretch;
    }

    .project-detail {
        padding: 24px;
    }

    .project-header h1 {
        font-size: 24px;
        gap: 12px;
    }

    .project-nav-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 26px;
    }

    .project-meta {
        margin-left: 50px;
    }

    .project-featured-image .placeholder {
        height: 250px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow-prev {
        left: 8px;
    }

    .carousel-arrow-next {
        right: 8px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-dots {
        bottom: 12px;
        padding: 6px 12px;
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .category-card {
        padding: 24px;
    }

    .project-detail {
        padding: 20px;
    }
}
