/* Services Section */
.services {
    position: relative;
    padding: 6rem 0;
    background-color: #f8fafc;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c0-1.657-1.343-3-3-3s-3 1.343-3 3 1.343 3 3 3 3-1.343 3-3zm-8-50c0-1.657-1.343-3-3-3s-3 1.343-3 3 1.343 3 3 3 3-1.343 3-3zm8-16c0-1.657-1.343-3-3-3s-3 1.343-3 3 1.343 3 3 3 3-1.343 3-3zm32 32c0-1.657-1.343-3-3-3s-3 1.343-3 3 1.343 3 3 3 3-1.343 3-3z' fill='%2310b981' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.8;
    z-index: 0;
}

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

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

.services .section-header h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.services .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
}

.services .section-header p {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem auto 0;
    max-width: 1400px;
    padding: 0 1rem;
    align-items: stretch;
}

.service-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon-bg {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #10b981;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.service-card:hover h3::after {
    width: 60px;
}

.service-card p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
    padding: 0 0.5rem;
}

.service-features {
    text-align: left;
    margin: 0 0 1.5rem 0;
    padding: 0 1rem;
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    position: relative;
    padding-left: 1.75rem;
}

.service-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-size: 0.7rem;
    position: absolute;
    left: 0;
    top: 2px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.service-cta {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
}

.service-cta .btn {
    width: 100%;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-cta .btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-cta .btn:hover i {
    transform: translateX(5px);
}

/* Floating Elements */
.service-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.service-floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
    filter: blur(40px);
    opacity: 0.6;
}

.service-floating-element.el-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.service-floating-element.el-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    animation: float 18s ease-in-out infinite reverse;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 4rem 0;
    }
    
    .services .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon-container {
        width: 90px;
        height: 90px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services .section-header h2 {
        font-size: 1.75rem;
    }
    
    .services .section-header p {
        font-size: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.35rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Add this to your main CSS file if not already present */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}
