/* =========================================================
   MORDMINI TECHNOLOGY PVT. LTD.
   OUR SERVICES SECTION
   Complete services.css
   ========================================================= */


/* =========================================================
   1. SERVICES SECTION
   ========================================================= */

.services-section {
    position: relative;
    overflow: hidden;

    margin: 0;
    padding: 42px 0 48px;

    background:
        radial-gradient(
            circle at 5% 15%,
            rgba(18, 104, 232, 0.055) 0,
            rgba(18, 104, 232, 0.018) 18%,
            rgba(18, 104, 232, 0) 34%
        ),
        radial-gradient(
            circle at 95% 80%,
            rgba(34, 168, 237, 0.05) 0,
            rgba(34, 168, 237, 0.015) 18%,
            rgba(34, 168, 237, 0) 34%
        ),
        linear-gradient(
            180deg,
            #f7faff 0%,
            #f3f8fd 50%,
            #f8fbff 100%
        );

    border-top: 1px solid #e5edf6;
    border-bottom: 1px solid #e5edf6;
}


/* =========================================================
   2. DECORATIVE BACKGROUND ELEMENTS
   ========================================================= */

.services-section::before {
    position: absolute;

    top: 80px;
    left: -150px;

    width: 320px;
    height: 320px;

    content: "";

    border: 1px solid rgba(18, 104, 232, 0.07);
    border-radius: 50%;

    pointer-events: none;
}


.services-section::after {
    position: absolute;

    right: -170px;
    bottom: 100px;

    width: 380px;
    height: 380px;

    content: "";

    border: 1px solid rgba(18, 104, 232, 0.06);
    border-radius: 50%;

    pointer-events: none;
}


/* Keep content above decorations */

.services-section > .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   3. SERVICES HEADER
   ========================================================= */

.services-header {
    position: relative;

    width: 100%;
    max-width: 820px;

    margin: 0 auto 32px;

    text-align: center;
}


/* =========================================================
   4. SERVICES EYEBROW
   ========================================================= */

.services-eyebrow {
    position: relative;

    display: inline-block;

    margin: 0 0 10px;
    padding: 0 0 9px;

    color: var(--color-primary);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* Small blue line */

.services-eyebrow::after {
    position: absolute;

    bottom: 0;
    left: 50%;

    width: 42px;
    height: 2px;

    content: "";

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            #22a8ed
        );

    border-radius: 3px;

    transform: translateX(-50%);
}


/* =========================================================
   5. SERVICES TITLE
   ========================================================= */

.services-title {
    margin: 0 0 12px;
    padding: 0;

    color: var(--color-heading);

    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 800;

    line-height: 1.12;
    letter-spacing: -1.2px;

    text-align: center;
}


/* Force highlighted part onto second line */

.services-title-highlight {
    display: block;

    color: var(--color-primary);
}


/* =========================================================
   6. SERVICES DESCRIPTION
   ========================================================= */

.services-description {
    width: 100%;
    max-width: 690px;

    margin: 0 auto;

    color: var(--color-text);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   7. SERVICES GRID
   ========================================================= */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: stretch;

    gap: 20px;

    width: 100%;
}


/* =========================================================
   8. SERVICE CARD
   ========================================================= */

.service-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 300px;

    padding: 24px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    border: 1px solid #e2ebf5;

    border-radius: 14px;

    box-shadow:
        0 7px 24px rgba(16, 44, 80, 0.045);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}


/* =========================================================
   9. CARD TOP ACCENT
   ========================================================= */

.service-card-accent {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            #28a9ed
        );

    transform: scaleX(0);
    transform-origin: left center;

    transition:
        transform var(--transition);
}


/* =========================================================
   10. SERVICE CARD HOVER
   ========================================================= */

.service-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(18, 104, 232, 0.22);

    box-shadow:
        0 16px 38px rgba(16, 44, 80, 0.10);
}


.service-card:hover .service-card-accent {
    transform: scaleX(1);
}


/* =========================================================
   11. SERVICE ICON
   ========================================================= */

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    margin: 0 0 18px;

    color: var(--color-white);

    background:
        linear-gradient(
            135deg,
            var(--color-primary) 0%,
            #168ee7 55%,
            #2bb5ed 100%
        );

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius: 11px;

    box-shadow:
        0 8px 18px rgba(18, 104, 232, 0.18);

    font-size: 19px;
    font-weight: 700;
    line-height: 1;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.service-card:hover .service-icon {
    transform: translateY(-2px);

    box-shadow:
        0 11px 24px rgba(18, 104, 232, 0.24);
}


/* =========================================================
   12. SERVICE CARD CONTENT
   ========================================================= */

.service-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;
}


/* =========================================================
   13. SERVICE TITLE
   ========================================================= */

.service-title {
    margin: 0 0 10px;

    color: var(--color-heading);

    font-size: 19px;
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.25px;
}


/* =========================================================
   14. SERVICE DESCRIPTION
   ========================================================= */

.service-description {
    margin: 0 0 17px;

    color: var(--color-text);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.6;
}


/* =========================================================
   15. SERVICE TAGS
   ========================================================= */

.service-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin: auto 0 18px;
}


/* =========================================================
   16. SERVICE TAG
   ========================================================= */

.service-tag {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 4px 9px;

    color: #386188;

    background:
        rgba(18, 104, 232, 0.065);

    border:
        1px solid rgba(18, 104, 232, 0.08);

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;

    line-height: 1;
}


/* =========================================================
   17. LEARN MORE LINK
   ========================================================= */

.service-link {
    display: inline-flex;
    align-items: center;

    align-self: flex-start;

    gap: 7px;

    margin-top: auto;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

    transition:
        color var(--transition);
}


/* =========================================================
   18. LEARN MORE ARROW
   ========================================================= */

.service-link-arrow {
    display: inline-block;

    font-size: 17px;
    line-height: 1;

    transition:
        transform var(--transition);
}


.service-link:hover {
    color: var(--color-primary-dark);
}


.service-link:hover .service-link-arrow {
    transform: translateX(5px);
}


/* =========================================================
   19. SERVICES CTA
   ========================================================= */

.services-cta {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-top: 28px;

    padding: 22px 28px;

    overflow: hidden;

    background:
        linear-gradient(
            105deg,
            #0f3158 0%,
            #0d4d91 52%,
            #1268e8 100%
        );

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;

    box-shadow:
        0 12px 30px rgba(16, 44, 80, 0.14);
}


/* CTA decorative glow */

.services-cta::after {
    position: absolute;

    top: -110px;
    right: 130px;

    width: 240px;
    height: 240px;

    content: "";

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 68%
        );

    pointer-events: none;
}


/* =========================================================
   20. CTA CONTENT
   ========================================================= */

.services-cta-content {
    position: relative;
    z-index: 2;

    min-width: 0;
}


/* =========================================================
   21. CTA EYEBROW
   ========================================================= */

.services-cta-eyebrow {
    margin: 0 0 5px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 11px;
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


/* =========================================================
   22. CTA TITLE
   ========================================================= */

.services-cta-title {
    margin: 0;

    color: var(--color-white);

    font-size: clamp(19px, 2vw, 25px);
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.3px;
}


/* =========================================================
   23. CTA BUTTON
   ========================================================= */

.services-cta-button {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    gap: 8px;

    min-height: 44px;

    padding: 0 20px;

    color: var(--color-primary);

    background: var(--color-white);

    border:
        1px solid rgba(255, 255, 255, 0.75);

    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.10);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}


.services-cta-button:hover {
    transform: translateY(-2px);

    background: #f5f9ff;

    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   24. TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .services-section {
        padding:
            36px 0 42px;
    }


    .services-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }


    .service-card {
        min-height: 290px;
    }
}


/* =========================================================
   25. SMALL TABLET
   ========================================================= */

@media (max-width: 768px) {

    .services-section {
        padding:
            32px 0 38px;
    }


    .services-header {
        margin-bottom: 26px;
    }


    .services-title {
        font-size:
            clamp(30px, 6vw, 39px);
    }


    .services-description {
        max-width: 600px;

        font-size: 15px;
    }


    .services-cta {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;

        padding: 22px;
    }
}


/* =========================================================
   26. MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .services-section {
        padding:
            28px 0 34px;
    }


    /* Header */

    .services-header {
        margin-bottom: 24px;
    }


    .services-eyebrow {
        margin-bottom: 8px;
    }


    .services-title {
        margin-bottom: 11px;

        font-size: 28px;

        line-height: 1.18;

        letter-spacing: -0.7px;
    }


    .services-description {
        font-size: 15px;

        line-height: 1.55;
    }


    /* Grid */

    .services-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    /* Card */

    .service-card {
        min-height: auto;

        padding: 20px;

        border-radius: 12px;
    }


    .service-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        margin-bottom: 15px;

        font-size: 18px;
    }


    .service-title {
        margin-bottom: 8px;

        font-size: 18px;
    }


    .service-description {
        margin-bottom: 15px;

        font-size: 14px;
    }


    .service-tags {
        margin:
            0 0 17px;
    }


    /* CTA */

    .services-cta {
        margin-top: 20px;

        padding: 20px;

        border-radius: 12px;
    }


    .services-cta-title {
        font-size: 20px;
    }


    .services-cta-button {
        width: 100%;

        min-height: 46px;
    }


    /* Background decorations */

    .services-section::before {
        left: -210px;

        width: 300px;
        height: 300px;
    }


    .services-section::after {
        right: -220px;

        width: 320px;
        height: 320px;
    }
}


/* =========================================================
   27. SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .services-section {
        padding:
            24px 0 30px;
    }


    .services-title {
        font-size: 26px;
    }


    .services-description {
        font-size: 14px;
    }


    .service-card {
        padding: 18px;
    }


    .services-cta {
        padding: 18px;
    }
}


/* =========================================================
   28. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .service-card-accent,
    .service-icon,
    .service-link,
    .service-link-arrow,
    .services-cta-button {
        transition-duration:
            0.01ms !important;
    }
}