body{
    background-color: #262628;
}


.cases{
    width: 100%;
    height: auto;
    min-height: 100vh;
    background-color: #262628;
}

.cases-title{
    width: 100%;
    height: 200%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cases-title h1{
    font-size: 60px;
    background-image: linear-gradient(to right, rgb(58, 199, 226) 0%, rgb(9, 106, 175) 80%, rgb(26 88 165) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 350;
}

.cases-title h2{
    width: 70%;
    text-align: center;
    font-size: 28px;
    margin: 0;
    font-weight: 400;
    color: #fff;
}

.caseA{
    width: 100%;
    height: 900px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.caseB{
    width: 100%;
    height: 900px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3F5A78;
}

.success-case{
    width: 85%;
    height: 85%;
    display: flex;
    border-bottom: 2px solid grey;
}

.case-left{
    width: 40%;
    height: 85%;
    display: flex;
    flex-direction: column;
    min-height: 765px;
}

.client-title{
    width: 80%;
    height: 50%;
    border-bottom: 3px solid grey;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.client-title h1{
    font-size: 180px;
    font-weight: 200;
    margin: 0;
    color: white;
}

.client-title h2{
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    margin-left: 5px;
    color: white;
}

.client-desc{
    width: 80%;
    height: 50%;
}

.client-desc p{
    text-align: justify;
    text-indent: 10px;
    margin-left: 5px;
    color: white;
}

.case-right{
    width: 60%;
    height: 100%;
}

.container-photos-6{
    width: 100%;
    height: 90%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.photo{
    width: auto;
    height: auto;
    background-color: #0099ff;
}

.photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container-photos-6 .photo:nth-child(1){
    grid-area: 1 / 1 / 3 / 3; 
}

.container-photos-6 .photo:nth-child(2){
    grid-area: 1 / 3 / 3 / 4; 
}

.container-photos-6 .photo:nth-child(3){
    grid-area: 1 / 4 / 2 / 5; 
}

.container-photos-6 .photo:nth-child(4){
    grid-area: 3 / 1 / 4 / 2;  
}

.container-photos-6 .photo:nth-child(5){
    grid-area: 3 / 2 / 4 / 4;
}

.container-photos-6 .photo:nth-child(6){
    grid-area: 2 / 4 / 4 / 5; 
}

.container-photos-3 {
    width: 100%;
    height: 90%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.container-photos-3 .photo:nth-child(1){
    grid-area: 1 / 1 / 3 / 3; 
}

.container-photos-3 .photo:nth-child(2){
    grid-area: 1 / 3 / 4 / 5; 
}

.container-photos-3 .photo:nth-child(3){
    grid-area: 3 / 1 / 4 / 3; 
}

.container-photos-1{
    width: 100%;
    height: 90%;
}

.container-photos-1 .photo{
    width: 100%;
    height: 100%;
}

.container-photos-1 .photo img{
    object-fit: cover;
}

@media screen and (max-width: 380px){

    .cases{
        margin-top: 50px;
    }

    .cases-title h2{
        width: 90%;
        font-size: 18px;
    }

    .case{
        height: auto;
        min-height: 900px;
    }

    .success-case{
        flex-direction: column;
    }

    .case-left {
        width: 123%;
        height: 85%;
        min-height: 725px;
    }

    .client-title h2{
        margin-bottom: 8px;
    }

    .case-right{
        width: 100%;
    }

    .container-photos-6, .container-photos-3, .container-photos-1{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .container-photos-6 .photo, .container-photos-3 .photo, .container-photos-1 .photo{
        width: 290px;
        height: 290px;

    }

    .container-photos-6 .photo:last-child, .container-photos-3 .photo:last-child, .container-photos-1 .photo:last-child{
        margin-bottom: 50px;
    }

    .caseB .success-case{
        margin-bottom: 50px;
    }

}