:root {
    /* Basis kleuren */
    --color-bg: rgb(26, 26, 26);
    --color-bg-secondary: rgb(255, 255, 255);
    --color-primary: rgba(0, 13, 255, 1);
    --color-secondary: rgb(149, 153, 230);
    --color-text: rgb(255, 255, 255);

    /* Extra kleuren */
    --color-black: rgb(0, 0, 0);
    --color-dark-blue: rgb(26, 26, 61);
    --color-overlay-light: rgba(255, 255, 255, 0.95);
    --color-overlay-dark: rgba(0, 0, 0, 0.05);
    --color-hover-link: var(--color-secondary);
    --color-hover-btn: var(--color-secondary);
    --color-border: var(--color-primary);
    --color-white: rgb(255, 255, 255);

    /* Fonts */
    --font-main: 'Raleway', sans-serif;
    --font-heading: 'Caudex', serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1100px;
    width: 90%;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--color-bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

header .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
}

nav {
    display: flex;
    align-items: center;
    background: var(--color-overlay-light);
}

nav a {
    text-decoration: none;
    color: var(--color-black);
    margin-left: 2rem;
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-hover-link);
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-top: 0.3rem;
    padding: 0.3rem;
    border-radius: 8px;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background: var(--color-black);
    transition: all 0.3s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        width: 200px;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease-in-out;
        border-radius: 0 0 12px 12px;
    }

    nav.show {
        max-height: 500px;
    }

    nav a {
        margin: 1rem;
        color: var(--color-black);
    }

    .menu-toggle {
        display: flex;
    }
}

/* Hero */
#home {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 7rem 2rem 2rem;

    /* Achtergrond afbeelding toevoegen */
    background-image: url('../img/'); /* vervang door jouw afbeelding */
    background-size: cover;       /* zorgt dat het de hele sectie vult */
    background-position: center;  /* zorgt dat het gecentreerd blijft */
    background-repeat: no-repeat; /* voorkomt herhaling */
}

#home img {
    width: 180px;
    height: 180px;
    max-width: 90vw;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-border);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s forwards;
}

#home h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s 0.5s forwards;
}

#home .typed-text {
    font-size: 3rem;
    color: var(--color-secondary);
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    margin-top: 2rem;
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: var(--color-hover-btn);
}

.down-arrow {
    margin-top: 3rem;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    color: var(--color-text);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: auto;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 2rem auto;
    padding: 0.5rem 1rem;
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    border-radius: 12px;
    max-width: 300px;
    text-align: center;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project {
    background: var(--color-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    border: 1px solid var(--color-white);
}

.project img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.project:hover {
    transform: translateY(-5px);
}

.project-info {
    padding: 1.5rem;
}

/* Over Mij sectie */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-top: 2rem;
}

.about-card {
    background: var(--color-bg);
    color: var(--color-white);
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 350px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about-icon {
    font-size: 2.5rem;
    color: var(--color-white);
}

.about-card p {
    margin: 0;
    text-align: center;
}

.about, .contact {
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 1rem auto;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    gap: 1rem;
}

input, textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-main);
}

form button {
    padding: 0.75rem;
    background: var(--color-primary);
    color: var(--color-text);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

form button:hover {
    background: var(--color-hover-btn);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--color-bg-secondary);
    color: var(--color-black);
    border-top: 1px solid var(--color-border);
}

/* Vaardigheden sectie */
.skills-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.skills-card {
    flex: 1 1 280px; /* Kaarten passen zich aan, min 280px breed */
    max-width: 500px;
    background: var(--color-bg);
    color: var(--color-text);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--color-white);
}

.skills-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1 1 calc(45% - 1rem);
    min-width: 120px; /* minimaal twee naast elkaar */
}

.about-card {
    border: 1px solid var(--color-white);
}

@media (max-width: 768px) {

    .skills-cards {
        gap: 2rem;
    }
}

/* Contact sectie */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-card a {
    color: var(--color-secondary);  
}

.contact-card {
    flex: 1 1 280px;
    max-width: 500px;
    background: var(--color-bg);
    color: var(--color-text);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-card p {
    text-align: left; /* alleen de paragrafen links uitlijnen */
    width: 100%;      /* zodat de tekst netjes de volle breedte gebruikt */
    margin-top: -0.5rem;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--color-white);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

/* Contactformulier netjes in de card */
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-main);
}

.contact-form button {
    padding: 0.75rem;
    background: var(--color-primary);
    color: var(--color-text);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--color-hover-btn);
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .contact-cards {
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

.contact-card a {
    display: inline-block;
    padding: 1rem 2rem;          /* Grotere knop */
    border-radius: 0.75rem;
    background-color: var(--color-primary); /* bestaande root kleur */
    color: var(--text-color);                 /* bestaande root kleur voor tekst */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;           /* Grotere tekst */
    margin: 0.5rem;              /* consistent met project marges */
    transition: background 0.3s, transform 0.2s;
    text-align: center;
}

/* Hover effect */
.contact-card a:hover {
    background-color: var(--color-secondary); /* bestaande root kleur voor hover */
    transform: translateY(-2px); /* subtiel pop-effect */
}

/* Contentpagina */
#content-page {
    padding: 50px 20px;
    max-width: 1000px;
    margin: auto;
}

.content-header h2 {
    font-family: 'Caudex', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.featured-media img, .featured-media video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 20px;
}

.image-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
}

/* Knoppen */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 2rem;
}

.prev { left: 0; }
.next { right: 0; }


/* Contentpagina styling */
#content-page {
    padding: 5rem 2rem; /* consistent met secties */
    max-width: 1100px;  /*zelfde als andere secties*/
    margin: auto;
    margin-bottom: -12rem;
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
}

.content-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
    background: var(--color-bg-secondary);
    padding: 0.5rem 0.5rem;
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.content-header p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.featured-media img,
.featured-media video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.image-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    border-radius: 12px;
}

/* Carousel knoppen */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

.prev:hover, .next:hover {
    background-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Tekstsecties */
.content-text {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.content-text p {
    margin-bottom: 1.5rem;
}

/* Links en knoppen binnen content */
.content-page a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.content-page a:hover {
    color: var(--color-secondary);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .content-header h2 {
        font-size: 2rem;
        max-width: 90%;
    }

    .featured-media img,
    .featured-media video {
        max-height: 300px;
    }
}


.content-page #about {
    margin-top: -1000rem;
}

.image-carousel {
    position: relative;
    max-width: 1794px;
    margin: 0 auto;
    overflow: hidden;
    margin-bottom: 4rem;
}

.carousel-slide {
    display: none;
    width: 100%;
}

/* Zorg dat afbeeldingen en video dezelfde grootte en verhouding houden */
.carousel-slide img,
.video-wrapper iframe {
    width: 100%;
    height: auto;
    max-width: 1794px;
    max-height: 998px;
    display: block;
    border-radius: 12px;
}

/* Video wrapper om aspect ratio netjes te houden */
.video-wrapper {
    position: relative;
    padding-top: 55.6%; /* 998 / 1794 ≈ 0.556 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Witte border voor alle afbeeldingen, inclusief in wrappers */
img, img * {
    border: 1px solid white !important;
    border-radius: 12px !important;
    box-sizing: border-box; /* Zorgt dat de border meegerekend wordt in de grootte */
}

.video-wrapper {
  border: 1px solid white; /* witte border */
  border-radius: 12px;      /* afgeronde hoeken */
  overflow: hidden;         /* belangrijk: iframe inhoud wordt binnen de afgeronde hoeken “geknipt” */
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

#content-page h3 {
  text-align: center;   /* centreren */
  color: var(--color-white);         /* wit maken */
  font-size: 2rem;      /* groter lettertype */
  margin-top: 5.5rem;
  margin-bottom: 4rem;  /* wat extra ruimte onder de titel */
      font-size: 3.5rem;
    font-family: var(--font-heading);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s 0.5s forwards;
}

/* Zoom overlay */
.zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 3000;
  cursor: zoom-out;
}

.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

html {
  scroll-behavior: smooth;
}

.project a {
  display: block;
  color: inherit;       /* behoudt tekstkleur */
  text-decoration: none; /* verwijdert standaard onderlijning */
}

.project:hover {
  cursor: pointer;
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.project-info .cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #0077cc;           /* subtiel blauw */
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.project a:hover .cta {
  color: #005fa3;           /* iets donkerder bij hover */
  transform: translateX(4px); /* klein schuif-effectje */
}

.project {
  display: flex;
  flex-direction: column;
  height: 100%; /* zorgt dat alles gelijk is */
}

.project a {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* vult altijd de hoogte */
  text-decoration: none;
  color: inherit;
}

.project-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;       /* vult de resterende ruimte */
  justify-content: space-between; /* tekst boven, CTA onder */
  padding: 1rem;
}

.project-info h3, 
.project-info p {
  margin: 0 0 0.5rem 0;
}

/* CTA styling */
.project-info .cta {
  margin-top: auto;          /* duwt CTA altijd onderaan */
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.project a:hover .cta {
  color: var(--color-white);
  transform: translateX(4px);
}

#google_translate_element {
    display: inline-block;
    margin-left: 20px; /* afstand vanaf logo of menu */
}

.goog-te-banner-frame.skiptranslate { 
    display: none !important; 
} 
body { 
    top: 0px !important; 
}

#lang-toggle {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 20px;
}

#nav a:last-of-type {
    border: 2px solid var(--color-primary) !important;
    border-radius: 12px !important;
    padding:  0.2rem 0.5rem 0.2rem 0.5rem;
    color: var(--color-primary);
}