/* ========== Basis Reset & Typografie ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background-color: #fff;
    line-height: 1.6;
}

/* ========== Navbar ========== */
.navbar {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    animation: slideDown 0.4s ease-out both;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
}

.logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

/* Navigatie */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f47c20;
    transition: width 0.3s ease, background-color 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: #1d4ed8;
    font-weight: 600;
}

nav a.active::after {
    width: 100%;
    background-color: #1d4ed8;
}

/* Mobiele navigatie toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.2);
}

/* ========== Responsive Menu ========== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        right: 20px;
        border: 1px solid #ddd;
        padding: 10px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all 0.3s ease;
    }

    nav ul.show {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
    }

    .navbar .container {
        flex-wrap: wrap;
    }
}

/* ========== Custom Animations ========== */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInSlow {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes zoom {
    0% { transform: scale(1.05); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========== Animation Utility Classes ========== */
.animate-fadeIn     { animation: fadeIn 0.6s ease-out both; }
.animate-fadeInSlow { animation: fadeInSlow 0.9s ease-out both; }
.animate-slideUp    { animation: slideUp 0.7s ease-out both; }
.animate-slideDown  { animation: slideDown 0.6s ease-out both; }
.animate-zoom       { animation: zoom 0.8s ease-out both; }

/* ========== Header ========== */
.header {
    background-color: #1a3dbd;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
}

/* ========== Container ========== */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

/* ========== Evenementenkaart ========== */
.kaart {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
}

.kaart img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.kaart img:hover {
    transform: scale(1.03);
}

.kaart h2 {
    margin-top: 15px;
    color: #1a3dbd;
}

.kaart p {
    margin: 5px 0;
}

/* ========== Lightbox ========== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
}

.lightbox:target {
    display: flex;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: white;
    text-decoration: none;
}

/* ========== Evenementenpagina Layout ========== */
.evenementen-container {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #f9fafb;
}

.evenementen-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1a3dbd;
    animation: fadeIn 0.6s ease-out both;
}

/* ========== Kaartenweergave ========== */
.evenement-kaart {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.evenement-kaart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.evenement-kaart img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.evenement-kaart img:hover {
    transform: scale(1.03);
}

.evenement-kaart .content {
    padding: 16px;
}

.evenement-kaart h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a3dbd;
}

.evenement-kaart .datum {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.evenement-kaart p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

/* ========== Responsive Grid Fix (optioneel) ========== */
@media (min-width: 1024px) {
    .evenement-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .evenement-kaart img {
        height: 160px;
    }
}
