/*
 * style.css
 *
 * Hoofd stylesheet voor de publieke website van Bernd Meuwissen.
 */

 :root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Raleway', sans-serif;
    --color-text: #212529;
    --color-background: #fdfdfd;
    --color-primary: #A3B18A;
    --color-secondary: #588157;
    --color-border: #e0e0e0;
    --color-light-gray: #f5f5f5;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* --- Typografie --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    color: #1a1a1a;
}

/* --- Navigatiebalk --- */
.navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}
.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.navbar-dark .nav-link.active { color: white !important; }
.navbar-light .nav-link.active { color: var(--color-primary) !important; }
.navbar-light .nav-link:hover { color: var(--color-primary) !important; }
.navbar-dark .nav-link:hover { color: rgba(255,255,255,0.8) !important; }

/* --- Hero Sectie --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}
.hero h1 {
    font-size: 6rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* --- Bio Sectie --- */
.bio-section { padding: 8rem 0; }
.bio-image {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.bio-text { font-size: 1.1rem; line-height: 1.8; }

/* --- Portfolio Sectie (Horizontaal Scrollen) --- */
.portfolio-section {
    padding: 8rem 0;
    background-color: var(--color-light-gray);
    position: relative;
    overflow: hidden;
}
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.horizontal-scroll-container::-webkit-scrollbar { display: none; }
.horizontal-scroll-wrapper {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    padding-bottom: 2rem;
    padding-left: calc((100vw - var(--bs-container-width, 100vw)) / 2 + var(--bs-gutter-x, 0.75rem));
    padding-right: calc((100vw - var(--bs-container-width, 100vw)) / 2 + var(--bs-gutter-x, 0.75rem));
}
.artwork-card {
    width: 320px;
    height: 400px;
    margin-right: 2rem;
    flex-shrink: 0;
    cursor: pointer;
}
.artwork-card:last-child { margin-right: 0; }
.artwork-image-wrapper {
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 4px;
    overflow: hidden;
}
.artwork-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.artwork-card:hover .artwork-image-wrapper {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}
.artwork-card:hover img { transform: scale(1.05); }

.portfolio-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 10;
}
.nav-arrow {
    background-color: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: all;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-arrow:hover { background-color: white; }
.nav-arrow.disabled { opacity: 0.2 !important; cursor: not-allowed; transform: scale(1) !important; }

/* --- Exposities Sectie --- */
.expositions-section { padding: 8rem 0; }
.expo-card {
    border: 1px solid var(--color-border);
    padding: 2rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.expo-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.expo-card.inactive-expo { background-color: var(--color-light-gray); }
.expo-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-text); }
.expo-details { color: #666; }
.expo-card.inactive-expo .expo-title,
.expo-card.inactive-expo .expo-details { color: #888; }
.expo-status-badge {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.badge.bg-success { background-color: var(--color-secondary) !important; }
.badge.bg-secondary { background-color: #6c757d !important; color: white; }


/* --- Contact Sectie --- */
.contact-section { padding: 8rem 0; background-color: var(--color-light-gray); }
.contact-details p { margin-bottom: 0.5rem; }
.contact-details a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--color-primary);
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}
.contact-details a:hover { color: var(--color-text); border-bottom-color: var(--color-text); }

.social-icon-wrapper { margin-top: 3rem; }
.social-icon-wrapper a.social-icon { display: inline-block; color: var(--color-text); transition: transform 0.3s ease, color 0.3s ease; }
.social-icon-wrapper a.social-icon:hover { transform: scale(1.1); color: var(--color-primary); }
.social-icon-wrapper .social-icon svg { width: 32px; height: 32px; fill: currentColor; }

/* --- Footer --- */
footer {
    padding: 3rem 0;
    background-color: #212529;
    color: #adb5bd;
    text-align: center;
}
footer p { margin-bottom: 0; }

/* --- Modal & Lightbox --- */
.modal-content {
    background-color: transparent;
    border: none;
    align-items: center;
}
.modal-header, .modal-body, .modal-footer { padding: 0; border: none; }
#artwork-modal-image {
    display: block;
    max-height: 80vh;
    max-width: 90vw;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.artwork-details {
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: white;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.artwork-details .modal-title { font-family: var(--font-serif); font-size: 1.5rem; }
.artwork-details p { margin-bottom: 0; color: rgba(255,255,255,0.8); }

.modal-dialog .btn-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    z-index: 1060;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-dialog .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; max-width: 1600px;
    display: flex; justify-content: space-between;
    z-index: 1056; pointer-events: none; padding: 0 1rem;
}
.lightbox-arrow {
    background: rgba(30,30,30,0.6); border: 1px solid rgba(255,255,255,0.2);
    color: white; border-radius: 50%; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    pointer-events: all; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.lightbox-arrow:hover { background: rgba(0,0,0,0.8); transform: scale(1.1); }
.lightbox-arrow:disabled { opacity: 0.1; cursor: not-allowed; transform: scale(1); }
.lightbox-arrow svg { width: 24px; height: 24px; }

/* --- Galerij Pagina Stijlen --- */
.gallery-section { padding-top: 120px; padding-bottom: 8rem; }
.gallery-item {
    position: relative; overflow: hidden; cursor: pointer;
    border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.gallery-item img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex; align-items: flex-end; padding: 1rem;
    opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title { color: white; font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 0; }

/* --- Media Queries --- */
@media (max-width: 992px) {
    .portfolio-nav { display: none; }
    .horizontal-scroll-wrapper {
        padding-left: var(--bs-gutter-x, 0.75rem);
        padding-right: var(--bs-gutter-x, 0.75rem);
    }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
    .bio-section, .expositions-section { padding: 4rem 0; }
    .portfolio-section, .contact-section { padding: 4rem 0; }
    .artwork-card { width: 240px; height: 300px; margin-right: 1.5rem; }
    .lightbox-nav { padding: 0 0.5rem; }
    .lightbox-arrow { width: 40px; height: 40px; }
    .lightbox-arrow svg { width: 18px; height: 18px; }
    .modal-dialog .btn-close { top: 1rem; right: 1rem; }
}
