.container {
    width: 85%;
    padding: 0;
}

.communication-banner-div {
    padding-top: 18rem;
    padding-bottom: 2rem;
    text-align: center;
}

.communication-banner-div h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #004188;
    margin-bottom: 2rem;
}

.communication-banner-div h2 {
    font-size: 4.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 2rem;
}

.communication-banner-div p {
    font-size: 2.5rem;
    color: #333333;
    letter-spacing: -1px;
    color: #cc5500;
}

/* Blue section with inverted smooth curve */
.blue-curve-section {
    position: relative;
    height: auto;
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    padding: 17rem 0 3rem;
}

.blue-curve-section::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 130px;
    background: #fff;
    border-bottom-left-radius: 100% 100%;
    border-bottom-right-radius: 100% 100%;
}

.blue-curve-container {
    margin-top: 5rem;
}

.ringCentral-intro-grid {
    display: grid;
    align-items: center;
    gap: 2rem;
    margin-bottom: 7rem;
    justify-items: center;
}

.ringCentral-button-div {
    text-align: center;
}

.ringCentral-intro-btn {
    background: #ffffff;
    color: #61adf4;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    padding: 1rem 4rem;
    transition: all 0.3s ease;
}

.ringCentral-intro-btn:hover {
    text-decoration: none;
    color: #579bdb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(41 43 44 / 28%);
}

.ringCentral-intro-text {
    font-size: 2.3rem;
    color: #ffffff;
    margin-top: 3rem;
    margin-bottom: 5rem;
    text-align: center;
}


.blue-curve-section h3 {
    font-size: 3.8rem;
    font-weight: 400;
    text-align: center;
    color: #fff;
    margin-bottom: 6rem;
}

.blue-curve-container2 {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 5rem 7rem;
    margin: 4rem auto;
}

.blue-curve-container3 {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 5rem 7rem;
    margin-top: 2rem;
}

.blue-curve-container2 h4 {
    font-size: 4.3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 5rem;
    border-bottom: 1.5px solid #0000002b;
}

.blue-curve-container2 p {
    text-align: center;
    font-size: 2.2rem;
    color: #333333cf;
    margin-bottom: 3rem;
}

.ctn-btn {
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    padding: 1rem 4rem;
    transition: all 0.3s ease;
}

.ctn-btn:hover {
    background-color: #166e7b;
    text-decoration: none;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 137, 153, 0.3);
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    padding: 2rem 3rem;
}

.performance-info-heading {
    font-size: 3rem;
    color: #004188;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.performance-info-heading::after {
    content: "";
    display: block;
    width: 35px;
    height: 4px;
    margin-top: .5rem;
    background-color: #cc5500;
}

.performance-info-text {
    font-size: 2rem;
    color: #333333b8;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 1.5rem 2rem 0;
    /* border-bottom: 1px solid #f1f5f9; */
}

.card-header .card-heading {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-body {
    padding: 0 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body p {
    color: #64748b;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 1.75rem;
    line-height: 1.5;
}

.feature-icon {
    width: 45px;
    height: 45px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-icon img {
    width: 25px;
}

.client-story-video-section h5 {
    font-size: 4rem;
    font-weight: 600;
    text-align: center;
    margin: 8rem 0 3rem;
}

.client-story-video-section h6 {
    font-size: 4rem;
    font-weight: 400;
    margin: 0 0 9rem;
    text-align: center;
    color: #cc5500;
}

/* GRID LAYOUT */
.client-story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    margin-bottom: 60px;
}

.client-story-info {
    text-align: left;
    color: #444444e1;
    line-height: 1.7;
    font-size: 2.2rem;
    font-weight: 500;
    width: 80%;
}

.client-story-video-div {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #000;
}

.client-story-video-div iframe {
    width: 100%;
    height: 350px;
    border: none;
}

.client-story-divider {
    width: 100%;
    height: 1.5px;
    background: #dcdcdc;
    margin: 25px auto 55px;
}

.crm-div {
    margin: 5rem 0 0;
    border-top: 1.5px solid #d2d1d1;
    padding-top: 3rem;
}

.crm-div p {
    font-size: 2.6rem;
    color: #004188;
    font-weight: 500;
    text-align: center;
}

/* ----- Animation Items ------ */
.anim-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* slide left right up animation css */

:root {
    --slide-distance: 40px;
    --slide-duration: 1500ms;
    /* ⬅ slowed down */
    --slide-ease: cubic-bezier(.2, .9, .2, 1);
}

/* common styles for items that will animate */
.animate-on-scroll {
    opacity: 0;
    transform: translateX(0) translateY(0);
    transition-property: opacity, transform;
    transition-duration: var(--slide-duration);
    transition-timing-function: var(--slide-ease);
    will-change: transform, opacity;
}

/* initial offsets based on direction */
.animate-on-scroll[data-direction="left"] {
    transform: translateX(calc(-1 * var(--slide-distance)));
}

.animate-on-scroll[data-direction="right"] {
    transform: translateX(var(--slide-distance));
}

.animate-on-scroll[data-direction="up"] {
    transform: translateY(calc(-1 * var(--slide-distance)));
}

.animate-on-scroll[data-direction="down"] {
    transform: translateY(var(--slide-distance));
}

/* when element becomes visible */
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* testimonial css */

.testimonial-section {
    padding: 8rem 0;
}

.carousel-inner>.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 200px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.carousel-inner>.item.active {
    opacity: 1;
    position: relative;
}

.test-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(2, 40, 60, 0.08);
}

.test-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-quote {
    color: #000;
    font-style: italic;
    margin: 15px 0 8px;
    font-size: 2rem;
    line-height: 1.7;
    max-width: 80%;
    text-align: center;
}

.test-who {
    color: #333333;
    font-size: 2rem;
}

.test-who a {
    font-weight: 600;
    color: #333333;
    text-decoration: none;
}

/* ====== Carousel Indicators ====== */
.carousel-indicators {
    position: static;
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-indicators li {
    background: #ccc;
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicators .active {
    background: #000;
}

/* FIX: prevent hidden slides from blocking clicks */
.carousel-inner>.item {
    pointer-events: none;
    z-index: 1;
}

.carousel-inner>.item.active {
    pointer-events: auto;
    z-index: 2;
}


/* ====== Scroll Reveal ====== */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* MAIN WRAPPER */

.kx-cta-container {
    text-align: center;
}

.kx-cta-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    white-space: nowrap;
    opacity: 0;
    color: #cc5500;
    margin-top: 3.5rem;
}

.kx-cta-animate .kx-cta-wrapper {
    opacity: 1;
}

/* PHONE WITH | */
.kx-cta-phone {
    opacity: 0;
    transform: translateY(6px);
}

/* REVEAL BOX */
.kx-cta-reveal-box {
    display: inline-block;
    overflow: hidden;
    max-width: 0;
    --kx-width: 500px;
}

/* TEXT */
.kx-cta-text {
    display: inline-block;
    transform: translateX(100%);
    text-align: left;
}

/* ANIMATIONS (ONLY APPLIED WHEN CLASS ADDED) */
.kx-cta-animate .kx-cta-phone {
    animation: kxFadeInPhone 0.7s ease forwards;
}

.kx-cta-animate .kx-cta-reveal-box {
    animation: kxExpandBox 0.9s ease forwards;
    animation-delay: 0.9s;
}

.kx-cta-animate .kx-cta-text {
    animation: kxSlideIn 2s ease forwards;
    animation-delay: 0.9s;
}

@keyframes kxFadeInPhone {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kxExpandBox {
    from {
        max-width: 0;
    }

    to {
        max-width: var(--kx-width);
    }
}

@keyframes kxSlideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@media (min-width: 992px) and (max-width: 1200.98px) {

    .container {
        width: 90%;
    }

    .blue-curve-container2 {
        padding: 5rem 5rem;
    }

}

/* Responsive Adjustments */
@media (min-width: 768.98px) and (max-width: 991.98px) {

    .blue-curve-section::before {
        top: -80px;
        height: 160px;
    }

    .container {
        width: 90%;
    }

    .kx-cta-wrapper {
        font-size: 3rem;
    }

    .blue-curve-container2 {
        padding: 5rem 3rem;
    }

    .client-story-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .client-story-info {
        text-align: center;
    }

    .client-story-video-div iframe {
        height: 250px;
    }


    .performance-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 0rem;
    }

    .testimonial-section {
        padding: 6rem 0;
    }

}

@media (max-width: 767.98px) {

    .blue-curve-container2 {
        padding: 5rem 2rem;
    }

    .communication-banner-div {
        padding-top: 15rem;
        padding-bottom: 8rem;
    }

    .blue-curve-section::before {
        top: -60px;
        height: 130px;
    }

    .blue-curve-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1rem;
    }

    .container {
        width: 90%;
    }

    .kx-cta-wrapper {
        flex-direction: column;
        font-size: 2.8rem;
        white-space: normal;
    }

    .kx-cta-text {
        text-align: center;
    }

    .test-who {
        text-align: center;
    }

    .test-quote {
        max-width: 95%;
    }

    .communication-banner-div h2 {
        font-size: 3.8rem;
    }

    features-grid {
        grid-template-columns: 1fr;
    }

    .blue-curve-container2 h4 {
        font-size: 3.5rem;
    }

    .blue-curve-container3 {
        padding: 3rem 0rem;
    }

    .performance-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 2rem;
        margin-bottom: 2rem;
    }

    .client-story-video-section h5 {
        font-size: 3.5rem;
    }

    .client-story-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        margin-bottom: 10px;
        justify-items: center;
    }

    .client-story-divider {
        margin: 22px auto 40px;
    }

    .client-story-video-section h6 {
        font-size: 3.3rem;
        margin: 0 0 6rem;
    }

    .client-story-info {
        width: 95%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

}

@media (max-width: 480.98px) {

    .blue-curve-section {
        padding: 10rem 0 3rem;
    }

    .blue-curve-container2 {
        padding: 4rem 1.5rem;
    }

    .blue-curve-section::before {
        top: -50px;
        height: 110px;
    }

    .container {
        width: 95%;
    }

    .blue-curve-info-heading {
        line-height: 1.3;
    }

}