* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* =====================
   Container & header
   ===================== */
.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(to bottom, white, #cce0ff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header {
    text-align: center;
    padding: 30px 0;
    border-bottom: none;
    background-image: linear-gradient(to right, transparent, #007bff, transparent);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 2px;
}

/* Profile photo */
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid #007bff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo:has(img),
.profile-photo.has-image {
    background: none;
    color: transparent;
}

h1 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 2.2em;
}

.subtitle {
    color: #4a5259;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* =====================
   Intro / Over mij
   ===================== */
.intro-section {
    padding: 30px 0;
    border-bottom: none;
    background-image: linear-gradient(to right, transparent, #007bff, transparent);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 2px;
}

.intro-section h2 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.intro-text {
    font-size: 1.1em;
    color: #495057;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    border-right: 4px solid #007bff;
}

.intro-text p {
    margin-bottom: 12px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* =====================
   Ervaring
   ===================== */
.experience-section {
    padding: 30px 0;
}

.experience-section h2 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.experience-card {
    position: relative;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.experience-card:hover {
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.12);
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-freelance {
    background: #e6f9f0;
    color: #0d5c30;
}

.badge-dienstverband {
    background: #e7f1ff;
    color: #003d8f;
}

.badge-detachering {
    background: #f0e9ff;
    color: #4a00a0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.card-company {
    font-size: 1.05em;
    font-weight: 700;
    color: #212529;
}

.card-period {
    font-size: 0.85em;
    color: #6c757d;
    white-space: nowrap;
}

.card-role {
    font-size: 0.95em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.card-description {
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.5;
}

/* =====================
   Footer
   ===================== */
footer {
    background: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 30px;
    border-radius: 0 0 8px 8px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #66b2ff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p,
.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.footer-section a:hover,
.footer-section a:focus {
    color: #007bff;
    transition: color 0.3s ease;
}

.footer-section a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

.fa-solid,
.fa-brands,
.fa-regular {
    color: white;
    transition: color 0.3s ease;
}

/* =====================
   Dark mode (systeem)
   ===================== */
@media (prefers-color-scheme: dark) {
    body {
        color: #e9ecef;
        background-color: #121212;
    }

    .container {
        background: linear-gradient(to bottom, #1e1e1e, #1a2a3a);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    header {
        border-bottom-color: #404040;
    }

    .intro-section {
        border-bottom-color: #404040;
    }

    .subtitle {
        color: #adb5bd;
    }

    .intro-text {
        background: #2d2d2d;
        color: #e9ecef;
    }

    .experience-card {
        background: #2d2d2d;
        border-color: #404040;
    }

    .card-company {
        color: #e9ecef;
    }

    .card-period,
    .card-description {
        color: #adb5bd;
    }

    .card-role {
        color: #cfd4da;
    }

    .badge-freelance {
        background: #1a3d2e;
        color: #5fd498;
    }

    .badge-dienstverband {
        background: #1a3a5c;
        color: #74b4f8;
    }

    .badge-detachering {
        background: #2d1a5c;
        color: #b474f8;
    }
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

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