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

html{
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2 {
    color: #333;
    text-align: center;
    margin-top: 2rem;
}

/* Container */
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Header & Footer */
header{
    background: #333;
    color: #fff;
    padding-top: 3rem;
    min-height: 6rem;
}

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

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.4s;
}

.link:hover{
    color: #F29544;
}

header ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-left: 22rem;
}

header h1 {
    font-size: 2.4rem;
}

footer {
    min-height: 6.9rem;
    background: #333;
    margin-top: 3rem;
    width: auto;
}

/* About Section */

.about-me{
    animation-duration: 3s;
    animation-name: slide-in;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 2rem;
    color: #400101;
}

.photo-profile{
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile{
    border-radius: 0.5rem;
    width: 20%;
    height: auto;
}

/* Stijl voor de interesse sectie */
.intresse-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centreert de items horizontaal */
    gap: 2rem; /* Ruimte tussen de items */
    padding: 2rem 0;
    text-align: center;
}

.intresse-container .intresse {
    background-color: #f8f8f8; 
    border-radius: 0.8rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Schaduw voor een 3D-effect */
    transition: transform 0.3s, box-shadow 0.3s; /* Animatie bij hover */
}

.intresse-container .intresse:hover {
    transform: translateY(-5px); /* Beetje omhoog bij hover */
    box-shadow: 0 8px 12px #F29057; /* Intensere schaduw bij hover */
    
}

.intresse-container h3 {
    font-size: 1.6rem;
    color: #333;
    margin: 0;
}

.text-intresse {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #222;
}

/* Projects Section */
#projects {
    padding: 2rem 0;
}

.project-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 1.5rem;
    height: auto;
}

.project {
    background: #fff;
    width: calc(33.33% - 1rem); /* Voor drie projecten per rij met ruimte ertussen */
    border-radius: 0.5rem;
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin: 2rem 0; /* Voegt 2rem ruimte toe boven en onder elk project */
    transition: transform 0.3s;
    border: solid 0.2px #F2A766;
}

.project:hover{
    transform: translateY(-0.3rem); 
    box-shadow: 0 8px 12px #F2A766; /* Intensere schaduw bij hover */
}

.logos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.project img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.github-logo, .website {
    font-size: 2rem;
    color: #333;
}

.github-logo:hover, .website:hover {
    color: #6a0dad;
}


.github-logo{
    font-size: 180%;
    padding: 0.5rem;
}

.github-logo:hover{
    color: purple;
    cursor: pointer;
}

.website{
    font-size: 180%;
    margin-top: 0.5rem;
}

.website:hover{
    color: #7695FF;
    cursor: pointer;
}

.used-container {
    display: flex; /* Flexbox gebruiken voor horizontale uitlijning */
    justify-content: center; /* Horizontaal centreren */
    align-items: center; /* Verticaal centreren (optioneel als nodig) */
    gap: 1.25rem; 
    padding: 1.25rem; 
    border-radius: 0.625rem;
}

.used {
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    text-align: center; /* Tekst centreren in elke paragraaf */
    transform: translateY(-0.2rem); /* Laat het element een beetje omhoog springen */
    background-color: #789DBC;
    color: #211951;
}

/*skills section*/

.skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Drie kolommen */
    margin-top: 1rem;
    justify-items: stretch; /* Verstrekt de items zodat ze de volledige breedte van de kolom vullen */
    gap: 1rem; /* Kleine ruimte tussen de items zelf */
}

.skill {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.8rem;
    transition: transform 0.3s;
    text-align: center;
    margin: 3rem 1rem; /* Verhoog de ruimte aan de zijkanten (links en rechts) */
}

.skill i {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

.skill p {
    font-size: 1.6rem;
    color: #400101;
}

/*contact section*/

.contact-details{
    font-size: 1.8rem;
    display: flex;
}

.contact-info{
    height: 41rem;
}


.contact-info {
    display: flex;
    justify-content: center; 
    align-items: center;     
}

.contact-details i {
    font-size: 5rem;
    margin: 0 1rem;  
    color: #333;     
}

.github-contact:hover{
    color: purple;
    cursor: pointer;
}


.link-contact:hover{
    color: rgb(142, 211, 234);
    cursor: pointer;
}

.mail-contact:hover{
    color: #37AFE1;
    cursor: pointer;
}

.icon-container {
    display: flex; /* Gebruik flexbox voor uitlijning */
    flex-direction: column; /* Zet de elementen onder elkaar */
    align-items: center;
}

/* Modal styling */
.modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}


@keyframes slide-in {
    from {
      translate: 150vw 0;
      scale: 200% 1;
    }
  
    to {
      translate: 0 0;
      scale: 100% 1;
    }
  }


/* Styles for screens up to 800px width (Portrait and Landscape) */
@media screen and (max-width: 800px) {
    body {
        font-size: 1.6rem;
    }

    header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    header h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        list-style: none;
        margin: 0.5rem 0;
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 0.5rem;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: #F29544; 
    }

    p {
        font-size: 0.9rem;
    }

    .project {
        width: 90%;
        margin: 1.5rem 0;
        margin-left: 2rem;
    }

    .skills-list {
        display: grid;
        grid-template-columns: 1fr; /* Elke skill neemt een volledige rij in beslag */
        gap: 1.5rem; /* Ruimte tussen de skills */
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .skill {
        width: 90%; /* Zorg ervoor dat de skill iets smaller wordt binnen het scherm */
        margin: 0 auto; /* Centreer de skills horizontaal */
        padding: 1rem;
        text-align: left; /* Zorg ervoor dat de tekst netjes uitlijnt */
    }

    .skill p {
        font-size: 1rem; /* Maak de tekst iets kleiner voor leesbaarheid */
        line-height: 1.4; /* Verbeter leesbaarheid met wat ruimte tussen regels */
    }

    .container {
        width: 90%;
        padding: 15px;
        box-sizing: border-box;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        height: auto;
        width: 100%;
    }

    .mijn-foto {
        margin: 0 0 15px 0;
        max-width: 100%;
    }

    .about-me {
        font-size: 15px;
        text-align: center;
    }

    .used-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .used {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
        border-radius: 0.25rem;
    }

    .intresse-container .intresse {
        width: 100%;
        margin-bottom: 1rem;
    }

    .text-intresse {
        font-size: 1.8rem;
    }

    .intresse-container h3 {
        font-size: 1.4rem;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .about-me {
        font-size: 12px;
    }

    .used {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
    }

    header h1 {
        font-size: 1.3rem;
    }

    nav ul li a {
        font-size: 1rem;
    }
    .skills-list {
        gap: 1rem; /* Iets minder ruimte tussen de skills */
    }

    .skill p {
        font-size: 0.9rem; /* Maak de tekst nog iets kleiner */
    }
}

/* Adjustments for landscape mode on small screens */
@media screen and (max-width: 800px) and (orientation: landscape) {
    body {
        font-size: 1.4rem;
    }

    header h1 {
        font-size: 1.2rem;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0.4rem;
    }

    .used-container {
        gap: 0.3rem;
        padding: 0.5rem;
    }

    .used {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
}
