/* =========================
   Hero
========================= */

/* Styling af hele projekt-heroen */
.project-hero {
    width: 80%;
    max-width: 1200px;
    height: 450px;

    margin:  0 auto 40px;
    padding: 40px 60px;

    background-color: #F6FCFF;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Placering af indholdet i projekt-heroen */
.project-hero-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styling af projekttitlen */
.project-hero h1 {
    margin: 0;
    font-weight: 400; /* tykkelsen er med vilje mindre end original h1*/
}

/* Beholderen omkring billedet og bølgen i projekt-heroen */
.project-hero-image {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Bølgen bag mokcup-billedet */
.project-wave {
    position: absolute;
    width: 100%;
    max-width: none;
    height: auto;
    z-index: 1;
}

/* Selve mockup-billedet */
.project-mockup {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

 /* ================================
        Indhold i projekt siden
    ==============================*/

/* Styling af hele projektindholdet under heroen */
.project-content {
    width: 80%;
    max-width: 1200px;
    margin: 60px auto;
}

/* Styling af lille bølge */
.project-divider {
    display: block;
    width: 40%;
    max-width: 400px;
    height: auto;
    margin: 70px auto;
}

/* Styling af al brødtekst i projektindholdet */
.project-content p {
    margin: 0;
}

/* Styling af intro teksten */
.project-intro {
    max-width: none;
    margin-bottom: 60px;
}

/* Styling af de små underoverskrifter */
.project-content h3 {
    margin: 30px 0 8px;
    font-weight: 600; /* tykkelsen er med vilje større end original h3*/
}

/* =========================
    Slider
========================= */

/* Styling af hele projekt-slideren */
.project-slider {
    width: 80%;
    max-width: 1200px;
    margin: 80px auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* Beholderen omkring sliderens billeder */
.slider-images {
    width: 100%;
    max-width: 800px;
    position: relative;
}

/* Alle billeder i slideren */
.slide {
    display: none;
    width: 100%;
    max-height: 600px;
    object-fit: contain;
}

/* Det aktive billede */
.slide.active {
    display: block;
}

/* Styling af sliderens pile */
.slider-button {
    border: none;
    background: none;
    color: #244C5D;

    font-size: 36px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Gør sliderens pile lidt større, når musen holdes over dem */
.slider-button:hover {
    transform: scale(1.2);
}

/* Beholderen omkring sliderens prikker */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

/* Styling af sliderens prikker */
.dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #A7CAD8;
    cursor: pointer;
}

/* Styling af prikken til det aktive slide */
.dot.active {
    background-color: #244C5D;
}

/* =========================
   Scroll-animation
========================= */

/* Gør projektets små overskrifter og brødtekst klar til scroll-animation */
.project-content h3,
.project-content p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Viser overskrifter og brødtekst, når JavaScript tilføjer classen "show" */
.project-content h3.show,
.project-content p.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {

    /* =========================
       Hero
    ========================= */

     /* Tilpasser projekt-heroens størrelse på mindre skærme */
    .project-hero {
        width: 85%;
        height: auto;
        padding: 40px 30px;
    }

    /* Ændrer projekt-heroens indhold til én kolonne på mindre skærme */
    .project-hero-content {
        flex-direction: column;
        justify-content: center;
        gap: 30px;
    }

    /* Gør billedområdet bredere på mindre skærme */
    .project-hero-image {
        width: 100%;
    }

    /* Tilpasser mockup-billedets størrelse på mindre skærme */
    .project-mockup {
        max-width: 180px;
    }

    /* ================================
        Indhold i projekt siden
    =================================*/

    /* Gør projektindholdet lidt bredere på mindre skærme */
    .project-content {
        width: 85%;
        margin: 50px auto;
    }

    /* Tilpasser afstanden under introteksten på mindre skærme */
    .project-intro {
        margin-bottom: 40px;
    }

    /* Tilpasser afstanden omkring de små underoverskrifter på mindre skærme */
    .project-content h3 {
        margin: 25px 0 8px;
    }

    /* =========================
        Slider
    ========================= */

    /* Begrænser sliderbilledernes højde, så de ikke fylder for meget på mindre skærme */
    .slide {
        max-height: 350px;
    }

    /* Gør sliderens pile lidt mindre på mindre skærme */
    .slider-button {
        font-size: 28px;
    }

}





