:root {
    --dark-bg: #0f0f1a;
    --card-bg: #1a1a1a;
    --accent: #007bff;
    --text-light: #e0e0e0;
    --text-dim: #a0a0a0;
}
html {
    scroll-behavior: smooth;
}

/* 1. Belangrijk: Scrollen aanzetten en body fixen */
body {
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    overflow-y: auto; /* Zorgt dat je kunt scrollen */
    display: block;   /* Haal flex weg van body voor betere scroll */
}
nav {
    padding: 20px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
}

header {
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.portfolio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}

.games-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-dim);
}

/* 2. De Grid: zet projecten naast elkaar */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: stretch; /* Verander 'start' naar 'stretch' */
}

/* De kaart styling */
.project-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content; /* Zorgt dat de kaart niet onnodig lang is */
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.main-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.badge {
    background: var(--accent);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
}

.tap-hint {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Uitklap animatie */
.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.project-card.active .project-content {
    max-height: 1000px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.project-description p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.detail-box img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.detail-box p {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 5px;
}
/* De CV Knop */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-content h2 {
    color: var(--accent);
    margin-top: 0;
}

.project-description p {
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    color: var(--text-dim);
}

/* 5. CV & MODAL (Gedeeld voor beide pagina's) */
.cv-section {
    text-align: center;
    padding: 60px 20px 100px;
}

.btn-cv {
    background-color: var(--accent);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cv:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    overflow-y: auto; /* Cruciaal voor scrollen in de popup! */
}

.modal-content {
    background-color: var(--card-bg);
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.cv-preview {
    width: 100%;
    border-radius: 10px;
}

.btn-download {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    color: var(--accent);
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 10px;
    font-weight: bold;
}

.btn-download:hover {
    background: var(--accent);
    color: white;
}
.project-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding-bottom: 10px;
}

.play-button {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.play-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
}
.main-img {
    width: 100%;
    height: 200px; /* Forceer elke afbeelding naar dezelfde hoogte */
    object-fit: cover; /* Zorgt dat de afbeelding niet vervormt */
    border-radius: 12px;
}