/* ==========================================================================
   1. VARIABLES & THEMES
   ========================================================================== */

:root {
    --bg-color: #0b0f19;
    --nav-bg: rgba(11, 15, 25, 0.85);
    --card-bg: rgba(30, 41, 59, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-pitch: #cbd5e1;

    --grid-color: rgba(56, 189, 248, 0.03);
    --badge-border: rgba(148, 163, 184, 0.15);

    --glow-1: rgba(14, 165, 233, 0.15);
    --glow-2: rgba(214, 229, 5, 0.05);

    --accent-gold: #d6e505;
    --accent-blue: #0ea5e9;
    --cyber-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-teal: #14b8a6;

    --btn-secondary-bg: rgba(30, 41, 59, 0.3);
    --btn-secondary-border: rgba(248, 250, 252, 0.15);
    --btn-secondary-text: #f8fafc;

    --gap-sm: 0.75rem;
    --gap-md: 1.5rem;
    --gap-lg: 2rem;
}

body.light-mode {
    --bg-color: #f1f5f9;
    --nav-bg: rgba(241, 245, 249, 0.9);
    --card-bg: #ffffff;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-pitch: #334155;

    --grid-color: rgba(15, 23, 42, 0.04);
    --badge-border: rgba(15, 23, 42, 0.08);

    --glow-1: transparent;
    --glow-2: transparent;

    --btn-secondary-bg: #ffffff;
    --btn-secondary-border: #cbd5e1;
    --btn-secondary-text: #0f172a;
}

/* ==========================================================================
   2. GLOBAL
   ========================================================================== */

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

body {
    font-family: system-ui, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    transition: 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

.page-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.page-about {
    padding-top: 90px;
}

.page-projects {
    padding-top: 90px;
}

.page-lab {
    padding-top: 90px;
}

.page-journey {
    padding-top: 90px;
}

.page-cv {
    padding-top: 90px;
}

.page-contact {
    padding-top: 90px;
}

.page-lab .card:nth-child(1) {
    border-top: 3px solid var(--cyber-blue);
}

.page-lab .card:nth-child(2) {
    border-top: 3px solid var(--accent-gold);
}

.page-lab .card:nth-child(3) {
    border-top: 3px solid var(--accent-purple);
}

.page-lab .card.lab-infra {
    border-top: 3px solid var(--accent-blue);
}

.page-lab .card.lab-netwerk {
    border-top: 3px solid var(--accent-purple);
}

.page-lab .card.lab-servers {
    border-top: 3px solid var(--accent-teal);
}

.page-lab .card.lab-cloud {
    border-top: none;
}

.page-about .about-me .card {
    border-top: 3px solid var(--accent-blue);
}

.page-about .how-i-work .card {
    border-top: 3px solid var(--accent-gold);
}

.page-about .my-goal .card {
    border-top: 3px solid var(--accent-purple);
}

.page-cv .cloud-card {
    border-top: 3px solid var(--accent-teal);
}

.page-cv .cv-job {
    border-top: 3px solid var(--accent-teal);
}

.page-home .grid-3>.card:nth-child(1) {
    border-top: 3px solid var(--cyber-blue);
}

.page-home .grid-3>.card:nth-child(2) {
    border-top: 3px solid var(--accent-gold);
}

.page-home .grid-3>.card:nth-child(3) {
    border-top: 3px solid var(--accent-purple);
}

.availability .availability-card {
    border-top: 3px solid var(--accent-teal);
}

.page-about .grid-3>.card:nth-child(1) {
    border-top: 3px solid var(--cyber-blue);
}

.page-about .grid-3>.card:nth-child(2) {
    border-top: 3px solid var(--accent-gold);
}

.page-about .grid-3>.card:nth-child(3) {
    border-top: 3px solid var(--accent-purple);
}

.page-about .connect-card {
    border-top: 3px solid var(--accent-teal);
}

.page-cv .connect-card {
    border-top: 3px solid var(--accent-teal);
}

.connect-card {
    border-top: 3px solid var(--accent-teal);
    padding: 50px;
    text-align: center;
}

.connect-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.connect-card p {
    color: var(--muted);
    margin-bottom: 25px;
}

.connect-card .hero-buttons {
    justify-content: center;
}

.page-projects .grid-3 .card:nth-child(4n + 1) {
    border-top: 3px solid var(--cyber-blue);
}

.page-projects .grid-3 .card:nth-child(4n + 2) {
    border-top: 3px solid var(--accent-gold);
}

.page-projects .grid-3 .card:nth-child(4n + 3) {
    border-top: 3px solid var(--accent-purple);
}

.page-projects .grid-3 .card:nth-child(4n + 4) {
    border-top: 3px solid var(--accent-teal);
}

.page-cv .grid-3>.card:nth-child(1) {
    border-top: 3px solid var(--cyber-blue);
}

.page-cv .grid-3>.card:nth-child(2) {
    border-top: 3px solid var(--accent-gold);
}

.page-cv .grid-3>.card:nth-child(3) {
    border-top: 3px solid var(--accent-purple);
}

.page-contact .grid-3>.card:nth-child(1) {
    border-top: 3px solid var(--cyber-blue);
}

.page-contact .grid-3>.card:nth-child(2) {
    border-top: 3px solid var(--accent-gold);
}

.page-contact .grid-3>.card:nth-child(3) {
    border-top: 3px solid var(--accent-purple);
}

.page-contact .opportunity-card {
    border-top: 3px solid var(--accent-teal);
}

/* =========================
   HERO OVERRIDES PAGES
   ========================= */

.page-privacy .hero,
.page-terms .hero {
    min-height: auto;
    padding: 120px 20px 60px;
    align-items: flex-start;
}

.page-privacy main,
.page-terms main {
    padding: 60px 20px;
}

.page-privacy .section,
.page-terms .section {
    display: flex;
    justify-content: center;
}

/* CARD LAYOUT */
.page-privacy .card,
.page-terms .card {
    max-width: 900px;
    width: 100%;
    padding: 40px;
    line-height: 1.7;
    text-align: left;
}

/* TYPOGRAPHY SPACING (BELANGRIJK) */
.page-privacy .card h2,
.page-terms .card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.page-privacy .card h3,
.page-terms .card h3 {
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.page-privacy .card p,
.page-terms .card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.page-privacy .card ul,
.page-terms .card ul {
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    padding-left: 1.6rem;
}

.page-privacy .card li,
.page-terms .card li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

/* LOGO */

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    flex-shrink: 0;
}

.logo a {
    color: var(--text-main);
    transition: 0.3s ease;
}

.logo-accent {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(214, 229, 5, 0.25);
}

.logo a:hover {
    opacity: 0.9;
}

/* ==========================================================================
   3. SECTIONS & CARDS
   ========================================================================== */

.section {
    max-width: 1200px;
    /* groter dan 1000px */
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;

    background: linear-gradient(to right, var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    display: inline-block;
    min-width: 320px;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header a {
    color: var(--cyber-blue);
    white-space: nowrap;
}

.section .card {
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--badge-border);
    padding: 2rem;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.card h3 {
    margin-bottom: 0.8rem;
}

.card p {
    margin-bottom: 1rem;
    line-height: 1.6;

    flex-shrink: 0;
}

.card p:last-of-type {
    margin-bottom: 1.5rem;

    flex-shrink: 0;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card .btn {
    margin-top: auto;
}

/* ==========================================================================
   4. NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 1.5rem;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Safari/iOS support */
    backdrop-filter: blur(8px);

    z-index: 1000;
    border-bottom: 1px solid var(--badge-border);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.accent-link {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: underline;
    padding: 2px 4px;
    border-radius: 4px;
}

.accent-link:hover {
    background: rgba(230, 167, 67, 0.12);
    color: var(--accent-blue);
}

/* 1. DESKTOP STYLING: Zorg dat de knop ALTIJD onzichtbaar is op grote schermen */
.hamburger-toggle {
    display: none !important;
    /* Dwingt onzichtbaarheid af op desktop */
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-main);
    /* Schakelt netjes mee met licht/donker thema */
    padding: 0.5rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

/* Subtiel effect als je op desktop (indien ooit zichtbaar) of mobiel hovert */
.hamburger-toggle:hover {
    color: var(--accent-gold);
    transform: scale(1.05);
}

/* Responsieve stijlen voor mobiel */
@media (max-width: 1100px) {

    .navbar {
        position: fixed !important;
        /* HOUD FIXED: Zodat de navbar bovenaan blijft staan */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 70px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        overflow: visible !important;
        /* Zorgt dat het menu buiten de navbar mag treden */
        z-index: 99990 !important;
    }

    /* Toon de hamburgerknop op mobiel */
    .hamburger-toggle {
        display: block !important;
        z-index: 99999 !important;
        /* Zorgt dat de knop ALTIJD klikbaar bovenop ligt */
        position: relative !important;
    }

    /* Transformeer de navigatiebalk naar een verticaal menu */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        /* Verberg het menu volledig rechts buiten beeld */
        width: 250px !important;
        height: 100vh !important;
        background-color: #0b0f19 !important;
        /* Matcht nu met je CSS variabele --bg-color */
        padding: 90px 2rem 2rem 2rem !important;
        /* Iets meer padding bovenin vanwege de 70px navbar */
        gap: 1.5rem !important;
        transition: right 0.3s ease-in-out !important;
        z-index: 99995 !important;
        /* Net onder de toggle-knop, maar boven de rest van de site */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5) !important;
    }

    /* Wanneer het menu actief is, schuift het in beeld */
    .nav-links.active {
        right: 0 !important;
    }

    /* Zorg dat de links binnen het mobiele menu onder elkaar staan en leesbaar zijn */
    .nav-links a {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 0.5rem 0 !important;
        font-size: 1.1rem !important;

        font-weight: 500 !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
        transition: color 0.2s ease !important;
    }

    /* Hover/Active status voor de links in het mobiele menu */
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent-gold) !important;
        padding-left: 5px !important;
        /* Subtiel inschuif-effect bij hover */
    }
}

@media (max-width: 600px) {

    .page-cv .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    .page-cv .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   NAVBAR ACTIONS
   ========================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

/* =========================
   LANGUAGE DROPDOWN
   ========================= */

.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: var(--card-bg);
    border: 1px solid var(--badge-border);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    transition: 0.2s;
}

.lang-btn:hover {
    border-color: var(--cyber-blue);
}

.chevron {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* dropdown */
.lang-menu {
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--card-bg);
    border: 1px solid var(--badge-border);
    border-radius: 10px;
    overflow: hidden;
    display: none;
    min-width: 140px;
    z-index: 1000;
}

.lang-menu.open {
    display: block;
}

.lang-menu button {
    width: 100%;
    padding: 0.7rem 1rem;
    /*background: transparent;*/
    background-color: #0b0f19;
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.lang-menu button:hover {
    background: rgba(56, 189, 248, 0.9);
}

/* =========================
   THEME TOGGLE (MODERN)
   ========================= */

.theme-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.theme-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 28px;
    flex-shrink: 0;
}

/* track */
.theme-label {
    width: 54px;
    height: 28px;
    background: var(--card-bg);
    border: 1px solid var(--badge-border);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    display: block;
}

/* ball */
.theme-ball {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;

    /* FIX: altijd contrast */
    background: var(--text-main);
    border: 1px solid var(--badge-border);

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s ease, background 0.3s ease;
}

.theme-ball i {
    font-size: 16px;
    line-height: 1;
}

/* move ball */
.theme-checkbox:checked+.theme-label .theme-ball {
    transform: translateX(26px);
}

/* icons */
.icon-moon {
    color: #38bdf8;
    font-size: 16x;
}

.icon-sun {
    color: #fbbf24;
    font-size: 16x;
}

/* default: moon visible, sun hidden */
.icon-sun {
    display: none;
}

/* when checked: swap */
.theme-checkbox:checked+.theme-label .icon-moon {
    display: none;
}

.theme-checkbox:checked+.theme-label .icon-sun {
    display: block;
}

/* ==========================================================================
   5. HERO (GEEN DUPLICATES MEER)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 0.6rem;

    padding: 0.85rem 1.6rem;
    border-radius: 10px;

    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;

    transition: all 0.25s ease;
    cursor: pointer;

    position: relative;
    overflow: hidden;
    margin: 0.8rem 0.2rem 0.8rem 0.2rem;
}

/* =========================
   PRIMARY BUTTON (PROJECTEN)
   ========================= */
.btn.primary {
    background: linear-gradient(135deg, var(--accent-gold), #f2ff2b);
    color: #0b0f19;

    box-shadow:
        0 10px 25px rgba(214, 229, 5, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 14px 30px rgba(214, 229, 5, 0.35);
}

/* licht “shine” effect */
.btn.primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: 0.5s;
}

.btn.primary:hover::after {
    left: 100%;
}

/* =========================
   SECONDARY BUTTONS
   ========================= */
.btn.secondary {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--badge-border);
    color: #fff;

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn.secondary:hover {
    transform: translateY(-2px);
    border-color: var(--cyber-blue);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.15);
}

/*tn i {
    font-size: 1rem;
    width: auto;
    height: auto;
    flex-shrink: 0;
}*/

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 90px 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-name {
    font-size: 3.6rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -1px;
}

.role {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    display: inline-block;
    min-width: 320px;
    text-align: center;
}

.specialties {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-muted);
    opacity: 0.9;
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
}

.subtitle {
    color: var(--text-pitch);
    margin-bottom: 2rem;
    max-width: 750px;
}

.subtitle code {
    color: var(--cyber-blue);
    background: var(--card-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* BADGES */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.hero-badges .badge {
    transition: all 0.25s ease;
    cursor: default;
}

.hero-badges .badge:hover {
    transform: translateY(-4px);
    background: rgba(56, 189, 248, 0.12);
    color: var(--cyber-blue);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.15);
}

.badge {
    background: var(--card-bg);
    border: 1px solid var(--badge-border);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    color: var(--text-muted);
}

/* BUTTONS */
/*.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}*/

/* .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    white-space: normal;
    text-align: center;
    line-height: 1.1;
} */

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.page-projects .hero-buttons {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.project-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: auto;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.highlight .hero-buttons {
    justify-content: center;
}

@media (max-width: 600px) {

    .home-hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-self: stretch;
    }

    .home-hero-actions .btn {
        display: flex;
        width: 100%;
        margin: 0;
    }

    .hero-content {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .project-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0rem;
        margin: 0rem 0rem 0rem 0rem;
    }

    .project-actions .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .home-hero-buttons {
        width: 100%;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .home-hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
}

/* =========================
   HERO BACKGROUND EFFECTS
   ========================= */

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
    border-radius: 50%;
}

.hero-glow-1 {
    top: -20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-1), transparent 70%);
    animation: floatGlow1 20s ease-in-out infinite alternate;
}

.hero-glow-2 {
    top: -10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-2), transparent 70%);
    animation: floatGlow2 25s ease-in-out infinite alternate;
}

/* SCROLL INDICATOR (ENKEL + 1X) */

.hero-scroll-indicator {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-small {
    text-align: center;
    padding: 80px 20px;
}

.hero-small .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-small .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-small .role {
    color: var(--cyber-blue);
    margin-top: 0.5rem;
}

.hero-small .subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* container die beweegt */
.scroll-arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatBounce 2s infinite ease-in-out;
}

/* “kapje” pijl */
.scroll-cap {
    width: 18px;
    height: 18px;
    border-right: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    transform: rotate(45deg);
    animation: bounceArrow 1.8s infinite ease-in-out;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tags span {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--badge-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Iets vloeiendere overgang */

    /* Standaard onzichtbaar en iets lager */
    opacity: 0;
    transform: translateY(15px);
}

.tags span:hover {
    transform: translateY(-3px) !important;
    /* !important om de intrede-transform te overschrijven */
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15);
}

.tags span.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   STAGGER EFFECT (Elke tag wacht net iets langer dan de vorige)
   ========================================================= */
.tags span.visible:nth-child(1) {
    transition-delay: 0.0s;
}

.tags span.visible:nth-child(2) {
    transition-delay: 0.1s;
}

.tags span.visible:nth-child(3) {
    transition-delay: 0.2s;
}

.tags span.visible:nth-child(4) {
    transition-delay: 0.3s;
}

.tags span.visible:nth-child(5) {
    transition-delay: 0.4s;
}

.tags span.visible:nth-child(6) {
    transition-delay: 0.5s;
}

.tags span.visible:nth-child(7) {
    transition-delay: 0.6s;
}

.tags span.visible:nth-child(8) {
    transition-delay: 0.7s;
}

.tags span.visible:nth-child(9) {
    transition-delay: 0.8s;
}

.tags span.visible:nth-child(10) {
    transition-delay: 0.9s;
}

.tags span.visible:nth-child(11) {
    transition-delay: 1.0s;
}

.tags span.visible:nth-child(12) {
    transition-delay: 1.1s;
}

.tags span.visible:nth-child(13) {
    transition-delay: 1.2s;
}

.tags span.visible:nth-child(14) {
    transition-delay: 1.3s;
}

.tags span.visible:nth-child(15) {
    transition-delay: 1.4s;
}

.tags span.visible:nth-child(16) {
    transition-delay: 1.5s;
}

.tags span.visible:nth-child(17) {
    transition-delay: 1.6s;
}

.tags span.visible:nth-child(18) {
    transition-delay: 1.7s;
}

.tags span.visible:nth-child(19) {
    transition-delay: 1.8s;
}

.tags span.visible:nth-child(20) {
    transition-delay: 1.9s;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

/* availability highlight */
/*.availability-card {
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.08),
            var(--card-bg));
    position: relative;
}*/

.availability-card {
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.08),
            var(--card-bg));
    position: relative;

    box-shadow: 0 0 25px rgba(34, 197, 94, 0.10);
    border-left: 3px solid rgba(34, 197, 94, 0.7);
}

/* titel meer impact */
.availability-title {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

/* spacing in card (dit lost jouw probleem op trouwens) */
.availability-card p {
    margin-bottom: 1rem;
}

.availability-card p:last-of-type {
    margin-bottom: 1.5rem;
}

/* CTA mag iets sterker */
.availability-cta {
    width: fit-content;
}

/*.availability-actions,
.contact-links,
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}*/

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

.contact-item {
    background: var(--card-bg);
    border: 1px solid var(--badge-border);

    border-radius: 12px;
    padding: 1.25rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;

    transition: all 0.25s ease;

    font-size: 1.8rem;
    color: var(--cyber-blue);
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: var(--cyber-blue);

    box-shadow:
        0 10px 25px rgba(56, 189, 248, 0.15);
}

.contact-item svg {
    width: 28px;
    height: 28px;
    color: var(--cyber-blue);
}

.contact-item span {
    font-weight: 600;
}

.contact-item i {
    font-size: 28px;
    color: var(--cyber-blue);
}

.contact-cta {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

.lab-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lab-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lab-list i {
    color: var(--accent);
    width: 20px;
}

.grid-3 .card:nth-child(1) .lab-project-icon i {
    color: var(--accent-blue);
}

.grid-3 .card:nth-child(2) .lab-project-icon i {
    color: var(--accent-gold);
}

.grid-3 .card:nth-child(3) .lab-project-icon i {
    color: var(--accent-purple);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    margin-top: 5rem;
    padding: 2rem 1.5rem;

    text-align: center;

    border-top: 1px solid var(--badge-border);
    background: var(--nav-bg);

    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--cyber-blue);
    transition: 0.2s ease;
}

.footer a:hover {
    color: var(--accent-gold);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-socials a {
    color: var(--muted);
    font-size: 1.4rem;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    color: var(--cyber-blue);
    transform: translateY(-2px);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* links */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.6s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* rechts */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.6s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* midden (optioneel extra effect) */
.reveal-center {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.reveal-center.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal,
.reveal-left,
.reveal-right,
.reveal-center {
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--accent-gold),
            var(--accent-blue),
            var(--accent-purple));
    transform: translateX(-50%);
}

/* ITEM BASE */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

/* LEFT / RIGHT */
.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* DOT */
.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 10px rgba(14, 165, 233, .4);
}

/* FIXED DOT POSITION */
.timeline-item.left .timeline-dot {
    right: -9px;
}

.timeline-item.right .timeline-dot {
    left: -9px;
}

/* CARD */
.timeline-card {
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

/* HOVER GLOW FIX */
.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 25px rgba(14, 165, 233, .35),
        0 10px 30px rgba(0, 0, 0, .25);
}

/* ICON COLOR */
.timeline-card h3 i {
    color: var(--accent-blue);
    margin-right: 8px;
}

/* MOBILE */
@media (max-width: 900px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 60px;
    }

    .timeline-dot {
        left: 11px !important;
    }
}

.year {
    margin-left: 8px;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
}



/* BACKDROP */
.timeline-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

/* ACTIVE STATE */
.timeline-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

/* BOX */
/*.overlay-box {
    background: var(--card-bg, #111);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    max-width: 700px;
    width: 90%;

    box-shadow:
        0 0 25px rgba(14, 165, 233, 0.25),
        0 20px 60px rgba(0, 0, 0, 0.5);

    transform: translateY(10px);
    animation: slideUp 0.3s ease forwards;
}*/

.overlay-box {
    background: #0b0f19;
    color: var(--text-color, #fff);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;

    padding: 28px 30px;
    border-radius: 14px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

    /* BELANGRIJK: zorgt voor ademruimte */
    line-height: 1.6;

    /* belangrijk: geen transparantie */
    opacity: 1;
}

/* Titel */
.overlay-box h2 {
    margin: 0 0 16px 0;
    font-size: 1.6rem;
    line-height: 1.3;
}

/* Paragrafen */
.overlay-box p {
    margin: 0 0 14px 0;
}

/* Laatste paragraph geen extra ruimte onderaan */
.overlay-box p:last-child {
    margin-bottom: 0;
}

/* CLOSE BUTTON */
/*.overlay-box button {
    position: absolute;
    top: 15px;
    right: 15px;

    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
}*/

/* Button (sluiten) */
.overlay-box button {
    position: sticky;
    top: 0;

    float: right;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    cursor: pointer;

    margin-bottom: 10px;
}

/* Optioneel: mooie scroll */
.overlay-box::-webkit-scrollbar {
    width: 8px;
}

.overlay-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.99);
    border-radius: 10px;
}


.overlay-box button:hover {
    color: var(--accent-blue);
    transform: scale(1.2);
}


.journey-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 60px auto;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;

    opacity: 0;
    transform: translateY(15px);

    animation: fadeUp 0.6s ease forwards;
    border: 1px solid;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-card:hover {
    transform: translateY(-6px);
    transition: 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

/* animatie voor ∞ */
.pulse-infinite {
    animation: pulseInfinite 2s ease-in-out infinite;
}

.stat-label {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Passion */
.stat-card[data-type="passion"] {
    border-color: var(--accent-gold);
}

/* Servers */
.stat-card[data-type="servers"] {
    border-color: var(--accent-blue);
}

/* Cloud */
.stat-card[data-type="homelab"] {
    border-color: var(--accent-purple);
}

/* Learning / infinite */
.stat-card[data-type="learning"] {
    border-color: var(--accent-teal);
}

.stat-card[data-type="passion"]:hover {
    box-shadow: 0 0 20px rgba(214, 229, 5, 0.25);
}

.stat-card[data-type="servers"]:hover {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
}

.stat-card[data-type="homelab"]:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.stat-card[data-type="learning"]:hover {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.25);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}

.tech-icons img {
    width: 48px;
    height: 48px;
    object-fit: contain;

    transition: transform 0.25s ease;
}

.tech-icons img:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    /*transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.12);*/
    box-shadow: none;
    transform: none;

}

.ranking-section {
    background: rgba(0, 0, 0, 0.25);
    padding: 2rem;
    margin-top: 30px;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ranking-section h2 {
    color: var(--accent-color, #e6a743);
    border-bottom: 2px solid var(--accent-color, #e6a743);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

#ranking-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.ranking-item .rank {
    width: 70px;
    font-weight: bold;
    color: var(--accent-color, #e6a743);
}

.ranking-item .name {
    flex: 1;
    font-weight: 500;
}

.ranking-item .turns {
    width: 110px;
    text-align: right;
}

.ranking-item .date {
    width: 120px;
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Top 3 highlight */
.ranking-item:nth-child(1) {
    background: rgba(255, 215, 0, 0.08);
}

.ranking-item:nth-child(2) {
    background: rgba(192, 192, 192, 0.08);
}

.ranking-item:nth-child(3) {
    background: rgba(205, 127, 50, 0.08);
}

/* =========================
   COOKIE BANNER (NEW STYLE)
   ========================= */

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: min(900px, 92%);
    padding: 16px 20px;

    background: rgba(13, 19, 31, 0.85);
    -webkit-backdrop-filter: blur(12px);
    /* Safari/iOS support */
    backdrop-filter: blur(12px);

    border: 1px solid var(--accent-gold);
    border-radius: 12px;

    color: #fff;
    font-family: 'Poppins', sans-serif;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);

    z-index: 9999;

    /* 👇 CENTER FIX */
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* tekst + links */
.cookie-banner a {
    color: var(--accent-gold);
    text-decoration: underline;
    font-weight: 500;
    text-align: center;
}

.cookie-banner p,
.cookie-banner {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

/* mobile fix */
@media (max-width: 600px) {
    .cookie-buttons {
        justify-content: center;
    }

    .cookie-banner {
        bottom: 10px;
        padding: 14px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .journey-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .journey-stats {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 600px) {
    /* .hero-buttons {
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        flex: 1 1 45%;
    } */

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-buttons .btn,
    .btn {
        width: 100%;
        display: block;
        padding: 0.9rem 1rem;
        text-align: center;
    }

    .hero-buttons .btn:last-child {
        flex: 1 1 100%;
    }

    /* als je knoppen in flex containers zitten */
    .hero-buttons,
    .availability-actions,
    .contact-grid {
        flex-direction: column;
        align-items: stretch;
    }
}