/* ===== SERVICES GRID SECTION CSS ===== */
.services-grid-section {
    background: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* ===== SERVICES GRID WRAPPER ===== */
.services-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

/* ===== SERVICE GRID ITEM ===== */
.service-grid-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0E38B1 0%, #113ADC 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-grid-item:hover::before {
    opacity: 1;
}

.service-grid-item:hover {
    transform: translateY(-8px);
    border-color: #0E38B1;
    box-shadow: 0 15px 40px rgba(14, 56, 177, 0.15);
}

/* ===== SERVICE ICON ===== */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0E38B1 0%, #113ADC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.service-icon i {
    font-size: 32px;
    color: #ffffff;
    transition: all 0.4s ease;
}

.service-grid-item:hover .service-icon {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(14, 56, 177, 0.2);
}

.service-grid-item:hover .service-icon i {
    color: #0E38B1;
}

/* ===== SERVICE CONTENT ===== */
.service-content {
    position: relative;
    z-index: 2;
}

.service-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.service-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d;
    margin: 0;
    transition: all 0.3s ease;
}

.service-grid-item:hover .service-content h4 {
    color: #ffffff;
}

.service-grid-item:hover .service-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199px) {
    .services-grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .service-grid-item {
        padding: 35px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .service-icon i {
        font-size: 28px;
    }
    
    .service-content h4 {
        font-size: 20px;
    }
    
    .service-content p {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .services-grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .services-grid-section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .services-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-grid-item {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .service-content h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .service-content p {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .services-grid-section {
        padding: 50px 0;
    }
    
    .service-grid-item {
        padding: 25px 15px;
    }
    
    .service-content h4 {
        font-size: 16px;
    }
    
    .service-content p {
        font-size: 12px;
    }
}

/* ===== ANIMATION ENHANCEMENTS ===== */
@keyframes iconPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 56, 177, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(14, 56, 177, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 56, 177, 0);
    }
}

.service-grid-item:hover .service-icon {
    animation: iconPulse 2s infinite;
}

/* ===== ADDITIONAL HOVER EFFECTS ===== */
.service-grid-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
}

.service-grid-item:hover::after {
    width: 400px;
    height: 400px;
}
