* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/*** Sub Heading  */
.subhead {
    position: relative;
    height: 200px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    & img {
        position: absolute;
        width: 100%;
        height: 200%;
        z-index: -1;
    }

    & h2 {
        font-size: 1.2rem;
        color: white;
        text-align: center;
    }

    &::after {
        content:"";
        position: absolute;
        height: inherit;
        width: 100%;
        
        background-color: rgba(0,0,0,.3);
        backdrop-filter: blur(2px);
        z-index: -1;
    }
}


/*** Card Service <Section> **************************/
.services-header-cont {
    padding: 15px;

    display: flex;
    align-items: center;

    text-align: center;
    justify-content: center;

    & h2 {
        font-family: Oswald;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 500;
        color: black;
    }
}

.services-cont {
    display: grid;
    gap: .8rem;
    
    margin: 0 auto;
}

.service-card {
    height: clamp(300px, 20vw, 450px);
    padding: 15px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    color: burlywood;
    border: 5px solid tomato;

    & img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }

    .service-cont {
        position: absolute;
        width: 100%;
        height: 50%;
        left: 0;
        bottom: 0;
        padding: 20px;


        &::after {
            position: absolute;
            top:0;
            left: 0;
            content: "";
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,.5);
            backdrop-filter: blur(2px);
            z-index: -1;
        }
    }
    
    & h5 {
        display: flex;
        align-items: center;
        color: tomato;
    }

    & p {
        margin: 0;
        color: white;
        font-size: clamp(.9rem, 3vw, 1rem);
    }
}


/*** Brief Info Section *********************************************/
.bg-brinfo {
    padding-top: 2rem;
    #bgImg {
        display: none;
    }
}

.br-info {
    background-color: #335;
    min-height: 30vh;
    width: 95%;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}

.info-img-wrapper {
    height: clamp(350px, 45vw, 450px);
    
    /* background-color: #335; */

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;

    .img-info {
        height: clamp(300px, 35vw, 350px);
        width: 95%;
        margin: 0 auto;
        object-fit: cover;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}

.content-info {
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 20px;

    color: white;
    font-weight: 400;

    .info-para {
        font-size: .8rem;
    }
    
    .btn-success {
        background-color: yellowgreen;
        text-decoration: none;
        z-index: 99;
    }
}


/*** Solution <Section> **************************/

.solution {
    margin: 2rem 0 4rem 0;
}
    
.solution-title {
    background-color: var(--nttorange);
    padding: 15px;
    color: white;

    .soln-heading {
        width: 80%;
        margin: 0 auto;
        text-align: center;
    }
}

.solution-services {
    width: 95%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;

    .soln {
        .card img {
            height: 130px;
            width: 100%;
        }
    
        .card .soln-body {
            display: flex;
            flex-direction: column;
            justify-content:space-between;
    
            & h5 {
                text-align: center;
                font-size: 1rem;
            } 
            
            & a {
                color: blue;
            }
        }
    }
}


/*** Clients Section *****************************************************/
.clients {
    margin: 0 auto;

    .clients-heading {
        background-color: var(--nttorange);
        color: white;
        text-align: center;
        padding: 15px;
    }
}

.scroller {
    width: 95%;
    margin: 0 auto;
    overflow: hidden;
}

.scroller[data-animated=true] {
    overflow: hidden;

    -webkit-mask: linear-gradient(
        90deg,
        transparent, 
        white 15%, 
        white 85%,
        transparent
    );
    
    mask: linear-gradient(
        90deg,
        transparent, 
        white 15%, 
        white 85%,
        transparent
    );
}

.scroller[data-animated=true] .scroller-inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll 30s linear infinite;
}

.scroller-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;

    margin: 0;
    padding-inline: 0;
    list-style: none;

    
    padding-block: 2rem;
    gap: 1rem;

    & img {
        width: clamp(100px, 15vw, 175px);
        padding: .5rem;
        background-color: blanchedalmond;
        box-shadow: 0 0.5rem 1rem -.25rem rgb(30, 29, 29);
    }
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - .5rem));
    }
}

@media(min-width: 426px) {

    .services-cont {
        padding: 0;
        grid-template-columns: repeat(2, 1fr);
        width: 90%;

        .service-cont {
            padding: 10px;
        }
    }

    .solution-services {
        width: 90%;
    }

    .scroller {
        width: 90%;
    }

    .info-img-wrapper {
        .img-info {
            object-fit: cover;
            object-position: 0px -150px;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }
    }
}

@media(min-width: 768px) {
    
    .index-content {
        z-index: -2;
    }
    
    /*** SUBHEAD SECTION ****************************************/
    .subhead {
        & h2 {
            font-size: clamp(1.2rem, 3vw, 1.8rem);
        }

    }

    /*** Card Service <Section> **************************/
    .services {
        margin: 1rem 0 1rem 0;
        height: clamp(450px, 45vw, 550px);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .services-cont {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;

        .service-cont {
            height: 55%;
        }
    }

    .bg-brinfo {
        position: relative;
        height: fit-content;
        padding: 2rem 0;
        
        background-color: #fff;

        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;

        #bgImg {
            display: block;
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            z-index: 1;
        }

        &::after {
            position: absolute;
            content: '';
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            z-index: 2;
            
            background-color: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(1px);
        }
    }

    .br-info {
        position: relative;
        width: 90%;
        height: 85%;
        background-color: white;

        display: flex;
        /* justify-content: space-evenly; */
        align-items: center;
        gap: 3rem;
        z-index: 4;
    }

    .info-img-wrapper {
        position: relative;
        width: 175%;
        height: 80%;
        margin-right: 20px;
        z-index: 20;
        overflow: visible;

        .img-info {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            z-index: 22;
            border-radius: 3px;
        }

        &::before {
            content: '';
            position: absolute;
            right:-20px;
            top: 20px;

            width: 100%;
            height: 100%;

            background-color: var(--nttorange);
            backdrop-filter: 1px;
            box-shadow: 0 0 5px #335;
            border-radius: 3px;

            z-index: 15;
        }

        &::after {
            content: '';
            position: absolute;
            right: 20px;
            top: -20px;

            width: 100%;
            height: 100%;

            background-color: var(--nttblue);
            backdrop-filter: 1px;
            box-shadow: 0 0 5px #335;
            border-radius: 3px;

            z-index: 15;
        }
    }
    
    .content-info-wrapper {
        background-color: white;
    }
    
    .content-info {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        z-index: 5;

        padding: 10px;
    
        color: rgb(34, 34, 34);

        .brinfo-heading {
            font-family: Oswald;
            font-size: 3rem;
            font-weight: 500;
        }
    
        .info-para {
            font-size: 1.1rem;
        }
        
        & a {
            z-index: 99;
        }
    }


    /*** Solution <Section> *****************************/
    .solution {
        margin: 4rem 0 6rem 0;

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .solution .solution-title {
        background-color: transparent;

        & h2 {
            width: 100%;
            color: black;
            font-family: Oswald;
            font-weight: 500;
            font-size: 3rem;
        }
    }

    .solution .solution-services {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }


    /*** Clients <Section> ******************************/
    .clients {
        border: 1px solid aliceblue;
        background-color: aliceblue;
    }

    .clients .clients-heading {
        margin-top: 4rem;
        background-color: transparent;

        & h2 {
            font-family: Oswald;
            font-size: 3rem;
            font-weight: 500;
            color: black;
        }
    }

    .clients .scroller {
        width: 85%;
        margin-bottom: 6rem;

        .scroller-inner {
            justify-content: space-evenly;
        }
    }
    
}

@media(min-width: 1024px) {
    .services {
        margin: 3rem 0 3rem 0;
    }
    .services-cont {
        width: 80%;
        gap: 4rem;

        .service-cont {
            padding: 20px;
        }
    }

    /*** Brief Info Section *********************************************/
    .bg-brinfo {
        height: clamp(550px, 45vw, 650px); 

        .services-header-cont {
            display: none;
        }
    }

    .br-info {
        width: 80%;
    }

    .info-img-wrapper {
        width: 150%;
    }

    /*** Solution <Section> **************************/
    .solution {
        margin: 4rem 0 6rem 0;
    }

    .solution .solution-services {
        position: relative;
        width: 80%;

        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media(min-width: 1440px) {
    .services {
        margin: 5rem 0 5rem 0;
    }
    .br-info {
        width: 65%;
        height: clamp(450px, 45vw, 550px);
    }


    /*** Clients <Section> ******************************/
    .clients {
        background-color: transparent;
    }
}
