.services {
    padding: 120px 0;
    background: 
        url('../images/img10.jpg') center/cover no-repeat,
        linear-gradient(135deg, rgba(198, 198, 198, 0.85) 0%, rgba(248, 250, 252, 0.9) 100%);
    background-blend-mode: overlay;
    background-size: cover, 400% 400%;
    animation: servicesBg 10s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 250, 252, 0.8) 100%),
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.03) 0%, transparent 50%);
    animation: servicesOverlay 15s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.9;
}

@keyframes servicesBg {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes servicesOverlay {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0px);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-10px);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Enhanced service cards */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.15);
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);
}

/* Enhanced service icons */
.service-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.2rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: var(--secondary-gradient);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced typography */
.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 12px 0;
    position: relative;
    padding-left: 30px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.service-features li:hover {
    color: var(--text-accent);
    transform: translateX(5px);
}

.service-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1.1rem;
}

/* Enhanced popular badge */
.popular-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--secondary-gradient);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    animation: pulseGlow 2s infinite;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-5px);
    }
}

.section-header {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 60px;
}

.section-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
