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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    background: #50bfff;
    /* Felblauwe basis (iets donkerder) */
    background-image:
        radial-gradient(circle at top right, #99ffff 0%, transparent 40%),
        /* Felle, bijna witte cyan flare */
        radial-gradient(circle at bottom left, rgba(179, 255, 179, 0.6) 0%, transparent 55%);
    /* Levendig groen/lime */
    background-attachment: fixed;
    background-size: cover;

    color: #1a1a1a;
}

header {
    background: rgba(255, 255, 255, 0.5);
    /* Semi-transparant wit */
    backdrop-filter: blur(10px);
    /* 🌟 Het Magische Glas-effect! 🌟 */
    -webkit-backdrop-filter: blur(10px);
    /* Voor betere compatibiliteit */

    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 10;

    /* Glimmende Rand (Skeuomorphism) */
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
    /* Zachte blauwe schaduw */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.tabs {
    list-style: none;
    display: flex;
    gap: 20px;
}

.tabs li {
    margin: 0 20px;
}

.tabs li a {
    color: #003366;
    /* Donkerblauwe tekst */
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 8px;
    /* Iets rondere hoeken dan 4px */
    transition: all 0.2s ease;

    /* Knop Stijl */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(200, 220, 255, 0.6));
    border: 1px solid rgba(0, 51, 102, 0.4);
    /* Zachte blauwe rand */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tabs li a:hover {
    /* Hover: Donkerder en iets meer ingedrukt */
    background: linear-gradient(180deg, rgba(230, 230, 230, 0.8), rgba(200, 200, 200, 0.5));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 0 5px rgba(0, 0, 0, 0.1);
    /* Versterk de schaduw om 'ingedrukt' te lijken */
    transform: translateY(1px);
}

.tabs li a.active {
    /* Active: De standaard blauwe kleur, maar met glans */
    background: linear-gradient(180deg, #0077dd, #004c99);
    color: white;
    border: 1px solid #003366;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.tabs li#lang a:hover {
    /* Taal knop heeft zijn eigen hover (hou de kleur hier blauw/normaal) */
    background-color: #ffaa00;
    /* Contrast kleur voor de switch */
    color: #1a1a1a;
}

.language-switcher {
    display: flex;
    gap: 15px;
    position: absolute;
    right: 20px;
}

.language-switcher a {
    color: white;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #003366;
    transition: background-color 0.3s ease;
}

.language-switcher a:hover {
    background-color: #002244;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: none;
    /* remove the dark blocker */
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 1000px;
    text-align: center;

    /* 🎨 DE GLAS VIBE 🎨 */
    background: rgba(255, 255, 255, 0.4);
    /* Licht, semi-transparant */
    backdrop-filter: blur(12px);
    /* Maak de achtergrond wazig */
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Witte, glanzende rand */
    border-radius: 15px;
    /* Iets rondere hoeken */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    /* Zachte schaduw */
}

.tab-content.active {
    display: block;
}

footer {
    background: rgba(255, 255, 255, 0.5);
    /* Semi-transparant wit */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    text-align: center;
    padding: 10px;
    margin-top: auto;

    border-top: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

#home {
    background-color: transparent;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    color: #1a1a1a;
}

.home-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.home-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    max-width: 400px;
}

.home-text {
    max-width: 500px;
    text-align: left;
}

#home h1 {
    font-size: 3rem;
    color: #003366;
    /* Donkerblauwe titels */
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    /* Lichte text-shadow voor diepte */
}

#home p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

#home .intro p {
    font-size: 1.1rem;
    color: #525252;
    margin-top: 20px;
}

#home button:hover {
    background-color: #002244;
    transform: scale(1.05);
}

/* Styling for span tags */
span {
    color: #0055aa;
    /* Helderder blauw */
    font-family: Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

span:hover {
    color: #0077ff;
    text-shadow: 0 0 5px #0077ff, 0 0 10px rgba(0, 119, 255, 0.5);
}


.home-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    max-width: 400px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    /* Default border */
}

.home-image img:hover {
    border: 3px solid #003366;
    /* Navy blue border */
    box-shadow: 0 0 10px #003366;
    /* Subtle glow effect */
}

#background {
    background-color: transparent;
    padding: 40px 20px;
    color: #1a1a1a;
    text-align: center;
}

#background h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #003366;
    text-transform: uppercase;
}

.background-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.experience-section,
.education-section {
    flex: 1;
    max-width: 45%;
}

.experience-section h2,
.education-section h2 {
    font-size: 2rem;
    color: #0055aa;
    ;
    margin-bottom: 20px;
}

.experience-box,
.education-box {
    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, 0.75);
    /* Semi-transparant wit */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    border-radius: 10px;
    margin: 20px 0;
    padding: 20px;
    transition: transform 0.3s ease;

    border: 1px solid rgba(0, 51, 102, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.experience-box:hover,
.education-box:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 51, 102, 0.2);
}

.experience-image img,
.education-image img {
    max-width: 100px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;

    border: 3px solid rgba(102, 178, 255, 0.5);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.experience-text,
.education-text {
    text-align: left;
}

.experience-text h3,
.education-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #003366;
}

.experience-text p,
.education-text p {
    font-size: 1rem;
    color: #333;
    margin: 5px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.6);
    /* Semi-transparant wit */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-radius: 10px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

.project-card img,
.project-card video {
    /* border-bottom: 3px solid #003366; <--- Aangepast naar Aero kleur */
    border-bottom: 3px solid #66b2ff;
    /* Helderblauwe rand */
}

.project-card img {
    width: 100%;
    height: auto;
}

.project-card video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: cover;
    background-color: #000;
}

.project-details {
    padding: 15px;
    text-align: left;
}

.project-details h3 {
    font-size: 1.5rem;
    color: #0055aa;
    /* Donkerblauwe titel */
    margin-bottom: 10px;
}

.project-details p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}

.project-details button {
    background: linear-gradient(180deg, #66b2ff, #0055aa);
    color: white;
    padding: 10px 20px;
    border: 1px solid #003366;
    border-radius: 20px;
    cursor: pointer;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.project-details button:hover {
    background: linear-gradient(180deg, #0055aa, #66b2ff);
    /* Inverteren voor 'ingedrukt' */
    transform: translateY(1px) scale(1.02);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.about-container {
    background: rgba(255, 255, 255, 0.4);
    /* Licht, semi-transparant */
    backdrop-filter: blur(12px);
    /* Wazige achtergrond */
    -webkit-backdrop-filter: blur(12px);

    border-radius: 15px;
    /* Iets rondere hoeken */
    border: 1px solid rgba(255, 255, 255, 0.7);
    /* Glanzende, lichte rand */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    /* Zachte, neutrale schaduw */

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 100%;
    /* Make the image fill the container */
    max-width: 350px;
    /* Adjust the size as needed */
    height: auto;
    border-radius: 10px;
    border: 4px solid #66b2ff;
    /* Helder blauwe rand */
    box-shadow: 0 0 10px rgba(102, 178, 255, 0.35);
    /* Felblauwe gloed */
}

.about-text-container {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-box {
    background: rgba(255, 255, 255, 0.75);
    /* Nog iets minder transparant voor leesbaarheid */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    border: 1px solid rgba(255, 255, 255, 0.9);
    /* Bijna witte rand */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    /* Text kleuren omzetten */
    color: #333;
    /* Standaard tekst wordt donker */

    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.about-box h2 {
    font-size: 1.8rem;
    color: #0055aa;
    margin-bottom: 10px;
}

.about-box p,
.about-box ul {
    font-size: 1.1rem;
    color: #333;
}

.about-box ul {
    list-style: none;
    padding: 0;
}

.about-box ul li {
    margin: 8px 0;
    font-size: 1rem;

    /* 🎨 GLOSSY SKILL BADGE 🎨 */
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.95),
            rgba(240, 240, 240, 0.8) 40%,
            rgba(200, 200, 200, 0.7));
    color: #1a1a1a;
    /* Donkere tekst */
    padding: 10px;
    border-radius: 8px;
    /* Iets rondere hoeken */

    /* Glans toevoegen */
    border: 1px solid rgba(0, 51, 102, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#contact h1 {
    margin: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;

    background: white;
    color: #1a1a1a;

    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0055aa;
    box-shadow: 0 0 8px rgba(0, 85, 170, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

.form-group textarea {
    resize: none;
}

button[type="submit"] {
    /* Gebruik dezelfde stijl als de project buttons */
    background: linear-gradient(180deg, #66b2ff, #0055aa);
    color: white;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 1px solid #003366;
    border-radius: 20px;
    cursor: pointer;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(180deg, #0055aa, #66b2ff);
    transform: translateY(1px) scale(1.02);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    /* Initially hidden */
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.popup.show {
    display: block;
    opacity: 1;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-icon {
    font-size: 2.5rem;

    /* 🎨 Aero Basisstijl: Licht en Glanzend 🎨 */
    color: #0055aa;
    /* De kleur van het icoon zelf wordt blauw */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(200, 200, 200, 0.7));

    /* Maak ze rond */
    border-radius: 50%;

    /* Geef ze een maat zodat de cirkel mooi uitkomt (bij 2.5rem font size) */
    width: 3.5rem;
    height: 3.5rem;

    /* Schaduw en rand voor de Skeuomorphism */
    border: 1px solid rgba(0, 51, 102, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    ;

    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    background: linear-gradient(180deg, rgba(200, 200, 200, 0.7), rgba(255, 255, 255, 0.9));
    color: #003366;
    /* Donkerder blauw bij hover */
    transform: scale(1.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.social-icon i {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
    }

    .tabs li {
        margin: 10px 0;
    }

    .home-container {
        flex-direction: column;
        text-align: center;
    }

    .home-image,
    .home-text {
        max-width: 100%;
    }

    .background-container {
        flex-direction: column;
    }

    .experience-section,
    .education-section {
        max-width: 100%;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image-container,
    .about-text-container {
        width: 100%;
    }

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

    footer {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tabs li a {
        font-size: 16px;
        padding: 8px 10px;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    #home p,
    .about-box p,
    .experience-text p {
        font-size: 1rem;
    }

    .home-image img {
        max-width: 300px;
    }
}

.hamburger-icon {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: #0055aa; /* Frutiger Blue */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Show hamburger icon on smaller screens */
@media (max-width: 768px) {

    /* Hide the tabs navbar on smaller screens */
    .tabs {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    /* Show the hamburger menu on smaller screens */
    .hamburger-icon {
        display: block;
    }

    /* Show the menu when active */
    .tabs.active {
        display: flex;
        /* Flex handles the vertical stacking better here */
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Pushes it right below the header */
        left: 0;
        width: 100%;
        padding: 20px;

        /* 🎨 THE FIX: Frutiger Glass Background instead of Black */
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 2px solid #0055aa;
        box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
        z-index: 999;
    }

    .tabs li {
        margin: 10px 0;
    }
}

#mobile-menu {
    transition: transform 0.3s ease;
}

#mobile-menu.active {
    transform: translateX(0);
}

#mobile-menu {
    transform: translateX(-100%);
    /* Start off-screen */
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    /* Of #c5e1ff voor Aero, maar donker is veiliger voor je ogen */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Een simpele CSS spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #0055aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Class om de loader te verbergen */
body.loaded #page-loader {
    opacity: 0;
    visibility: hidden;
}

@media (hover: none) and (pointer: coarse) {
    /* Only targets touchscreens/mobiles */
    body {
        background-attachment: scroll; /* Disables the parallax effect on phone to prevent bugs */
    }
}