/* =========================================================
   Code Intelligence Responsive Style
   Requires: ci-variables.css + ci-style.css
========================================================= */

@media (min-width: 992px) {
    .ci-home-hero-container .shape {
        display: flex !important;
        justify-content: flex-end;
        direction: ltr;
        margin-bottom: 0;
    }

    .ci-ltr .ci-home-hero-container .shape {
        justify-content: flex-start;
    }

    .ci-home-hero .ci-orbit-wrapper {
        flex-shrink: 0;
        width: 117%;
        max-width: calc(100svh - 52px);
        margin-inline: 0 !important;
        margin-right: calc(clamp(16px, 2vw, 32px) + 8px) !important;
    }

    .ci-ltr .ci-home-hero .ci-orbit-wrapper {
        margin-left: calc(clamp(16px, 2vw, 32px) + 8px) !important;
        margin-right: 0 !important;
    }
}

/* Half-visible orbit beside the copy on small tablets only. */

/* Preserve the hero size at a 1520.8px viewport, then scale with wider viewports. */
@media (min-width: 1520.8px) {
    .ci-home-hero-container {
        max-width: 86.796423vw;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .ci-process-road .ci-process-step-1 > .ci-process-icon {
        inset-inline-start: calc(100% - var(--process-icon-size) - 7px);
    }
}

@media (max-width: 1399.98px) {
    .ci-process-step {
        width: auto;
    }

    .ci-process-step h3 {
        font-size: 0.96rem;
    }

    .ci-process-step p {
        font-size: 0.82rem;
    }
}

@media (min-width: 992px) and (max-height: 850px) {
    .ci-home-hero .ci-hero-title,
    .ci-home-hero .ci-hero-subtitle {
        margin-bottom: 0.75rem !important;
    }

    .ci-home-hero .ci-hero-description {
        line-height: 1.65;
    }

    .ci-home-hero .ci-hero-content > .d-flex,
    .ci-home-hero .ci-stats-card {
        margin-top: 2.2rem !important;
    }

    .ci-home-hero .ci-stats-card {
        margin-top: 4.25rem !important;
    }
}

@media (max-width: 1199.98px) {
    :root {
        --ci-section-padding: 90px;
    }

    .ci-hero-content {
        text-align: center;
    }

    .ci-hero-description,
    .ci-stats-card {
        margin-inline: auto;
    }

    /* .ci-process-wave {
        display: none;
    } */

    .ci-device-showcase {
        max-width: 620px;
        margin-inline: auto;
    }

    .ci-project-content {
        text-align: center;
    }

    .ci-project-divider,
    .ci-project-content .ci-project-content-description,
    .ci-project-content h3 {
        margin-inline: auto;
    }

    .ci-contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .ci-map-placeholder {
        margin-top: 0 !important;
        height: 100%;
        min-height: 300px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --ci-section-padding: 80px;
    }

    .ci-navbar {
        max-height: none;
        border-radius: 28px !important;
    }

    .ci-navbar::before,
    .ci-navbar-container.is-scrolled .ci-navbar::before {
        background: #fff;
    }

    .ci-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        padding-inline: 16px;
        background: #fff;
        border-radius: 0 0 28px 28px;
        box-shadow: var(--ci-shadow-sm);
    }

    .ci-navbar .navbar-collapse.show {
        max-height: calc(100dvh - 120px);
        overflow-y: auto;
        padding-bottom: 16px;
    }

    .ci-nav-link::after {
        display: none;
    }

    .ci-home-hero {
        padding-block: 18px;
    }

    .ci-home-hero-container {
        align-items: flex-start;
    }

    .ci-home-hero .ci-hero-content > .d-flex,
    .ci-home-hero .ci-stats-card {
        margin-top: 1.5rem !important;
    }

    .ci-stat-cell:nth-child(2) {
        border-inline-end: 0;
    }

    .ci-stat-cell:nth-child(1),
    .ci-stat-cell:nth-child(2) {
        border-bottom: 1px solid var(--ci-border-strong);
    }

    .ci-project-row {
        padding-block: 50px;
    }

    .ci-testimonial-carousel {
        padding-inline: 54px;
    }

    .ci-carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .ci-days-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ci-time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ci-contact-info {
        grid-template-columns: 1fr;
    }

    .ci-map-placeholder {
        height: 280px;
    }

    .ci-calculator-card {
        border-radius: 60px 60px 40px 40px;
    }

    .ci-dark-pattern-card::before,
    .ci-dark-pattern-card::after {
        opacity: 0.35;
    }

    .ci-testimonials-swiper {
        padding-inline: 38px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --ci-section-padding: 65px;
    }

    .ci-section-title {
        font-size: clamp(1.4rem, 4vw, 2.4rem);
    }

    .ci-section-description,
    .ci-about-paragraphs {
        font-size: 0.96rem;
        line-height: 1.8;
    }

    .ci-faq-item .accordion-body {
        font-size: 14px;
    }

    .ci-hero-title {
        font-size: 2.55rem;
    }

    .ci-hero-subtitle {
        font-size: 1.55rem;
    }

    .ci-hero-description {
        font-size: 0.98rem;
    }

    .ci-hero-btn {
        width: 100%;
    }

    /* .ci-stats-card .row {
        display: grid;
        grid-template-columns: 1fr;
    } */

    .ci-stat-cell,
    .ci-stat-cell:not(:last-child) {
        border-inline-end: 0;
        /* border-bottom: 1px solid var(--ci-border-strong); */
    }

    .ci-stat-cell:last-child {
        border-bottom: 0;
    }

    .ci-service-card {
        padding: 1.6rem;
    }

    .ci-service-hover-box {
        inset: 10px;
    }

    .ci-device-showcase {
        min-height: 300px;
    }

    .ci-browser-window {
        width: 100%;
        height: 250px;
    }

    .ci-mobile-preview {
        width: 120px;
        height: 220px;
        border-width: 12px;
        right: 4%;
    }

    .ci-phone {
        width: 118px;
        height: 220px;
        border-width: 11px;
        padding: 24px 8px;
    }

    .ci-phone-1 {
        left: 2%;
    }

    .ci-phone-2 {
        left: 34%;
    }

    .ci-phone-3 {
        right: 2%;
    }

    .ci-partner-logo {
        min-width: 230px;
        height: 110px;
        font-size: 0.88rem;
    }

    .ci-testimonial-carousel {
        padding-inline: 42px;
    }

    .ci-testimonial-card {
        min-height: auto;
        padding: 1.4rem;
    }

    .ci-quote-line,
    .ci-quote-box {
        padding: 0.9rem;
        font-size: 0.92rem;
    }

    .ci-carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .ci-faq-illustration {
        width: 260px;
        margin-inline: auto;
    }

    .ci-faq-illustration span {
        font-size: 5rem;
    }

    .ci-faq-illustration strong {
        font-size: 6.2rem;
    }

    .ci-faq-item .accordion-button {
        font-size: 1rem;
        min-height: 60px;
        padding: 1rem;
    }

    .ci-calculator-card {
        background-image: url("../images/rectangle_tall.png");
        min-height: 1736px;
    }

    .ci-white-btn {
        min-width: 100%;
    }

    .ci-booking-card {
        padding: 1.3rem;
    }

    .ci-days-grid,
    .ci-time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ci-contact-card {
        padding: 1.8rem;
    }

    .ci-footer-brand strong {
        font-size: 1.05rem;
    }

    .ci-footer-brand span span {
        font-size: 0.95rem;
    }

    .consultation-submit-btn {
        width: 100%;
    }

    .ci-project-device {
        aspect-ratio: 516 / 706;
    }

    .ci-app-section.ci-app-mobile {
        right: -13px;
    }
}

/* Keep site containers fluid on small screens, including 576–620px. */
@media (max-width: 620px) {
    body.ci-page {
        width: 100%;
        min-width: 0;
    }

    .ci-page .container,
    .ci-page .container-fluid,
    .ci-page .container-sm,
    .ci-page .container-md,
    .ci-page .container-lg,
    .ci-page .container-xl,
    .ci-page .container-xxl {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-inline: auto;
        padding-inline: 12px;
    }

    .ci-home-hero-container > .row {
        /* Account for Bootstrap's negative row margins inside the flex container. */
        width: calc(100% + var(--bs-gutter-x));
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    .ci-calculator-card {
        background-image: url("../images/rectangle_tall.png");
        min-height: 1362px;
    }
    .ci-calculator-cta-img-right {
        transform: rotate(270deg);
        right: 84px;
        top: -67px;
    }
    .ci-calculator-cta-img-left {
        transform: rotate(270deg);
        left: 109px;
        top: 67%;
    }
}

@media (max-width: 575.98px) {
    .ci-calculator-card {
        background-image: url("../images/rectangle_tall.png");
        min-height: 1260px;
    }

    .ci-logo-mark {
        width: 36px;
        height: 36px;
    }

    .ci-logo-mark::before,
    .ci-logo-mark::after {
        width: 14px;
        height: 40px;
        left: 11px;
    }

    .ci-brand-main {
        font-size: 0.74rem;
    }

    .ci-brand-sub {
        font-size: 0.72rem;
    }

    .ci-section-badge {
        font-size: 0.85rem;
    }

    .ci-home-hero {
        padding-block: 14px;
    }

    .ci-home-hero .ci-hero-title {
        font-size: clamp(2rem, 11vw, 2.55rem);
        margin-bottom: 0.75rem !important;
    }

    .ci-home-hero .ci-hero-subtitle {
        font-size: clamp(1.2rem, 6vw, 1.55rem);
        margin-bottom: 0.75rem !important;
    }

    .ci-home-hero .ci-hero-description {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .ci-home-hero .ci-hero-content > .d-flex,
    .ci-home-hero .ci-stats-card {
        margin-top: 1rem !important;
    }

    .ci-home-hero .ci-stat-cell {
        padding-block: 0.65rem !important;
    }

    .ci-home-hero .ci-stat-value {
        font-size: 1.6rem;
    }

    .ci-about-card {
        padding: 1.35rem;
    }

    .ci-project-content h3 {
        font-size: 1.3rem;
    }

    .ci-project-content .ci-project-content-description {
        font-size: 14px;
    }

    .ci-browser-content {
        padding: 18px;
        grid-template-columns: 60px 1fr;
    }

    .ci-mobile-preview {
        display: none;
    }

    .ci-phone {
        width: 105px;
        height: 200px;
    }

    .ci-phone-1 {
        left: 0;
        bottom: 18px;
    }

    .ci-phone-2 {
        left: 32%;
        top: 10px;
    }

    .ci-phone-3 {
        right: 0;
        bottom: 18px;
    }

    .ci-testimonial-carousel {
        padding-inline: 24px;
    }

    .ci-carousel-arrow {
        top: auto;
        bottom: -56px;
        transform: none;
    }

    .ci-carousel-arrow.carousel-control-prev {
        left: calc(50% - 48px);
    }

    .ci-carousel-arrow.carousel-control-next {
        right: calc(50% - 48px);
    }

    .ci-testimonials-section {
        padding-bottom: 115px;
    }

    /* .ci-days-grid,
    .ci-time-grid {
        grid-template-columns: 1fr;
    } */

    .ci-social-links a {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .ci-testimonials-swiper {
        padding-inline: 0;
        padding-bottom: 55px;
    }

    .ci-swiper-arrow {
        top: auto;
        bottom: 0;
        transform: none;
    }

    .ci-swiper-prev {
        left: calc(50% - 52px);
    }

    .ci-swiper-next {
        right: calc(50% - 52px);
    }

    html[dir="rtl"] .ci-swiper-prev {
        right: calc(50% - 52px);
        left: auto;
    }

    html[dir="rtl"] .ci-swiper-next {
        left: calc(50% - 52px);
        right: auto;
    }
}

@media (max-width: 768px) {
    .ci-days-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .ci-days-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================
   <= 1400
========================================================== */

@media (max-width: 1399.98px) {
    .ci-process-step {
        width: auto;
    }

    .ci-process-step h3 {
        font-size: 0.96rem;
    }

    .ci-process-step p {
        font-size: 0.82rem;
    }
}

/* ==========================================================
   TABLET
   <= 1200
========================================================== */

/* ==========================================================
   MOBILE
   <= 768
========================================================== */

/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

/* ==========================================================
   PROCESS MOBILE GRADIENT ANIMATION
========================================================== */

@keyframes ciProcessColorMobile {
    0% {
        background-position: center top;
    }

    100% {
        background-position: center bottom;
    }
}

@media (max-width: 1200px) {
    #process .ci-process-road {
        --process-icon-size: clamp(80px, 10vw, 72px);
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(100, minmax(14px, auto));
        grid-auto-rows: auto;
        width: 100%;
        max-width: 480px;
        min-height: 1400px;
        margin: 3rem auto 0;
        padding: 0;
        gap: 0;
        direction: ltr;
        overflow: visible;
    }

    #process .ci-process-road .ci-process-wave {
        display: block;
        inset: 0 calc(var(--process-icon-size) / 2);
        width: auto;
        height: auto;
        transform: none;
        mask-image: url("../images/line-mobile.png");
        -webkit-mask-image: url("../images/line-mobile.png");
        mask-size: 100% 100%;
        -webkit-mask-size: 100% 100%;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
        pointer-events: none;
    }

    #process .ci-process-wave::after {
        background-size: 100% 250%;
        animation: ciProcessColorMobile 5s ease-in-out infinite alternate;
    }

    #process .ci-process-road > .ci-process-step {
        position: relative;
        grid-column: 1;
        align-self: center;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: var(--process-icon-size);
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        text-align: right;
    }

    #process .ci-process-step > .ci-process-copy {
        position: relative;
        direction: rtl;
        width: 51%;
        margin-left: 100px;
        margin-right: 0;
        padding: 0 !important;
        transform: none;
    }

    #process .ci-process-step:nth-of-type(even) > .ci-process-copy {
        width: 70%;
    }
    #process .ci-process-step:nth-of-type(odd) > .ci-process-copy {
        margin-left: 31px;
        margin-right: auto;
    }

    .ci-ltr #process .ci-process-step > .ci-process-copy {
        direction: ltr;
    }

    #process .ci-process-copy h3 {
        width: auto;
        margin: 0 0 6px;
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        line-height: 1.4;
    }

    #process .ci-process-copy p {
        width: auto;
        margin: 0;
        font-size: clamp(0.82rem, 2vw, 1rem);
        line-height: 1.55;
    }

    #process .ci-process-road .ci-process-step > .ci-process-icon {
        position: absolute;
        inset: auto;
        top: calc(50% - var(--process-icon-size) / 2);
        left: calc((100% - var(--process-icon-size)) * var(--icon-x));
        width: var(--process-icon-size);
        height: var(--process-icon-size);
        margin: 0;
        animation: ciIconBounce 2.8s ease-in-out infinite;
        animation-delay: var(--delay);
    }

    #process .ci-process-icon img {
        width: 45%;
        height: auto;
    }

    #process .ci-process-copy .ci-process-number {
        inset: auto;
        top: 50%;
        right: 0;
        padding: 0 !important;
        transform: translateY(-50%);
        font-size: clamp(6rem, 20vw, 8rem);
        line-height: 1;
        pointer-events: none;
        z-index: -1;
    }

    #process .ci-process-step:nth-of-type(odd) .ci-process-number {
        right: auto;
        left: 0;
    }

    #process .ci-process-step-1 {
        grid-row: 5 / 15;
        --icon-x: 0.15;
    }
    #process .ci-process-step-2 {
        grid-row: 21 / 31;
        --icon-x: 0.94;
    }
    #process .ci-process-step-3 {
        grid-row: 41 / 51;
        --icon-x: 0.09;
    }
    #process .ci-process-step-4 {
        grid-row: 59 / 69;
        --icon-x: 0.92;
    }
    #process .ci-process-step-5 {
        grid-row: 76 / 86;
        --icon-x: 0.06;
    }
    #process .ci-process-step-6 {
        grid-row: 97 / 101;
        --icon-x: 0.94;
    }
}

@media (max-width: 992px) {
    #hero.ci-home-hero {
        height: auto;
        max-height: none;
        padding-block: 48px 64px;
    }

    #hero .ci-home-hero-container > .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 24px;
        row-gap: 32px;
        width: 100%;
        margin-inline: 0;
    }

    #hero .ci-hero-copy-column,
    #hero .ci-hero-content {
        display: contents;
    }

    #hero .ci-hero-title {
        grid-column: 1 / -1;
        grid-row: 1;
        margin: 0 !important;
        text-align: start;
        font-size: clamp(2rem, 6vw, 3.75rem);
    }

    #hero .ci-hero-subtitle {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 65%;
        margin: 0 !important;
        text-align: start;
        font-weight: 400;
        font-size: clamp(1.3rem, 3.8vw, 2.4rem);
    }

    #hero .ci-hero-description {
        grid-column: 1;
        grid-row: 3;
        margin: 0;
        text-align: start;
        font-weight: 300;
        font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    }

    #hero .ci-hero-content > .d-flex {
        grid-column: 1;
        grid-row: 4;
        flex-direction: column !important;
        align-items: stretch;
        gap: 32px !important;
        margin: 0 !important;
        padding: 0;
    }

    #hero .ci-hero-btn {
        width: 150px;
        min-width: 0;
    }

    #hero .ci-home-hero-container .shape {
        display: block !important;
        position: relative;
        grid-column: 2;
        grid-row: 2 / 5;
        align-self: stretch;
        width: auto;
        min-height: 85vw;
        margin: 0;
        padding: 0;
        pointer-events: none;
    }

    #hero .shape .ci-orbit-wrapper {
        position: absolute;
        top: 50%;
        inset-inline-end: -48vw;
        width: 100vw;
        max-width: none;
        margin: 0 !important;
        transform: translateY(-50%);
    }

    #hero .ci-stats-card {
        grid-column: 1 / -1;
        grid-row: 5;
        width: 100%;
        max-width: none;
        margin: 32px 0 0 !important;
        padding: 16px;
    }

    .navbar-brand img {
        width: 90.94px;
        height: 30px;
    }

    #process .ci-process-copy h3 {
        font-size: clamp(1.3rem, 2.5vw, 1.2rem);
    }
    #process .ci-process-copy h3,
    #process .ci-process-copy p {
        margin-right: 30px;
    }

    #process .ci-process-step-1 .ci-process-copy h3,
    #process .ci-process-step-1 .ci-process-copy p {
        margin-right: 18px;
    }

    .ci-stat-label {
        font-size: 9px;
    }

    #process .ci-process-copy .ci-process-number {
        font-size: clamp(7rem, 20vw, 8rem);
    }

    #process .ci-process-icon img {
        width: 37.5px;
        height: 37.5px;
    }

    .ci-project-tabs .nav-link,
    #faq[data-faq-page] .ci-faq-filters .btn {
        padding: 5px 15px;
    }

    .ci-tech-tag {
        padding: 0.25rem 1.3rem;
    }

    .ci-gradient-btn {
        padding: 5px 50px 5px 50px;
        height: 36px;
        width: auto;
    }
}

@media (max-width: 991.98px) {
    .ci-home-page {
        --ci-home-section-space: 64px;
    }

    .ci-home-page .ci-about-paragraphs {
        padding: 24px;
        line-height: 2.1;
    }
}

@media (max-width: 575.98px) {
    .ci-home-page {
        --ci-home-section-space: 48px;
    }

    .ci-home-page .ci-about-paragraphs {
        margin-block: 32px 24px;
        padding: 24px 20px;
        border-radius: 22px;
        font-size: 1rem;
        line-height: 2;
    }

    .ci-home-page .ci-about-card {
        min-height: 0;
        padding: 24px;
        border-radius: 22px;
    }
    .ci-home-hero {
        height: auto;
    }
}
