/* Globale Reset & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Kleurenpalet (Donkere Modus Standaard) */
    --color-header-bg: #1e1e1e; /* LICHTER grijs voor de header */
    --color-background: #121212; /* Zeer Donker Grijs voor de pagina-achtergrond */
    --color-surface: #1e1e1e; 
    --color-primary: #00bcd4; 
    --color-text-light: #e0e0e0;
    --color-text-dark: #a0a0a0;
    --color-shadow: rgba(0, 0, 0, 0.4);
    --border-radius: 8px;
    --transition-speed: 0.3s;
    
    /* Flip Switch Variabelen (VERKLEIND) */
    --card-width: 90px;     /* Van 110px naar 90px */
    --card-height: 100px;    /* Van 120px naar 100px */
    --switch-bg: rgba(255, 255, 255, 0.07); /* Iets minder opvallend glas */
    --switch-border-color: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --inactive-text-color: rgba(255, 255, 255, 0.6);
    --icon-shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    --highlight-color: #64ffda;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-top: 110px; /* AANGEPAST: Minder ruimte voor kleinere header */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: #4dd0e1;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--color-text-light);
}

p {
    margin-bottom: 1em;
}

.button-link {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color var(--transition-speed);
}
.button-link:hover {
    background-color: #4dd0e1;
    color: var(--color-background);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigatie (Vaste Bovenbalk) */
.navbar {
    background-color: var(--color-header-bg); /* AANGEPAST: Lichtere kleur */
    padding: 10px 0; /* AANGEPAST: Minder padding */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--color-shadow);
}

.nav-content {
    min-height: 80px; /* AANGEPAST: Kleinere minimale hoogte */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 30px;
}


/* --- FLIP SWITCH STIJLEN (Aangepast) --- */

.flip-switch-container {
    font-family: "Poppins", sans-serif;
}

.flip-switch {
    display: flex;
    position: relative;
    width: calc(var(--card-width) * 2);
    height: var(--card-height);
    background: var(--switch-bg);
    border-radius: 20px;
    border: 1px solid var(--switch-border-color);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), inset 0 4px 8px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    perspective: 1000px;
}

.flip-switch input[type="radio"] {
    display: none;
}

/* Gebruik <a> in plaats van label */
.flip-switch .switch-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 2;
    color: var(--inactive-text-color);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.flip-switch .switch-button:hover {
    color: var(--text-color);
}

.flip-switch .switch-button:hover svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 6px var(--icon-shadow-color)) brightness(1.2);
}

.flip-switch .switch-button svg {
    width: 20px; /* AANGEPAST */
    height: 20px; /* AANGEPAST */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 2px 3px var(--icon-shadow-color));
}

.flip-switch .switch-button span {
    font-size: 13px; /* AANGEPAST */
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* De Actieve Staat voor de link */
.flip-switch .current-page {
    color: var(--text-color) !important;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.5);
}

.flip-switch #switch-opt-1:checked ~ [for="switch-opt-2"],
.flip-switch #switch-opt-2:checked ~ [for="switch-opt-1"] {
    color: var(--inactive-text-color);
}

.flip-switch .switch-card {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--card-width);
    height: var(--card-height);
    z-index: 1;
    transform-style: preserve-3d;
}

.flip-switch .card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-switch .card-back {
    transform: rotateY(180deg);
}

/* 1. START STATE BIJ LADEN */
.flip-switch #switch-opt-2:checked ~ .switch-card {
    transform: translateX(100%) rotateY(180deg) scale(1);
    animation: none;
}
.flip-switch #switch-opt-1:checked ~ .switch-card {
    transform: translateX(0%) rotateY(0deg) scale(1);
    animation: none;
}

/* 2. ANIMATIE BIJ KLIK */
.flip-switch #switch-opt-2:checked ~ .switch-card {
     animation: flipRight 0.6s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.flip-switch #switch-opt-1:checked ~ .switch-card {
     animation: flipLeft 0.6s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}


@keyframes flipRight {
    0% { transform: translateX(0%) rotateY(0deg); }
    50% { transform: translateX(50%) rotateY(90deg) scale(1.05); }
    100% { transform: translateX(100%) rotateY(180deg) scale(1); }
}

@keyframes flipLeft {
    0% { transform: translateX(100%) rotateY(180deg); }
    50% { transform: translateX(50%) rotateY(90deg) scale(1.05); }
    100% { transform: translateX(0%) rotateY(0deg) scale(1); }
}

/* De glow onder de actieve optie */
.flip-switch .current-page::after {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 30px;
    height: 3px;
    background: var(--highlight-color);
    border-radius: 2px;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--highlight-color); }
    to { box-shadow: 0 0 15px var(--highlight-color), 0 0 25px var(--highlight-color); }
}

/* --- SECTIE STIJLEN --- */
section {
    padding: 80px 0;
}

/* Hero Sectie (Index.html) */
.hero-section {
    min-height: calc(100vh - 110px); /* AANGEPAST */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-section h1 {
    font-size: 3em;
    color: var(--color-primary);
}

.hero-section p {
    font-size: 1.2em;
    max-width: 800px;
    color: var(--color-text-dark);
}

/* Projecten Raster (Portfolio.html) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.2);
}

.project-card h3 {
    color: var(--color-primary);
}

.project-card p {
    flex-grow: 1;
}

.tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #333;
    color: var(--color-text-light);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    color: var(--color-text-dark);
    font-size: 0.9em;
}

/* Responsiviteit */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 20px;
        min-height: auto;
    }
    
    body {
        /* AANGEPAST */
        padding-top: 170px; 
    }

    .flip-switch {
        width: 100%;
        max-width: 300px;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }
}
