/* Globals */
@font-face {
    font-family: "Fredoka";
    src: url("../fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2");
}

:root {
    --bg: #0b0b0b;
    --green: #99c96c;
    --dark-bg: #121212;
    --card-bg: #1E1E1E;
    --text-primary: #ffffff;
    --text-secondary: #B0B0B0;

    --hero-bg: url('../fotos/home/hero.jpg');

    background-color: #121212;
    color: #ffff;
    font-family: "Fredoka", sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;

    p{
        font-size: 0.75rem;
    }
    a{
        font-size: 0.75rem;
    }
    h1{
        font-size: 3rem;
        font-family: "Fredoka", sans-serif;
    }
    h2{
        font-size: 2rem;
    }

}
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;

}
a{
    text-decoration: none;
    color: inherit;
}
.container {
    margin-top: 5rem;
    padding: 1rem;
    border-radius: 40px;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
    background-color: #0b0b0b;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

section{
    padding: 2rem;
    margin: 2rem;
    background-color: #1e1e1e;
    border-radius: 20px;
}

main {
    gap: 1.5rem;

}



header {
    position: fixed;
    top: 0;
    z-index: 999;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

    nav {
        position: sticky;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.5rem;

        h2{
            display: none;
        }

        ul {
            position: sticky;
            justify-content: center;
            display: flex;
            list-style: none;
            gap: 1rem;
            margin: 0;
            padding: 0;
            li {
                list-style: none;
                display: inline-block;
                position: relative;
                margin: 3rem 0.5rem 0 0.5rem;


                a {
                    text-decoration: none;
                    color: white;
                    text-transform: uppercase;
                }

                &::after {
                    content: '';
                    height: 3px;
                    width: 0%;
                    background: #99c96c;
                    position: absolute;
                    left: 0;
                    bottom: -10px;
                    transition: 0.5s;
                }

                &:hover::after {
                    width: 100%;
                }
            }
        }
    }
}

.button {
    width: 200px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #99c96c;
    background: transparent;
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: var(--green);
    border-radius: 25px;
    z-index: -1;
    transition: width 0.5s ease;
}

.button:hover {
    cursor: pointer;
}

.button:hover::before {
    width: 100%;
    animation: slideRight 0.5s ease forwards;
}

@keyframes slideRight {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}


/* Section specefiek*/

#hero {
    position: relative;
    height: 100vh;
    align-content: center;
    margin: 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--hero-bg);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;

    h1{
        font-size: 2rem;
        margin-bottom: 6rem;
    }
    img {
        display: none;
    }


    .hero-content {
        background-color: transparent;
        padding: 2rem;
        text-align: center !important;
        z-index: 1;
        justify-content: center;

        h1 {
            font-family: 'Franklin Gothic Heavy', sans-serif;
            font-size: 15vw;
        }
    }
}

.social-media {
    display: flex;
    flex-direction: column;
    justify-content: center;

    h2 {

        text-align: center;
    }

    .social-links {
        flex-direction: row;
        display: flex;
        gap: 1.5rem;
        justify-content: center;

        img {
            max-width: 3rem;
            height: auto;
            background-color: transparent;
        }
    }
}


.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    justify-content: center;

    .card {
        background: #1E1E1E;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        flex: 1 1 280px;
        max-width: 350px;

        /* animation */
        animation: appear ease-out;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    ;

        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }

        a {
            display: block;
            &:hover {
                transform: none;
                box-shadow: none;
            }
        }

        picture {
            img {
                width: 100%;
                max-width: 110%;
                height: 200px;
                object-fit: cover;
                border-radius: 8px;
            }
        }

        .card-body {
            padding: 1rem;
            text-decoration: none;

            h3 {
                color: #FFFFFF;
                margin: 0 0 0.5rem 0;
                font-size: 1.1rem;
                font-weight: 600;
                text-decoration: none;
            }

            p {
                margin: 0 0 0.75rem 0;
                color: #B0B0B0;
                text-decoration: none;

            }


            span {
                display: inline-block;
                text-decoration: none;
                color: #A3E635;
                background-color: transparent;
                border: none;
                cursor: pointer;
                font-size: 0.75rem;
                transition: all 0.3s ease;
                padding: 0.25rem 0;
            }

            a {
                text-decoration: none !important;
                color: #A3E635;
                background-color: #1E1E1E;
                border: none;
            }
        }
    }
}

.difficulty {
    display: inline-block !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
}

.easy {
    background-color: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border: 1px solid #22c55e !important;
}

.medium {
    background-color: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid #fbbf24 !important;
}

.hard {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
}

.distance {
    display: block;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}



#kaart{
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-block: 7rem;
    a {
        padding: 0;
        margin: 0;
        border-radius: 0;
        color: #000000;
        text-decoration: none;
        transition: none;
        box-shadow: none;

        &:hover,
        &:focus {
            transform: none;
            background-color: white;
            box-shadow: none;

        }
    }
    #map {
        width: 18rem;
        height: 18rem;
    }

}
.
.text-center{
    text-align: center;}
form.contact-form {
    max-width: 760px;
    width: 90%;
    margin: 1.5rem auto;
    padding: 1rem;

    > div {
        margin-bottom: .9rem;
    }

    h1,
    h2 {
        text-align: center;
    }

    input[type="email"],
    input[type="text"],
    textarea {
        width: 100%;
        padding: .6rem .75rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-top: .25rem;
    }

    input[type="submit"] {
        display: inline-block;
        margin: .75rem auto 0;
        padding: .6rem 1rem;
        font-size: 1rem;
        cursor: pointer;
    }
}
.error {
    color: oklch(0.4979 0.198 29.02);
}

/*about me*/
.missie {


    h2 {
        font-size: 2.5rem;
        color: var(--green);
        margin-bottom: 1.5rem;
        text-align: center;
    }

    p {
        font-size: 1.2rem;
        line-height: 1.8;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
        color: var(--text-secondary);
    }
}

/* Founder */
.founder {
    margin-top: 3rem;
    .round-img {
        border-radius: 1000px;
        object-fit: cover;
        object-position: center;
        border: var(--green) 8px solid;
        width: 300px!important;
        height: 300px;

    }

    .founder-info {
        padding-inline: 2rem;
        h2 {
            font-size: 2.5rem;
            color: var(--green);
            margin-bottom: 1rem;
        }

        h3 {
            font-size: 1.5rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            font-weight: 400;
        }

        p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .founder-stats {
            gap: 2rem;
            margin-top: 2rem;

            .stat-item {
                text-align: center;
                padding: 1.5rem;
                background: rgba(153, 201, 108, 0.1);
                border-radius: 10px;
                flex: 1;

                .number {
                    font-size: 2rem;
                    color: var(--green);
                    font-weight: 700;
                }

                .label {
                    font-size: 0.9rem;
                    color: var(--text-secondary);
                    margin-top: 0.5rem;
                }
            }
        }
    }
}




/*https://davydewinne.ikdoeict.be/examples/layout/styles.css*/
/* Parent container */

.childcolumn {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
}

.childcolumn:first-child { margin-left: 0rem; } /* remove left margin from first element */
.childcolumn:last-child { margin-right: 0rem; } /* remove right margin from last element */



.row{ display: flex ; flex-wrap: wrap;}
.center{ justify-content: center;}
.center-vertical{ align-items: center;}



/* Desktop*/
@media (min-width: 1200px) {
    .childcolumn {
        box-sizing: border-box; /* necessary */
        margin-right: 0.5rem; /* some margin between colums, 30px in total */
        margin-left: 0.5rem; /* some margin between colums, 30px in total  */
        padding: 1rem; /* Just some space inside the box, around the content */
        background-color: #EEE; /* woehoe nice bg-color */
        hyphens: auto; /* break words at the end of a line */
        overflow: hidden; /* if content is bigger, hide everthing outside the box */
    }

    /* Very basic 12 column grid */
    .one { width: 8.33%; }
    .two { width: 16.66%; }
    .three { width: 24.99%; }
    .four { width: 33.32%; }
    .five { width: 41.65%; }
    .six { width: 49.98%; }
    .seven { width: 58.31%; }
    .eight { width: 66.64%; }
    .nine { width: 74.97%; }
    .ten { width: 83.33%; }
    .eleven { width: 91.63%; }
    .twelve { width: 100%; }


    :root {
        p {
            font-size: 1rem;
        }

        a {
            font-size: 1rem;
        }

        h1 {
            font-size: 5rem;
        }

        h2 {
            font-size: 3em;
        }

    }
    .hero-content{
        h1{
            font-size: 10rem !important;
        }
    }


}

/* Tablet*/
@media (min-width: 800px) {
    section{
        padding: 2rem;
        background-color: #1e1e1e;
        border-radius: 20px;
    }
}




#popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .3s ease;

    &.popup-hidden {
        opacity: 0;
        pointer-events: none;
    }

    .popup-content {
        background: var(--card-bg);
        padding: 2rem;
        border-radius: 12px;
        text-align: center;
        max-width: 400px;
        border: 2px solid var(--green);
    }
    img {
        width: 80px;
        height: auto;
        margin-bottom: 1rem;
        filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
    }

}

#popup-close {
    margin-top: 1rem;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}