/* =========================================================
   CASE STUDIES HERO
========================================================= */

.cs-hero-section {
    position: relative;
    overflow: hidden;

    min-height: 560px;
    padding: 53px 0;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(102, 51, 255, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(0, 180, 255, 0.10),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f8f9ff 0%,
            #ffffff 45%,
            #f5f7ff 100%
        );

    isolation: isolate;
}


/* =========================================================
   BACKGROUND GRID
========================================================= */

.cs-hero-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(90, 80, 180, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(90, 80, 180, 0.035) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );

    z-index: -2;
}


/* =========================================================
   GLOW
========================================================= */

.cs-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.25;

    z-index: -1;

    animation: csGlowMove 7s ease-in-out infinite;
}

.cs-glow-one {
    top: -100px;
    right: 10%;
    background: rgba(104, 64, 255, 0.30);
}

.cs-glow-two {
    bottom: -130px;
    left: 5%;
    background: rgba(0, 170, 255, 0.22);

    animation-delay: 2s;
}


@keyframes csGlowMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 30px);
    }
}


/* =========================================================
   HERO CONTENT
========================================================= */

.cs-hero-content {
    position: relative;
    z-index: 3;
}


/* =========================================================
   BADGE
========================================================= */

.cs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 9px 17px;

    margin-bottom: 20px;

    /* border: 1px solid rgba(95, 71, 220, 0.14); */

    border-radius: 50px;

      background: radial-gradient(circle at 85% 25%, rgba(108, 44, 255, .16), transparent 30%),
        radial-gradient(circle at 10% 80%, rgba(233, 30, 99, .12), transparent 30%),
        #ffffff;

    box-shadow:
        0 8px 25px rgba(50, 40, 120, 0.06);

    color: #1f1343;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}


.cs-badge-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #c72d49;

    box-shadow: 0 0 0 5px rgb(34 197 94 / 9%);

    animation: csBadgePulse 1.8s infinite;
}


@keyframes csBadgePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.65;
    }
}


/* =========================================================
   TITLE
========================================================= */

.cs-hero-title {
    max-width: 650px;

    margin: 0 0 20px;

    color: #1f1343;

    /* font-size: clamp(38px, 4.5vw, 62px); */

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -2px;
}


.cs-hero-title span {
    display: block;

    background:
        linear-gradient(
            90deg,
           #c72d49
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.cs-hero-description {
    max-width: 590px;

    margin: 0 0 28px;

    color: #656578;

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   BUTTONS
========================================================= */

.cs-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;

    margin-bottom: 38px;
}


.cs-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 50px;

    padding: 0 22px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


.cs-btn i {
    transition: transform 0.3s ease;
}


.cs-btn:hover i {
    transform: translateX(4px);
}


.cs-btn-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1f1343,
            #1f1343
        );

    box-shadow:
        0 12px 30px rgba(100, 72, 220, 0.25);
}


.cs-btn-primary:hover {
    color: #ffffff !important;

    transform: translateY(-3px);

    box-shadow:
        0 17px 35px rgba(100, 72, 220, 0.32);
}


.cs-btn-outline {
    color: #c72d49;

    border: 1px solid rgba(91, 70, 210, 0.20);

    background: rgba(255, 255, 255, 0.75);
}


.cs-btn-outline:hover {
    color: #c72d49;

    transform: translateY(-3px);

    background: #ffffff;

    box-shadow:
        0 10px 25px rgba(60, 50, 130, 0.10);
}


/* =========================================================
   STATS
========================================================= */

.cs-hero-stats {
    display: flex;
    align-items: center;

    gap: 22px;
}


.cs-stat-item {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.cs-stat-item strong {
    color: #1b1a2a;

    font-size: 23px;
    font-weight: 800;
}


.cs-stat-item span {
    color: #77778a;

    font-size: 11px;

    font-weight: 600;
}


.cs-stat-divider {
    width: 1px;
    height: 38px;

    background: rgba(30, 30, 60, 0.12);
}


/* =========================================================
   HERO VISUAL
========================================================= */

.cs-hero-visual {
    position: relative;

    min-height: 470px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   RINGS
========================================================= */

.cs-ring {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(103, 79, 218, 0.13);

    pointer-events: none;
}


.cs-ring-one {
    width: 460px;
    height: 460px;

    animation: csRotate 20s linear infinite;
}


.cs-ring-two {
    width: 360px;
    height: 360px;

    border-style: dashed;

    animation: csRotateReverse 16s linear infinite;
}


.cs-ring-three {
    width: 270px;
    height: 270px;

    border-color: rgba(0, 150, 255, 0.10);

    animation: csRotate 13s linear infinite;
}


@keyframes csRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@keyframes csRotateReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


/* =========================================================
   DASHBOARD
========================================================= */

.cs-dashboard-card {
    position: relative;

    z-index: 4;

    width: 410px;
    margin-top: 35px;

    padding: 23px;

    border: 1px solid rgba(255, 255, 255, 0.85);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(247, 247, 255, 0.91)
        );

    box-shadow:
        0 35px 80px rgba(43, 35, 100, 0.14),
        0 10px 30px rgba(43, 35, 100, 0.08);

    backdrop-filter: blur(20px);

    animation: csDashboardFloat 5s ease-in-out infinite;
}


@keyframes csDashboardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}


/* =========================================================
   DASHBOARD HEADER
========================================================= */

.cs-dashboard-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}


.cs-project-info {
    display: flex;
    align-items: center;

    gap: 11px;
}


.cs-project-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #c72d49,
            #c72d49
        );

    box-shadow:
        0 8px 18px rgba(100, 70, 220, 0.22);
}


.cs-project-info small {
    display: block;

    margin-bottom: 2px;

    color: #9292a4;

    font-size: 8px;

    letter-spacing: 1px;

    font-weight: 700;
}


.cs-project-info strong {
    display: block;

    color: #1f1343;

    font-size: 13px;
}


.cs-live-status {
    display: flex;
    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border-radius: 20px;

    background: rgba(27, 190, 118, 0.08);

    color: #16a86a;

    font-size: 8px;

    font-weight: 800;
}


.cs-live-status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #c72d49;

    animation: csLivePulse 1.5s infinite;
}


@keyframes csLivePulse {

    0% {
        box-shadow: 0 0 0 0 rgba(32, 189, 120, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(32, 189, 120, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(32, 189, 120, 0);
    }
}


/* =========================================================
   RESULT CARD
========================================================= */

.cs-result-card {
    padding: 17px;

    border-radius: 17px;

    background: #ffffff;

    border: 1px solid rgba(40, 40, 90, 0.06);

    box-shadow:
        0 8px 25px rgba(40, 35, 100, 0.05);
}


.cs-result-top {
    display: flex;

    justify-content: space-between;
    align-items: center;
}


.cs-result-top small {
    display: block;

    margin-bottom: 4px;

    color: #8a8a9b;

    font-size: 9px;
}


.cs-result-top strong {
    color: #1f1343;

    font-size: 25px;
}


.cs-growth-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #1aab72;

    background: rgba(26, 171, 114, 0.09);

    font-size: 14px;
}


/* =========================================================
   CHART
========================================================= */

.cs-chart {
    position: relative;

    height: 100px;

    margin-top: 14px;

    overflow: hidden;

    border-bottom: 1px solid #ededf4;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 24px,
            rgba(70, 70, 120, 0.06) 25px
        );
}


.cs-chart-line {
    position: absolute;

    left: -3%;

    bottom: 17px;

    width: 108%;
    height: 72px;

    border-top: 3px solid #7154e5;

    border-radius: 50%;

    transform:
        rotate(-7deg)
        skewX(-12deg);

    filter:
        drop-shadow(
            0 5px 5px rgba(100, 70, 220, 0.15)
        );

    animation: csChartMove 3s ease-in-out infinite;
}


@keyframes csChartMove {

    0%,
    100% {
        transform:
            rotate(-7deg)
            skewX(-12deg)
            translateY(0);
    }

    50% {
        transform:
            rotate(-5deg)
            skewX(-12deg)
            translateY(-5px);
    }
}


.cs-chart-dot {
    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #7154e5;

    border: 2px solid #ffffff;

    box-shadow:
        0 3px 8px rgba(100, 70, 220, 0.25);

    z-index: 2;
}


.cs-dot-one {
    left: 12%;
    bottom: 35px;
}

.cs-dot-two {
    left: 30%;
    bottom: 45px;
}

.cs-dot-three {
    left: 49%;
    bottom: 53px;
}

.cs-dot-four {
    left: 68%;
    bottom: 63px;
}

.cs-dot-five {
    left: 88%;
    bottom: 75px;
}


.cs-chart-labels {
    display: flex;

    justify-content: space-between;

    margin-top: 8px;

    color: #a0a0af;

    font-size: 7px;

    font-weight: 700;
}


/* =========================================================
   METRICS
========================================================= */

.cs-metrics {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 13px;
}


.cs-metric {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px;

    border-radius: 14px;

    background: rgba(245, 245, 252, 0.8);
}


.cs-metric-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    color: #6850df;

    background: rgba(104, 80, 223, 0.10);

    font-size: 12px;
}


.cs-metric-icon.cs-green {
    color: #14a96d;

    background: rgba(20, 169, 109, 0.10);
}


.cs-metric small {
    display: block;

    color: #9292a1;

    font-size: 8px;
}


.cs-metric strong {
    display: block;

    margin-top: 2px;

    color: #2b293a;

    font-size: 13px;
}


/* =========================================================
   PROJECT RESULT
========================================================= */

.cs-project-result {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 13px;

    padding: 12px;

    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            rgba(27, 183, 116, 0.08),
            rgba(27, 183, 116, 0.025)
        );
}


.cs-success-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: #ffffff;

    background: #20b978;

    font-size: 10px;
}


.cs-result-text {
    flex: 1;
}


.cs-result-text strong {
    display: block;

    color: #323143;

    font-size: 9px;
}


.cs-result-text small {
    display: block;

    margin-top: 2px;

    color: #9292a1;

    font-size: 7px;
}


.cs-result-percent {
    color: #16a96b;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   FLOATING ICONS
========================================================= */

.cs-floating-icon {
    position: absolute;

    z-index: 6;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    color: #634adb;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(100, 80, 210, 0.10);

    box-shadow:
        0 15px 35px rgba(50, 40, 120, 0.12);

    backdrop-filter: blur(10px);

    font-size: 16px;
}


.cs-floating-one {
    top: 10%;
    left: 5%;

    animation: csFloatOne 4s ease-in-out infinite;
}


.cs-floating-two {
    top: 25%;
    right: 5%;

    color: #1c9fca;

    animation: csFloatTwo 5s ease-in-out infinite;
}


.cs-floating-three {
    bottom: 16%;
    left: 4%;

    color: #7c55e7;

    animation: csFloatThree 4.5s ease-in-out infinite;
}


.cs-floating-four {
    bottom: 6%;
    right: 7%;

    color: #e79532;

    animation: csFloatFour 5s ease-in-out infinite;
}


@keyframes csFloatOne {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-13px) rotate(4deg);
    }
}


@keyframes csFloatTwo {

    0%,
    100% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(15px) rotate(-3deg);
    }
}


@keyframes csFloatThree {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-11px);
    }
}


@keyframes csFloatFour {

    0%,
    100% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(12px) rotate(-3deg);
    }
}


/* =========================================================
   MINI CARD
========================================================= */

.cs-mini-card {
    position: absolute;

    right: -25px;
    bottom: 10%;

    z-index: 7;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 15px;

    min-width: 175px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(100, 80, 210, 0.10);

    box-shadow:
        0 18px 40px rgba(40, 35, 100, 0.13);

    animation:
        csMiniFloat 4s ease-in-out infinite;
}


@keyframes csMiniFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


.cs-mini-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #e49a28;

    background: rgba(228, 154, 40, 0.10);

    font-size: 13px;
}


.cs-mini-card small {
    display: block;

    color: #9292a2;

    font-size: 8px;
}


.cs-mini-card strong {
    display: block;

    margin-top: 2px;

    color: #282637;

    font-size: 13px;
}


.cs-mini-arrow {
    margin-left: auto;

    color: #1db476;

    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .cs-hero-section {
        min-height: auto;

        padding: 65px 0;
    }

    .cs-hero-content {
        text-align: center;
    }

    .cs-hero-title,
    .cs-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .cs-hero-buttons {
        justify-content: center;
    }

    .cs-hero-stats {
        justify-content: center;
    }

    .cs-hero-visual {
        min-height: 450px;

        margin-top: 10px;
    }

    .cs-mini-card {
        right: 7%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .cs-hero-section {
        padding: 50px 0;
    }

    .cs-hero-title {
        font-size: 39px;

        letter-spacing: -1.3px;
    }

    .cs-hero-description {
        font-size: 15px;

        line-height: 1.65;
    }

    .cs-hero-buttons {
        flex-direction: column;

        align-items: center;

        margin-bottom: 32px;
    }

    .cs-btn {
        width: 100%;

        max-width: 320px;
    }

    .cs-hero-stats {
        gap: 12px;
    }

    .cs-stat-item strong {
        font-size: 19px;
    }

    .cs-stat-item span {
        font-size: 9px;
    }

    .cs-stat-divider {
        height: 32px;
    }

    .cs-hero-visual {
        min-height: 410px;

        margin-top: 10px;
    }

    .cs-dashboard-card {
        width: 380px;

        max-width: 91%;

        padding: 18px;
    }

    .cs-ring-one {
        width: 410px;
        height: 410px;
    }

    .cs-ring-two {
        width: 320px;
        height: 320px;
    }

    .cs-ring-three {
        width: 240px;
        height: 240px;
    }

    .cs-floating-icon {
        width: 43px;
        height: 43px;

        border-radius: 12px;

        font-size: 14px;
    }

    .cs-floating-one {
        left: 1%;
    }

    .cs-floating-two {
        right: 1%;
    }

    .cs-floating-three {
        left: 1%;
    }

    .cs-floating-four {
        right: 2%;
    }

    .cs-mini-card {
        right: 4%;

        bottom: 2%;

        min-width: 160px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {

    .cs-hero-section {
        padding: 42px 0;
    }

    .cs-hero-badge {
        padding: 8px 13px;

        font-size: 11px;
    }

    .cs-hero-title {
        font-size: 31px;

        line-height: 1.12;

        letter-spacing: -1px;
    }

    .cs-hero-description {
        font-size: 14px;

        margin-bottom: 22px;
    }

    .cs-hero-stats {
        gap: 8px;
    }

    .cs-stat-item strong {
        font-size: 17px;
    }

    .cs-stat-item span {
        font-size: 8px;

        white-space: nowrap;
    }

    .cs-stat-divider {
        height: 28px;
    }

    .cs-hero-visual {
        min-height: 355px;
    }

    .cs-dashboard-card {
        width: 100%;

        max-width: 94%;

        padding: 14px;

        border-radius: 19px;
    }

    .cs-dashboard-header {
        margin-bottom: 12px;
    }

    .cs-project-icon {
        width: 35px;
        height: 35px;

        border-radius: 9px;
    }

    .cs-project-info strong {
        font-size: 11px;
    }

    .cs-result-card {
        padding: 13px;
    }

    .cs-result-top strong {
        font-size: 21px;
    }

    .cs-chart {
        height: 80px;
    }

    .cs-metric {
        padding: 9px;

        gap: 7px;
    }

    .cs-metric-icon {
        width: 29px;
        height: 29px;

        font-size: 10px;
    }

    .cs-metric strong {
        font-size: 11px;
    }

    .cs-project-result {
        padding: 9px;
    }

    .cs-result-text strong {
        font-size: 8px;
    }

    .cs-result-text small {
        font-size: 6px;
    }

    .cs-ring-one {
        width: 330px;
        height: 330px;
    }

    .cs-ring-two {
        width: 260px;
        height: 260px;
    }

    .cs-ring-three {
        width: 200px;
        height: 200px;
    }

    .cs-floating-icon {
        display: none;
    }

    .cs-mini-card {
        right: 5%;

        bottom: -3px;

        padding: 9px 11px;

        min-width: 145px;
    }

    .cs-mini-icon {
        width: 30px;
        height: 30px;

        font-size: 11px;
    }

    .cs-mini-card small {
        font-size: 7px;
    }

    .cs-mini-card strong {
        font-size: 11px;
    }
}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 400px) {

    .cs-hero-title {
        font-size: 28px;
    }

    .cs-hero-description {
        font-size: 13px;
    }

    .cs-hero-stats {
        gap: 5px;
    }

    .cs-stat-item strong {
        font-size: 15px;
    }

    .cs-stat-item span {
        font-size: 7px;
    }

    .cs-stat-divider {
        height: 25px;
    }

    .cs-hero-visual {
        min-height: 330px;
    }

    .cs-dashboard-card {
        padding: 12px;
    }

    .cs-mini-card {
        transform: scale(0.88);
        transform-origin: right bottom;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cs-glow,
    .cs-ring,
    .cs-dashboard-card,
    .cs-floating-icon,
    .cs-mini-card,
    .cs-chart-line,
    .cs-badge-dot,
    .cs-live-status span {
        animation: none !important;
    }

}


/* =========================================================
   FEATURED CASE STUDIES
========================================================= */

.cs-featured-section {
    position: relative;
    overflow: hidden;

    padding: 95px 0;

    background: #ffffff;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.cs-section-heading {
    max-width: 760px;
    margin: 0 auto 55px;

    text-align: center;
}


.cs-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 17px;

    margin-bottom: 18px;

    border-radius: 50px;

    background: rgba(98, 72, 216, 0.08);

    color: #1f1343;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .4px;
}


.cs-section-badge i {
    font-size: 13px;
    color:#c72d49 ;
}


.cs-section-heading h2 {
    margin: 0 0 16px;

    color: #1f1343;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -1.2px;
}


.cs-section-heading h2 span {
    display: inline-block;

    background: linear-gradient(
        90deg,
        #6248d8,
        #8d5cf6
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.cs-section-heading p {
    max-width: 690px;

    margin: 0 auto;

    color: #707087;

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   CARD
========================================================= */

.cs-case-card {
    position: relative;

    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(32, 32, 64, 0.08);

    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(40, 35, 100, 0.07);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;

    will-change: transform;
}


.cs-case-card:hover {
    transform: translateY(-9px);

    border-color: rgba(98, 72, 216, 0.18);

    box-shadow:
        0 28px 65px rgba(40, 35, 100, 0.14);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.cs-case-image {
    position: relative;

    height: 205px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* PURPLE */

.cs-case-purple {
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.20),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #5d42d5,
            #8b5cf6
        );
}

.cs-case-purple1 {
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.20),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #f74780,
            #1f1343
        );
}
.cs-case-purple2 {
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.20),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #30b316,
            #e9240a
        );
}


/* BLUE */

.cs-case-blue {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.18),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #2563eb,
            #38bdf8
        );
}
.cs-case-blue1 {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.18),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #c72d49,
            #009c0d
        );
}
.cs-case-blue2 {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.18),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #06ade0,
            #d400a6
        );
}


/* ORANGE */

.cs-case-orange {
    background:
        radial-gradient(
            circle at 20% 25%,
            rgba(255,255,255,.18),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #f97316,
            #fb7185
        );
}
.cs-case-orange1 {
    background:
        radial-gradient(
            circle at 20% 25%,
            rgba(255,255,255,.18),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #4016f9,
            #d3c22a
        );
}


/* =========================================================
   MAIN ICON
========================================================= */

.cs-case-icon {
    position: relative;
    z-index: 5;

    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background: rgba(255,255,255,.17);

    border: 1px solid rgba(255,255,255,.25);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #ffffff;

    font-size: 34px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.12);

    transition:
        transform .4s ease,
        background .4s ease;
}


.cs-case-card:hover .cs-case-icon {
    transform: scale(1.08) rotate(-4deg);

    background: rgba(255,255,255,.25);
}


/* =========================================================
   INDUSTRY BADGE
========================================================= */

.cs-industry {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 6;

    padding: 7px 13px;

    border-radius: 50px;

    background: rgba(255,255,255,.16);

    border: 1px solid rgba(255,255,255,.2);

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .3px;

    backdrop-filter: blur(10px);
}


/* =========================================================
   BACKGROUND CIRCLES
========================================================= */

.cs-case-circle {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.12);

    pointer-events: none;
}


.cs-circle-1 {
    width: 210px;
    height: 210px;

    right: -95px;
    bottom: -115px;
}


.cs-circle-2 {
    width: 150px;
    height: 150px;

    left: -85px;
    top: -90px;
}


/* =========================================================
   FLOATING PATTERN ICONS
========================================================= */

.cs-case-pattern {
    position: absolute;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255,255,255,.10);

    border: 1px solid rgba(255,255,255,.13);

    color: rgba(255,255,255,.65);

    font-size: 14px;

    backdrop-filter: blur(7px);

    animation:
        csPatternFloat 4s ease-in-out infinite;
}


.cs-pattern-1 {
    top: 32px;
    right: 28px;

    animation-delay: 0s;
}


.cs-pattern-2 {
    bottom: 30px;
    left: 28px;

    animation-delay: 1s;
}


.cs-pattern-3 {
    bottom: 25px;
    right: 38px;

    animation-delay: 2s;
}


@keyframes csPatternFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* =========================================================
   CARD CONTENT
========================================================= */

.cs-case-content {
    padding: 28px 27px 30px;
}


.cs-case-category {
    display: inline-block;

    margin-bottom: 9px;

    color: #c72d49;

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.cs-case-content h3 {
    margin: 0 0 13px;

    color: #1f1343;

    font-size: 23px;

    line-height: 1.3;

    font-weight: 800;

    letter-spacing: -.4px;
}


.cs-case-content > p {
    margin: 0 0 23px;

    color: #6c757d;

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   DETAILS
========================================================= */

.cs-case-detail {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 15px;
}


.cs-detail-icon {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(98,72,216,.08);

    color: #c72d49;

    font-size: 13px;
}


.cs-case-detail strong {
    display: block;

    margin-bottom: 3px;

    color: #1f1343;

    font-size: 13px;

    font-weight: 800;
}


.cs-case-detail span {
    display: block;

    color: #6c757d;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   RESULT BOX
========================================================= */

.cs-result-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 22px;
    margin-bottom: 22px;

    padding: 17px 18px;

    border-radius: 15px;

    background: #f7f7fc;

    border: 1px solid rgba(98,72,216,.06);

    transition:
        background .3s ease,
        transform .3s ease;
}


.cs-case-card:hover .cs-result-box {
    background: #f2f0ff;

    transform: translateX(3px);
}


.cs-result-box small {
    display: block;

    margin-bottom: 2px;

    color: #6c757d;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .6px;
}


.cs-result-box strong {
    display: block;

    color: #1f1343;

    font-size: 27px;

    line-height: 1.1;

    font-weight: 800;
}


.cs-result-box span {
    display: block;

    margin-top: 2px;

    color: #6c757d;

    font-size: 11px;
}


.cs-result-box > i {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(98,72,216,.10);

    color: #c72d49;

    font-size: 15px;

    transition:
        transform .35s ease,
        background .35s ease;
}


.cs-case-card:hover .cs-result-box > i {
    transform: rotate(10deg) scale(1.08);

    background: rgba(98,72,216,.16);
}


/* =========================================================
   READ MORE
========================================================= */

.cs-read-more {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #27273d;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;

    transition:
        color .3s ease,
        gap .3s ease;
}


.cs-read-more i {
    font-size: 11px;

    transition: transform .3s ease;
}


.cs-read-more:hover {
    color: #6248d8;

    gap: 13px;
}


.cs-read-more:hover i {
    transform: translateX(3px);
}


/* =========================================================
   SCROLL ENTRY ANIMATION
========================================================= */

/*
   Initially cards are hidden.
   JavaScript adds .cs-show when section
   enters the viewport.
*/

.cs-case-card {
    opacity: 0;

    animation-duration: 1s;

    animation-timing-function:
        cubic-bezier(.22, 1, .36, 1);

    animation-fill-mode: both;

    will-change: transform, opacity;
}


/* LEFT CARD */

.cs-from-left {
    transform: translateX(-110px);
}


.cs-from-left.cs-show {
    animation-name: csCardFromLeft;
    animation-delay: .10s;
}


/* MIDDLE CARD */

.cs-from-top {
    transform: translateY(-110px);
}


.cs-from-top.cs-show {
    animation-name: csCardFromTop;
    animation-delay: .20s;
}


/* RIGHT CARD */

.cs-from-right {
    transform: translateX(110px);
}


.cs-from-right.cs-show {
    animation-name: csCardFromRight;
    animation-delay: .30s;
}


/* =========================================================
   LEFT ANIMATION
========================================================= */

@keyframes csCardFromLeft {

    0% {
        opacity: 0;

        transform: translateX(-110px);
    }

    70% {
        opacity: 1;

        transform: translateX(8px);
    }

    100% {
        opacity: 1;

        transform: translateX(0);
    }
}


/* =========================================================
   TOP ANIMATION
========================================================= */

@keyframes csCardFromTop {

    0% {
        opacity: 0;

        transform: translateY(-110px);
    }

    70% {
        opacity: 1;

        transform: translateY(8px);
    }

    100% {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================================
   RIGHT ANIMATION
========================================================= */

@keyframes csCardFromRight {

    0% {
        opacity: 0;

        transform: translateX(110px);
    }

    70% {
        opacity: 1;

        transform: translateX(-8px);
    }

    100% {
        opacity: 1;

        transform: translateX(0);
    }
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 991px) {

    .cs-featured-section {
        padding: 75px 0;
    }


    .cs-section-heading {
        margin-bottom: 45px;
    }


    .cs-case-image {
        height: 200px;
    }


    .cs-case-content {
        padding: 25px;
    }


    .cs-case-content h3 {
        font-size: 21px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767px) {

    .cs-featured-section {
        padding: 65px 0;
    }


    .cs-section-heading {
        margin-bottom: 40px;
    }


    .cs-section-heading h2 {
        font-size: 34px;

        letter-spacing: -.7px;
    }


    .cs-section-heading p {
        font-size: 14px;

        line-height: 1.7;
    }


    .cs-case-image {
        height: 190px;
    }


    .cs-case-card {
        max-width: 540px;

        margin: 0 auto;
    }


    /*
       On tablet, use smaller animation distance
       for smoother performance.
    */

    .cs-from-left {
        transform: translateX(-70px);
    }


    .cs-from-top {
        transform: translateY(-70px);
    }


    .cs-from-right {
        transform: translateX(70px);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .cs-featured-section {
        padding: 55px 0;
    }


    .cs-section-heading {
        padding: 0 10px;

        margin-bottom: 35px;
    }


    .cs-section-badge {
        font-size: 11px;

        padding: 7px 13px;
    }


    .cs-section-heading h2 {
        font-size: 29px;

        line-height: 1.2;
    }


    .cs-section-heading p {
        font-size: 13px;
    }


    .cs-case-image {
        height: 180px;
    }


    .cs-case-content {
        padding: 23px 21px 25px;
    }


    .cs-case-content h3 {
        font-size: 20px;
    }


    .cs-case-content > p {
        font-size: 13px;
    }


    .cs-result-box {
        padding: 15px;
    }


    .cs-result-box strong {
        font-size: 24px;
    }


    .cs-case-pattern {
        width: 34px;
        height: 34px;

        font-size: 12px;
    }


    /*
       Mobile animation
    */

    .cs-from-left {
        transform: translateX(-45px);
    }


    .cs-from-top {
        transform: translateY(-45px);
    }


    .cs-from-right {
        transform: translateX(45px);
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .cs-section-heading h2 {
        font-size: 26px;
    }


    .cs-case-content h3 {
        font-size: 19px;
    }


    .cs-case-image {
        height: 170px;
    }


    .cs-case-icon {
        width: 68px;
        height: 68px;

        font-size: 29px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cs-case-card {
        opacity: 1 !important;

        transform: none !important;

        animation: none !important;
    }


    .cs-case-pattern {
        animation: none !important;
    }


    .cs-case-card,
    .cs-case-icon,
    .cs-result-box,
    .cs-read-more {
        transition: none !important;
    }

}