/* ===================================
   Professional Service Cards Design
   Fully Responsive CSS
   =================================== */

/* Fix for Swiper vendor prefix compatibility */
.swiper-scrollbar {
    touch-action: none; /* Standard property for compatibility */
}

/* Page Header Styles */
.services-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.services-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
    opacity: 0.1;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    animation: fadeInDown 0.8s ease-out;
}

.page-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styling */
.services-grid-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.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: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
    border: 1px solid #f0f0f0;
}

/* Service Card Image Container */
.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-card-image img {
    transform: scale(1.05);
}

/* Service Card Overlay */
.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-modern:hover .service-card-overlay {
    opacity: 1;
}

/* Remove old header styles and update icon */
.service-card-header {
    display: none;
}

/* Icon Styling */
.service-card-icon {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-card-icon {
    transform: scale(1.1);
}

.service-card-icon svg,
.service-card-icon i {
    width: 30px;
    height: 30px;
    color: #ffffff;
    font-size: 30px;
}

/* 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(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card-modern::before {
    display: none;
}

/* Card Content */
.service-card-content {
    padding: 25px 20px;
}

.service-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.service-card-modern:hover .service-card-title {
    color: #3b82f6;
}

.service-card-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

/* Service Card Features - Hide for screenshot layout */
.service-card-features {
    display: none;
}

/* Card Link/Button */
.service-card-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
    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: #3b82f6;
    transition: width 0.3s ease;
}

.service-card-link:hover {
    color: #1d4ed8;
}

.service-card-link:hover::after {
    width: 100%;
}

.service-card-arrow {
    display: none;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.cta-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border: 2px solid transparent;
}

.btn-primary {
    background: #38b6ff;
    color: white;
}

.btn-primary:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 182, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-2px);
}

/* 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);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Animation Classes */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media screen and (max-width: 991px) {
    .services-page-header {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .header-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }

    .services-grid-section {
        padding: 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-image {
        height: 180px;
    }

    .service-card-content {
        padding: 20px 16px;
    }

    .service-card-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .service-card-description {
        font-size: 13px;
        -webkit-line-clamp: 3;
        margin-bottom: 12px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-description {
        font-size: 16px;
    }
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media screen and (max-width: 767px) {
    .services-page-header {
        padding: 50px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .header-stats {
        gap: 20px;
        flex-direction: column;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 24px;
        margin-bottom: 0;
    }

    .services-grid-section {
        padding: 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: 10px;
    }

    .service-card-image {
        height: 160px;
    }

    .service-card-icon {
        width: 50px;
        height: 50px;
    }

    .service-card-icon svg,
    .service-card-icon i {
        width: 25px;
        height: 25px;
        font-size: 25px;
    }

    .service-card-content {
        padding: 18px 15px;
    }

    .service-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .service-card-description {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        margin-bottom: 12px;
    }

    .service-card-link {
        font-size: 13px;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .cta-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ===================================
   Responsive Design - Small Mobile
   =================================== */
@media screen and (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }

    .services-section-title {
        font-size: 24px;
    }

    .services-section-subtitle {
        font-size: 14px;
    }

    .service-card-image {
        height: 140px;
    }

    .service-card-icon {
        width: 45px;
        height: 45px;
    }

    .service-card-icon svg,
    .service-card-icon i {
        width: 22px;
        height: 22px;
        font-size: 22px;
    }

    .service-card-content {
        padding: 16px 12px;
    }

    .service-card-title {
        font-size: 15px;
    }

    .service-card-description {
        font-size: 12px;
    }
    
    .cta-title {
        font-size: 22px;
    }
    
    .cta-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;
    }
}
