/* ========== ALGEMENE STYLING ========== */

/* Algemene opmaak */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30vh;
    box-sizing: border-box;
    flex-grow: 1;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

    a:visited {
        color: inherit;
    }

    a:hover, a:focus {
        text-decoration: none;
    }

/* ========== ACHTERGROND ========== */

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./IMG/achtergrond.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    z-index: -1;
}

/* ========== HEADER & LOGO ========== */

/* Logo linksboven */
.logo-container {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
}

.responsive-logo {
    width: 15%;
    max-width: 350px;
    min-width: 300px;
    height: auto;
}

/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    position: fixed;
    top: 0;
    padding: 10px 20px;
    z-index: 99;
}

/* Taalwisselaar rechtsboven */
.language-switcher {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.flag {
    width: 30px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.flag:hover {
    transform: scale(1.1);
}

/* ========== HERO SECTIE ========== */

.hero {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: auto;
}

#logo {
    width: 50%;
    opacity: 0;
    animation: fadeOut 6s forwards;
}

/* ========== MENU & KAARTEN ========== */

/* Menu Container */
.menu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.menu .card-container {
    display: flex;
    gap: clamp(10px, 3vw, 25px);
    justify-content: center;
    flex-wrap: wrap;
    min-width: 80vw;
    width: 100%;
    max-width: 1200px;
}
#projects {
    margin-top: 5%;
}

.projects {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Titels */
.Titels {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: -50px;
}

/* Kaarten */
.card {
    background-color: rgba(0, 124, 175, 0.65);
    padding: 1rem;
    border-radius: 8px;
    border: 3px solid rgba(225,255,255,0.7);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 1);
    width: calc(33.33% - 25px);
    max-width: 250px;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

/* Verborgen menu */
.hidden {
    display: none;
}

/* ========== FOOTER ========== */

footer {
    border-top: 1px solid #000;
    text-align: center;
    background-color: rgba(0, 124, 175, 0.65);
    color: white;
    padding: 10px 0;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
}

.social-media {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-media a {
  display: inline-block;
}

.icon {
    width: 20px;
    height: auto;
}

/* ========== POPUP ========== */

/* Overlay achtergrond */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

/* Popup venster */
.popup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    height: 80%;
    max-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Sluitknop */
#close-btn {
    display: block;
    margin: 20px auto; 
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007CAF; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    #close-btn:hover {
        background-color: #0056b3;
    }

/* IFrame binnen de popup */
#popup-content {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
}

/* Verborgen standaard */
.hidden {
    display: none;
}

/* ========== ANIMATIES ========== */

@keyframes fadeOut {
    from {opacity: 1; }
    to {opacity: 0; }
}

/* ========== MEDIA QUERIES ========== */

/* Voor schermen groter dan 1024px */
@media (max-width: 1024px) {
    #projects {
        margin-top: 10%;
    }
}

/* Voor schermen kleiner dan 768px */
@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 20px);
    }


    #projects
    {
        margin-top: 15%;
    }

    .responsive-logo {
        width: 25%;
        max-width: 180px;
        min-width: 140px;
    }

    .menu .card-container
    {
    gap: 15px; /* Kleiner op tablets */
    }

    /* Extra ruimte tussen secties */
    .sectie {
        margin-bottom: 200px !important;
        display: block;
        position: relative;
    }

    footer {
        margin-top: 10% !important;
    }

    body {
        overflow-x: hidden;
    }
}

/* Voor schermen kleiner dan 480px */
@media (max-width: 480px) {
    .card {
        flex: 1 1 100%;
    }

    #projects {
        margin-top: 15%;
    }

    .menu .card-container
    {
    gap: 15px; /* Nog kleiner op telefoons */
    }

    .sectie {
        margin-bottom: 100px;
    }

    footer {
        margin-top: 10% !important;
    }
}

@supports (-ms-ime-align:auto) {
    .menu .card-container {
        gap: 20px !important;
    }
}

@supports (-moz-appearance:none) {
    .menu .card-container {
        gap: 20px !important; /* Specifieke fix voor Firefox */
    }
}