#trustedBy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 4rem 2rem 4rem;
    max-width: 80rem;
    box-sizing: border-box;
    margin: -0.5rem auto 1rem auto;
}

#trustedBy h4 {
    font-size: clamp(1.25rem, 5vw, 2rem);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin: 0.75rem 0;
    line-height: clamp(1rem, 5vw, 1.5rem);
    text-align: center;
}

#trustedBy h4 b {
    color: var(--primary-accent-color);
}

#trustedBy #trustedBy-wall {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    width: 100%;
    position: relative;
}

#trustedBy #trustedBy-wall::before {
    content: '';
    box-shadow: inset 0 -4rem 20px 2rem white;
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 12rem;
    z-index: 50;
}

#trustedBy #trustedBy-wall img {
    height: 3.5rem;
    margin: 1rem 2rem;
}

#trustedBy #trustedBy-wall #copy1, 
#trustedBy #trustedBy-wall #copy2, 
#trustedBy #trustedBy-wall #copy3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Increased duration for slower animation */
    animation: scroll-infinite 35s linear infinite;
}

@media only screen and (max-width: 800px) {
    #trustedBy {
        padding: 0 4rem 0rem 4rem;
    }
    
    #trustedBy h4 {
        /* Maintain larger text even on smaller screens */
        font-size: clamp(1.2rem, 5vw, 1.75rem);
        line-height: clamp(1.2rem, 7vw, 1.75rem) !important;
    }

    #trustedBy #trustedBy-wall img {
        /* Smaller logos on medium screens */
        height: 3.5rem;
        margin: 1rem 1.5rem;
    }
}

@media only screen and (max-height: 720px) and (max-width: 800px) {
    #trustedBy #trustedBy-wall img {
        height: 3.5rem; /* Adjusted from 4rem to be more consistent */
        margin: 0.75rem 1.5rem;
    }

    #trustedBy h4 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        line-height: clamp(1.2rem, 7vw, 1.75rem) !important;
        margin-bottom: -0.25rem;
        margin-top: 0;
    }

    #trustedBy {
        padding: 0 2rem 0rem 2rem !important;
        margin-top: 0;
    }

    #hero-images {
        height: min(16rem, calc(100vw - 2rem)) !important;
        width: min(16rem, calc(100vw - 2rem)) !important;
    }
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media screen and (max-width: 960px) {
    #trustedBy {
        padding: 1rem 2rem 4rem 2rem;
    }

    #trustedBy #trustedBy-wall img {
        height: 2.25rem !important; /* Smaller than the original 3.5rem */
        margin: 0.75rem 1.25rem;
    }
}

@media screen and (max-width: 640px) {
    #trustedBy {
        padding: 1rem 0 3rem 0;
    }
    
    #trustedBy #trustedBy-wall img {
        height: 2.25rem !important; /* Even smaller for very small screens */
        margin: 0.5rem 1rem;
    }

    #trustedBy h4 {
        /* Keep text relatively larger even on very small screens */
        font-size: clamp(1.1rem, 5vw, 1.4rem);
    }
}

@media screen and (max-width: 520px) {
    #trustedBy #trustedBy-wall img {
        height: 2rem !important; /* Even smaller for very small screens */
        margin: 0.5rem 1rem;
    }
}

#solutionsHeader {
    text-align: center;
    box-sizing: border-box;
    padding: 6rem 6rem 2rem 6rem;
    background: #f1f9fe;
}

#solutionsHeader h2 {
    max-width: 75rem;
    margin: 0 auto;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: clamp(2.3rem, 5vw, 3.5rem);
}

#solutionsHeader b {
    color: var(--primary-accent-color);
    font-weight: 700;
}

@media screen and (max-width: 800px) {
    #solutionsHeader {
        padding: 2rem;
    }
    #solutionsHeader h2 {
        font-size: clamp(1.5rem, 6vw, 3rem);
        font-weight: 400;
        line-height: clamp(1.8rem, 8vw, 3.5rem);
    }
}


#catalog {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 4rem;
    box-sizing: border-box;
    row-gap: 1rem;
}

#catalog span, #catalog h3 {
    text-align: center;
}

#catalogBtns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(4rem);
    transition: all 0.5s ease-in-out;
    transition-delay: 0.2s;
}

#catalog.show #catalogBtns {
    opacity: 1;
    transform: translateY(0);
}

#catalog input:nth-child(2) {
    background: white;
    color: black;
}

#catalog img {
    width: 100%;
    max-width: 36rem;
    opacity: 0;
    transform: translateY(4rem);
    transition: all 0.5s ease-in-out;
    transition-delay: 0.1s;
}

#catalog.show img {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 800px) {
    #catalog {
        padding: 2rem;
    }

    #catalog input[type=button] {
        padding: 0.5rem 2rem;
        border-radius: 0.5rem;
        font-size: 0.8rem;
    }
    
}

.imageNtext {
    background: #f1f9fe;
}


#promise {
    display: flex;
    flex-direction: row;
    column-gap: 6rem;
    align-items: center;
    width: 100%;
    padding: 8rem 0 4rem 0;
    padding-left: max(4rem, calc(50vw - 35rem));
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;
}

#promiseText {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    max-width: 30rem;
}

#promiseText h2 {
    font-size: 3rem;
    line-height: 4rem;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
}

#promiseText h2 b {
    color: var(--primary-accent-color);
    font-weight: 600;
}

#promiseText > span {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 300;
    max-width: 60rem;
    color: black;
}

#promiseText > span a {
    text-decoration: none;
    color: var(--primary-accent-color);
    font-weight: 700;
}

#promiseSummary {
    display: flex;
    flex-direction: row;
    column-gap: 1.5rem;
    width: max-content;
}

#promiseSummary img {
    height: 4rem;
    width: 4rem;
}

#promiseSlider {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 36rem;
    height: 24rem;
    position: relative;
}

.promiseSliderItem {
    position: absolute;
    left: 0;
    max-width: 20rem;
    width: 18rem;
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
}

@keyframes card12 {
    0% {
        filter: blur(0);
        transform: translateX(0rem) scale(1);
        z-index: 1;
    }
    100% {
        filter: blur(4px);
        transform: translateX(20rem) scale(0.65);
        z-index: 0;
    }
}

@keyframes card21 {
    0% {
        filter: blur(4px);
        transform: translateX(20rem) scale(0.65);
        z-index: 0;
    }
    100% {
        filter: blur(0);
        transform: translateX(0rem) scale(1);
        z-index: 1;
    }

} 

@keyframes card23 {
    0% {
        filter: blur(4px);
        transform: translateX(20rem) scale(0.65);
        z-index: 0;
    }
    100% {
        filter: blur(4px);
        transform: translateX(20rem) scale(0.65);
        z-index: -1;
    }
}

@keyframes card32 {
    0% {
        filter: blur(4px);
        transform: translateX(20rem) scale(0.65);
        z-index: -1;
    }
    100% {
        filter: blur(4px);
        transform: translateX(20rem) scale(0.65);
        z-index: 0;
    }
}

@keyframes card31 {
    0% {
        filter: blur(4px);
        transform: translateX(20rem) scale(0.65);
        z-index: -2;
    }
    0.01% {
        filter: blur(2px);
        transform: translateX(0rem) scale(0.25);
        z-index: -2;
    }
    100% {
        filter: blur(0);
        transform: translateX(0rem) scale(1);
        z-index: -1;
    }
}

@keyframes card13 {
    0% {
        filter: blur(0);
        transform: translateX(0rem) scale(1);
        z-index: -1;
    }
    99.99% {
        filter: blur(2px);
        transform: translateX(-2rem) scale(0.25);
        z-index: -1;
    }
    100% {
        filter: blur(4px);
        transform: translateX(20rem) scale(0.65);
        z-index: -1;
    }
}

.card1 { animation: card31 0s forwards; }
.card2 { animation: card12 0s forwards; }
/* .card2 { animation: card32 0s backwards; } */
/* .card3 { animation: card23 0s forwards; } */

.promiseSliderItem.hide * {
    transition: all 0.5s ease-in-out;
    opacity: 0.5;
}

.promiseSliderItem img.client {
    width: 100%;
    height: 4rem;
    padding-bottom: 0.25rem;
    object-fit: contain;
    object-position: left;
    border-bottom: solid 0.1rem #c4c4c4;
}

.promiseSliderItem img.promiseIcon {
    width: 5rem;
    height: 5rem;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

.promiseSliderItem span {
    padding: 0.1rem 0.7rem;
    border-radius: 3rem;
    font-size: 0.75rem;
    background: #c8e7ff;
    color: var(--primary-accent-color);
    font-weight: 500;
    width: max-content;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.promiseSliderItem h3 {
    color: var(--primary-accent-color);
    font-size: 3rem;
    font-weight: 600;
    margin: 0;
}

.promiseSliderItem h3 img {
    width: 1.5rem;
    height: 2rem;
    object-fit: contain;
    object-position: center;
    margin-left: 0.5rem;

}

#controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transform: translateY(10rem);
    width: 22rem;
    box-sizing: border-box;
    padding: 0 2rem;
    align-items: center;
}

#pageControls {
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
}

#pageControls div {
    background: var(--primary-accent-color);
    width: 1rem;
    height: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.5s;
}

#pageControls div.active {
    opacity: 1;
}

@media screen and (max-width: 1278px) {
    #promise {
        column-gap: 2rem;
    }
}

@media screen and (max-width: 1078px) {
    #promiseText {
        max-width: 24rem;
    }

    #promiseText h2 {
        font-size: 2.5rem;
        line-height: 3rem;
    }
}

@media screen and (max-width: 958px) {

    #promise {
        flex-direction: column;
        align-items: center;
        padding: 4rem 2rem;
    }

    #promiseText {
        max-width: 34rem;
        text-align: center;
        align-items: center;
    }

    #promiseSlider {
        width: 22rem;
    }

}

@media screen and (max-width: 420px) {
    #promiseSlider {
        width: 17rem;
    }

    #promiseText h2 {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    #promiseText span {
        font-size: 1rem;
        line-height: 1.4rem;
    }

    .promiseSliderItem {
        padding: 1rem 1.5rem;
        width: 14rem;
    }
    .promiseSliderItem h3 {
        margin: 0.5rem 0;
    }

    .promiseSliderItem img.promiseIcon {
        width: 4rem;
        height: 4rem;
        bottom: 1.75rem;
        right: 1.5rem;
    }
}

#callToAction {
    padding-top: 0 !important;
    display: flex;
    align-items: center;
    flex-direction: column;
}
#cta {
    padding: 0 !important;
    justify-content: space-between !important;
    max-width: 69rem;
}
#callToAction, #cta {
    background: white !important;
    padding-bottom: 3rem !important;
}

#cta h2 { color: var(--primary-accent-color) !important; }
#ctaText > span { color: black !important; }
#cta a { background: black !important; }
#cta img {
    max-width: 20rem;
} 

#homeCtaGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 0;
}

.ctaGridItem {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 1rem;
    max-width: 14.5rem;

}

.ctaGridItem img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.ctaGridItem span {
    font-size: 1rem;
    font-weight: 400;
    padding-bottom: 0;
    color: #707070;
    text-align: left !important;
}

@media screen and (max-width: 800px) {
    #homeCtaGrid {
        width: max-content;
        grid-template-columns: repeat(1, 1fr);
    }
}
