@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');


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

body, html {
    margin: 0;
    padding: 0;
    height: 100%; 
    background-color: #1a1a1a;
}

h1, h2, h3 {
    font-family: 'lato', sans-serif;
    color: #fff;
}

p {
    font-family: 'lato', sans-serif;
    color: #fff;
}
/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1a1a1a;
    z-index: 1000;
}

/* Nav links styling */
.nav-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 15px 0; 
}

/* Nav link text */
.nav-links a {
    text-decoration: none;
    color: #fff;
    font-family: 'lato', sans-serif;
    font-size: 18px;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

/* Hover effect for nav links */
.nav-links a:hover {
    color: #1abc9c;
    border-radius: 5px;
}

/* Header section */
header {
    height: 100dvh; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

/* Name styling */
.name {
    font-size: 20rem; 
    color: transparent; 
    position: relative;
    -webkit-text-stroke: 3px #1abc9c; /* Text outline */
    text-stroke: 3px #1abc9c; /* Fallback for other browsers */
}


/*About me styling*/
#about-me {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Styling the container */
.aboutcontent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

.about-me-image {
    flex: 1; 
    max-width: 500px; 
}

.about-me-image img {
    width: 100%;
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.about-me-text {
    flex: 1; 
    line-height: 1.6; 
}

.about-me-text p {
    margin-bottom: 20px; 
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin: 4dvh auto;
}

.subheader {
    font-size: 1.7rem;
    
}



/* General styling for the section */
#cv {
    padding: 50px;
    color: #fff; 
}

/* Timeline container */
.timeline {
    display: flex;
    justify-content: space-between; 
    position: relative;
    margin: 0 auto;
}

/* Timeline sections */
.timeline-section {
    flex: 1;
    position: relative;
    padding: 2rem;
}

/* Timeline items */
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 0 30px 0; 
    text-align: center;
}

/* Timeline dates */
.timeline-date {
    font-weight: bold;
    color: #1abc9c;
    margin-bottom: 10px;
    text-align: center;
}

.timeline-content h4 {
    font-family: 'lato', sans-serif;
    font-size: 1.1rem;
    margin: 0;
}

.timeline-content p {
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

/* Timeline line connecting sections */
.timeline-line {
    width: 4px;
    background-color: #1abc9c; 
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    height: 100%; 
    z-index: -1;
}

/* Heading for sections */
.timeline-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1abc9c; 
}

/*skills section*/
#skills {
    text-align: center;
    margin: 40px 0; 
}

.skills-container {
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap;
}

.skill-item {
    margin: 20px; 
    text-align: center; 
}

.skill-icon {
    width: 60px;
    height: 60px; 
    fill: #1abc9c;
}

/*languages section*/

.languages-container {
    margin: 20px 0; 
    text-align: left; 
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.language-item {
    margin: 10px 0; 
}

/* Container voor de vulbalk */
.fill-bar-container {
    background-color: #4d4d4d;
    border-radius: 5px; 
    width: 10rem; 
    height: 10px; 
    position: relative; 
    margin-bottom: 10px;
}

.fill-bar {
    height: 100%;
    background-color: #1abc9c; 
    border-radius: 5px; 
    transition: width 0.5s ease; 
}

.language-item p {
    display: block; 
    margin-bottom: 5px; 
}


/* Project Section */
#projects {
    padding: 50px;
    text-align: center;
}

.projects-container {
    display: grid; /* Use grid for layout */
    grid-template-columns: repeat(3, 1fr); /* Create three equal columns */
    gap: 20px; /* Space between grid items */
    max-width: 960px; /* Set a maximum width for the container */
    margin: 0 auto; /* Center the container */
}

.project-card {
    width: 300px;
    height: 200px;
    position: relative;
    background-color: #1abc9c; /* Match your theme color */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-top: 80px;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay on hover */
    color: white;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay p {
    margin: 10px 0;
}

.project-overlay a {
    color: #1abc9c; /* Match the timeline color */
    text-decoration: none;
    font-family: 'lato', sans-serif;
    background-color: white;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.project-overlay a:hover {
    background-color: #16a085; /* Slightly darker on hover */
}

/*contact form*/
#contact {
    padding: 50px;
}

form {
    max-width: 500px;
    margin: 40px auto;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

form label {
    color: #ffffff;
    font-size: 16px;
    font-family: 'lato', sans-serif;
    display: block;
    margin-bottom: 5px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background-color: #333;
    color: #ffffff;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #16a085;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}


/* Responsive Layout */
@media (max-width: 768px) {
    /* General Layout Adjustments */

    #about-me {
        flex-direction: column; /* Stack image and text vertically */
        padding: 20px; /* Reduce padding on smaller screens */
    }

    .aboutcontent {
        flex-direction: column; /* Stack about content vertically */
        align-items: center; /* Center content */
    }

    .about-me-image {
        max-width: 100%; /* Ensure the image takes the full width */
        margin-bottom: 20px; /* Add spacing below the image */
    }

    .about-me-text {
        padding: 0 15px; /* Add padding on the sides */
    }

    .skills-container,
    .languages-container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items */
    }

    .timeline {
        flex-direction: column; /* Stack timeline sections vertically */
        align-items: center; /* Center timeline items */
    }

    form {
        width: 100%; /* Full width for small screens */
        padding: 15px; /* Reduced padding */
    }

    /* Navbar Adjustments */
    .nav-links {
        flex-direction: row; /* Stack nav links vertically */
        align-items: center; /* Center nav links */
        position: fixed;
        top: 0;
        background-color: #1a1a1a;
    }

    /* Projects Section */
    .projects-container {
        grid-template-columns: 1fr; /* Single column for small screens */
    }

    /* Project Cards */
    .project-card {
        width: 100%; /* Full width for project cards */
        height: auto; /* Auto-adjust height */
    }

    .project-card h3 {
        font-size: 1.2rem; /* Adjust project title font size */
        margin-top: 40px;
    }

    .project-overlay p {
        display: none;
    }

    .project-overlay a {
        font-size: 0.9rem; /* Adjust button text size */
        padding: 8px 15px; /* Adjust button size */
    }

    .timeline-line {
        display: none; /* Hide timeline line on smaller screens */
    }
}

/* Further Adjustments for Extra Small Screens */
@media (max-width: 480px) {
    /* General Layout Adjustments */

    .project-card {
        width: 100%; /* Ensure project cards take the full width */
        height: auto; /* Let the height adjust based on content */
    }

    h1 {
        font-size: 10rem; /* Reduce the size of the main title */
    }

    .name {
        font-size: 10rem; /* Adjust the name size */
    }

    h2 {
        font-size: 1.5rem; /* Smaller font size for headings */
    }

    h3 {
        font-size: 1rem; /* Adjust h3 font size */
        margin-top: 30px;
    }

    .project-overlay p {
        font-size: 0.8rem; /* Smaller text size for project descriptions */
    }

    .project-overlay a {
        font-size: 0.8rem; /* Smaller buttons */
        padding: 7px 10px; /* Reduce button padding */
    }

    /* Projects Section */
    .projects-container {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }
}


/* Responsive Media Queries for Header */
@media (max-width: 1024px) {
    .name {
        font-size: 15rem; /* Adjust font size for medium screens */
    }
}

@media (max-width: 768px) {
    header {
        height: 80dvh; /* Adjust height for smaller screens */
    }
    .name {
        font-size: 10rem; /* Further reduce font size */
    }
}

@media (max-width: 480px) {
    header {
        height: 70dvh; /* Further adjust header height for very small screens */
    }
    .name {
        font-size: 6rem; /* Smaller font size for mobile */
    }
}