﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Figtree';
}

.service-text-section {
    max-width: 1000px;
    margin-top: 180px;
}


    .service-text-section .text-block h3 {
        font-size: 4rem;
        font-weight: 400;
        margin-bottom: 70px;
    }

    .service-text-section .text-block p {
        font-size: 1.2rem;
        line-height: 1.6;
        max-width: 800px;
        margin-left: 10px;
        margin-top: -40px;
    }


/*cards*/

.service-cards {
    position: relative;
    height: 100vh;
    max-width: 1200px;
    margin: auto;
}

.service-master-cards {
    position: sticky;
    top: 100px;
}

/* Base card style */
.card-block {
    position: sticky;
    top: 100px;
    transition: transform 0.30s linear;
    will-change: transform;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 3rem 4rem;
    background-color: #1a1a1a;
    color: #fff;
    border: 0.5px solid #FFFFFF;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    /*    margin-bottom: 2rem;*/
}

    /* Different top values so overlap has spacing */
    .card-block:nth-child(1) {
        z-index: 1;
    }

    .card-block:nth-child(2) {
        z-index: 2;
    }

    .card-block:nth-child(3) {
        z-index: 3;
    }

    /* Hover effect */
    .card-block:hover {
        box-shadow: 0 8px 20px rgba(105, 191, 175, 0.6);
    }

    .card-block .card-img {
        width: 100%;
        max-width: 350px;
        overflow: hidden;
        height: 400px;
        margin-left: 70px;
    }

        .card-block .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            cursor: pointer;
        }

        .card-block .card-img:hover {
            border-color: #007bff; /* blue border */
            box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
        }

    .card-block .card-Text h4 {
        font-size: 2rem;
        font-weight: 700;
        margin-top: -0.5rem;
        margin-left: 20px;
        color: #69BFAF;
    }

    .card-block .card-Text p {
        font-size: 16px;
        margin-left: 20px;
        max-width: 405px;
        line-height: 1.6;
    }

.card-Text {
    margin-left: 2rem;
}

    .card-Text .sub-card div {
        width: 400px;
        height: 170px;
        padding: 5px 23px;
        margin-left: 20px;
        background-color: #69BFAF;
    }

    .card-Text .sub-card ul {
        margin-top: 1.3rem;
        margin-left: -20px;
        font-family: Figtree;
        line-height: 1.5;
    }


        .card-Text .sub-card div p:nth-of-type(1) {
            text-transform: uppercase;
        }

        .card-Text .sub-card div p:nth-of-type(2) {
            margin-top: -0.8rem;
        }

    .card-Text .sub-card button {
        padding: 10px 15px;
        margin-left: 20px;
        background-color: black;
        font-size: 14px;
        font-family: Figtree;
    }

        .card-Text .sub-card button a {
            color: white;
        }


/*AI-cards*/

.ai-capabilities {
    width: 100%;
    max-width: 1200px;
    height: 1000px;
    margin-top: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


/* Center block default (no bg at start) */
.center-content {
    position: relative;
    margin-top: 2rem;
    z-index: 1;
    width: 570px;
    height: 500px;
    cursor: pointer;
    transition: background 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
}

    /* When active after scroll */
    .center-content.active {
        background: lightgrey; /* bg appears */
    }


/* Header text big initially */
    .center-content h2 {
        font-size: 3.5rem;
        font-weight: 500;
        margin-left: 165px;
        width: 276px;
        margin-top: 11rem;
        transition: all 0.8s ease-in-out;
    }

/* Shrinks when active */
    .center-content.active h2 {
        font-size: 2.5rem;
        margin-top: 11rem;
        width: 240px;
    }

/* Cards hidden initially */
.ai-card {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s ease-in-out;
}

    /* Cards visible after trigger */
    .ai-card.show {
        opacity: 1;
        transform: scale(1);
    }

/* Shared card style */
.ai-card {
    margin: 2rem;
    position: absolute;
    width: min-content;
    height: fit-content;
    background: #1a1a1a;
    color: #fff;
    z-index: 2;
    padding: 1rem;
    cursor: pointer;
    border: 0.5px solid #FFFFFF;
}

    .ai-card:hover {
        box-shadow: 0 5px 10px #69BFAF;
        border: none;
    }

    .ai-card h4 {
        font-size: 1.3rem;
        margin-bottom: 0.85rem;
        margin-top: 2px;
        color: #69BFAF;
        line-height: 1.2;
        width: 270px;
    }

    .ai-card p {
        font-size: 0.9rem;
        line-height: 1.64;
        color: #fff;
    }

    /* Positions */
    .ai-card.top {
        top: 9%;
        left: 30%;
    }

    .ai-card.right {
        right: 4%;
        top: 23%;
    }

    .ai-card.bottom {
        bottom: 10%;
        left: 36%;
    }

    .ai-card.left {
        left: 3%;
        top: 34%;
    }


/*    imgaesection*/
.image-sections {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 2rem;
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

    /* Heading */
    .image-sections h2 {
        font-size: 3rem;
        font-weight: 500;
        line-height: 1.12;
        width: 400px;
        margin-left: -4rem;
    }

/* Image row */
.images-row {
    display: flex;
    gap: 1.5rem;
}

/* Image blocks */
.image-block {
    flex: 1;
}

.image-section-img {
    width: 266px;
    height: 302px;
    margin-left: 250px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover effect */
    .image-section-img:hover {
        border-color: #007bff;
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
    }



/* Section card(last) */

.extra-card-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    color: #fff;
    background-color: #1a1a1a;
    cursor: pointer;
    border: 0.2px solid #FFFFFF;
    padding: 2rem 4rem;
    margin: 4rem 60px;
    margin-left: 1rem !important;
}


.text-button {
    display: flex;
    flex-direction: column;
    margin-left: 25px;
}


/* Heading (text left) */
.extra-card-block h4 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #69BFAF;
}


/* Right image */
.extra-card-img {
    max-width: 366px;
    height: 252px;
    justify-self: start;
    margin-left: 25px;
}


    .extra-card-img:hover {
        border-color: #007bff; /* blue border */
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
    }



.service-btn {
    background: conic-gradient(from -3.29deg at 100% -13%, #48C0ED 0deg, #69BFAF 360deg);
    box-shadow: 0px 0px 30px 0px #69BFAF99;
    color: #fff;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 100;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.service-btn:hover {
    color: #e9ffff;
    background: rgba(10, 25, 25, 0.85);
    border: 1px solid rgba(120, 255, 255, 0.45);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.35), 0 0 25px rgba(0, 255, 255, 0.25), inset 0 0 12px rgba(0, 255, 255, 0.25);
}

:root[data-theme="light"] .service-btn {
    background: conic-gradient(from -3.29deg at 100% -13%, #48C0ED 0deg, #1A3D59 360deg);
    box-shadow: 0px 0px 30px 0px #69BFAF99;
    color: white;
}

    :root[data-theme="light"] .service-btn:hover {
        background: #FFFFFFBF;
        box-shadow: 0px 0px 30px 0px #1A3D5999;
        color: #1A3D59;
    }


.ser-btn {
    background: conic-gradient(from -3.29deg at 100% -13%, #48C0ED 0deg, #69BFAF 360deg);
    box-shadow: 0px 0px 30px 0px #69BFAF99;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 100;
    width: 142px;
    transition: all 0.3s ease;
}

.ser-btn:hover {
    color: #e9ffff;
    background: rgba(10, 25, 25, 0.85);
    border: 1px solid rgba(120, 255, 255, 0.45);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.35), 0 0 25px rgba(0, 255, 255, 0.25), inset 0 0 12px rgba(0, 255, 255, 0.25);
}

:root[data-theme="light"] .ser-btn {
    background: conic-gradient(from -3.29deg at 100% -13%, #48C0ED 0deg, #1A3D59 360deg);
    box-shadow: 0px 0px 30px 0px #69BFAF99;
    color: white;
}

    :root[data-theme="light"] .ser-btn:hover {
        background: #FFFFFFBF;
        box-shadow: 0px 0px 30px 0px #1A3D5999;
        color: #1A3D59;
    }

/*// Laptops large devices (desktops, 1600px and up)*/
@media (min-width: 1600px) and (max-width: 1699.98px) {
}

/*// Laptops large devices (desktops, 1400px and up)*/
@media (min-width: 1400px) and (max-width: 1599.98px) {
}

/*// Laptops small devices (desktops, 1200px and up)*/
@media (min-width: 1200px) and (max-width: 1399.98px) {
}

/*// Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
}

/*// Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {
}

/*// Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {


    .service-text-section {
        max-width: 700px;
        margin-top: 140px;
        padding: 0 20px;
    }

        .service-text-section .text-block h3 {
            font-size: 3rem;
        }

        .service-text-section .text-block p {
            font-size: 1rem;
            max-width: 100%;
        }

    .card-block {
        margin: 2rem;
        padding: 2rem;
    }

        .card-block .card-img {
            max-width: 250px;
            height: 300px;
            margin-left: 0; 
        }

        .card-Text{
            margin-left:0;
        }

    .card-block .card-Text h4 {
        font-size: 1.8rem;
        margin-top: 0; 
        margin-left: 0; 
    }

    .card-block .card-Text p {
        font-size: 14px;
        margin-left: 0; 
    }

    .card-Text .sub-card ul {
        margin-top: 0; 
        margin-left: 0; 
        font-size: 13px;
    }

    .card-Text .sub-card div {
        width: 300px;
        height: 130px;
        padding: 5px 23px;
    }

    .card-Text .sub-card button {
        padding: 8px 10px;
        margin-left: 0; 
        font-size: 14px;
        margin-top: -2rem;
    }

    .center-content {
        width: 370px;
        height: 300px;
    }

        .center-content h2 {
            margin-left: 65px;
        }

        .center-content.active h2 {
            font-size: 2.5rem;
            margin-top: 7rem;
            width: 240px;
        }

    .ai-card {
        width: 290px;
        height: 250px;
        padding: 1.2rem;
    }

        .ai-card h4 {
            font-size: 1.7rem;
        }

        .ai-card p {
            font-size: 0.8rem;
        }

        .ai-card.top {
            top: 10%;
            left: 23%;
        }

        .ai-card.left {
            left: -2%;
            top: 36%;
        }

        .ai-card.right {
            right: -2%;
            top: 30%;
        }

        .ai-card.bottom {
            bottom: 11%;
            left: 33%;
        }

    .image-sections {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }

        .image-sections h2 {
            width: 100%;
            margin-left: 0;
            font-size: 2.3rem;
        }

    .image-section-img {
        margin-left: 143px;
        width: 100%;
        height: auto;
    }

    .extra-card-block {
        padding: 1rem;
        margin: 2rem auto;
    }

    .text-button {
         margin-left: 0; 
    }

    .extra-card-block h4 {
            font-size: 1.5rem;
     }

    .extra-card-img {
        width: 100%;
        height: auto;
        margin-left: 0;
    }

    .ser-btn {
        font-size: 14px;
        padding: 8px 10px;
        width: 125px;
    }
}

/*// Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {


    .service-text-section .text-block h3 {
        font-size: 2.5rem;
    }

    .service-text-section .text-block p {
        font-size: 0.9rem;
        align-items: center;
        max-width: 350px;
        margin-top: -60px;
    }


    .service-cards {
        height: 120vh;
    }

    .service-master-cards {
        margin: 0 2rem;
    }


    .card-block {
        padding: 2rem;
        flex-direction: column;
    }

        .card-block .card-img {
            margin-top: 0;
            margin-left: 0;
            height: auto;
        }

        .card-block .card-img img {
                display: none;
        }


        .card-block .card-Text h4 {
            font-size: 1.5rem;
            margin-left: 0;
        }

        .card-block .card-Text p {
            font-size: 0.8rem;
            margin-left: 0;
            max-width: 300px;
        }

    .sub-card {
        font-size: 0.8rem;
        margin-top: -20px !important;
        width: 250px;
    }

    .card-Text {
        margin-top: -20px;
    }

        .card-Text .sub-card div {
            width: 250px;
            margin-left: -16px;
            padding-top: 15px;
        }

        .card-Text .sub-card button {
            padding: 6px 8px;
            margin-left: 0;
        }


    .center-content {
        width: 300px;
        height: 300px;
        margin-top: -44px;
        background: none;
    }

        .center-content.active h2 {
            font-size: 2.5rem;
            margin-top: 7rem;
        }


        .center-content h2 {
            margin-left: 12px !important
        }

    .ai-capabilities {
        height: 200px;
        margin-top: -10rem !important;
        overflow: hidden;
    }

    .ai-card {
        display: none;
    }

    .image-sections {
        padding-top: 0;
        padding-bottom: 0;
    }

        .image-sections h2 {
            font-size: 2rem;
            text-align: center;
            margin-left: -5rem;
        }

    .image-section-img {
        width: 250px;
        height: 205px;
        margin-left: 0;
    }

    .service-btn {
        padding: 6px 10px;
        font-size: 14px;
    }

    .extra-card-block {
        display: block;
        max-width: 500px;
        width: 90%;
    }

        .extra-card-block h4 {
            font-size: 1.7rem;
            width: 270px;
            margin-left: -50px;
        }

    .ser-btn {
        width: 120px;
        font-size: 13px;
        padding: 0;
        height: 40px;
        margin-left: 20px;
    }

    .text-button {
        margin-left: 0;
    }

    .text-center img {
        display: none;
    }

}

/*// Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {


    .service-text-section .text-block h3 {
        font-size: 2.5rem;
    }

    .service-text-section .text-block p {
        font-size: 0.9rem;
        align-items: center;
        max-width: 350px;
        margin-top: -60px;
    }

    .service-cards {
        height: 120vh;
    }

    .service-master-cards{
        margin: 0 2rem;
    }

    .card-block {
        padding: 2rem;
        flex-direction: column;
    }

        .card-block .card-img {
            margin-top: 0;
            margin-left: 0;
            height: auto;
        }

            .card-block .card-img img {
                display: none;
            }

        .card-block .card-Text h4 {
            font-size: 1.5rem;
            margin-left: 0;
        }

        .card-block .card-Text p {
            font-size: 0.8rem;
            margin-left: 0;
            max-width: 300px;
        }


    .sub-card {
        font-size: 0.8rem;
        margin-top: -20px !important;
        width: 250px;
    }

    .card-Text{
        margin-top: -20px;
    }

        .card-Text .sub-card div {
            width: 250px;
            margin-left: -16px;
            padding-top: 15px;
        }

    .card-Text .sub-card button {
        padding: 6px 8px;
        margin-left:0;
    }


    .center-content {
        width: 300px;
        height: 300px;
        margin-top: -44px;
        background: none;
    }

        .center-content.active h2 {
            font-size: 2.5rem;
            margin-top: 7rem;
            margin-left: 25px !important;
        }


        .center-content h2 {
            margin-left: 12px !important;
            margin-top: 6rem;
        }


    .ai-capabilities {
        height: 200px;
        margin-top: -10rem !important;
        overflow: hidden;
    }

    .ai-card {
        display: none;
    }

    .image-sections {
        padding-top: 0;
        padding-bottom: 0;
    }

    .image-sections h2 {
        font-size: 2rem;
        text-align: center;
        margin-left: -5rem;
    }

    .image-section-img {
        width: 250px;
        height: 205px;
        margin-left: 0;
    }

    .service-btn {
        padding: 6px 10px;
        font-size: 14px;
    }

    .extra-card-block {
        display: block;
        max-width: 500px;
        width: 90%;
    }

        .extra-card-block h4 {
            font-size: 1.7rem;
            width: 270px;
            margin-left: -50px;
        }

    .ser-btn {
        width: 120px;
        font-size: 13px;
        padding: 0;
        height: 40px;
        margin-left: 20px;
    }

    .text-button {
        margin-left: 0;
    }

    .text-center img{
        display: none;
    }

}