/* ============================================================================
   SERVICE CARDS - MODERN CTA SECTION
   Beautiful, distinct cards for the homepage CTA section
   ============================================================================ */

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 1) 100%);
    border-radius: 1.75rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .service-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Decorative gradient background */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card--primary::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.service-card--secondary::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.service-card--tertiary::before {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.service-card:hover::before {
    opacity: 1;
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(0, 0, 0, 0.05);
}

.service-card--primary:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.service-card--secondary:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.service-card--tertiary:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

[data-theme="dark"] .service-card:hover {
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   ICON WRAPPER
   ============================================================================ */

.service-card__icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card__icon-wrapper--primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.service-card__icon-wrapper--secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.service-card__icon-wrapper--tertiary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.service-card:hover .service-card__icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.service-card__icon {
    width: 40px;
    height: 40px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ============================================================================
   CONTENT
   ============================================================================ */

.service-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
}

.service-card__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.service-card__badge--primary {
    background: rgba(245, 158, 11, 0.15);
    color: #ea580c;
}

.service-card__badge--secondary {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.service-card__badge--tertiary {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

[data-theme="dark"] .service-card__badge--primary {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

[data-theme="dark"] .service-card__badge--secondary {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .service-card__badge--tertiary {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.service-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .service-card__title {
    color: #f1f5f9;
}

.service-card__description {
    font-size: 1rem;
    color: rgba(51, 65, 85, 0.85);
    line-height: 1.7;
}

[data-theme="dark"] .service-card__description {
    color: rgba(226, 232, 240, 0.8);
}

/* ============================================================================
   FEATURES LIST
   ============================================================================ */

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(71, 85, 105, 1);
}

[data-theme="dark"] .service-card__feature {
    color: rgba(203, 213, 225, 0.9);
}

.service-card__check {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.service-card--primary .service-card__check {
    color: #f59e0b;
}

.service-card--secondary .service-card__check {
    color: #3b82f6;
}

.service-card--tertiary .service-card__check {
    color: #8b5cf6;
}

/* ============================================================================
   CTA BUTTON
   ============================================================================ */

.service-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin-top: auto;
}

.service-card__cta--primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.service-card__cta--primary:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.service-card__cta--secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.service-card__cta--secondary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.service-card__cta--tertiary {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.service-card__cta--tertiary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

[data-theme="dark"] .service-card__cta--secondary {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .service-card__cta--tertiary {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.4);
}

.service-card__arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.service-card__cta:hover .service-card__arrow {
    transform: translateX(4px);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .service-card {
        padding: 2rem;
    }

    .service-card__icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .service-card__icon {
        width: 36px;
        height: 36px;
    }

    .service-card__title {
        font-size: 1.375rem;
    }
}

@media (max-width: 768px) {
    .service-card {
        padding: 1.75rem;
    }

    .service-card__icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .service-card__icon {
        width: 32px;
        height: 32px;
    }

    .service-card__title {
        font-size: 1.25rem;
    }

    .service-card__description {
        font-size: 0.9375rem;
    }

    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* ============================================================================
   PERFORMANCE & ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card__icon-wrapper,
    .service-card__cta,
    .service-card__arrow {
        transition: none !important;
    }

    .service-card:hover {
        transform: none !important;
    }

    .service-card:hover .service-card__icon-wrapper {
        transform: none !important;
    }
}

.service-card:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.6);
    outline-offset: 4px;
}

.service-card__cta:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.6);
    outline-offset: 2px;
}
