/* Services Section Styles */
.services-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e2e8f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.services-container {
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.services-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.service-number {
    position: absolute;
    top: -6px;
    right: -3px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    z-index: 3;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-description {
    color: #64748b;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #64748b;
}

.service-feature::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    margin-right: 0.8rem;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Animation Classes */
.service-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1).animate {
    transition-delay: 0.1s;
}

.service-card:nth-child(2).animate {
    transition-delay: 0.2s;
}

.service-card:nth-child(3).animate {
    transition-delay: 0.3s;
}

.service-card:nth-child(4).animate {
    transition-delay: 0.4s;
}

.service-card:nth-child(5).animate {
    transition-delay: 0.5s;
}

/* Background Elements */
.services-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.services-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    animation: float 8s ease-in-out infinite;
}

.services-bg-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.services-bg-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 12%;
    animation-delay: 3s;
}

.services-bg-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
}

/* Hover Effects */
.service-card:hover .service-number {
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.5s ease;
}

.service-card:hover .service-feature::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-section {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .services-bg-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.9rem;
    }
}
