* {
    font-family: 'Times New Roman', Times, serif;
}

.kop1,
.kop2,
.text {
    color: white;
}

.kop1 {
    font-size: 45px;
}

.kop2 {
    font-size: 40px;
}

.text {
    font-size: 35px;
}

body {
    background-color: black;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid white;
    min-height: 130px;
    /* Minimum height to allow for flexibility */
}


svg {
    position: absolute;
    top: 20px;
    width: 300px;
    height: auto;
    stroke: black;
    stroke-width: 41px;
    fill: none;
    height: auto;
    margin-left: 1vw;
    position: absolute;
}

path.binnen {
    stroke: silver;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 4s ease forwards;
}


@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.links {
    display: flex;
    gap: 20px;
}

.links a {
    text-decoration: none;
    color: white;
    font-size: 50px;
}

#hier {
    border-bottom: 1px solid #921815;
}


.hero {
    background-color: #1B1B1B;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.infoHome {
    height: fit-content;
    margin-right: auto;
    margin-top: 10vh;

}

.rooieLijn {
    border: 2px solid #921815;
    border-radius: 10px;
}

.fotoHome {
    width: 300px;
    height: auto;
    margin-left: 50px;
    border-radius: 100%;
}

#contactLink {
    background-color: #921815;
    padding: 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#contactLink:hover {
    background-color: #b71c1a;
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

#contactLink:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}


.introductieContainer {
    display: flex;
    flex-direction: row;
    gap: 10vw;
    margin-top: 50px;

}

.triangleHome {
    width: 0;
    height: 0;
    border-left: 20px solid #921815;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    position: relative;
    top: 8vh;
    margin-left: 10px;
}

.talen {
    margin-left: 50px;
}

.informatieOpleiding {
    margin-left: 15px;
    width: fit-content;
}

.introductie {
    background-color: #1B1B1B;
    width: 45vw;
}


.bar {
    height: 20px;
    position: relative;
    border: 2px solid gray;
    width: 40vw;
    overflow: hidden;
    margin-left: 15px;
}

[class^="competentielvl"] {
    background-color: red;
    height: 20px;
    width: 0;
    animation: growBar 1.5s ease-out forwards;
}

.competentielvlEen {
    animation-delay: 0.05s;
    --width: 4vw;
}

.competentielvlTwee {
    animation-delay: 0.05s;
    --width: 8vw;
}

.competentielvlDrie {
    animation-delay: 0.05s;
    --width: 12vw;
}

.competentielvlVier {
    animation-delay: 0.05s;
    --width: 16vw;
}

.competentielvlVijf {
    animation-delay: 0.05s;
    --width: 20vw;
}

.competentielvlZes {
    animation-delay: 0.05s;
    --width: 24vw;
}

.competentielvlZeven {
    animation-delay: 0.05s;
    --width: 28vw;
}

.competentielvlAcht {
    animation-delay: 0.05s;
    --width: 32vw;
}

.competentielvlNegen {
    animation-delay: 0.05s;
    --width: 36vw;
}

.competentielvlTien {
    animation-delay: 0.05s;
    --width: 40vw;
}

@keyframes growBar {
    from {
        width: 0;
    }

    to {
        width: var(--width);
    }
}

@media (max-width: 1100px) {
    svg {
        width: 4px;
    }
}

@media(max-width:1069px) {
    svg {
        display: none;
    }
}


@media(max-width:1000px) {

    .fotoHome,
    .rooieLijn {
        display: none;
    }

    .infoHome {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        width: 100vw;
    }

    .introductie {
        width: fit-content;
    }

    .kop1 {
        font-size: 25px;
    }

    .kop2 {
        font-size: 22.5px;
    }

    .text {
        font-size: 20px;
    }

    .triangleHome {
        border-left: 15px solid #921815;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        position: relative;
        top: 5vh;
        margin-left: 10px;
    }

    [class^="competentielvl"],
    .bar {
        display: none;
    }

    .taal {
        margin-left: 5px;
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .links {
        flex-direction: column;
        gap: 10px;
    }

    .infoHome {
        height: 450px;
    }
}

/* Over mij */
.fotoOverMIj {
    width: 500px;
    height: auto;
}

.meerOverMij {
    position: absolute;
    max-width: 60vw;
    right: 2vw;
    top: 20vh;
}

.doelen {
    position: absolute;
    max-width: 45vw;
    top: 130vh;
    right: 325px;
}

.infoOverMij {
    border-left: dotted white 5px;
    padding-left: 15px;
}

.triangleOverMij {
    border-left: 20px solid #921815;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    position: relative;
    right: 25px;
    top: 40px;
}

.triangleOverMij2 {
    border-left: 20px solid #921815;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    position: relative;
    top: 40px;
    margin-right: 5px;
}

.overMij {
    width: fit-content;
    margin-left: 5px;
}

#naam {
    margin-left: 50px;
}

.infoOverMijContainer {
    border-left: 5px dotted white;
    padding-left: 15px;
}

.rest {
    margin-left: 20px;
}

.doelInfo {
    border-left: 5px dotted white;
    padding-left: 15px;
}

.codeTalen {
    margin: auto;
    width: fit-content;
}

.vaardighedenContainer {
    display: flex;
    flex-direction: row;
    margin: auto;
    width: fit-content;
    gap: 120px;
}

/* Media Queries for Responsiveness - More detailed breakpoints */
@media screen and (max-width: 1440px) {
    .meerOverMij {
        max-width: 65vw;
    }

    .doelen {
        right: 280px;
        max-width: 50vw;
    }
}

@media screen and (max-width: 1200px) {
    .meerOverMij {
        max-width: 70vw;
        right: 3vw;
    }

    .doelen {
        right: 200px;
        max-width: 55vw;
    }

    .vaardighedenContainer {
        gap: 80px;
    }
}

@media screen and (max-width: 1024px) {
    .meerOverMij {
        max-width: 75vw;
        right: 4vw;
    }

    .doelen {
        right: 150px;
        max-width: 60vw;
    }

    .vaardighedenContainer {
        gap: 60px;
    }
}

@media screen and (max-width: 900px) {
    .meerOverMij {
        max-width: 80vw;
    }

    .doelen {
        right: 100px;
        max-width: 65vw;
    }

    .fotoOverMIj {
        width: 400px;
    }
}

@media screen and (max-width: 768px) {
    .fotoOverMIj {
        width: 100%;
        max-width: 500px;
    }

    .meerOverMij {
        position: relative;
        max-width: 90%;
        right: auto;
        top: auto;
        margin: 2rem auto;
    }

    .doelen {
        position: relative;
        max-width: 90%;
        right: auto;
        top: auto;
        margin: 2rem auto;
    }

    #naam {
        margin-left: 20px;
    }

    .vaardighedenContainer {
        flex-direction: column;
        gap: 20px;
    }

    .talen {
        margin: 0;
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 600px) {
    .fotoOverMIj {
        max-width: 90%;
    }

    #naam {
        margin-left: 15px;
    }

    .infoOverMij,
    .infoOverMijContainer,
    .doelInfo {
        padding-left: 12px;
    }
}

@media screen and (max-width: 480px) {

    .triangleOverMij,
    .triangleOverMij2 {
        display: none;
    }

    .infoOverMij,
    .infoOverMijContainer,
    .doelInfo {
        padding-left: 10px;
        border-left-width: 3px;
    }

    .rest {
        margin-left: 10px;
    }
}

@media screen and (max-width: 375px) {
    #naam {
        margin-left: 10px;
    }

    .rest {
        margin-left: 5px;
    }

    .infoOverMij,
    .infoOverMijContainer,
    .doelInfo {
        padding-left: 8px;
        border-left-width: 2px;
    }
}

/*  projecten*/

.project {
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* Ensures elements align properly */
    margin: 20px 0 80px;
    padding: 20px;
    /* Adds some space inside */
    height: 300px;
    max-height: 300px;
    gap: 20px;
    /* Adds spacing between elements */
}

.projectFoto {
    background-color: rgba(139, 139, 139, 0.5);
    flex: 1;
    /* Makes it responsive */
    max-width: 1000px;
    height: 100%;
    object-fit: contain;
    /* Ensures the image fits well */
}

.projectTekst {
    flex: 1;
    margin-left: 50px;
    /* Reduced for better balance */
    max-width: 600px;
    /* Ensures readability */
}

/* Responsive styling */
@media (max-width: 1024px) {
    .project {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .projectTekst {
        margin-left: 0;
        max-width: 90%;
    }

    .projectFoto {
        width: 100%;
        max-width: 100%;
    }
}

/* contact */
/* contact */
.contact {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 20px;
    height: auto;
    min-height: 300px;
}

.contactImg {
    flex: 1;
    max-width: 50%;
    height: auto;
    object-fit: contain;
}

#emailText:hover {
    cursor: pointer;
    color: #ccc;
}

#emailText {
    text-decoration: underline solid white 1px;
    transition: color 0.3s ease-in-out;
}

.triangleContact {
    width: 0;
    height: 0;
    border-left: 20px solid #921815;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    position: relative;
}

.contactFormContainer {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000;
}

.contactFormContainer.active {
    visibility: visible;
    opacity: 1;
}

#contactForm {
    background-color: #222;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    border: 1px solid #921815;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.contactFormContainer.active #contactForm {
    transform: scale(1);
}

#contactForm:hover {
    transform: scale(1.02);
}

/* Input Fields Styling */
.form-input {
    width: 100%;
    height: 45px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

.form-input:hover {
    border-color: #ff5959;
}

.form-input:focus {
    outline: none;
    border-color: #ff4c4c;
    box-shadow: 0 0 8px rgba(255, 92, 92, 0.8);
}

.form-input:active {
    transform: scale(0.98);
}

/* Submit Button Styling */
.submit-btn {
    background-color: #921815;
    color: white;
    font-size: 16px;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #b21d1a;
    transform: scale(1.05);
}

.submit-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact {
        width: 90%;
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .contactImg {
        max-width: 90%;
        margin: 0 auto;
    }

    .triangleContact {
        margin: 10px auto;
    }
}

@media (max-width: 768px) {
    .contact {
        width: 95%;
        padding: 15px;
    }

    #contactForm {
        padding: 20px;
    }

    .triangleContact{
        display: none;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 10px;
        gap: 15px;
    }

    .contactImg {
        max-width: 100%;
    }

    #contactForm {
        width: 95%;
        padding: 15px;
    }

    .form-input {
        height: 40px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 14px;
    }
}