/* Services Section Styles */
.services {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-purple);
}

.services-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), #8B5FBF);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(106, 13, 173, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Service Icon */
.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-purple), #8B5FBF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

/* Service Content */
.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Staggered Animation Delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }
.service-card:nth-child(7) { transition-delay: 0.7s; }
.service-card:nth-child(8) { transition-delay: 0.8s; }
.service-card:nth-child(9) { transition-delay: 0.9s; }
.service-card:nth-child(10) { transition-delay: 1.0s; }

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .services {
        padding: 80px 0;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .services {
        padding: 60px 0;
    }
    
    .services-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:hover .service-icon {
        transform: none;
    }
}