/* ============ Root & Theme (Rose Palette) ============ */
:root {
    --bg: #FFF9FC;
    /* zachte pastelachtergrond */
    --surface: #FFFFFF;
    /* panelen/kaarten */
    --text: #26262E;
    /* hoofdtekst */
    --muted: #6E6E7B;
    /* secundaire tekst */
    --primary: #E76A8A;
    /* warm rozé (primaire kleur) */
    --primary-600: #D45578;
    /* donkerder rozé voor hover */
    --primary-300: #F19AB1;
    /* lichte variant voor gradients/badges */
    --accent: #F39DB8;
    /* blush accent */
    --accent-200: #FBE0EA;
    /* heel licht blush voor hovers/chips */
    --slate: #1E2430;
    /* contrast (navigatie/knoppen) */
    --border: #F1E6EC;
    /* subtiele borderkleur */
    --shadow: 0 10px 30px rgba(231, 106, 138, .12);
    /* warme schaduwtoon */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --container: 1140px;

    --font-ui: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-accent: "Playfair Display", Georgia, serif;
}

/* ============ Reset ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #FFF 0%, var(--bg) 100%);
    font-family: var(--font-ui);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: var(--slate);
    color: #fff;
    border-radius: 8px;
    z-index: 10000;
}

/* ============ Header / Nav ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--slate);
}

.brand:hover {
    text-decoration: none;
    opacity: .95;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: radial-gradient(90% 90% at 20% 20%, var(--accent) 0%, var(--primary-300) 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.brand-text {
    letter-spacing: .2px;
}

.primary-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--slate);
    font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a:focus {
    background: var(--accent-200);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    border-radius: 8px;
}

.nav-toggle:focus {
    outline: 2px solid var(--accent);
}

/* ============ Hero ============ */
.hero {
    padding: 64px 0 48px;
}

.hero-inner {
    display: grid;
    gap: 40px;
    align-items: center;
    grid-template-columns: 1.2fr .8fr;
}

.hero-copy h1 {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.hero-copy p {
    color: var(--muted);
    max-width: 60ch;
    margin: 0 0 24px 0;
}

.accent {
    color: var(--primary);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 6px solid #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-600);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--slate);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--slate);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--accent-200);
    text-decoration: none;
}

.btn-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ============ Sections ============ */
.section {
    padding: 72px 0;
}

.section-header h2 {
    font-family: var(--font-accent);
    font-size: clamp(22px, 3.5vw, 32px);
    margin: 0 0 8px 0;
}

.section-header p {
    color: var(--muted);
    margin: 0;
}

/* ============ About ============ */
.about-grid {
    display: grid;
    gap: 20px;
    margin-top: 28px;
    grid-template-columns: repeat(3, 1fr);
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.pill-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    margin: 16px 0 0 0;
    list-style: none;
}

.pill-list li {
    padding: 6px 10px;
    background: var(--accent-200);
    color: var(--slate);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.stack-list {
    margin: 0;
    padding-left: 18px;
}

/* ============ Projects ============ */
.projects-grid {
    display: grid;
    gap: 24px;
    margin-top: 28px;
    grid-template-columns: repeat(3, 1fr);
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(231, 106, 138, .18);
}

.project-media img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.project-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-body h3 {
    margin: 0;
    font-size: 18px;
}

.project-body p {
    margin: 0;
    color: var(--muted);
}

.badge-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    flex-wrap: wrap;
}

.badge-list li {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #FFF3F7);
    border: 1px solid var(--border);
    color: var(--primary);
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* ============ Skills ============ */
.skills-grid {
    display: grid;
    gap: 24px;
    margin-top: 28px;
    grid-template-columns: repeat(3, 1fr);
}

.skill-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.skills-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #F4DDE6;
}

.skills-list li:last-child {
    border-bottom: 0;
}

.meter {
    width: 44%;
    height: 8px;
    background: #FBEAEE;
    border-radius: 999px;
    overflow: hidden;
}

.meter i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary-300) 100%);
}

/* ============ Footer / Contact ============ */
.site-footer {
    background: linear-gradient(180deg, var(--surface), #FFF3F7);
    border-top: 1px solid var(--border);
    position: relative;
}

.footer-inner {
    padding: 56px 24px;
}

.footer-top h3 {
    font-family: var(--font-accent);
    margin: 0 0 8px 0;
}

.footer-top p {
    color: var(--muted);
    margin: 0 0 16px 0;
    max-width: 70ch;
}

.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    box-shadow: var(--shadow);
}

.contact-item:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-bottom {
    margin-top: 20px;
    color: var(--muted);
}

.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    border: 0;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s ease;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--primary-600);
}

/* ============ HR ============ */
hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* ============ Focus states ============ */
a:focus,
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {

    .projects-grid,
    .skills-grid,
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        transform-origin: top center;
        transform: scaleY(0);
        transition: transform .2s ease;
    }

    .primary-nav.open {
        transform: scaleY(1);
    }

    .primary-nav ul {
        flex-direction: column;
        padding: 12px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .projects-grid,
    .skills-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
}