:root {
    --accent: #bebebe;
    --bg-dark: #3b3b3b;
    --nav-bg: #00a950;
    --d66-green: #00a950;
}

/* Basisstijlen */
body {
    background-color: #141414;
    color: #cecece;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    text-align: left;
    flex: 1;
}

/* Navigatie - gecentreerd, mag wrappen */
nav {
    flex-wrap: nowrap;
    background: #1a1a1a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    padding: 5px 10px;
}

nav a:hover {
    filter: brightness(1.2);
}

nav a.active,
nav a[aria-current="page"] {
    color: white;
    font-weight: 600;
}

/* Stijl voor ALLE links (behalve navigatie) */
a:not(nav a) {
    color: var(--accent); /* Gebruikt je accentkleur */
    text-decoration: none; /* Geen onderstreping */
    transition: 0.3s; /* Soepele kleurovergang */
}

a:not(nav a):hover {
    color: #fff; /* Wit bij hover */
}

/* Externe links (zoals LinkedIn) */
a[href^="http"], a[href^="https"] {
    position: relative;
}

a[href^="http"]::after, a[href^="https"]::after {
    /* content: " ↗"; Pijltje voor externe links */
    font-size: 0.8em;
}

/* Mailto-links */
a[href^="mailto:"]::before {
    content: "📧 "; /* Mail-icoontje voor mailto-links */
}


/* Secties */
.section {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 20px;
}

.bio-text {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    color: #ccc;
}

/* Grid voor werk en video's */
.work-grid, .video-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.work-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    cursor: pointer;
}

/* Video items */
.video-item {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.video-item iframe,
.video-item video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-item p {
    margin: 10px 0 0;
    font-size: 0.9em;
    color: #ccc;
    text-align: center;
}

/* Tooltips */
.tooltip {
    cursor: help;
    font-size: 0.8em;
    vertical-align: super;
    color: var(--accent);
    position: relative;
    nav-index: 0;
}

.tooltip:hover::after,
.tooltip:focus::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    max-width: 300px;
    white-space: normal;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.3s;
}

.tooltip:focus {
    outline: 2px solid var(--accent);
    border-radius: 2px;
}

/* Responsieve afbeeldingen */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

#lightbox[style*="display: flex"] {
    opacity: 1;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#lightbox div {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        gap: 10px;
        padding: 0 20px;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .profile-pic {
        width: 120px;
        height: 120px;
    }


}

/* Actieve link voor navigatie */
nav a[aria-current="page"] {
    color: white;
    font-weight: 600;
}
footer {
    background: #1a1a1a;
    padding: 15px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin-top: auto;
}

footer a {
    color: #bebebe;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

footer a:hover {
    color: #fff;
}

footer a::after {
    content: "" !important;
}


/* AI Chat specifiek */
#chat-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#chat-intro {
    text-align: center;
    margin-bottom: 30px;
    color: #aaa;
    font-size: 0.95em;
    line-height: 1.7;
}

#chat-intro h1 {
    color: #cecece;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
}

#chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    min-height: 80px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 4px;
    line-height: 1.6;
    font-size: 0.95em;
}

.message.user {
    align-self: flex-end;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #cecece;
}

.message.assistant {
    align-self: flex-start;
    background: #1e1e1e;
    border-left: 2px solid #00a950;
    color: #cecece;
}

.message.thinking {
    align-self: flex-start;
    color: #666;
    font-style: italic;
    font-size: 0.85em;
    padding: 8px 0;
    border: none;
    background: none;
}

#chat-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#user-input {
    flex: 1;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    color: #cecece;
    padding: 12px 14px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    resize: none;
    min-height: 48px;
    max-height: 150px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s;
}

#user-input:focus {
    border-color: #00a950;
}

#user-input::placeholder {
    color: #555;
}

#send-btn {
    background: #00a950;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    height: 48px;
}

#send-btn:hover {
    background: #00c060;
}

#send-btn:disabled {
    background: #3a3a3a;
    color: #666;
    cursor: not-allowed;
}

#status {
    font-size: 0.8em;
    color: #555;
    text-align: center;
    margin-top: 16px;
}

#status.error {
    color: #00a950;
}

.divider {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 30px 0;
}

#model-row {
    margin-top: 10px;
    text-align: center;
}

#model-select {
    background: #1e1e1e;
    color: #666;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8em;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}
#model-indicator {
    font-size: 0.75em;
    color: #555;
    margin-top: 6px;
    text-align: center;
}

/* Denkproces blok */
.message.assistant details {
    margin-bottom: 10px;
    border-left: 2px solid #333;
    padding-left: 10px;
}

.message.assistant details summary {
    font-size: 0.8em;
    color: #555;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.message.assistant details summary::before {
    content: '▶ ';
    font-size: 0.7em;
}

.message.assistant details[open] summary::before {
    content: '▼ ';
}

.message.assistant details summary:hover {
    color: #888;
}

.think-content {
    font-size: 0.85em;
    color: #4a8c5c;
    font-style: italic;
    margin-top: 8px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.message.assistant .answer {
    margin: 0;
}