.services-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(125, 167, 140, 0.08), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(84, 119, 146, 0.08), transparent 30%),
        #ffffff;
}

.services-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Banner */

.services-hero {
    padding: 44px 0 38px;
}

.services-hero-banner {
    width: 100%;
    max-width: 1220px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 34px;
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.10),
        0 14px 34px rgba(125, 167, 140, 0.12);
}

/* Section Title */

.services-section {
    padding: 28px 0 90px;
}

.section-title {
    text-align: center;
    margin-bottom: 58px;
}

.section-title h2 {
    font-family: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.45;
    color: #0f172a;
    margin-bottom: 0;
}

/* Service Cards */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.service-card {
    --service-color: #7DA78C;
    --service-rgb: 125, 167, 140;

    position: relative;
    display: block;
    min-height: 470px;
    padding: 34px;
    border-radius: 34px;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    color: inherit;
    cursor: pointer;

    background:
        radial-gradient(
            circle at 0% 100%,
            rgba(var(--service-rgb), 0.44) 0%,
            rgba(var(--service-rgb), 0.27) 24%,
            rgba(var(--service-rgb), 0.14) 48%,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            rgba(var(--service-rgb), 0.24),
            rgba(var(--service-rgb), 0.12)
        ),
        #ffffff;

    border: 1px solid rgba(var(--service-rgb), 0.38);
    box-shadow: 0 22px 56px rgba(var(--service-rgb), 0.16);
    transition: all 0.28s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(var(--service-rgb), 0.16);
    z-index: 0;
}

.service-card::after {
    content: "";
    position: absolute;
    bottom: -140px;
    right: -140px;
    width: 310px;
    height: 310px;
    border-radius: 999px;
    background: rgba(var(--service-rgb), 0.17);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 76px rgba(var(--service-rgb), 0.24);
    border-color: rgba(var(--service-rgb), 0.60);
}

.service-card > * {
    position: relative;
    z-index: 2;
}

/* Card Icon */

.service-card-icon {
    width: 76px;
    height: 76px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(var(--service-rgb), 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 28px auto;
    box-shadow:
        0 16px 34px rgba(var(--service-rgb), 0.18),
        inset 0 0 0 8px rgba(var(--service-rgb), 0.06);
    transition: all 0.25s ease;
}

.service-card-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--service-color);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: center;
}

.service-card:hover .service-card-icon {
    background: var(--service-color);
    transform: rotate(-3deg) scale(1.05);
}

.service-card:hover .service-card-icon svg {
    stroke: #ffffff;
    animation: serviceIconMove 0.85s ease-in-out infinite;
}

@keyframes serviceIconMove {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-3px) rotate(-5deg);
    }

    50% {
        transform: translateY(0) rotate(4deg);
    }

    75% {
        transform: translateY(-2px) rotate(-3deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Card Text */

.service-number {
    position: absolute;
    top: 22px;
    left: 28px;
    font-size: 84px;
    font-weight: 900;
    line-height: 1;
    color: rgba(var(--service-rgb), 0.15);
    z-index: 1;
}

.service-card h3 {
    font-family: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
    font-size: 34px;
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 10px;
}

.service-card p {
    color: #475569;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 2.05;
    margin-bottom: 18px;
}

.service-fit {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(var(--service-rgb), 0.28);
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.9;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.service-card li {
    position: relative;
    padding-right: 28px;
    color: #334155;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.8;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    border-radius: 999px;
    background: var(--service-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button with proper pulse ring */

.card-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-right: auto;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(var(--service-rgb), 0.36);
    color: var(--service-color);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
    white-space: nowrap;
    overflow: visible;
    isolation: isolate;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 28px rgba(var(--service-rgb), 0.16);
}

.card-action::before,
.card-action::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

.card-action::before {
    box-shadow: 0 0 0 0 rgba(var(--service-rgb), 0.28);
    animation: pulseRingOne 2.2s ease-out infinite;
}

.card-action::after {
    box-shadow: 0 0 0 0 rgba(var(--service-rgb), 0.18);
    animation: pulseRingTwo 2.2s ease-out infinite;
    animation-delay: 1.1s;
}

.service-card:hover .card-action {
    background: var(--service-color);
    color: #ffffff;
    border-color: var(--service-color);
    box-shadow:
        0 16px 34px rgba(var(--service-rgb), 0.24);
}

@keyframes pulseRingOne {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--service-rgb), 0.30);
        opacity: 0.95;
    }

    70% {
        box-shadow: 0 0 0 14px rgba(var(--service-rgb), 0);
        opacity: 0;
    }

    100% {
        box-shadow: 0 0 0 14px rgba(var(--service-rgb), 0);
        opacity: 0;
    }
}

@keyframes pulseRingTwo {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--service-rgb), 0.18);
        opacity: 0.85;
    }

    70% {
        box-shadow: 0 0 0 22px rgba(var(--service-rgb), 0);
        opacity: 0;
    }

    100% {
        box-shadow: 0 0 0 22px rgba(var(--service-rgb), 0);
        opacity: 0;
    }
}

/* Responsive */

@media (max-width: 768px) {
    .services-container {
        padding: 0 18px;
    }

    .services-hero {
        padding: 28px 0 28px;
    }

    .services-hero-banner {
        border-radius: 22px;
        box-shadow:
            0 18px 42px rgba(15, 23, 42, 0.09),
            0 10px 24px rgba(125, 167, 140, 0.10);
    }

    .services-section {
        padding: 24px 0 70px;
    }

    .section-title {
        margin-bottom: 44px;
    }

    .section-title h2 {
        font-size: 32px;
        line-height: 1.55;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        min-height: auto;
        padding: 30px 24px;
        border-radius: 28px;
    }

    .service-card h3 {
        font-size: 29px;
    }

    .service-card p {
        font-size: 14.5px;
    }

    .service-number {
        font-size: 64px;
        left: 22px;
        top: 20px;
    }

    .card-action {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card-icon,
    .service-card-icon svg,
    .card-action,
    .card-action::before,
    .card-action::after {
        transition: none !important;
        animation: none !important;
    }

    .service-card:hover .service-card-icon svg {
        animation: none !important;
    }
}
.service-card-custom {
    --service-color: #7da78c;
    --service-rgb: 125, 167, 140;
}

.service-card-wordpress {
    --service-color: #d96868;
    --service-rgb: 217, 104, 104;
}

.service-card-redesign {
    --service-color: #ff9d23;
    --service-rgb: 255, 157, 35;
}

.service-card-branding {
    --service-color: #744577;
    --service-rgb: 116, 69, 119;
}
