/* ========================================
   PROFESSIONAL SERVICES SECTION - AANDA Labs
   ======================================== */

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

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(20, 184, 166, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314b8a6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Service Card - Professional Styling */
.services-grid .card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Gradient border on hover */
.services-grid .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #14b8a6, #6366f1, #f59e0b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Shimmer effect overlay */
.services-grid .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

/* Hover Effects */
.services-grid .card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.services-grid .card:hover::before {
    opacity: 1;
}

.services-grid .card:hover::after {
    left: 100%;
}

/* Service Icon */
.services-grid .card .service-icon,
.services-grid .card > div:first-child {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.services-grid .card:hover .service-icon,
.services-grid .card:hover > div:first-child {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Service Title */
.services-grid .card h3,
.services-grid .card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.services-grid .card:hover h3,
.services-grid .card:hover h4 {
    color: #14b8a6;
}

/* Service Description */
.services-grid .card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Learn More Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #14b8a6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #0d9488;
    gap: 12px;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* Staggered Animation Delays */
.services-grid .card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .card:nth-child(4) { transition-delay: 0.4s; }
.services-grid .card:nth-child(5) { transition-delay: 0.5s; }
.services-grid .card:nth-child(6) { transition-delay: 0.6s; }
.services-grid .card:nth-child(7) { transition-delay: 0.7s; }
.services-grid .card:nth-child(8) { transition-delay: 0.8s; }

/* Scroll Reveal for Cards */
.services-grid .card.reveal-card {
    opacity: 0;
    transform: translateY(50px);
}

.services-grid .card.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Header Enhancement */
.services .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.services .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.services .section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid .card {
        padding: 25px 20px;
    }
    
    .services-grid .card:hover {
        transform: translateY(-10px) scale(1.01);
    }
}
