/* Algemene instellingen */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0d16;
    color: #f4f5fb;
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    --background: #0b0d16;
    --surface: #121624;
    --surface-light: #191f31;
    --text: #f4f5fb;
    --muted: #a0a7bb;
    --accent: #8b7cff;
    --accent-two: #43d9c5;
    --border: rgba(255, 255, 255, 0.09);
}


/* Navigatie */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 13, 22, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    height: 76px;
    padding: 0 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo span {
    color: var(--accent);
}

.navigation {
    display: flex;
    gap: 30px;
}

.navigation a {
    color: var(--muted);
    transition: 0.2s;
}

.navigation a:hover {
    color: white;
}

.navigation a:last-child {
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 8px;
}

.menu-button {
    display: none;
    background: none;
    color: white;
    border: none;
    font-size: 25px;
    cursor: pointer;
}


/* Algemene secties */

.section {
    padding: 110px 10%;
}

.section-title {
    margin-bottom: 40px;
}

.section-title > p:first-child {
    color: var(--accent-two);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 40px;
    letter-spacing: -1px;
}

.section-title > p:last-child {
    color: var(--muted);
    margin-top: 12px;
}


/* Home */

.hero {
    min-height: 650px;
    padding: 100px 10%;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;

    background:
        radial-gradient(
            ellipse at 80% 35%,
            rgba(112, 91, 255, 0.16),
            transparent 38%
        );
}

.subtitle {
    color: var(--accent-two);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.2;
    letter-spacing: -3px;
}

.hero h1 span {
    background: linear-gradient(100deg, #a99fff, #50dfcb);
    background-clip: text;
    color: transparent;
}

.hero h2 {
    font-size: 23px;
    margin-top: 15px;
    color: #d9dbea;
}

.hero-content > p:not(.subtitle) {
    color: var(--muted);
    margin-top: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}


/* Buttons */

.button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.button:hover {
    transform: translateY(-3px);
}

.primary {
    background: linear-gradient(110deg, #8172f5, #5e9de9);
    color: white;
    border: none;
}

.secondary {
    border: 1px solid var(--border);
    color: white;
}


/* Code kaart */

.code-card {
    background: #111625;
    border: 1px solid rgba(151, 139, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    transform: rotate(1deg);
}

.code-header {
    height: 43px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
}

.code-header span {
    margin-right: 5px;
    color: #f27e86;
}

.code-header span:nth-child(2) {
    color: #eac46e;
}

.code-header span:nth-child(3) {
    color: #54c9a5;
}

.code-header p {
    display: inline;
    margin-left: 10px;
    color: var(--muted);
    font-size: 12px;
}

.code-card pre {
    padding: 25px;
    overflow-x: auto;
    color: #75ddc3;
    font-size: 13px;
}


/* Over mij */

.about-section {
    background: #0f1220;
}

.about-content {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 55px;
    align-items: center;
}

.about-image {
    min-height: 260px;

    display: grid;
    place-items: center;

    border-radius: 16px;
    border: 1px solid var(--border);

    background: radial-gradient(
        circle,
        rgba(139, 124, 255, 0.2),
        rgba(25, 31, 49, 0.7)
    );

    color: #a99fff;
    font-size: 70px;
    font-weight: bold;
}

.about-text h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 15px;
}

.information {
    margin-top: 25px;
    border-top: 1px solid var(--border);
}

.information div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.information span {
    color: var(--muted);
}

.information strong {
    text-align: right;
}


/* Vaardigheden */

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.2s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.skill-icon {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    background: rgba(139, 124, 255, 0.14);
    color: #b1a6ff;
    border-radius: 9px;

    font-weight: bold;
    margin-bottom: 18px;
}

.skill-card h3 {
    font-size: 19px;
}

.skill-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0;
}

.skill-card span {
    color: var(--accent-two);
    font-size: 12px;
}

.skill-card .learning {
    color: #c3adff;
}


/* Projecten */

.projects-section {
    background: #0f1220;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-image {
    height: 155px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: linear-gradient(135deg, #30265f, #172d46);
}

.project-image span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #d8d2ff;
}

.project-image strong {
    font-size: 50px;
    text-align: right;
}

.project-two {
    background: linear-gradient(135deg, #164c53, #202747);
}

.project-three {
    background: linear-gradient(135deg, #49304d, #1b2944);
}

.project-content {
    padding: 22px;
}

.project-category {
    color: var(--accent-two);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-content h3 {
    font-size: 21px;
}

.project-content > p:not(.project-category) {
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0 17px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tags span {
    font-size: 12px;
    color: #c5c9d8;
    background: var(--surface-light);
    border-radius: 5px;
    padding: 4px 8px;
}


/* Contact */

.contact-container {
    max-width: 760px;
    margin: auto;
}

form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    padding: 13px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;

    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
}

textarea {
    resize: vertical;
}

form button {
    justify-self: start;
}

#formMessage {
    color: var(--accent-two);
    font-size: 14px;
}

.form-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 15px;
}


/* Footer */

footer {
    padding: 30px 10%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}


/* Mobiele versie */

@media (max-width: 850px) {

    .hero {
        grid-template-columns: 1fr;
    }

    .skills-container,
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        gap: 30px;
    }

}

@media (max-width: 600px) {

    .navbar {
        height: 68px;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        display: none;

        position: absolute;
        top: 68px;
        left: 0;
        right: 0;

        padding: 20px 7%;

        background: #101421;

        flex-direction: column;
        gap: 15px;
    }

    .navigation.open {
        display: flex;
    }

    .section {
        padding: 70px 7%;
    }

    .hero {
        padding: 80px 7%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero h2 {
        font-size: 19px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-container,
    .projects-container,
    .form-row {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

}