/* ======================================
   SERVICES PREVIEW SECTION - HOME PAGE
   ====================================== */

/* Service Preview Cards */
.service-preview-grid {
    margin-top: 50px;
    margin-bottom: 60px;
}

.service-preview-card {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    text-decoration: none;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-preview-card::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #223f61;
    border-radius: 500px 500px 0 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 0;
}

.service-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-preview-card:hover::before {
    top: 0;
    border-radius: 0;
    opacity: 1;
}

.service-preview-icon {
    width: 90px;
    height: 90px;
    background: var(--accent-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-preview-icon img {
    width: 50px;
    height: 50px;
    transition: all 0.4s ease;
}

.service-preview-card:hover .service-preview-icon {
    background: rgba(28, 176, 246, 0.2);
}

.service-preview-content {
    position: relative;
    z-index: 1;
}

.service-preview-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #223f61;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-preview-card:hover .service-preview-content h3 {
    color: #fff;
}

.service-preview-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #656567;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-preview-card:hover .service-preview-content p {
    color: rgba(255, 255, 255, 0.9);
}

.service-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color:var(--secondary-color);
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-preview-link svg {
    transition: transform 0.3s ease;
}

.service-preview-card:hover .service-preview-link {
    gap: 12px;
    color: #fff;
}

.service-preview-card:hover .service-preview-link svg {
    transform: translateX(5px);
}

/* Services CTA Banner */
.services-cta-banner {
    background: linear-gradient(135deg, rgb(2 2 2 / 63%) 0% 0%, rgba(34, 63, 97, 1) 100%);
    border: 1px solid rgba(28, 176, 246, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    margin-top: 30px;
}

.services-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.services-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(28, 176, 246, 0.1);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-item p {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.services-cta-action {
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.services-cta-action h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.services-cta-action p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.services-cta-action .btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .service-preview-card {
        min-height: 320px;
    }
    
    .services-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .services-stats {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .service-preview-card {
        min-height: auto;
        padding: 35px 25px;
    }
    
    .service-preview-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-preview-icon img {
        width: 45px;
        height: 45px;
    }
    
    .service-preview-content h3 {
        font-size: 20px;
    }
    
    .service-preview-content p {
        font-size: 14px;
    }
    
    .services-cta-banner {
        padding: 35px 25px;
    }
    
    .services-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 15px 20px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .services-cta-action h3 {
        font-size: 22px;
    }
    
    .services-cta-action p {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .services-stats {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .stat-item {
        width: 100%;
    }
}
