﻿/* ==========================
   HERO SECTION
========================== */
.serhero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 80px;
    height: 100vh;
    width: 100%;
    background-image: url('https://rmciweb.blob.core.windows.net/website/servicemainback.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--color-white);
    position: relative;
}

    .serhero-section::before {
        content: "";
        position: absolute;
        background: linear-gradient(120deg, rgba(0, 0, 0, 0.1));
        inset: 0;
        z-index: 0;
    }

.serhero-content {
    flex: 1;
    padding-right: 40px;
    max-width: 50%;
    z-index: 1;
    position: relative;
    bottom: 30px;
}

.serhero-heading {
    font-family: var(--int-font);
    color: var(--color-white);
    font-size: var(--xxxlarge-size);
    font-weight: 500;
    line-height: 100%;
    margin-bottom: 3%;
}

.serhero-para {
    font-family: var(--int-font);
    color: var(--color-white);
    font-size: var(--medium-size);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 3%;
}

.serhero-btn {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
    color: var(--color-white);
    padding: 16px 36px;
    border-radius: 15px;
    font-weight: 700;
    font-size: var(--xmedium-size);
    font-family: var(--int-font);
    border: none;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: default;
}
/* ---------- POPUP STYLES ---------- */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup {
    background: #F2F1FF;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 30%;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    animation: slideIn 0.3s ease forwards;
}

    .popup .popup-heading {
        margin-top: 0;
        font-size: var(--xxmedium-size);
        color: #222;
    }

    .popup .popup-para {
        color: #555;
        font-size: var(--xxsmall-size);
        line-height: 1.6;
        margin: 10px 0;
    }

    .popup a {
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
    }

        .popup a:hover {
            text-decoration: underline;
        }

.close-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    transition: color 0.2s;
}

    .close-btn:hover {
        color: #007bff;
    }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ---------- MOBILE VERSION (max-width: 500px) ---------- */
@media (max-width: 500px) {
    .popup {
        max-width: 60%;
        padding: 20px;
        border-radius: 10px;
        position: relative;
        bottom: 20%;
    }

        .popup .popup-heading {
            font-size: var(--medium-size);
        }

        .popup .popup-para {
            font-size: var(--xsmall-size);
            margin: 8px 0;
        }

    .close-btn {
        top: 0px;
        right: 5px;
        font-size: 20px;
    }
}



.serhero-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.4) 0%, transparent 80%);
    transition: all 0.6s ease;
}

.serhero-btn:hover::before {
    left: 100%;
}

.serhero-btn:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 50%, #1d4ed8 100%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.serhero-btn:active {
    transform: scale(0.97);
    background: linear-gradient(90deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.serhero-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.6), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

    .hero-image img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }


/* ===================
   HERO-SECTION MOBILE
====================== */

@media (max-width: 500px) {
    .serhero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 40px;
        height: 100%;
        background: url('https://rmciweb.blob.core.windows.net/website/sermobileback.png') no-repeat center center;
        background-size: cover;
        z-index: 1;
    }

        .serhero-section::before {
            background: rgba(0, 0, 0, 0.6);
        }

    .serhero-content {
        position: relative;
        z-index: 1;
        color: var(--color-white);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        max-width: 100%;
        position: relative;
        bottom: 10px;
    }

    .serhero-heading {
        font-size: var(--xmedium-size);
        font-weight: 600;
        margin-left: 10%;
    }

    .serhero-para {
        font-size: var(--xsmall-size);
        line-height: 160%;
        margin-left: 13%;
    }

    .serhero-btn {
        padding: 10px 20px;
        font-size: var(--xxsmall-size);
        margin-left: 14%;
    }

    .hero-image {
        display: none;
    }
}
/* =============================
   CONTRIBUTION HEADING AND TEXT
================================ */

.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 60px;
}

.center-heading {
    font-family: var(--int-font);
    font-size: var(--xxlarge-size);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1%;
}

.center-text {
    font-family: var(--int-font);
    font-size: var(--xmedium-size);
    font-weight: 400;
    color: var(--color-heading);
    line-height: 160%;
    margin-bottom: -1%;
}

/* ====================================
   CONTRIBUTION HEADING AND TEXT MOBILE
======================================= */

@media (max-width: 500px) {
    .center-heading {
        font-size: var(--medium-size);
        margin-bottom: 1%;
    }

    .center-text {
        font-size: var(--xsmall-size);
        text-align: center;
        margin: 0 auto;
    }

    .center-container {
        padding: 20px 10px;
    }
}

/* ===============
   CARDS-CONTAINER
================== */
.cards-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 40px;
    margin: auto;
}

.card {
    display: flex;
    align-items: center;
    border-radius: 20px;
    padding: 20px;
    gap: 50px;
    border: none;
    background: transparent;
    transition: transform 0.3s ease;

}

    .card:hover {
        background: var(--color-white);
        transform: translateY(-6px);
    }

    .card.reverse {
        flex-direction: row-reverse;
    }

.card-image,
.card-imagess {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

.card-imagess {
    display: flex;
    border-radius: 20px;
}

.cardhidden-image {
    display: none;
}

.card-content {
    padding: 20px;
    width: 100%;
}

    .card-content .cards-heading {
        font-family: var(--int-font);
        font-size: var(--xxlarge-size);
        font-weight: 600;
        line-height: 150%;
        text-align: left;
    }

    .card-content .cards-para {
        font-family: var(--int-font);
        font-size: var(--xxmedium-size);
        font-weight: 400;
        line-height: 150%;
        text-align: left;
    }

/* ======================
   CARDS-CONTAINER MOBILE
=========================*/
@media (max-width: 500px) {
    .cards-container {
        padding: 20px;
        gap: 30px;
    }

    .card,
    .card.reverse {
        flex-direction: column;
        padding: 10px 10px;
        gap: 5px;
    }

    .card-image,
    .card-imagess {
        width: 100%;
        border-radius: 20px;
    }

    .card-imagess {
        display: none;
    }

    .cardhidden-image {
        display: flex;
        width: 100%;
        height: auto;
        border-radius: 20px;
    }

    .card-content {
        padding: 0;
    }

        .card-content .cards-heading {
            font-size: var(--xmedium-size);
            text-align: left;
        }

        .card-content .cards-para {
            font-size: var(--xsmall-size);
            text-align: center;
        }
}

/* =============
   CORE-SOLUTION
================ */
.core-solutions {
    text-align: center;
    padding: 40px 20px;
}

    .core-solutions .ourcore-heading {
        font-family: var(--int-font);
        font-size: var(--xxxlarge-size);
        font-weight: 600;
        color: var(--color-heading);
        margin-bottom: 5%;
    }

.core-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.core-card {
    background: linear-gradient(135deg, #3F0C96, #11097D, #030130);
    color: var(--color-white);
    width: 360px;
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

    .core-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    }

    .core-card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 15px;
    }

.corecard-heading,
.corecard-para {
    font-family: var(--int-font);
    color: var(--color-white);
}

.corecard-heading {
    font-size: var(--xxxmedium-size);
    font-weight: 600;
    margin-bottom: 3%;
}

.corecard-para {
    font-size: var(--medium-size);
    font-weight: 200;
    margin-bottom: 5%;
}

/* ====================
   CORE-SOLUTION MOBILE
======================= */

@media (max-width: 500px) {
    .core-solutions {
        padding: 30px 15px;
    }

        .core-solutions .ourcore-heading {
            font-size: var(--xxlarge-size);
            margin-bottom: 8%;
        }

    .core-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .core-card {
        width: 90%;
        max-width: 320px;
        padding: 18px;
    }

    .corecard-heading {
        font-size: var(--xxmedium-size);
    }

    .corecard-para {
        font-size: var(--xxsmall-size);
    }
}

/* ==========
   TECH-STACK
=============*/

.tech-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.tech-heading {
    font-family: var(--int-font);
    font-size: var(--xxxlarge-size);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 2%;
}

.tech-para {
    font-family: var(--int-font);
    font-size: var(--xxmedium-size);
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 5%;
    max-width: 70%;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 800px;
    width: 100%;
    justify-items: center;
}

.icon {
    background-color: var(--color-white);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .icon img {
        width: 50px;
        height: auto;
        object-fit: contain;
    }

    .icon:hover {
        transform: scale(1.05);
    }

/* =================
   TECH-STACK MOBILE
==================== */

@media (max-width: 500px) {
    .tech-heading {
        font-size: var(--xxmedium-size);
        margin-bottom: 5%;
    }

    .tech-para {
        font-size: var(--xsmall-size);
        margin-bottom: 8%;
        max-width: 90%;
    }

    .icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .icon {
        width: 50px;
        height: 50px;
    }

        .icon img {
            width: 30px;
        }
}
