/* =============================================================================
   Featured Services Cards Section (3 Cards - Relaxed & Spacious)
   Saurjya Acharya Design System & Secondary Hero Button Style
============================================================================= */

.services-clas {
    position: relative;
    padding-top: 30px;
    padding-bottom: 60px;
}

/* 3-Column Responsive Grid with Generous Breathing Room */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

/* Individual Service Card - Spacious & Premium */
.service-card {
    position: relative;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 44px 38px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 100%;
    box-shadow: none;
    transform: none;
    transition: border-color 0.3s ease,
                background-color 0.3s ease;
}

/* Aesthetic Inner Orange Blurry Glow Effect (PC View: Glow Rays Extended Across to Left Side) */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    transform: translate3d(22%, -48%, 0);
    width: 640px;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 90% 70% at 75% 30%,
        rgba(253, 91, 56, 0.40) 0%,
        rgba(253, 91, 56, 0.35) 10%,
        rgba(253, 91, 56, 0.29) 22%,
        rgba(253, 91, 56, 0.22) 36%,
        rgba(253, 91, 56, 0.15) 50%,
        rgba(253, 91, 56, 0.09) 64%,
        rgba(253, 91, 56, 0.045) 78%,
        rgba(253, 91, 56, 0.016) 88%,
        rgba(253, 91, 56, 0.003) 95%,
        transparent 100%
    );
    filter: blur(42px);
    will-change: transform, opacity;
    backface-visibility: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Disabled secondary pseudo-element to prevent gradient quantization & banding interference */
.service-card::after {
    display: none;
}

/* Hover state: NO scale-up, NO outer glow, NO drop shadow - only warm inner glow enhancement */
.service-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(253, 91, 56, 0.3);
    background-color: #161616;
}

.service-card:hover::before {
    opacity: 1;
    filter: blur(38px);
    transform: translate3d(22%, -48%, 0) scale(1.06);
}

/* Inner content layering */
.service-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 14px;
}

/* Card Number */
.service-number {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2px;
    margin-bottom: 26px;
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Card Title */
.service-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.22;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Badges / Pill Tags - Strictly up to 2 lines */
.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    max-height: 82px; /* Restrict to at most 2 lines */
    overflow: hidden;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    user-select: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.service-card:hover .service-badge {
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.88);
}

.service-badge:hover {
    border-color: rgba(253, 91, 56, 0.5) !important;
    background: rgba(253, 91, 56, 0.1) !important;
    color: #ffffff !important;
}

/* Service Description - Generous breathing room below badges */
.service-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #a8a8a8;
    margin: 0 0 32px 0;
    flex-grow: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Card Button: Styled exactly like Secondary Hero Section Button */
.service-card-btn.saurjya-btn.saurjya-btn-secondary {
    width: 100%;
    height: 50px;
    padding: 0 52px 0 22px;
    display: inline-flex;
    align-items: center;
    position: relative;
    border-radius: 100px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
    transition: padding 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
                background-color 0.35s ease,
                border-color 0.35s ease;
}

.service-card-btn.saurjya-btn.saurjya-btn-secondary .btn-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 0.2px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease;
}

.service-card-btn.saurjya-btn.saurjya-btn-secondary .btn-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% - 44px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fd5b38;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    z-index: 2;
    pointer-events: none;
    transition: left 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
                background-color 0.3s ease,
                transform 0.3s ease;
}

.service-card-btn.saurjya-btn.saurjya-btn-secondary .btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* Card Hover effect on button */
.service-card:hover .service-card-btn.saurjya-btn.saurjya-btn-secondary {
    border-color: rgba(255, 255, 255, 0.38);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Direct Hover on button (signature sliding icon like hero button) */
.service-card-btn.saurjya-btn.saurjya-btn-secondary:hover {
    padding: 0 22px 0 52px !important;
    background-color: #242424 !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: none !important;
}

.service-card-btn.saurjya-btn.saurjya-btn-secondary:hover .btn-icon {
    left: 6px !important;
    background-color: #fd5b38 !important;
}

/* Responsive Media Queries */
@media screen and (max-width: 1024px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 640px;
        margin: 0 auto;
    }

    .service-card {
        padding: 36px 30px 32px;
    }
}

@media screen and (max-width: 767px) {
    .services-clas {
        padding-top: 15px;
        padding-bottom: 40px;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
    }

    .service-card {
        padding: 38px 24px 32px;
        border-radius: 22px;
    }

    /* Glow expanded by 30% in mobile view (440px * 1.30 = 572px) with corner circle alignment */
    .service-card::before {
        transform: translate3d(50%, -50%, 0);
        width: 570px;
        height: 570px;
        background: radial-gradient(
            circle at center,
            rgba(253, 91, 56, 0.36) 0%,
            rgba(253, 91, 56, 0.33) 8%,
            rgba(253, 91, 56, 0.28) 18%,
            rgba(253, 91, 56, 0.22) 28%,
            rgba(253, 91, 56, 0.16) 40%,
            rgba(253, 91, 56, 0.11) 52%,
            rgba(253, 91, 56, 0.065) 64%,
            rgba(253, 91, 56, 0.032) 76%,
            rgba(253, 91, 56, 0.012) 86%,
            rgba(253, 91, 56, 0.003) 94%,
            transparent 100%
        );
        filter: blur(48px);
        opacity: 0.95;
    }

    .service-number {
        font-size: 13.5px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    /* Keep service name in one line only with ample vertical breathing space */
    .service-title {
        font-size: clamp(21px, 5.5vw, 24px);
        white-space: nowrap;
        margin-bottom: 22px;
        letter-spacing: -0.3px;
        line-height: 1.25;
    }

    .service-title br {
        display: none;
    }

    /* Relaxed badge spacing */
    .service-badges {
        gap: 8px 10px;
        margin-bottom: 24px;
        max-height: 84px;
    }

    .service-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    /* Relaxed description line and vertical breathing room */
    .service-desc {
        font-size: 14.5px;
        line-height: 1.68;
        color: #a6a6a6;
        margin-bottom: 28px;
    }

    .service-card-footer {
        padding-top: 8px;
        margin-top: auto;
    }

    .service-card-btn.saurjya-btn.saurjya-btn-secondary {
        height: 48px;
        padding: 0 50px 0 20px;
    }
}

