/* Algemene instellingen */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #292929;
    background-color: #faf9f6;
    line-height: 1.65;
}

a { color: #345bd7; }

header {
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.menu {
    max-width: 1000px;
    margin: auto;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #292929;
    text-decoration: none;
}

.logo span {
    color: #345bd7;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    font-size: 15px;
    color: #444;
    text-decoration: none;
}

nav a:hover {
    color: #345bd7;
    text-decoration: underline;
}

main { max-width: 1000px; margin: auto; }
section { padding: 55px 25px; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: 38px; margin: 8px 0 20px; }
h2 { font-size: 28px; margin: 0 0 20px; }
h2::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background: #345bd7;
    margin-top: 10px;
}
h3 { font-size: 21px; margin-top: 0; }
p { margin: 0 0 17px; }

.button {
    display: inline-block;
    background: #345bd7;
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.button:hover { background: #2548b7; }
a:focus-visible, summary:focus-visible {
    outline: 3px solid #345bd7;
    outline-offset: 5px;
}

/* Introductie */
.intro {
    display: flex;
    align-items: center;
    gap: 45px;
    padding: 65px 25px;
}

.intro-text { flex: 1; }
.intro-text>p:not(.small-title) { color: #606060; font-size: 16px; }
.small-title {
    color: #345bd7;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}
.intro .button { margin-top: 8px; }

.intro-image {
    width: 310px;
    border: 1px solid #cbd2e4;
    border-radius: 7px;
    overflow: hidden;
    background: #edf1fc;
    flex-shrink: 0;
}

.code-top {
    background: #e0e6f3;
    padding: 12px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.code-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9eacc7;
}

.code-top b {
    font-size: 11px;
    font-weight: normal;
    color: #69758f;
    margin-left: 12px;
}

.code-text {
    padding: 25px;
    font-family: monospace;
    font-size: 16px;
    color: #7184b1;
    line-height: 1.6;
}

.code-text strong { color: #345bd7; margin-left: 20px; font-size: 20px; }
.code-text>span { color: #8490a5; font-size: 13px; }

/* Over mij */
.about { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}
.about-content p { color: #606060; font-size: 15px; }
.skills {
    background: #eceff7;
    padding: 22px 25px;
    border-radius: 5px;
}
.skills h3 { font-size: 17px; margin-bottom: 12px; }
.skills ul { margin: 0; padding-left: 20px; font-size: 14px; }
.skills li { margin: 5px 0; }

/* Projecten */
.section-text { color: #666; font-size: 15px; }
.project-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}
.project-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.project-image {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}
.guestbook-image { background: #e5e7e8; }

.little-site {
    width: 290px;
    max-width: 100%;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
}

.little-header {
    padding: 15px 20px;
    background: #111a1e;
    color: white;
}

.little-header b { font-size: 12px; }
.little-header p { font-size: 9px; margin: 8px 0 0; }

.little-content {
    padding: 13px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
}

.little-content b { font-size: 9px; display: block; }
.little-content span {
    display: block;
    font-size: 6px;
    background: white;
    padding: 8px 5px;
    margin-top: 6px;
    border: 1px solid #ddd;
}
.little-content i {
    display: block;
    height: 12px;
    border: 1px solid #ddd;
    background: white;
    margin-top: 7px;
}
.little-content small {
    display: block;
    color: white;
    background: #333;
    padding: 3px;
    text-align: center;
    font-size: 6px;
    margin-top: 5px;
}

.portfolio-image { background: #e1e8fa; }
.little-portfolio {
    width: 270px;
    max-width: 100%;
    background: white;
    padding: 17px;
    border: 1px solid #cbd4ed;
}

.little-portfolio>b { font-size: 13px; color: #345bd7; }
.little-portfolio hr { border: 0; border-top: 1px solid #eee; }
.little-portfolio h4 { margin: 15px 0 7px; font-size: 19px; }
.little-portfolio p { font-size: 9px; color: #777; }
.little-portfolio>div { display: flex; gap: 8px; }
.little-portfolio span {
    width: 50%;
    height: 28px;
    background: #edf1fc;
    border: 1px solid #e1e6f1;
}

.project-content { padding: 23px; }
.project-content h3 { margin-bottom: 12px; }
.project-content>p { font-size: 14px; color: #606060; }
.project-content .used { color: #345bd7; font-size: 12px; margin: 20px 0; }

details { margin-top: 20px; font-size: 13px; color: #555; }
summary { cursor: pointer; color: #555; }
details p { margin: 12px 0 0; }

/* Contact en footer */
.contact {
    margin: 0 25px 55px;
    padding: 35px;
    background: #edf1fc;
    border: 1px solid #dce3f5;
    border-radius: 6px;
}

.contact>p { font-size: 15px; color: #606060; margin-bottom: 25px; }

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #292929;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dce3f5;
    border-radius: 5px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #345bd7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .button {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

footer {
    border-top: 1px solid #ddd;
    padding: 23px;
    text-align: center;
    color: #777;
    font-size: 12px;
    background: white;
}

footer p { margin: 0 0 6px; }

/* Tablet */
@media (max-width: 720px) {
    .intro { gap: 25px; }
    h1 { font-size: 31px; }
    .intro-image { width: 240px; }
    .about-content { gap: 25px; grid-template-columns: 1.2fr 1fr; }
}

/* Mobiel */
@media (max-width: 550px) {
    .menu { padding: 18px 20px; }
    nav { gap: 14px; }
    nav a { font-size: 12px; }
    .logo { font-size: 23px; }
    section { padding: 35px 20px; }
    .intro { display: block; padding: 40px 20px 35px; }
    .intro-image { width: 100%; max-width: 330px; margin: 30px auto 0; }
    .intro-text>p:not(.small-title) { font-size: 15px; }
    h1 { font-size: 32px; }
    h2 { font-size: 25px; }
    .about-content, .project-list { grid-template-columns: 1fr; gap: 22px; }
    .project-content { padding: 20px; }
    .project-image { height: 205px; }
    .contact { margin: 0 20px 35px; padding: 25px; }
    .form-group { margin-bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Screenshots */
.project-image.screenshot-link {
    display: block;
    height: auto;
    padding: 0;
    background: #eee;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

.screenshot-link img { display: block; width: 100%; height: auto; }
.screenshot-link>span {
    display: block;
    padding: 9px 15px;
    background: #edf1fc;
    color: #345bd7;
    font-size: 12px;
    text-align: right;
}
.screenshot-link:hover>span { text-decoration: underline; }