* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

.aa {
    text-decoration: none;
    color: #d1d5db;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.aa::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.8));
    transition: width 0.3s ease;
}

.aa:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.aa:hover::after {
    width: 80%;
}

/* ── Project link ── */
.projecth1 {
    text-decoration: none;
    color: #9ca3af;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    letter-spacing: 0.02em;
}

.projecth1:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.08);
}

/* GitHub repo button on project cards */
.github-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: #1a1a1a;
    color: #9ca3af;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.github-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.github-btn:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ffffff;
}

.github-btn:focus-visible {
    outline: 2px solid rgba(79, 172, 254, 0.7);
    outline-offset: 2px;
}

#main_Page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
}




@keyframes pulsGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.08); }
}

.bio {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: left;
    max-width: 520px;
    padding: 0 24px 56px;
    animation: fadeUp 0.6s ease 1.4s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bio-naam {
    font-size: 24px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.bio-naam .leeftijd {
    font-size: 15px;
    font-weight: 400;
    color: #4b5563;
    margin-left: 8px;
}

.bio-tekst {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.9;
    margin-top: 10px;
}

.bio-tekst strong {
    color: #9ca3af;
    font-weight: 500;
}

.bio-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.bio-tag {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px 12px;
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    color: #4b5563;
    background: #212121;
}

.categorie-sectie {
    padding: 0 20px 40px;
    width: 100%;
    max-width: 1000px;
    animation: fadeUp 0.6s ease 1.6s both;
}

.categorie-titel {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3d3d3d;
    margin-bottom: 20px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.categorie-titel::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #252525;
}

.categorie-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 4px;
}

.grid-container {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.grid-container::-webkit-scrollbar {
    display: none;
}

.grid {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 4px 2px 8px;
}

.project1,
.project2,
.project3,
.project4 {
    width: 220px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    background-color: #212121;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 14px;

    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project1:hover,
.project2:hover,
.project3:hover,
.project4:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.5);
    border-color: #383838;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
}

.project-image-wrapper img {
    display: block;
}

.github-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

/* mini variant of bio-tag (separate class to avoid overriding) */
.project-tech-tag {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 9px;
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    color: #4b5563;
    background: #212121;
    line-height: 1;
}

.project1 img,
.project2 img,
.project3 img,
.project4 img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.project1:hover img,
.project2:hover img,
.project3:hover img,
.project4:hover img {
    filter: brightness(0.9);
}

.scroll-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 40px;
    height: 40px;

    background: #212121;
    color: #4b5563;
    border: 1px solid #2a2a2a;

    font-size: 24px;
    line-height: 1;

    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;

    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.scroll-btn span {
    transform: translateY(-1px);
    display: block;
}

.scroll-btn:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ffffff;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    #main_Page {
        padding-bottom: 56px;
    }

    .bio {
        padding: 24px 16px 40px;
        text-align: center;
    }

    .categorie-sectie {
        padding: 0 12px 32px;
        max-width: 640px;
    }

    .categorie-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0;
    }

    .grid-container {
        width: 100%;
    }

    .grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project1,
    .project2,
    .project3,
    .project4 {
        width: 100%;
        max-width: 420px;
    }

    .scroll-btn {
        display: none;
    }
}