/********** Services Section CSS **********/
.service-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    padding-bottom: 90px;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);
    z-index: 0;
}

.service-section .row {
    position: relative;
    z-index: 1;
}

.service-item {
    position: relative;
    overflow: visible !important;
    height: 100%;
    border-radius: 1rem !important; /* Larger rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    z-index: 1;
    border: none;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(246,246,246,0.5) 100%); /* Subtle gradient */
}

.service-item::after {
    display: none !important;
}

.rounded-lg {
    border-radius: 1rem !important;
}

.shadow-hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(185, 46, 65, 0.1) !important;
}

.service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(185, 46, 65, 0.2);
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(185, 46, 65, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
    opacity: 0;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-item:hover .service-icon::after {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.service-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    transition: color 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.service-item:hover h3 {
    color: var(--primary);
}

.service-item p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem !important;
}

.service-btn {
    font-weight: 600;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.service-item:hover .service-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .service-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .service-item {
        margin-bottom: 30px;
        padding: 30px 20px !important;
    }
}

@media (max-width: 767.98px) {
    .service-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .service-item {
        margin-bottom: 25px;
    }
    
    .service-item h3 {
        font-size: 1.3rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-item h3 {
        font-size: 1.2rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
    
    .service-item {
        padding: 25px 15px !important;
    }
}