/* css/style.css */

:root {
    --color1: #E7556E;
    --color2: #465DF1;
    --color3: #58B99D;
    --navbar-height: 56px;
}

html {
    /* Zorgt ervoor dat de body minstens de hoogte van de viewport inneemt */
    height: 100%;
}

body {
    padding-top: var(--navbar-height);
    /* Behoud dit voor fixed navbar */
    background: linear-gradient(-45deg, var(--color1), var(--color2), var(--color3), var(--color2));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    /* Flexbox om footer onderaan te forceren */
    display: flex;
    flex-direction: column;
    min-height: 100%;
    /* Veranderd van 100vh naar 100% ivm html height */
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Home sectie (blijft full screen) */
#home {
    background: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    /* Laat home sectie de resterende ruimte vullen */
}

#home h1,
#home p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Styling voor de hoofdinhoud op subpagina's */
main.page-content {
    flex-grow: 1;
    /* Zorgt dat de inhoud de ruimte vult tussen navbar en contact/footer */
    background-color: rgba(255, 255, 255, 0.9);
    /* Standaard lichte achtergrond voor content */
    border-radius: 15px;
    margin-top: 2rem;
    /* Ruimte boven de content box */
    margin-bottom: 2rem;
    /* Ruimte onder de content box */
    padding: 2rem;
    /* Interne padding */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* We voegen container class toe in HTML, dus geen max-width hier nodig */
}




/* Project Cards Styling */
.card {
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

#contact-info .contact-box {
    background-color: white;
    border-radius: 15px;
    max-width: 700px;
    /* Maximale breedte van de box */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#contact-info .btn-social {
    padding: 0.5rem 0.8rem;
    font-size: 1.2rem;
    /* Grootte van het icoon */
}

/* Navigatiebalk Styling */
.navbar {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
}

.nav-link {
    margin-left: 10px;
    margin-right: 10px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color3) !important;
}

/* Active link kleur */

/* Footer styling */
footer {
    background-color: #212529;
    color: rgba(255, 255, 255, 0.7);
    /* mt-auto in HTML + flexbox op body zorgt dat het onderaan plakt */
}

/* Responsive aanpassingen */
@media (max-width: 991.98px) {
    body {
        padding-top: var(--navbar-height);
    }

    .navbar-nav {
        background-color: rgba(0, 0, 0, 0.9);
        border-radius: 5px;
        padding: 10px;
        margin-top: 10px;
    }

    .nav-link {
        padding: 10px 15px;
    }

    main.page-content {
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: 0;
        /* Geen ronde hoeken op mobiel */
        padding: 1.5rem;
    }

    #contact-info .contact-box {
        border-radius: 0;
        /* Geen ronde hoeken op mobiel */
        padding: 1.5rem;
        max-width: 100%;
    }
}

/* Modal Styling */
.modal-body img {
    max-width: 100%;
    height: auto;
}

/* Animatie typing 16 karakters navbar */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 16ch;
    }
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

.navbar-brand .typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: .1em solid;
    font-family: monospace;
    font-size: 1rem;
    width: 16ch;
    animation:
        typing 2s steps(16, end) infinite alternate-reverse,
        blink-caret 0.75s step-end infinite;
}

/* Profiel foto animatie */

.profile-picture-wrapper {
    display: inline-block;
    padding: 6px;
    border-radius: 50%;
    max-width: 312px;

    /* chtergrond als border */
    background: linear-gradient(-45deg, var(--color1), var(--color2), var(--color3), var(--color2));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.profile-picture-wrapper img {
    display: block;
    border-radius: 50%;
    max-width: 100%;
    height: auto;
}