/* NEW ANIMATIONS */
:root {
    --slide-distance: 40px;
    --slide-duration: 1500ms;
    --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;
    }
}

/* NEW ANIMATION END */

.container {
    width: 85%;
}

.giffy-banner {
    padding-top: 18rem;
    padding-bottom: 2rem;
}

.giffy-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.giffy-banner-info-div h1 {
    margin-top: 0;
    font-size: 4.5rem;
    color: #000;
    font-weight: 600;
    margin-bottom: 2rem;
    display: grid;
}

.giffy-banner-info-div p {
    font-size: 2rem;
    color: #333333;
    margin-bottom: 3rem;
}

.giffy-banner-btn {
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    padding: 1.2rem 3rem;
    transition: all 0.3s ease;
}

.giffy-banner-btn:hover {
    background-color: #166e7b;
    text-decoration: none;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 137, 153, 0.3);
}

.giffy-banner-image-div p {
    font-size: 2.1rem;
    margin-bottom: 2rem;
}

/* 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 {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 5rem 7rem;
}

.blue-curve-section h2 {
    font-size: 3.2rem;
    color: #000000;
    margin-top: 0.5rem;
    text-align: center;
    line-height: 1.3;
    width: 80%;
    margin: 1rem auto 4rem;
}

.blue-curve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    padding: 2rem 3rem;
}

.blue-curve-info-heading {
    font-size: 3rem;
    color: #004188;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.blue-curve-info-heading::after {
    content: "";
    display: block;
    width: 35px;
    height: 4px;
    margin-top: .5rem;
    background-color: #cc5500;
}

.blue-curve-info-text {
    font-size: 2rem;
    color: #333333b8;
    margin-bottom: 2rem;
}

.blue-curve-info-schedule-text {
    font-size: 2rem;
    color: #333333b8;
    font-weight: 600;
}

.blue-curve-section h3 {
    font-size: 5rem;
    text-align: center;
    margin: 5rem 0;
    color: #000;
    font-weight: 600;
    letter-spacing: 1px;
}

.blue-curve-image-div img {
    border-radius: 20px;
}

.blue-curve-image-div-reverse img {
    border-radius: 20px;
}

.price-section {
    text-align: center;
    border-top: 1.5px solid #00000033;
    margin-top: 5rem;
    padding-top: 1.5rem;
}

.price-section h4 {
    font-weight: 700;
    font-size: 5rem;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

/* ===== Price Grid ===== */
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    gap: 5rem;
    padding: 0 3rem;
}

/* ===== Price Card ===== */
.price-card {
    border-radius: 10px;
    box-shadow: 0 0 5px rgb(0 0 0 / 25%);
    overflow: hidden;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.price-card-header {
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    padding: 15px 10px;
}

.price-card-body {
    padding: 15px 0px 3rem;
    text-align: center;
}

.price-amount {
    font-size: 22px;
    color: #cc5500;
    font-weight: 700;
    margin-bottom: 15px;
}

.price-amount span {
    color: #777;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
}

.price-features {
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
}

.price-features p {
    margin: 0;
    padding: 13px 15px;
    font-size: 1.6rem;
    color: #333;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.price-btn {
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    margin: 20px auto 10px;
    transition: background-color 0.3s ease;
}

.price-btn:hover {
    text-decoration: none;
    color: #fff;
    background-color: #166e7b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 137, 153, 0.3);
}

.price-section h5 {
    font-size: 3.5rem;
    color: #183659;
    margin-top: 4.5rem;
    letter-spacing: 1px;
    border-top: 1.5px solid #00000033;
    padding-top: 4rem;
}

/* 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-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: 1280.98px) {
    .container {
        width: 90%;
    }

    .blue-curve-container {
        padding: 5rem 5rem;
    }
}

/* Responsive Adjustments */
@media (min-width: 768.98px) and (max-width: 991.98px) {
    .blue-curve-section::before {
        top: -80px;
        height: 160px;
    }

    .giffy-banner-grid {
        grid-template-columns: 1fr;
    }

    .blue-curve-section h2 {
        width: 90%;
    }

    .blue-curve-image-div-reverse {
        order: 2;
    }

    .blue-curve-info-div-reverse {
        order: 1;
    }

    .container {
        width: 90%;
    }

    .blue-curve-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 3rem;
    }

    .price-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 2rem;
    }

    .kx-cta-wrapper {
        font-size: 3rem;
    }

    .blue-curve-container {
        padding: 5rem 3rem;
    }
}

@media (max-width: 767.98px) {
    .blue-curve-container {
        padding: 5rem 0rem;
    }

    .giffy-banner {
        padding-top: 15rem;
        padding-bottom: 8rem;
    }

    .giffy-banner-grid {
        grid-template-columns: 1fr;
    }

    .blue-curve-section::before {
        top: -60px;
        height: 130px;
    }

    .blue-curve-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 3rem;
    }

    .container {
        width: 90%;
    }

    .blue-curve-image-div-reverse {
        order: 2;
    }

    .blue-curve-info-div-reverse {
        order: 1;
    }

    .price-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 2rem;
    }

    .blue-curve-section h3 {
        font-size: 4rem;
    }

    .price-section h4 {
        font-size: 4rem;
    }

    .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%;
    }

    .blue-curve-section h2 {
        width: 87%;
        margin: 1rem auto 2rem;
    }
}

@media (max-width: 480.98px) {
    .giffy-banner-info-div h1 {
        font-size: 3.8rem;
    }

    .blue-curve-section {
        padding: 10rem 0 3rem;
    }

    .blue-curve-container {
        padding: 4rem 1.5rem;
    }

    .blue-curve-section::before {
        top: -50px;
        height: 110px;
    }

    .blue-curve-grid {
        grid-template-columns: 1fr;
        padding: 2.5rem 0rem;
        gap: 2rem;
    }

    .container {
        width: 95%;
    }

    .blue-curve-section h2 {
        width: 100%;
        font-size: 3.1rem;
    }

    .blue-curve-info-heading {
        line-height: 1.3;
    }

    .blue-curve-section h3 {
        font-size: 3.8rem;
        margin: 5rem 0 2.5rem;
    }

    .price-section h4 {
        font-size: 3.8rem;
    }

    .price-grid {
        grid-template-columns: 1fr;
        padding: 0 0rem;
    }
}