*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary: #1a3a5f;
    --accent: #3498db;
    --text: #333;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
    --tag-hansken: #245ad6;
    --tag-case: #059669;
    --tag-dfaas: #7c3aed;
    --tag-solveit: #d97706;
}

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.4; color: var(--text); background: #f1f5f9; margin: 0; padding: 10px; overflow-x: hidden; }
.cv-container { max-width: 1100px; margin: 0 auto; background: white; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; display: flex; flex-wrap: wrap; }

/* Sidebar (Left Column) */
.sidebar { flex: 1; background: var(--primary); color: white; padding: 30px 20px; }
.sidebar h1 { font-size: 1.8rem; margin: 0; line-height: 1.2; }
.sidebar h2 { font-size: 0.9rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.contact-info { margin-top: 20px; font-size: 0.85rem; }
.contact-item { color: #cbd5e1; margin-bottom: 8px; display: flex; align-items: center; }
.contact-item a { color: #cbd5e1; text-decoration: none; word-break: break-all; }
.entry-desc a { color: #1a3a5f; text-decoration: underline; word-break: break-all; }

/* Main Content (Right Column) */
.main-content { flex: 2; padding: 30px; background: white; }

/* Section Styling */
.section-header { 
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--primary); margin: 20px 0 10px 0; padding-bottom: 5px; cursor: pointer;
}
.section-header h3 { margin: 0; text-transform: uppercase; font-size: 1rem; color: var(--primary); }
.collapse-icon { font-weight: bold; font-size: 1.2rem; }
.collapsible-content { max-height: 5000px; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.collapsed { max-height: 0; }

/* Item Styling */
.entry { margin-bottom: 15px; position: relative; }
.entry-date { font-weight: bold; color: var(--accent); font-size: 0.8rem; }
.entry-title { font-weight: 700; display: block; margin: 2px 0; }
.entry-desc { font-size: 0.9rem; color: #4b5563; }

.tag { font-size: 0.65rem; padding: 1px 6px; border-radius: 10px; font-weight: 700; color: white; margin-left: 3px; font-variant: small-caps; cursor: pointer; }
.grayed { opacity: 0.5; }
.hidden { display: none; }
.tag-hansken { background: var(--tag-hansken); }
.tag-case { background: var(--tag-case); }
.tag-dfaas { background: var(--tag-dfaas); }
.tag-solveit { background: var(--tag-solveit); }

.link-btn { 
    display: inline-block; margin-top: 0px; padding: 0px 2px; font-size: 0.75rem; font-weight: normal;
    border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; text-decoration: none; transition: 0.2s;
}
.link-btn:hover { background: var(--accent); color: white; }

.dutch-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    background-color: white;
    border-top: 4px solid #AE1C28;
    border-bottom: 4px solid #21468B;
    margin: 0px;
}

/* Dark Mode */
body.dark-mode {
    --primary: #2d5a7f;
    --accent: #5dade2;
    --text: #e2e8f0;
    --light-bg: #2c3e50;
    --border: #34495e;
    background: #1a1a1a;
}
body.dark-mode .cv-container { background: #2c3e50; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
body.dark-mode .main-content { background: #2c3e50; }
body.dark-mode .sidebar { background: #1a3a5f; }
body.dark-mode .contact-item a { color: #a0aec0; }
body.dark-mode .entry-desc { color: #cbd5e1; }
body.dark-mode .section-header h3 { color: var(--text); }
body.dark-mode .tag { color: #e2e8f0; }
body.dark-mode .entry-desc a { color: #cbd5e1; text-decoration: underline; word-break: break-all; }

@media (max-width: 900px) { 
    .cv-container { flex-direction: column; } 
    .sidebar, .main-content { width: 100%; min-width: unset; }
    body { padding: 5px; }
    .sidebar { padding: 20px 15px; }
    .main-content { padding: 20px 15px; }
}
@media print { 
    .collapse-icon { display: none; } 
    .collapsed { max-height: none; } 
    .sidebar { background: #eee !important; color: black !important; } 
}
