﻿/* ========================== HERO SECTION ========================== */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0px 80px;
    height: 90vh;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(68, 12, 153, 1) 100%);
    color: var(--color-white);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        z-index: -1;
    }

.hero-content {
    flex: 1;
    padding-right: 40px;
    max-width: 100%;
    position: relative;
    bottom: 30px;
}

.hero-heading {
    font-family: var(--int-font);
    color: var(--color-white);
    font-size: var(--xxxlarge-size);
    font-weight: 500;
}

.hero-para {
    font-family: var(--int-font);
    color: var(--color-white);
    font-size: var(--medium-size);
    line-height: 1.5;
}

.hero-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;
        cursor: default;
    }

        .popup a:hover {
            text-decoration: underline;
            cursor: default;
        }

.close-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    transition: color 0.2s;
    cursor: default;
}

    .close-btn:hover {
        color: #007bff;
        cursor: default;
    }

/* ---------- 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;
    }
}


.hero-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;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-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);
}

.hero-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);
}

.hero-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;
    position: relative;
    bottom: 20px;
}

    .hero-image img {
        max-width: 100%;
        height: auto;
        transform: rotate(-11.27deg);
    }

/* ========================== HERO SECTION MOBILE ========================== */

@media (max-width: 500px) {
    .hero-section {
        position: relative;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 40px;
        height: 100%;
        background: url('https://rmciweb.blob.core.windows.net/website/Mobile%20version.png') no-repeat center center;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
    }

        .hero-section::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            z-index: -1;
        }

    .hero-content {
        position: relative;
        z-index: 1;
        color: var(--color-white);
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        position: relative;
        bottom: 0px;
    }

    .hero-heading {
        font-family: var(--int-font);
        color: var(--color-white);
        font-size: var(--xmedium-size);
        font-weight: 500;
        line-height: 1.2;
        margin-left: 12%;
    }

    .hero-para {
        font-family: var(--int-font);
        color: var(--color-white);
        font-size: var(--xsmall-size);
        line-height: 1.5;
        margin-left: 12%;
    }

    .hero-btn {
        background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
        color: var(--color-white);
        padding: 10px 20px;
        border-radius: 15px;
        font-weight: 700;
        font-size: var(--xxsmall-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;
        margin-left: 12%;
    }

    .hero-image {
        display: none;
    }
}

/* ========================== SERVICES SECTION ========================== */

.services-section {
    padding: 50px 20px;
    text-align: center;
}

.section-title {
    font-family: var(--int-font);
    font-size: var(--xxxlarge-size);
    font-weight: 600;
    margin-bottom: 3%;
    color: var(--color-black);
    opacity: 0.7;
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    gap: 40px;
    align-items: stretch;
    justify-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: linear-gradient(135deg, #020024 0%, #090979 40%, #440C99 100%);
    color: var(--color-white);
    padding: 30px 28px;
    border-radius: 35px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    width: 100%;
    max-width: 380px;
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 60%);
        transform: rotate(25deg);
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .service-card:hover::before {
        opacity: 1;
    }

    .service-card:hover {
        transform: translateY(-14px) scale(1.05) rotateX(3deg) rotateY(-3deg);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 0 20px rgba(68, 12, 153, 0.6), inset 0 0 20px rgba(106, 13, 173, 0.2);
        background: linear-gradient(145deg, #090979 0%, #440C99 45%, #6A0DAD 100%);
    }

.service-card-icon {
    width: 64px;
    margin-bottom: 3%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.card-heading {
    font-family: var(--int-font);
    font-size: var(--xxxmedium-size);
    font-weight: 600;
    margin-bottom: 3%;
    letter-spacing: 0.3px;
}

.card-para {
    font-family: var(--int-font);
    font-size: var(--xxsmall-size);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================== SERVICE-SECTION MOBILE ========================== */

@media (max-width: 500px) {
    .section-title {
        font-size: var(--xxxmedium-size);
        margin-top: -2%;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card-icon {
        width: 50px;
        margin-bottom: 3%;
    }

    .card-heading {
        font-size: var(--xxmedium-size);
        margin-bottom: 3%;
    }

    .card-para {
        font-size: var(--xsmall-size);
    }
}

/* ========================== VALUES SECTION ========================== */

.values-section {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(68, 12, 153, 1) 100%);
    color: var(--color-white);
    overflow: hidden;
    gap: 40px;
    padding: 60px 40px;
}

/* ---------- Left Side: Image ---------- */
.values-imagepic {
    flex: 0 0 35%; /* Image takes around 35% of the width */
    display: flex;
    justify-content: center;
    align-items: center;
}

    .values-imagepic img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        object-fit: contain;
        box-shadow: 0 8px 20px #1d4ed8;
    }
        /* Hover Effect */
.values-imagepic img:hover {
    transform: translateY(-12px) scale(1.05) rotateX(6deg) rotateY(-6deg);
    box-shadow: 0 25px 45px rgba(29, 78, 216, 0.5), 
                0 10px 15px rgba(0, 0, 0, 0.15);
    filter: brightness(1.08) saturate(1.15);
}

/* ---------- Right Side: Text ---------- */
.values-content {
    flex: 0 0 55%; /* Text takes around 55% */
    padding-left: 60px;
}

.values-heading {
    font-family: var(--int-font);
    font-size: var(--xxxlarge-size);
    color: #eaeaea;
    margin-bottom: 3%;
}

.values-text {
    font-family: var(--int-font);
    font-size: var(--medium-size);
    line-height: 1.5;
    color: #eaeaea;
    text-align: left;
}

/* ========================== VALUES SECTION MOBILE ========================== */

@media (max-width: 500px) {
    .values-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px 20px;
        height: auto;
    }

    /* Image on top */
    .values-imagepic {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

        .values-imagepic img {
            width: 100%;
            max-width: 100%;
            height: auto;
            margin-bottom: 20px;
        }

    /* Text below image */
    .values-content {
        order: 2;
        padding-left: 0;
        width: 100%;
    }

    .values-heading {
        font-size: var(--xxlarge-size);
        margin-bottom: 20px;
    }

    .values-text {
        font-size: var(--xxsmall-size);
        text-align: center;
    }
}


/* ==========================   ORGANIZATION SECTION ========================== */

.organizations-section {
    text-align: center;
    padding: 40px 20px;
}

.section-title {
    font-family: var(--int-font);
    font-weight: 600;
    color: var(--color-black);
    line-height: 24px;
    font-size: var(--xxlarge-size);
    position: relative;
    top: 10px;
    margin-bottom: 5%;
}

.organizations-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
    margin-bottom: 2%;
}

.organization {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .organization img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        margin-bottom: 3%;
    }

.organization-heading {
    font-family: var(--int-font);
    font-weight: 700;
    font-size: var(--xxxmedium-size);
    color: #0A0331;
}


/* ========================== ORGANIZATIONS-SECTION MOBILE ========================== */

@media (max-width: 500px) {
    .organizations-section {
        padding: 20px 10px;
    }

    .section-title {
        font-family: var(--int-font);
        font-weight: 500;
        color: var(--color-border);
        line-height: 24px;
        font-size: var(--large-size);
        position: relative;
        top: 10px;
        margin-bottom: 15%;
    }

    .organizations-row {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 3%;
    }

    .organization {
        width: 22%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

        .organization img {
            width: 60px;
            height: 60px;
            margin-bottom: 10px;
        }

    .organization-heading {
        font-size: var(--small-size);
        line-height: 1.2;
    }
}
