/* ==========================================================================
   1. Variabelen & Basisinstellingen
   ========================================================================== */
:root {
    --bg-color: #121212;       /* Donker antraciet */
    --card-bg: #1e1e1e;       /* Iets lichter grijs voor contrastvlakken */
    --text-main: #e0e0e0;      /* Zacht wit/lichtgizelig */
    --text-muted: #a0a0a0;     /* Grijs voor secundaire tekst */
    --accent: #ffffff;         /* Puur wit voor actieve elementen/links */
    --border-color: #2a2a2a;   /* Subtiele scheidingslijnen */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* ==========================================================================
   2. Navigatiebalk (Header)
   ========================================================================== */
.main-header {
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.nav-container .logo .chapter {
    color: #888888;
    font-weight: normal;
    margin-left: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* ==========================================================================
   3. Lay-out & Hoofdstructuur
   ========================================================================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

h1, h2, h3 {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

/* ==========================================================================
   4. Portfolio / Kunst Grid
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative; 
    height: 480px;      
    padding-bottom: 95px; 
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: #444;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 15px 15px 5px 15px; 
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 95px; 
    padding: 1.2rem 1.5rem;
    background-color: var(--card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.item-info h3 {
    margin-bottom: 0.25rem !important;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-info p {
    margin-bottom: 0 !important;
    font-size: 0.9rem;
}

/* ==========================================================================
   5. Contactpagina & Formulieren
   ========================================================================== */
.contact-container {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.nav-container, .gallery-item {
    pointer-events: auto !important;
}

.form-control {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-main);
    padding: 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background-color: var(--accent);
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   7. Responsive Design (Mobiel)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        position: relative;
        z-index: 9999;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        pointer-events: auto;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    h1 { font-size: 2rem; }
    
    .gallery-item {
        height: auto; 
        padding-bottom: 0;
    }
    .item-info {
        position: static; 
        height: auto;
    }
}

/* ==========================================================================
   8. Grote categorie-kaarten voor aussy-b.html
   ========================================================================== */
.art-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.art-card {
    display: flex;
    flex-direction: column;
    width: 320px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.art-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.art-preview-link {
    text-decoration: none;
    color: inherit;
}

.art-preview-img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}

.art-card-content {
    padding: 20px;
}

.art-card-content h2 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}

.art-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.art-link-button {
    display: inline-block;
    padding: 10px;
    background-color: #222222;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #444444;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.art-card:hover .art-link-button {
    background-color: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
}