@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100vw;
    min-height: 100vh;
    background-color: var(--background-color);
}

:root {
    --main-color: #393E46;
    --secondary-color: #10bbff;
    --text-color: #EEEEEE;
    --background-color: #222831;
    font-family: sans-serif;
}

/* Starfield background */
#stars,
#stars2,
#stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -10;
}

#stars {
    background: transparent;
    box-shadow:
        1234px 567px #FFF, 234px 123px #FFF, 876px 432px #FFF, 1500px 900px #FFF, 400px 800px #FFF,
        1000px 200px #FFF, 300px 700px #FFF, 800px 300px #FFF, 1200px 100px #FFF, 600px 900px #FFF,
        1700px 400px #FFF, 900px 600px #FFF, 200px 1000px #FFF, 700px 800px #FFF, 1400px 500px #FFF;
    width: 1px;
    height: 1px;
    animation: animStar 50s linear infinite;
}

#stars:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow:
        1234px 567px #FFF, 234px 123px #FFF, 876px 432px #FFF, 1500px 900px #FFF, 400px 800px #FFF,
        1000px 200px #FFF, 300px 700px #FFF, 800px 300px #FFF, 1200px 100px #FFF, 600px 900px #FFF,
        1700px 400px #FFF, 900px 600px #FFF, 200px 1000px #FFF, 700px 800px #FFF, 1400px 500px #FFF;
}

#stars2 {
    background: transparent;
    box-shadow:
        1000px 800px #FFF, 600px 300px #FFF, 1400px 700px #FFF, 300px 400px #FFF, 800px 1200px #FFF,
        1200px 900px #FFF, 400px 1000px #FFF, 900px 200px #FFF, 700px 1400px #FFF, 500px 600px #FFF;
    width: 2px;
    height: 2px;
    animation: animStar 100s linear infinite;
}

#stars2:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow:
        1000px 800px #FFF, 600px 300px #FFF, 1400px 700px #FFF, 300px 400px #FFF, 800px 1200px #FFF,
        1200px 900px #FFF, 400px 1000px #FFF, 900px 200px #FFF, 700px 1400px #FFF, 500px 600px #FFF;
}

#stars3 {
    background: transparent;
    box-shadow:
        500px 1000px #FFF, 1200px 400px #FFF, 800px 600px #FFF, 300px 1200px #FFF, 1000px 700px #FFF;
    width: 3px;
    height: 3px;
    animation: animStar 150s linear infinite;
}

#stars3:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow:
        500px 1000px #FFF, 1200px 400px #FFF, 800px 600px #FFF, 300px 1200px #FFF, 1000px 700px #FFF;
}

@keyframes animStar {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-2000px);
    }
}

.main-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 80%;
    margin: 0 auto 0 auto;
    gap: 4rem;
    margin-top: 10vh;
}

.main-header .name {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.main-header .desc {
    flex: 2 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    margin: auto;
    width: 100%;
}

main {
    width: 100%;
    margin: auto;
}

.about-wrapper {
    width: 80%;
    margin: auto;
}

.projects-wrapper {
    width: 80%;
    margin: auto;
}

.section-title {
    font-size: xx-large;
    text-transform: uppercase;
}

.title {
    color: var(--text-color);
    font-weight: 700;
    font-size: 6.2rem;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
    padding-bottom: 2rem;
    line-height: 110%;
    letter-spacing: -4px;
}

#projects-title {
    padding-top: 1rem;
    width: 80%;
    margin: auto;
}

#experience-title {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 80%;
    margin: auto;
}

#education-title {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 80%;
    margin: auto;
}

.icon {
    fill: var(--secondary-color);
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.15s;
}

.emph {
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
}

.emph:hover {
    text-decoration: underline;
}

.links {
    color: var(--text-color);
    display: flex;
    gap: 2rem;
}

.icon:hover {
    transform: scale(1.5);
}

.home {
    color: var(--text-color);
    display: grid;
    gap: 4rem;
}

.desc {
    color: var(--text-color);
}

.skills {
    padding: 2rem 0;
    flex-direction: column;
    color: var(--text-color);
}

.description {
    width: 90%;
}

.skills-carousel {
    justify-content: space-around;
    display: flex;
    gap: 4em;
    overflow-x: auto;
    padding: 1rem 0 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--main-color);
}

.skill-card {
    flex: 0 0 180px;
    background: var(--main-color);
    border-radius: 1rem;
    box-shadow: 0 2px 8px #0003;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 4rem 1rem;
    scroll-snap-align: start;
    min-height: 180px;
    transition: transform 0.2s;
}

.skill-card svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    fill: white;
}

.percent {
    color: var(--secondary-color);
    font-size: xx-large;
}

.skill-card span {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

/* Optional: Hide default scrollbar for webkit browsers */
.skills-carousel::-webkit-scrollbar {
    height: 8px;
}

.skills-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.skills-carousel::-webkit-scrollbar-track {
    background: var(--main-color);
}

.projects {
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* gap between articles */
    background-color: rgba(var(--main-color), 0.8);
    width: 100%;
}

.projects article {
    width: 80%;
    display: flex;
    flex-direction: row;
    border-color: var(--secondary-color);
    overflow: hidden;
    margin: auto;
    gap: 0;
    margin-bottom: 0;
    /* gap is handled by .projects */
    align-items: stretch;
}

.projects h3 {
    color: var(--secondary-color);
}

.projects p {
    color: #aebcd1;
}

.projects figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    min-width: 180px;
    max-width: 40%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.projects figure img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
}

.projects .project {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects p{
    flex-grow: 1;
}

#skills{
    flex-grow: 0;
}

.projects .used {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.projects .used span {
    border-style: solid;
    border-color: var(--secondary-color);
    border-width: 0.2rem;
    color: var(--text-color);
    padding: 0.2rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4rem;
}



.dash {
    width: 90%;
    margin: auto;
    border-bottom-style: dashed;
    border-bottom-width: 0.2rem;
    border-bottom-color: var(--main-color);
    border-bottom: 0.2rem dashed var(--background-color);
    border-image: repeating-linear-gradient(to right,
            var(--main-color) 0 24px,
            transparent 24px 40px) 0 0 100% 0/0 0 1 0 stretch;
}

.section-divider {
    width: 100%;
    height: 60px;
    background: none;
    position: relative;
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.section-divider svg {
    display: block;
    width: 100vw;
    height: 60px;
    pointer-events: none;
    opacity: 0.7;
    filter: drop-shadow(0 2px 8px #10bbff33);
}

.final {
    text-align: center;
}

.experience {
    color: var(--text-color);
}

.education {
    color: var(--text-color);
}

.timeline {
    position: relative;
    margin: auto;
    width: 90%;
    padding-left: 32px;
    /* meer ruimte voor de lijn en dot */
}

.timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
            var(--secondary-color) 0%,
            #10bbff99 60%,
            #10bbff33 100%);
    border-radius: 2px;
    z-index: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    z-index: 1;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 22px;
    width: 22px;
    height: 22px;
    background: transparent;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px #10bbff44, 0 1px 4px #10bbff33;
}

.timeline-dot-current{
    position: absolute;
    left: 8px;
    top: 22px;
    width: 22px;
    height: 22px;
    background: var(--text-color);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px #10bbff44, 0 1px 4px #10bbff33;
}

.timeline-content {
    background: var(--main-color);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-left: 3.5rem;
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.3rem;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px #10bbff22, 0 1px 0 #232831;
    margin: 0;
    line-height: 1.2;
    flex-grow: 1;
}

.timeline-date {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4rem;
    padding: 0.2em 1em;
    margin-left: 0.5em;
    letter-spacing: 0.5px;
    border: 2px solid var(--secondary-color);
    display: inline-block;
}

.timeline-sections-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin: 4rem 0 0 0;
}

.company-name{
    font-weight: bolder;
    font-size: large;
}

.job-description {
    color:#aebcd1
}

.experience,
.education {
    flex: 1 1 0;
    min-width: 0;
}

.footer-wrapper {
    width: 100%;
    padding: 2rem 0 6rem 0;
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%;
    margin: 0 auto;
    gap: 2rem;
    color: var(--text-color);
    padding-bottom: 2rem;
}

.footer-contact {
    flex: 2 1 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mail {
    color: var(--secondary-color);
    font-weight: bold;
    transition: font-size 0.15s;
}

.contact-text {
    color: #aebcd1;
}

.mail:hover {
    font-size: large;
}

.footer-links {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: 2.2rem;
}

.footer-links .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.15s;
}

.footer-links .icon-btn:hover {
    transform: scale(1.15);
}

.footer-links .icon {
    width: 36px;
    height: 36px;
    fill: var(--secondary-color);
}

/* Responsive: stack under each other on mobile */
@media (max-width: 992px) {
    .main-header {
        flex-direction: column;
        gap: 2rem;
        width: 90%;
    }

    .main-header .name,
    .main-header .desc {
        width: 100%;
    }

    .description{
        width: 100%;
    }

    .main-header {
        width: 90%;
        margin: auto;
    }

    main {
        width: 100%;
        margin: auto;
    }

    .skills-carousel {
        gap: 2rem;
    }

    .title {
        font-size: 4rem;
    }

    .desc {
        width: 90%;
        margin: auto;
        font-size: 1.2rem;
    }

    .about-wrapper {
        width: 100%;
        margin: auto;
    }

    .skills {
        width: 90%;
        margin: auto;
    }

    #projects-title {
        width: 90%;
        margin: auto;
    }

    #experience-title {
        width: 90%;
        margin: auto;
    }

    #education-title {
        width: 90%;
        margin: auto;
    }

    .projects article {
        flex-direction: column;
    }

    .projects figure {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 1.5rem 1.5rem 0 0;
    }

    .projects figure img {
        width: 100%;
        max-height: 200px;
    }

    .projects .project {
        padding: 1.5rem;
    }

    .timeline {
        margin: 2rem 0 2rem 0.5rem;
        padding-left: 16px;
    }

    .timeline-content {
        padding: 1rem 1rem;
        margin-left: 2.2rem;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
        left: 0px;
        top: 14px;
        box-shadow: 0 0 0 2px #10bbff44, 0 1px 4px #10bbff33;
    }

    .timeline::before {
        left: 7px;
        width: 2px;
    }

    .timeline-sections-wrapper {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }

    .experience,
    .education {
        width: 100%;
    }

    .timeline {
        margin: 2rem 0 2rem 0.5rem;
        padding-left: 16px;
    }

    .timeline-content {
        padding: 1rem 1rem;
        margin-left: 2.2rem;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
        left: 0px;
        top: 14px;
        box-shadow: 0 0 0 2px #10bbff44, 0 1px 4px #10bbff33;
    }

    .timeline::before {
        left: 7px;
        width: 2px;
    }

    .footer {
        flex-direction: column;
        align-items: stretch;
        width: 95%;
        gap: 2rem;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 0;
    }

}