@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');

/* --- Globale Stijlen & Variabelen --- */
:root {
    --primary-color: #78A2D2; /* Jouw gekozen accentkleur */
    --dark-grey: #694A47; /*#333333;*/
    --light-grey: #FEFFAF;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans-serif: 'Raleway', sans-serif;
}

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

body {
    font-family: var(--font-sans-serif);
    line-height: 1.7;
    color: var(--dark-grey);
    /* background-color: var(--white); */
}



h1, h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h3 {
    font-family: 'Pinyon Script', cursive;
    font-weight: 500;
    font-size: 1.5rem; 
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }

a {
    color: var(--dark-grey);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigatie --- */
.main-header {
    background: var(--white);
    padding: 1.5rem 0;
    border-bottom: 20px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo img {
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav a {
    font-family: var(--font-sans-serif);
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Hero Sectie --- */
.hero {
    background-color: #FEFFAF; /* Lichtgele achtergrond */
    text-align: center; /* Gecentreerde tekst */
    padding: 10rem 0;
    color: #78A2D2; /* Blauwe tekst */
    margin-bottom: 4rem;
    position: relative; /* Voor absolute positionering van kinderen */
}

.hero-name {
    font-family: 'Ballet', cursive;
    font-weight: 700;
    font-size: 9rem;
    margin-bottom: 0.5rem;
    position: absolute;
    top: 100%; /* Positioneer aan de onderkant van de hero sectie */
    left: 50%; /* Horizontaal centreren */
    transform: translate(-50%, -50%); /* Centreer zichzelf en trek omhoog voor overlap */
    z-index: 10;
    white-space: nowrap; /* Voorkom dat de naam over meerdere regels gaat */
}

#typing-headline {
    color: #78A2D2; /* Blauwe tekst */
    /* overflow: hidden; */ /* Zorgt ervoor dat de tekst niet zichtbaar is tot de animatie start */
    /* border-right: .15em solid #78A2D2; */ /* De cursor */
    /* white-space: nowrap; */ /* Houdt de content op een enkele lijn */
    /* margin: 0; */
    /* letter-spacing: .1em; */ /* Optioneel: voor betere spacing */
    /* animation:
        typing 3s steps(36, end),
        blink-caret .75s step-end infinite; */
}

.hero .intro-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto; /* Centreer de intro-tekst */
}

/* --- Animatie Keyframes --- */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #78A2D2; }
}

/* --- Over Mij Sectie --- */
.about {
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.0); /* wit met null% dekking */
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5.8px solid var(--primary-color);
    border-style: dotted;
}

/* --- Vaardigheden Sectie --- */
.skills {
    padding: 5rem 0 4rem 0;
    /*background-color: var(--white);*/ /*De oude achtergrond kleur*/
    background-color: rgba(255, 255, 255, 0.0);
    margin-bottom: 4rem;
}

.skills-content-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.skills h2 {
    text-align: left; /* H2 links uitlijnen */
    margin-bottom: 0; /* Geen bottom margin als het naast de skills staat */
    flex-shrink: 0; /* Voorkom dat de H2 krimpt */
}

.skills-grid {
    display: flex; /* Horizontale weergave */
    overflow: visible; /* Allow content to overflow */
    gap: 1.5rem;
    flex: 1; /* Neemt de resterende ruimte in beslag */
    padding-bottom: 1rem; /* Ruimte voor scrollbar */
    scroll-snap-type: x mandatory; /* Voor soepel scrollen */
}

.skill-item {
    /*background: var(--white);*/
    background-color: rgba(255, 255, 255, 0.0);
    border: 2px solid var(--primary-color); 
    border-radius: 9999px;
    padding: 2rem;
    text-align: center;
    color: #78A2D2;
    font-style: var(--font-sans-serif);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0; /* Voorkom dat items krimpen */
    scroll-snap-align: start; /* Voor soepel scrollen */
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    color: var (var(--dark-grey));
}

/* --- Illustratie Sectie --- */
.illustration-showcase {
    padding: 4rem 0;
    /*background-color: var(--white);*/
    background-color: rgba(255, 255, 255, 0.0);
}

.illustration-showcase h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.illustration-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.illustration-item:last-child {
    margin-bottom: 0;
}

.illustration-item--reverse {
    flex-direction: row-reverse;
}

.illustration-image {
    flex: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.illustration-text {
    flex: 1;
}

.illustration-text h3 {
    color: var(--dark-grey);
    font-size: 3rem;
}

/* --- Footer & Contact --- */
.main-footer-contact {
    background-color: var(--primary-color);
    color: var(--light-grey);
    text-align: left;
    padding: 4rem 0;
    margin-top: 5rem; /*ruimte tussen illustratie en footer*/
}

.main-footer-contact .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 2rem;
    width: 100%;
}

.main-footer-contact h2,
.main-footer-contact p {
    color: var(--light-grey);
}

.button {
    display: inline-block;
    background-color: var(--light-grey);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--light-grey);
}

.button:hover {
    background-color: transparent;
    color: var(--light-grey);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--light-grey);
    margin: 0 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #694A47; /*#333333;*/

}

.groet {
    margin-bottom: 1.5rem;
}

.footer-left,
.footer-right {
    flex: 1;
    min-width: 280px;
}

.footer-left {
    max-width: 400px;
    max-width: 90%;
}

.footer-right {
    margin-left: auto;
    max-width: 10%;
}

.footer-right h3 {
    color: var(--light-grey);
    margin-bottom: 1rem;
    font-size: 3.5rem;
    padding-right: 0;
}

.footer-right p {
    color: var(--light-grey);
    line-height: 1.6;
}

/* --- Media Queries voor Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .illustration-item,
    .illustration-item--reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .skills-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .skills h2 {
        margin-bottom: 1.5rem;
    }

    /* Footer responsiveness */
    .main-footer-contact .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        margin-bottom: 2rem;
        margin-left: 0;
    }

    .footer-left:last-child,
    .footer-right:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        justify-content: center;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0 1rem;
    }
}

/* --- Blob Achtergrond Animatie --- */
#background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    opacity: 0.7;
    filter: blur(80px);
    animation: blob-animation 20s infinite alternate;
}

/* Individuele blob stijlen voor variatie */
.blob:nth-child(1) {
    width: 250px;
    height: 250px;
    top: 5%;
    left: 5%;
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
    animation-duration: 22s;
    animation-delay: -2s;
    background-color: #78A2D2;
}

.blob:nth-child(2) {
    width: 500px;
    height: 500px;
    top: 65%;
    right: 10%;
    border-radius: 60% 40% 30% 70% / 60% 60% 40% 40%;
    animation-duration: 25s;
    animation-delay: -5s;
    background-color: #ddf0a5;
}

.blob:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 15%;
    right: 5%;
    border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
    animation-duration: 20s;
    animation-delay: -8s;
    background-color: #ffc2d2;
}

.blob:nth-child(4) {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 15%;
    border-radius: 50% 50% 80% 20% / 50% 20% 80% 50%;
    animation-duration: 23s;
    animation-delay: -10s;
    background-color: #ffb3c7;
}

.blob:nth-child(5) {
    width: 400px;
    height: 400px;
    bottom: 20%;
    left: 40%;
    border-radius: 80% 20% 30% 70% / 70% 30% 70% 30%;
    animation-duration: 28s;
    animation-delay: -12s;
    background-color: #FEFFAF;
}

@keyframes blob-animation {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, -20px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Media queries for smaller screens to adjust blob sizes and blur */
@media (max-width: 768px) {
    .blob { filter: blur(50px); }
    .blob:nth-child(1) { width: 150px; height: 150px; top: 5%; left: 5%; }
    .blob:nth-child(2) { width: 250px; height: 250px; top: 70%; right: 5%; }
    .blob:nth-child(3) { width: 200px; height: 200px; top: 10%; right: 10%; }
    .blob:nth-child(4) { width: 120px; height: 120px; bottom: 5%; left: 5%; }
    .blob:nth-child(5) { width: 250px; height: 250px; bottom: 15%; left: 30%; }
}

