:root {
    --brand-red: #fe2828;
    --brand-blue: #004aad;
    --bg-main: #070b14;
    --bg-soft: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.78);
}

.services-page {
    position: relative;
    padding: 110px 0 90px;
    background:
        radial-gradient(circle at top right, rgba(254, 40, 40, 0.18), transparent 28%),
        radial-gradient(circle at top left, rgba(0, 74, 173, 0.15), transparent 26%),
        linear-gradient(180deg, #05070d 0%, #09111f 100%);
    overflow: hidden;
}

.services-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.18;
    pointer-events: none;
}

.services-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 74, 173, 0.16);
    border: 1px solid rgba(0, 74, 173, 0.28);
    color: #dce8ff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 0 22px rgba(0, 74, 173, 0.12);
}

.services-hero h1 {
    color: var(--text-main);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.services-hero p {
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.9;
    margin: 0 auto;
    max-width: 760px;
}

.services-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px 24px 26px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    min-height: 280px;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(254, 40, 40, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(0, 74, 173, 0.14), transparent 35%);
    opacity: 1;
    pointer-events: none;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    border: 1px solid rgba(255,255,255,0.03);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(254, 40, 40, 0.28);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(254, 40, 40, 0.10),
        0 0 30px rgba(0, 74, 173, 0.08);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(255,255,255,0.24);
    letter-spacing: 0.08em;
}

html[dir="rtl"] .service-number {
    right: auto;
    left: 20px;
}

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(254, 40, 40, 0.95), rgba(0, 74, 173, 0.9));
    box-shadow:
        0 8px 24px rgba(254, 40, 40, 0.22),
        0 0 24px rgba(0, 74, 173, 0.14);
}

.service-card h3 {
    position: relative;
    z-index: 2;
    color: var(--text-main);
    font-size: 1.28rem;
    line-height: 1.45;
    margin-bottom: 14px;
    font-weight: 800;
}

.service-card p {
    position: relative;
    z-index: 2;
    color: var(--text-soft);
    font-size: 0.99rem;
    line-height: 1.9;
    margin: 0;
}

html[dir="rtl"] .service-card {
    text-align: right;
}

html[dir="ltr"] .service-card {
    text-align: left;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .services-page {
        padding: 95px 0 70px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .services-hero {
        margin-bottom: 38px;
    }

    .service-card {
        padding: 26px 20px 22px;
        border-radius: 20px;
        min-height: auto;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .services-hero p {
        font-size: 1rem;
        line-height: 1.85;
    }
}
/* =========================================
   SERVICES HERO REFINEMENT
========================================= */

.services-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    min-height: 52px;

    padding: 12px 28px;

    margin-bottom: 28px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 74, 173, 0.20),
            rgba(0, 74, 173, 0.10)
        );

    border: 1px solid rgba(0, 74, 173, 0.42);

    box-shadow:
        0 0 24px rgba(0, 74, 173, 0.18);

    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 700;
}

.services-hero h1 {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;

    font-size: clamp(2.4rem, 4.5vw, 4rem);
    line-height: 1.35;

    text-align: center;
}

.services-hero p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;

    font-size: 1.06rem;
    line-height: 1.95;

    text-align: center;
}
/* Premium service icons */

.service-icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(254, 40, 40, 0.16),
            rgba(0, 74, 173, 0.16)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.25),
        0 0 22px rgba(254, 40, 40, 0.08);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.service-icon svg {
    width: 31px;
    height: 31px;

    fill: none;
    stroke: #ffffff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:hover .service-icon {
    transform: translateY(-4px) scale(1.05);

    border-color: rgba(254, 40, 40, 0.35);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.28),
        0 0 25px rgba(254, 40, 40, 0.14),
        0 0 28px rgba(0, 74, 173, 0.12);
}

.service-card:hover .service-icon svg {
    stroke: #ffffff;
}