/* Global Styles */
:root {
    --primary-color: #ffffff; /* Wit accent voor een luxe uitstraling */
    --secondary-color: #111111; /* Diep zwart */
    --accent-color: #a1a1a1; /* Subtiel grijs */
    --text-color: #e5e5e5;
    --muted-text: #a3a3a3;
    --light-bg: #0a0a0a; /* Bijna zwart achtergrond */
    --dark-bg: #000000;
    --card-bg: #141414; /* Iets lichter zwart voor kaarten */
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;
    --border-radius: 0px; /* GEEN ronde hoekjes */
    --box-shadow: none; /* Minimalistisch zonder zware schaduwen */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
    padding-bottom: 2rem;
    margin-bottom: 4rem;
    border-bottom: var(--border-subtle);
}

h2::after {
    display: none;
}

p {
    margin-bottom: 1.25rem;
    color: var(--muted-text);
}

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

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

.section {
    padding: 6rem 0;
}

/* Header Styles */
header {
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 2rem 0;
    border-bottom: var(--border-subtle);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: none;
    line-height: 0.9;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--muted-text);
    margin-bottom: 3rem;
    max-width: 800px;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

/* Navigation */
.desktop-nav {
    margin-top: 2rem;
    width: 100%;
}

.desktop-nav ul {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.desktop-nav a {
    color: var(--muted-text);
    font-weight: 600;
    padding: 0.5rem 0;
    background: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.desktop-nav a:hover {
    background: none;
    color: white;
    transform: none;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.download-cv {
    display: inline-block;
    margin-top: 4rem;
    background-color: white;
    color: black;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: none;
    transition: var(--transition);
}

.download-cv:hover {
    background-color: var(--muted-text);
    color: black;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

/* About Section */
.profile-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.profile-image {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.profile-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: var(--border-subtle);
}

.megekko-badge {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.megekko-img {
    max-width: 200px;
    height: auto;
    border-radius: 0;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
}

.megekko-img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* Game Gallery in Hobbies */
.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-item {
    background: var(--card-bg);
    border-radius: 0;
    overflow: hidden;
    border: var(--border-subtle);
    transition: var(--transition);
}

.game-item:hover {
    transform: translateY(-10px);
    border-color: white;
}

.game-item img, .game-item video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.game-item .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.game-item .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.game-info {
    padding: 1rem;
    text-align: center;
}

.game-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.profile-text {
    flex: 1.5;
    min-width: 300px;
}

.profile-text p {
    font-size: 1.125rem;
}

/* Personal Grid */
.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.personal-grid > div {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 0;
    border: var(--border-subtle);
}

.list-contacts {
    list-style: none;
}

.list-contacts li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-contacts i {
    color: var(--primary-color);
    width: 20px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skills-category {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 0;
    box-shadow: none;
    border: var(--border-subtle);
}

.skill-bars h4 {
    margin-top: 2rem;
    color: var(--text-color);
    font-size: 1.25rem;
}

.skill-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.skill-level {
    font-size: 0.875rem;
    color: var(--muted-text);
}

/* Education Timeline */
.education-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 0;
    margin-bottom: 2rem;
    border-left: 8px solid white;
    box-shadow: none;
    border-top: var(--border-subtle);
    border-right: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.edu-logo {
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Work Section */
.work-list {
    list-style: none;
}

.work-list li {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: var(--border-subtle);
    transition: var(--transition);
}

.work-list li:hover {
    transform: translateX(20px);
    border-color: white;
}

.work-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 0;
}

/* Media Samples */
.media-item {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 0;
    margin-bottom: 2rem;
    border: var(--border-subtle);
}

.media-item audio, .media-item video {
    width: 100%;
    margin-top: 1rem;
    border-radius: 0;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-item {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 0;
    border: var(--border-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-item:hover {
    transform: translateY(-10px);
    border-color: white;
}

.tool-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.tool-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.tool-item p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.tool-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.tool-link:hover {
    text-decoration: underline;
}

/* Store Links */
.store-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: black;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.store-link:hover {
    background: var(--muted-text);
    transform: translateY(-5px);
}

.store-badge {
    height: 20px;
    background: white;
    border-radius: 0;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Print Styles - Strak, professioneel & inktvriendelijk (Wit met kleuraccenten) */
@media print {
    /* Page setup */
    @page { size: A4; margin: 15mm; }

    /* Global reset for print */
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    html, body { 
        background: white !important; 
        color: #1e293b !important; 
    }

    /* Layout tightening for print */
    .section { padding: 1rem 0 !important; break-inside: avoid; page-break-inside: avoid; }
    .container { width: 100% !important; max-width: none !important; padding: 0 !important; }

    /* Hide non-essential interactive UI */
    header, .desktop-nav, .download-cv, .store-links, .store-link, .tools-grid img, audio, video, .no-print-url, .back-to-top, footer { display: none !important; }

    /* Print-only helpers */
    .print-header { 
        display: block !important; 
        border-bottom: 2px solid var(--primary-color); 
        padding-bottom: 12px; 
        margin-bottom: 20px; 
    }
    .ph-name { font-size: 24pt; font-weight: 800; margin-bottom: 2px; color: #0f172a !important; }
    .ph-role { font-size: 12pt; font-weight: 700; margin-bottom: 8px; color: var(--primary-color) !important; }
    .ph-contact { font-size: 10pt; color: #475569 !important; }
    .ph-contact a { text-decoration: none; color: var(--primary-color) !important; }

    /* Headings & typography */
    h2 { 
        font-size: 16pt; 
        margin: 20px 0 10px 0; 
        padding: 0 0 5px 0; 
        color: var(--primary-color) !important; 
        border-bottom: 1px solid #e2e8f0;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    h2::after { content: none !important; }
    h3 { font-size: 13pt; margin: 15px 0 5px 0; color: #0f172a !important; }
    p, li, .skill-level, .timeline-date, .list-contacts li { font-size: 10pt; line-height: 1.5; color: #334155 !important; }

    /* Cards and lists look like clean sections */
    .card-bg, .timeline-item, .skills-category, .work-list li, .media-item, .personal-grid > div { 
        border: 1px solid #f1f5f9 !important; 
        border-radius: 0 !important; 
        padding: 15px !important; 
        background: #f8fafc !important; 
        box-shadow: none !important;
        margin-bottom: 15px !important;
    }
    
    .timeline-item { border-left: 4px solid var(--primary-color) !important; }
    .work-list li:hover { transform: none !important; }

    /* Grids become single-column for readability */
    .profile-container, .skills-container, .personal-grid, .tools-grid { display: block !important; }

    /* Logos and images scale responsibly */
    img { display: none !important; }
    .profile-image img { display: block !important; max-width: 100% !important; height: auto !important; border: none !important; filter: none !important; width: 120px !important; border-radius: 0 !important; float: right; margin-left: 20px; }

    /* Links show their URLs (except anchors/JS) */
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; opacity: 0.7; }
    a[href^="#"]::after, a[href^="mailto:"]::after, a[href^="tel:"]::after { content: none; }

    /* Page break hints for long sections */
    #education, #work, #portfolio { page-break-before: avoid; }
}

.print-header, .print-only { display: none; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    .profile-container { flex-direction: column; text-align: center; gap: 2rem; }
    h2::after { left: 50%; transform: translateX(-50%); }
    .work-list li { flex-direction: column; text-align: center; }
}
