#case-hero{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    
}

#case-hero h1{
    /* FC Roskilde */

    font-family: 'That-New-Pixel';
    font-style: normal;
    font-weight: 400;
    font-size: 20rem;
    line-height: 100%;
    /* identical to box height, or 128px */
    text-align: center;

    color: #F4F4F4;
    margin: 0;

    white-space: nowrap;
    text-overflow: ellipsis; /* Adds "..." to indicate overflow */

}

#case-hero-container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6.4rem;
    width: 100%;
    z-index: 1;
    padding-left: 10rem;
    margin-top: 30rem;
    margin-bottom: 10rem;
}

#case-hero img{
    width: 100%;
    height: 70rem;
    object-fit: cover;
    z-index: 2;
}

#case-details{
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4.8rem;

}

.case-detail{
    /* Frame 9336 */
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;


    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}

.case-detail h3{

    font-family: 'Mona-Sans';
    font-stretch: expanded;
    font-style: normal;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 150%;
    /* identical to box height, or 24px */

    color: #C5C6C7;

    /* Inside auto layout */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;

}

.case-detail p{
    /* FC Roskilde */

    font-family: 'Mona-Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 150%;
    /* identical to box height, or 36px */

    color: #F4F4F4;


    /* Inside auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;

}


.case-image {
    box-sizing: border-box;
    width: calc(50% - 1.6rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(133deg, #202326 0%, rgba(32, 35, 38, 0.4) 100%);
    border-radius: 2rem;
    text-emphasis: none;
    text-decoration: none;
    border: 0.1rem solid rgba(244, 244, 244, 0);
    transition: 
        border 0.2s cubic-bezier(0, 0.77, 0.21, 1),
        background 0.2s cubic-bezier(0, 0.77, 0.21, 1);
    height: fit-content;
}

.case-image:hover {
    background: linear-gradient(133deg, #202326 0%, rgb(32, 35, 38) 100%);
    border: 0.1rem solid rgba(244, 244, 244, 0.7);
}

.case-image img {
    width: 100%;
    border-radius: 1rem;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

.case-image video {
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
}

.case-image-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.case-image-tags span {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.6rem;
    background: rgba(244, 244, 244, 0.12);
    border: 0.1rem solid rgba(244, 244, 244, 0.7);
    border-radius: 0.8rem;
    font-family: 'Mona-Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 2rem;
    line-height: 110%;
    text-align: center;
    color: #F4F4F4;
    flex: none;
    order: 0;
    flex-grow: 0;
}


#next{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8rem;
    margin-top: -48rem;
    height: 64rem;
    position: relative;
    z-index: 3;
    /* Use a pseudo-element for the background */
    &::before {
        content: '';
        position: absolute;
        top: 30rem; /* Offset by the margin-top value */
        left: 0;
        width: 100%;
        height: calc(100% - 30rem);
        background: #F4F4F4;
        z-index: -1;
    }

}

#next h1{
    font-family: 'That-New-Pixel';
    font-style: normal;
    font-weight: 400;
    font-size: 8rem;
    text-align: center;
    margin: 0 !important;
    color: #0A0F15;
    line-height: 100%;
}

#next-button{
    /* Frame 9347 */
    position: relative;

    width: 20rem;
    height: 10rem;

    background: #0A0F15;
    border-radius: 1.6rem;
    z-index: 5;

    cursor: pointer;
}

#next-button #next-shadow{
    position: absolute;
    width: 110%;
    height: 120%;
    top: -10%;
    left: -5%;
    z-index: -2;
    content: "";
    filter: blur(16px);
    border-radius: 1.6rem;
    background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0, 0.77, 0.21, 1);
}

#next-button:hover #next-shadow{
    filter: blur(6px) !important;
    width: 105%;
    height: 110%;
    top: -5%;
    left: -2.5%;
}

#next-button::before {
    position: absolute;
    border-radius: 1.6rem;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit; /* Match the parent background */
    z-index: -1; /* Fully below the main background */
}

#next-button span{
    /* Kontakt */

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-family: 'Mona-Sans';
    text-align: center;
    font-style: normal;
    font-weight: 600;
    font-size: 3.2rem;
    font-stretch: 125%;
    text-transform: capitalize;

    color: #0A0F15;
    opacity: 0;

}

#custom-cursor {
    position: fixed;
    z-index: 10;
    width: 8rem;
    height: 8rem;
    background-color: #0A0F15;
    border-radius: 50%;
    pointer-events: none;
    display: none; /* Hidden initially */
    align-items: center;
    justify-content: center;
}

#custom-cursor img {
    height: 4rem;
}

/* Ensure default cursor does not appear */
body.custom-cursor-active {
    cursor: none;
}

#hand-container{
    position: absolute;
    width: 100%;
    height: 100%;
}

#handshake1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 6.4rem;
}

#handshake2{
    position: absolute;
    opacity: 0;
    height: 6.4rem;
    top: 18%;
    left: 38%;
}

#next a{
    font-family: 'Mona-Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 2rem;
    line-height: 110%;
    /* identical to box height, or 34px */
    text-align: center;

    color: #0A0F15;
    text-decoration: underline;
}

@media (max-width: 1400px) {
    #case-hero h1{
        font-size: 14rem;
    }
}

@media (max-width: 1000px) {

    #case-hero-container{
        padding-left: 4rem;
    }

    #case-hero-container img{
        height: 50rem;
        
    }
    #case-hero h1{
        font-size: 10rem;
    }

    #next{
        margin-top: -48rem;
    }

}

@media (max-width: 770px) {
    #case-hero img{
        height: 40rem !important;
    }

    #case-hero-container{
        padding-left: 1.6rem;
        margin-top: 24rem;
        margin-bottom: 3.2rem;
        gap: 4.8rem;
    }

    #case-hero h1{
        font-size: 15vw;
    }

    .case-detail p{
        font: 2rem;
    }

    #case-details{
        gap: 3.2rem;
        flex-direction: column;
    }

    .case-image-tags{
        gap: 0.8rem !important;
    }
    .case-image-tag{
        font-size: 1.4rem !important;
        padding: 0.8rem 1.2rem !important;
    }
    .case-image{
        padding: 1.2rem;
        width: 100% !important;
    }


    #next{
        gap: 4rem !important;
        height: 52rem;
    }
    #next h1{
        font-size: 4rem !important;
    }

    #next-button{
        transform: scale(0.8);
    }
}