/* ===================================
   CARD COMPONENTS (Unified)
   Used for both service and industry cards
   NO PREPROCESSOR VERSION
   =================================== */

/* Base card styles - applies to all card types */
.card,
.service-card,
.industry-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
}

.card::before,
.service-card::before,
.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 103, 184, 0.05) 0%, rgba(0, 103, 184, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.card:hover::before,
.service-card:hover::before,
.industry-card:hover::before {
    opacity: 1;
}

.card:hover,
.service-card:hover,
.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 103, 184, 0.15);
    border-color: var(--color-accent);
}

.card__icon-wrapper,
.service-card__icon-wrapper,
.industry-card__icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 103, 184, 0.1) 0%, rgba(0, 103, 184, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.card:hover .card__icon-wrapper,
.service-card:hover .service-card__icon-wrapper,
.industry-card:hover .industry-card__icon-wrapper {
    background: linear-gradient(135deg, var(--color-accent) 0%, #005da6 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 103, 184, 0.3);
}

.card__icon,
.service-card__icon,
.industry-card__icon {
    font-size: 2rem;
    color: var(--color-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.card:hover .card__icon,
.service-card:hover .service-card__icon,
.industry-card:hover .industry-card__icon {
    color: white;
    transform: scale(1.1);
}

.card__title,
.service-card__title,
.industry-card__title {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.card:hover .card__title,
.service-card:hover .service-card__title,
.industry-card:hover .industry-card__title {
    color: var(--color-accent);
}

.card__description,
.service-card__description,
.industry-card__description {
    position: relative;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    z-index: 2;
}

.card__arrow,
.service-card__arrow,
.industry-card__arrow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 103, 184, 0.1);
    border-radius: 50%;
    color: var(--color-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.card:hover .card__arrow,
.service-card:hover .service-card__arrow,
.industry-card:hover .industry-card__arrow {
    background-color: var(--color-accent);
    color: white;
    transform: translateX(8px);
}

.card__arrow i,
.service-card__arrow i,
.industry-card__arrow i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.card:hover .card__arrow i,
.service-card:hover .service-card__arrow i,
.industry-card:hover .industry-card__arrow i {
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .card,
    .service-card,
    .industry-card {
        padding: 2rem;
    }

    .card__icon-wrapper,
    .service-card__icon-wrapper,
    .industry-card__icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .card__icon,
    .service-card__icon,
    .industry-card__icon {
        font-size: 1.75rem;
    }

    .card__title,
    .service-card__title,
    .industry-card__title {
        font-size: 1.25rem;
    }
}

/* Animation delays for staggered effect */
.card:nth-child(1),
.service-card:nth-child(1),
.industry-card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2),
.service-card:nth-child(2),
.industry-card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3),
.service-card:nth-child(3),
.industry-card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4),
.service-card:nth-child(4),
.industry-card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5),
.service-card:nth-child(5),
.industry-card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6),
.service-card:nth-child(6),
.industry-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Fade-in animation trigger class */
.card.animate-in,
.service-card.animate-in,
.industry-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}