/* Algemene stijl */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body, html {
    height: 100%;
    margin: 0;
    background-color: #f4f4f9;
    overflow-y: auto;
    background-color: #141414;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;  /* Zorgt ervoor dat de body minstens de volledige hoogte van het scherm inneemt */
}

footer {
    margin-top: auto;  /* Duwt de footer naar de onderkant als er onvoldoende content is */
    text-align: center;
    padding: 20px;
    background-color: #1abc9c;  /* Zelfde kleur als de header voor consistentie */
    color: white;
}

/* Header stijl */
header {
    background-color: #1abc9c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #16a085;
}

nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1abc9c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 100;
}

nav ul li:hover .dropdown {
    display: block;
}

nav ul li .dropdown li {
    margin: 0;
    padding: 10px 20px;
}

nav ul li .dropdown li a:hover {
    color: #16a085;
}

/* ------------------ Homepage stijl ------------------ */
.container {
    display: flex;
    height: 100vh;
    margin-top: 60px; /* Ruimte voor de header */
}

/* Titel Data */
.title-container {
    margin-top: 70px; /* Zorg dat de titel niet overlapt met de header */
    padding: 20px 0; /* Ruimte boven en onder de titel */
    text-align: center; /* Tekst gecentreerd */
    background-color: #1abc9c; /* Achtergrondkleur gelijk aan de header */
}

.title-container h1 {
    font-size: 2.5em; /* Groot lettertype */
    color: white; /* Witte tekstkleur */
    font-weight: bold; /* Vetgedrukt */
    text-transform: uppercase; /* Alle letters in hoofdletters */
}


.half {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.half.left {
    background-image: url('./images/Luchtstroom.webp'); /* Linker achtergrondafbeelding */
}

.half.right {
    background-image: url('./images/Temperatuur.webp'); /* Relatief pad naar de afbeelding */
}


.half::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Donkere overlay */
    z-index: 1;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* ------------------ Kamers Pagina stijl ------------------ */
.page-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Twee kolommen */
    grid-template-rows: repeat(2, auto);   /* Twee rijen, hoogte automatisch */
    gap: 30px;  /* Ruimte tussen de grafieken */
    padding: 40px 20px;
    justify-content: center;
    margin-top: 60px; /* Ruimte voor de header */
}

.page-container iframe {
    width: 100%;
    min-height: 500px; /* Minimale hoogte voor voldoende weergave */
    height: 70vh; /* Hoogte afhankelijk van het scherm */
    border: none;
    border-radius: 0;  /* Geen afgeronde hoeken */
    box-shadow: none;  /* Geen schaduw */
}

.card {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h2 {
    color: #1abc9c;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card iframe {
    width: 100%;
    min-height: 450px;  /* Flexibele hoogte */
    height: 60vh;  
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.content {
    display: flex;
    flex-direction: column;  /* Stapelt de iframe en knop verticaal */
    justify-content: center;
    align-items: center;
    gap: 20px;  /* Ruimte tussen de grafiek en de knop */
    text-align: center;
    z-index: 2;
}


.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #1abc9c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #16a085;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Knoppen onder de grafieken */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Ruimte tussen de knoppen */
    margin: 40px auto; /* Ruimte boven en onder */
}

.btn {
    padding: 15px 25px;
    background-color: #1abc9c;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #16a085;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Terug naar Home */
.home-button {
    display: block;
    margin: 20px auto;
    text-align: center;
    text-decoration: none;
    background-color: #1abc9c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
    width: fit-content;
}

.home-button:hover {
    background-color: #16a085;
}

/* Project Pagina Stijl */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('./images/Projectpagina_achtergrond.webp') no-repeat center center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
}


.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.section {
    padding: 50px 20px;
    text-align: center;
    color: #f4f4f9;
    position: relative;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1abc9c;
}

.section:not(:last-child)::after {
    content: "";
    display: block;
    width: 90%;  /* Lijnbreedte */
    height: 1px;  /* Lijndikte */
    background-color: rgba(255, 255, 255, 0.2);  /* Lijnkleur en transparantie */
    margin: 50px auto 0 auto;  /* Ruimte boven en onder de lijn */
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: #1f1f1f;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card iframe {
    width: 100%;
    height: 500px;  /* Pas de hoogte hier aan naar wens */
    border: none;
}


h2 {
    color: #00e676;
    text-align: center;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: #1abc9c;
    margin-bottom: 10px;
}

.centered-section {
    padding: 50px 20px;
    color: #f4f4f9;
    text-align: center;  /* Titel en inleiding centreren */
    max-width: 900px;  
    margin: 0 auto;   
}

.centered-section p {
    margin-bottom: 30px;  /* Voegt ruimte onder de inleidende zin toe */
}

.technologies {
    list-style: none;
    padding: 0;
    margin: 20px auto;  /* Centreert de lijst */
    text-align: left;  /* Tekst binnen de lijst links uitlijnen */
    display: inline-block;  /* Zorgt dat de lijst de breedte van de inhoud heeft */
}

.technologies li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

.technologies li span {
    font-size: 1.5em;
    margin-right: 10px;
    line-height: 1;
}


.team-section {
    background-color: #1abc9c;
    color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.9em;
}

.logo a {
    color: white; /* Zorg dat de tekst wit blijft */
    text-decoration: none; /* Verwijder de onderstreping */
}



/* Responsieve media queries */
@media (max-width: 1024px) {
    .page-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .card iframe {
        height: 400px;
    }

    .title-container h1 {
        font-size: 2em;
    }

    .container {
        flex-direction: column;  /* Stapelt de secties onder elkaar */
    }

    .half {
        height: auto;
        padding: 30px 20px;
    }

    iframe {
        width: 100%;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    
    .page-container {
        grid-template-columns: 1fr;
    }
    
    .card iframe {
        height: 350px;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 10px 15px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .title-container h1 {
        font-size: 1.8em;
    }

    .half {
        padding: 20px;
    }

    iframe {
        height: 300px;
    }

    .btn {
        font-size: 1em;
        padding: 12px 25px;
    }
}






