/* =========================================================
   Shivanya Tech — WEB SOLUTIONS
   PART 2 — CSS
========================================================= */

.cs-web-solutions {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    padding: 125px 0 110px;

    background:
        radial-gradient(
            circle at 7% 15%,
            rgba(0, 217, 255, 0.055),
            transparent 27%
        ),
        radial-gradient(
            circle at 94% 82%,
            rgba(248, 165, 27, 0.045),
            transparent 26%
        ),
        var(--cs-bg, #f7f8fa);

    color: var(--cs-text, #101010);
}


/* =========================================================
   BACKGROUND
========================================================= */

.cs-web-solutions-bg {
    position: absolute;
    inset: 0;

    pointer-events: none;
    z-index: -1;
}

.cs-web-solutions-grid {
    position: absolute;
    inset: 0;

    opacity: 0.28;

    background-image:
        linear-gradient(
            to right,
            rgba(16, 16, 16, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(16, 16, 16, 0.035) 1px,
            transparent 1px
        );

    background-size: 72px 72px;

    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
}

.cs-web-solutions-glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(20px);

    opacity: 0.65;
}

.cs-web-solutions-glow-1 {
    top: -240px;
    right: -160px;

    background: rgba(0, 217, 255, 0.055);
}

.cs-web-solutions-glow-2 {
    bottom: -250px;
    left: -180px;

    background: rgba(248, 165, 27, 0.045);
}


/* =========================================================
   HEADER
========================================================= */

.cs-web-solutions-header {
    margin-bottom: 62px;
}

.cs-section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.18em;

    color: var(
        --cs-text-muted,
        rgba(16, 16, 16, 0.48)
    );

    text-transform: uppercase;
}

.cs-section-eyebrow-line {
    display: block;

    width: 34px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--cs-primary, #00d9ff),
            var(--cs-primary-dark, #00a9c7)
        );
}

.cs-web-solutions-heading-row {
    display: grid;

    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);

    align-items: end;

    gap: 60px;
}

.cs-web-solutions-title {
    margin: 0;

    max-width: 850px;

    font-family: var(
        --cs-heading-font,
        var(--cs-font-heading, inherit)
    );

    font-size: clamp(48px, 6vw, 82px);

    font-weight: 800;
    line-height: 0.96;

    letter-spacing: -0.055em;

    color: var(--cs-heading, #101010);
}

.cs-web-solutions-title span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--cs-heading, #101010) 0%,
            var(--cs-primary, #00d9ff) 58%,
            var(--cs-primary-dark, #00a9c7) 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cs-web-solutions-intro {
    max-width: 440px;

    padding-bottom: 4px;
}

.cs-web-solutions-intro p {
    margin: 0 0 24px;

    font-size: 16px;
    line-height: 1.75;

    color: var(
        --cs-text-soft,
        rgba(16, 16, 16, 0.62)
    );
}

.cs-web-solutions-header-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.04em;

    color: var(--cs-heading, #101010);

    text-decoration: none;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.cs-web-solutions-header-link i {
    font-size: 14px;

    transition: transform 0.3s ease;
}

.cs-web-solutions-header-link:hover {
    color: var(--cs-primary, #00d9ff);
    gap: 13px;
}

.cs-web-solutions-header-link:hover i {
    transform: translate(2px, -2px);
}


/* =========================================================
   GRID
========================================================= */

.cs-web-solutions-grid-wrap {
    position: relative;

    border-top: 1px solid var(
        --cs-border,
        rgba(16, 16, 16, 0.10)
    );

    border-left: 1px solid var(
        --cs-border,
        rgba(16, 16, 16, 0.10)
    );
}


/* =========================================================
   CARD
========================================================= */

.cs-solution-card {
    position: relative;

    min-height: 430px;

    padding: 30px 30px 32px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(
        --cs-border,
        rgba(16, 16, 16, 0.10)
    );

    border-bottom: 1px solid var(
        --cs-border,
        rgba(16, 16, 16, 0.10)
    );

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.42),
            rgba(255, 255, 255, 0.08)
        );

    transition:
        background 0.45s ease,
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.45s ease;

    isolation: isolate;
}

.cs-solution-card::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    opacity: 0;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(0, 217, 255, 0.11),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(248, 165, 27, 0.06),
            transparent 28%
        );

    transition: opacity 0.45s ease;
}

.cs-solution-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--cs-primary, #00d9ff),
            var(--cs-primary-dark, #00a9c7)
        );

    transition: width 0.45s ease;
}

.cs-solution-card:hover {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.78),
            rgba(255, 255, 255, 0.28)
        );

    box-shadow:
        0 25px 60px rgba(8, 8, 8, 0.075);

    transform: translateY(-5px);

    z-index: 3;
}

.cs-solution-card:hover::before {
    opacity: 1;
}

.cs-solution-card:hover::after {
    width: 100%;
}


/* =========================================================
   CARD TOP
========================================================= */

.cs-solution-card-top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;
}

.cs-solution-number {
    font-family: var(
        --cs-heading-font,
        var(--cs-font-heading, inherit)
    );

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.12em;

    color: var(
        --cs-text-muted,
        rgba(16, 16, 16, 0.35)
    );
}

.cs-solution-arrow {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(
        --cs-border,
        rgba(16, 16, 16, 0.12)
    );

    border-radius: 50%;

    color: var(--cs-heading, #101010);

    text-decoration: none;

    background: var(
        --cs-surface,
        rgba(255, 255, 255, 0.55)
    );

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.cs-solution-arrow i {
    font-size: 15px;
}

.cs-solution-card:hover .cs-solution-arrow {
    color: #080808;

    background: var(
        --cs-primary,
        #00d9ff
    );

    border-color: var(
        --cs-primary,
        #00d9ff
    );

    transform: rotate(5deg);
}


/* =========================================================
   ICON
========================================================= */

.cs-solution-icon {
    position: relative;

    width: 74px;
    height: 74px;

    margin-top: 58px;
    margin-bottom: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    color: var(
        --cs-primary,
        #00d9ff
    );

    background:
        linear-gradient(
            145deg,
            rgba(0, 217, 255, 0.09),
            rgba(0, 217, 255, 0.025)
        );

    border: 1px solid rgba(0, 217, 255, 0.14);

    box-shadow:
        inset 0 0 30px rgba(0, 217, 255, 0.025);

    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.cs-solution-icon::before {
    content: "";

    position: absolute;

    width: 9px;
    height: 9px;

    top: -4px;
    right: 14px;

    border-radius: 50%;

    background: var(
        --cs-primary,
        #00d9ff
    );

    box-shadow:
        0 0 0 5px rgba(0, 217, 255, 0.06),
        0 0 18px rgba(0, 217, 255, 0.35);
}

.cs-solution-icon i {
    font-size: 30px;

    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1);
}

.cs-solution-card:hover .cs-solution-icon {
    transform: translateY(-4px) rotate(-3deg);

    border-color: rgba(0, 217, 255, 0.34);

    box-shadow:
        0 15px 40px rgba(0, 217, 255, 0.09);
}

.cs-solution-card:hover .cs-solution-icon i {
    transform: scale(1.08);
}


/* =========================================================
   CONTENT
========================================================= */

.cs-solution-content {
    margin-top: auto;
}

.cs-solution-content h3 {
    margin: 0;

    max-width: 320px;

    font-family: var(
        --cs-heading-font,
        var(--cs-font-heading, inherit)
    );

    font-size: clamp(23px, 2vw, 29px);

    font-weight: 750;

    line-height: 1.04;

    letter-spacing: -0.035em;

    color: var(--cs-heading, #101010);
}

.cs-solution-content h3 span {
    display: block;

    color: var(
        --cs-text-soft,
        rgb(126 126 126)
    );

    font-weight: 500;
}

.cs-solution-content p {
    max-width: 340px;

    margin: 17px 0 25px;

    font-size: 13px;

    line-height: 1.7;

}

.cs-solution-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(37, 99, 235, .2);
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #174d9c);
    box-shadow: 0 7px 18px rgba(23, 77, 156, .2);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        gap 0.2s ease,
        transform 0.2s ease;
}

.cs-solution-link i {
    font-size: 13px;

    transition: transform 0.3s ease;
}

.cs-solution-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #174d9c, #103c7d);
    box-shadow: 0 10px 22px rgba(23, 77, 156, .3);
    gap: 12px;
    transform: translateY(-2px);
}

.cs-solution-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 3px;
}

.cs-solution-link:hover i {
    transform: translateX(3px);
}


/* =========================================================
   FEATURED CARD
========================================================= */

.cs-solution-card-featured {
    background:
        linear-gradient(
            145deg,
            rgba(0, 217, 255, 0.075),
            rgba(255, 255, 255, 0.18)
        );
}

.cs-solution-card-featured .cs-solution-icon {
    background:
        linear-gradient(
            145deg,
            rgba(0, 217, 255, 0.15),
            rgba(248, 165, 27, 0.07)
        );
}

.cs-solution-card-featured::after {
    width: 28%;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.cs-web-solutions-bottom {
    display: flex;

    align-items: center;

    gap: 24px;

    margin-top: 58px;
}

.cs-web-solutions-bottom-line {
    flex: 1;

    height: 1px;

    background: var(
        --cs-border,
        rgba(16, 16, 16, 0.10)
    );
}

.cs-web-solutions-bottom-content {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 9px 14px;

    font-size: 12px;

    text-align: center;
}

.cs-web-solutions-bottom-content > span {
    color: var(
        --cs-text-muted,
        rgba(16, 16, 16, 0.48)
    );
}

.cs-web-solutions-bottom-content strong {
    font-weight: 700;

    color: var(--cs-heading, #101010);
}

.cs-web-solutions-bottom-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(
        --cs-primary-dark,
        #00a9c7
    );

    font-weight: 700;

    text-decoration: none;

    transition: gap 0.3s ease;
}

.cs-web-solutions-bottom-link:hover {
    gap: 10px;
}


/* =========================================================
   DARK THEME
========================================================= */

html[data-theme="dark"] .cs-web-solutions {

    background:
        radial-gradient(
            circle at 7% 15%,
            rgba(0, 217, 255, 0.075),
            transparent 28%
        ),
        radial-gradient(
            circle at 94% 82%,
            rgba(248, 165, 27, 0.055),
            transparent 27%
        ),
        var(--cs-bg, #080808);
}

html[data-theme="dark"] .cs-web-solutions-grid {
    opacity: 0.18;

    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
}

html[data-theme="dark"] .cs-solution-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
}

html[data-theme="dark"] .cs-solution-card:hover {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.30);
}

html[data-theme="dark"] .cs-solution-arrow {
    background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .cs-solution-card-featured {
    background:
        linear-gradient(
            145deg,
            rgba(0, 217, 255, 0.085),
            rgba(255, 255, 255, 0.02)
        );
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {

    .cs-web-solutions {
        padding-top: 145px;
        padding-bottom: 125px;
    }

    .cs-solution-card {
        min-height: 455px;

        padding: 34px 34px 36px;
    }

}


/* =========================================================
   TABLET / LAPTOP
========================================================= */

@media (max-width: 1199.98px) {

    .cs-web-solutions-heading-row {
        grid-template-columns: 1fr 0.75fr;

        gap: 40px;
    }

    .cs-web-solutions-title {
        font-size: clamp(44px, 6vw, 68px);
    }

    .cs-solution-card {
        min-height: 420px;

        padding: 27px;
    }

    .cs-solution-icon {
        margin-top: 48px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .cs-web-solutions {
        padding: 100px 0 90px;
    }

    .cs-web-solutions-header {
        margin-bottom: 48px;
    }

    .cs-web-solutions-heading-row {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .cs-web-solutions-intro {
        max-width: 600px;
    }

    .cs-solution-card {
        min-height: 405px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .cs-web-solutions {
        padding: 82px 0 75px;
    }

    .cs-web-solutions-grid {
        background-size: 48px 48px;
    }

    .cs-web-solutions-header {
        margin-bottom: 38px;
    }

    .cs-section-eyebrow {
        margin-bottom: 17px;

        font-size: 9px;
    }

    .cs-web-solutions-title {
        font-size: clamp(40px, 12vw, 58px);

        line-height: 0.98;

        letter-spacing: -0.05em;
    }

    .cs-web-solutions-intro p {
        font-size: 14px;

        line-height: 1.7;
    }

    .cs-solution-card {
        min-height: 390px;

        padding: 25px 23px 28px;
    }

    .cs-solution-icon {
        width: 66px;
        height: 66px;

        margin-top: 42px;
        margin-bottom: 28px;

        border-radius: 19px;
    }

    .cs-solution-icon i {
        font-size: 27px;
    }

    .cs-solution-content h3 {
        font-size: 25px;
    }

    .cs-solution-content p {
        font-size: 12.5px;

        margin-top: 15px;
        margin-bottom: 22px;
    }

    .cs-web-solutions-bottom {
        margin-top: 42px;

        gap: 15px;
    }

    .cs-web-solutions-bottom-line {
        display: none;
    }

    .cs-web-solutions-bottom-content {
        width: 100%;

        flex-direction: column;

        gap: 7px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 479.98px) {

    .cs-web-solutions {
        padding: 70px 0 65px;
    }

    .cs-web-solutions-title {
        font-size: 39px;
    }

    .cs-solution-card {
        min-height: 375px;

        padding: 23px 20px 25px;
    }

    .cs-solution-arrow {
        width: 36px;
        height: 36px;
    }

    .cs-solution-icon {
        width: 62px;
        height: 62px;

        margin-top: 38px;
    }

    .cs-solution-content h3 {
        font-size: 23px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cs-solution-card,
    .cs-solution-icon,
    .cs-solution-icon i,
    .cs-solution-arrow,
    .cs-solution-link,
    .cs-web-solutions-header-link,
    .cs-web-solutions-bottom-link {
        transition: none !important;
    }

    .cs-solution-card:hover {
        transform: none;
    }

}
