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

:root {
    --primary: #1a1a1a;
    --secondary: #4a4a4a;
    --accent: #2d2d2d;
    --light: #f5f5f5;
    --dark: #2d2d2d;
    --text: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav {
    max-width: 1900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links a.nav-active {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    height: 450px;
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(45, 45, 45, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center top;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #2d2d2d;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2d2d2d;
}

.portfolio-nav {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 2rem 0;
    margin-bottom: 3rem;
    scroll-behavior: smooth;
}

.portfolio-nav::-webkit-scrollbar {
    height: 8px;
}

.portfolio-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.portfolio-nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.portfolio-nav::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.portfolio-nav-item {
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s;
}

.portfolio-nav-item:hover {
    transform: translateY(-5px);
}

.portfolio-nav-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-nav-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.profile-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #555;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.skill-item:hover {
    background: #4a4a4a;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 74, 74, 0.3);
}

/* Portfolio Section */
.project {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.project:last-child {
    border-bottom: none;
}

.project-images {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.project-images img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    object-fit: contain;
}

.project-images img:hover {
    transform: scale(1.02);
}

.project-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.project-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.project-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.project-content ul li {
    margin-bottom: 0.5rem;
}

.project-content a {
    color: #4a4a4a;
    text-decoration: underline;
    font-weight: 600;
}

.project-content a:hover {
    color: var(--primary);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CV Section */
.cv-download-button {
    display: block;
    margin-bottom: 3rem;
    margin-left: auto;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: fit-content;
}

.cv-download-button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cv-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.cv-sidebar {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem 2.5rem;
}

.cv-profile-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.cv-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.cv-name {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.cv-sidebar-section {
    margin-bottom: 2.5rem;
}

.cv-sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.cv-contact-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.cv-contact-item span {
    font-size: 1.2rem;
    min-width: 25px;
}

.cv-contact-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cv-skills-list {
    list-style: none;
    padding: 0;
}

.cv-skills-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.cv-skills-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

.cv-language {
    margin-bottom: 1.2rem;
}

.cv-language span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cv-skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.cv-skill-bar div {
    height: 100%;
    background: white;
    border-radius: 10px;
}

.cv-hobbies-list {
    list-style: none;
    padding: 0;
}

.cv-hobbies-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.cv-hobbies-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

.cv-main {
    padding: 3rem 4rem;
    background: white;
}

.cv-main-section {
    margin-bottom: 3rem;
}

.cv-main-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
}

.cv-main-section p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

.cv-experience-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.cv-experience-item:last-child {
    border-bottom: none;
}

.cv-experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.cv-experience-header h4 {
    font-size: 1.3rem;
    color: #2d2d2d;
    margin-bottom: 0.3rem;
}

.cv-company {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cv-description {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.cv-date {
    color: #888;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.95rem;
}

.cv-reference {
    margin-bottom: 2rem;
}

.cv-reference h4 {
    font-size: 1.2rem;
    color: #2d2d2d;
    margin-bottom: 0.3rem;
}

.cv-reference p {
    margin: 0.2rem 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .cv-layout {
        grid-template-columns: 1fr;
    }

    .cv-main {
        padding: 2rem;
    }
}

@media print {
    .cv-profile-photo img {
        object-fit: cover !important;
        object-position: center 30% !important;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4a4a4a;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-card a {
    color: #4a4a4a;
    text-decoration: none;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.gallery-image-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-image-photo img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 1.5rem;
    background: white;
}

.gallery-caption h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.gallery-caption p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* Responsive - Uitgebreid */
@media (max-width: 1024px) {
    .container {
        padding: 3rem 1.5rem;
    }

    .portfolio-nav {
        gap: 1rem;
    }

    .portfolio-nav-item {
        min-width: 150px;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    nav {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    /* Container */
    .container {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .skills-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Portfolio */
    .portfolio-nav {
        gap: 1rem;
        padding: 1rem 0;
    }

    .portfolio-nav-item {
        min-width: 120px;
    }

    .portfolio-nav-item img {
        height: 80px;
    }

    .project {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .project-content {
        margin-bottom: 1rem;
    }

    .project-content h3 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .project-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .project-content ul {
        margin-top: 1rem;
        padding-left: 1.2rem;
    }

    .project-content ul li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .project-images {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .project-images img {
        max-height: 300px;
        width: 100%;
    }

    /* CV */
    .cv-layout {
        grid-template-columns: 1fr;
    }

    .cv-sidebar {
        padding: 2rem 1.5rem;
    }

    .cv-main {
        padding: 2rem 1.5rem;
    }

    .cv-experience-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cv-date {
        align-self: flex-start;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-image-photo {
        height: 200px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Lightbox */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px 15px;
    }

    .lightbox-counter {
        bottom: 10px;
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {

    /* Extra kleine schermen */
    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .portfolio-nav-item {
        min-width: 100px;
    }

    .portfolio-nav-item img {
        height: 60px;
    }

    .portfolio-nav-item span {
        font-size: 0.8rem;
    }

    .project {
        padding: 1rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

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

    .cv-name {
        font-size: 1.5rem;
    }

    /* Portfolio extra klein scherm */
    .project {
        padding: 1rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-content p,
    .project-content ul li {
        font-size: 0.9rem;
    }

    .project-images img {
        max-height: 200px;
    }
}

/* Landscape mode voor kleine schermen */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}