/* ===================================
   Professional Service Cards Design
   Fully Responsive CSS
   =================================== */

/* Section Styling */
.services-grid-section {
    background: #f8f9fa;
    padding: 0 0 80px 0;
}

.services-section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    animation: fadeInDown 0.8s ease-out;
}

.services-section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-family: 'Exo', sans-serif;
}

.services-section-subtitle {
    font-size: 18px;
    color: #606060;
    line-height: 1.6;
}

/* Service Cards Grid */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Service Card */
.service-card-modern {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Staggered animation delays */
.service-card-modern:nth-child(1) { animation-delay: 0.1s; }
.service-card-modern:nth-child(2) { animation-delay: 0.15s; }
.service-card-modern:nth-child(3) { animation-delay: 0.2s; }
.service-card-modern:nth-child(4) { animation-delay: 0.25s; }
.service-card-modern:nth-child(5) { animation-delay: 0.3s; }
.service-card-modern:nth-child(6) { animation-delay: 0.35s; }
.service-card-modern:nth-child(7) { animation-delay: 0.4s; }
.service-card-modern:nth-child(8) { animation-delay: 0.45s; }
.service-card-modern:nth-child(9) { animation-delay: 0.5s; }
.service-card-modern:nth-child(10) { animation-delay: 0.55s; }

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 74, 148, 0.15);
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #38b6ff 0%, #004a94 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

/* Card Header with Icon */
.service-card-header {
    height: 140px;
    background: linear-gradient(135deg, #38b6ff 0%, #004a94 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-card-header::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card-modern:hover .service-card-header::after {
    transform: rotate(45deg) translateX(100%);
}

/* Icon Styling */
.service-card-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.service-card-modern:hover .service-card-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-card-icon svg,
.service-card-icon i {
    width: 60px;
    height: 60px;
    color: #ffffff;
    font-size: 60px;
}

/* Card Content */
.service-card-content {
    padding: 30px 25px;
}

.service-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
    font-family: 'Exo', sans-serif;
    transition: color 0.3s ease;
}

.service-card-modern:hover .service-card-title {
    color: #004a94;
}

.service-card-description {
    font-size: 17px;
    color: #606060;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Link/Button */
.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #38b6ff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.service-card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #38b6ff;
    transition: width 0.3s ease;
}

.service-card-link:hover {
    color: #004a94;
    gap: 12px;
}

.service-card-link:hover::after {
    width: calc(100% - 20px);
}

.service-card-arrow {
    transition: transform 0.3s ease;
}

.service-card-link:hover .service-card-arrow {
    transform: translateX(4px);
}

/* Color variations for different cards */
.service-card-modern:nth-child(1) .service-card-header {
    background: linear-gradient(135deg, #38b6ff 0%, #004a94 100%);
}

.service-card-modern:nth-child(2) .service-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card-modern:nth-child(3) .service-card-header {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.service-card-modern:nth-child(4) .service-card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-card-modern:nth-child(5) .service-card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-card-modern:nth-child(6) .service-card-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.service-card-modern:nth-child(7) .service-card-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.service-card-modern:nth-child(8) .service-card-header {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.service-card-modern:nth-child(9) .service-card-header {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.service-card-modern:nth-child(10) .service-card-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media screen and (max-width: 991px) {
    .services-grid-section {
        padding: 0 0 60px 0;
    }

    .services-section-header {
        margin-bottom: 40px;
    }

    .services-section-title {
        font-size: 36px;
    }

    .services-section-subtitle {
        font-size: 16px;
    }

    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-card-header {
        height: 120px;
    }

    .service-card-icon svg,
    .service-card-icon i {
        width: 50px;
        height: 50px;
        font-size: 50px;
    }

    .service-card-content {
        padding: 25px 20px;
    }

    .service-card-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .service-card-description {
        font-size: 16px;
        -webkit-line-clamp: 4;
    }
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media screen and (max-width: 767px) {
    .services-grid-section {
        padding: 0 0 50px 0;
    }

    .services-section-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .services-section-title {
        font-size: 28px;
    }

    .services-section-subtitle {
        font-size: 15px;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .service-card-modern {
        border-radius: 12px;
    }

    .service-card-header {
        height: 110px;
    }

    .service-card-icon {
        width: 70px;
        height: 70px;
    }

    .service-card-icon svg,
    .service-card-icon i {
        width: 45px;
        height: 45px;
        font-size: 45px;
    }

    .service-card-content {
        padding: 20px 18px;
    }

    .service-card-title {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .service-card-description {
        font-size: 15px;
        line-height: 1.6;
        -webkit-line-clamp: 5;
        margin-bottom: 16px;
    }

    .service-card-link {
        font-size: 14px;
    }
}

/* ===================================
   Responsive Design - Small Mobile
   =================================== */
@media screen and (max-width: 480px) {
    .services-section-title {
        font-size: 24px;
    }

    .services-section-subtitle {
        font-size: 14px;
    }

    .service-card-header {
        height: 100px;
    }

    .service-card-icon {
        width: 60px;
        height: 60px;
    }

    .service-card-icon svg,
    .service-card-icon i {
        width: 40px;
        height: 40px;
        font-size: 40px;
    }

    .service-card-content {
        padding: 18px 15px;
    }

    .service-card-title {
        font-size: 18px;
    }

    .service-card-description {
        font-size: 14px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .service-card-modern {
        box-shadow: none;
        border: 1px solid #e0e0e0;
        page-break-inside: avoid;
    }

    .service-card-modern:hover {
        transform: none;
    }

    .service-card-link {
        color: #000;
    }
}

/* ===================================
   Accessibility
   =================================== */
.service-card-modern:focus-within {
    outline: 3px solid #38b6ff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .service-card-modern,
    .service-card-icon,
    .service-card-header::after,
    .service-card-link,
    .service-card-arrow {
        animation: none !important;
        transition: none !important;
    }
}
