/* ============================================
   SERVICES SECTION STYLES - MIGRATIVE PARTNERS
   Crisp Brutalist Minimalist Design, High Impact
   ============================================ */

/* Services Section */
.services-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, 
        rgba(10, 11, 26, 0.97) 0%, 
        var(--bg-primary) 20%,
        var(--bg-primary) 60%,
        rgba(10, 11, 26, 0.98) 85%,
        rgba(0, 255, 170, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

/* Desktop padding fix - BALANCED SOLUTION */
@media (min-width: 768px) {
    .services-section {
        padding: 120px 0 var(--spacing-3xl) 0;
    }
}

/* Subtle transition effect */
.services-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 170, 0.1) 20%,
        rgba(0, 255, 170, 0.15) 50%,
        rgba(0, 255, 170, 0.1) 80%,
        transparent 100%);
    z-index: 3;
}

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

/* Enhanced glow background - Visible & Elegant */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Central prominent glow */
        radial-gradient(ellipse 70% 50% at 50% 25%, 
            rgba(0, 255, 170, 0.08) 0%, 
            rgba(0, 255, 170, 0.04) 30%,
            rgba(0, 255, 170, 0.01) 60%,
            transparent 80%),
        /* Side ambient lights */
        radial-gradient(ellipse 35% 70% at 10% 80%, 
            rgba(0, 255, 170, 0.06) 0%, 
            rgba(0, 255, 170, 0.02) 40%,
            transparent 70%),
        radial-gradient(ellipse 35% 70% at 90% 30%, 
            rgba(0, 255, 170, 0.05) 0%, 
            rgba(0, 255, 170, 0.02) 40%,
            transparent 70%),
        /* Bottom subtle glow */
        radial-gradient(ellipse 60% 30% at 50% 90%, 
            rgba(0, 255, 170, 0.03) 0%, 
            rgba(0, 255, 170, 0.01) 50%,
            transparent 80%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced accent elements */
.services-content::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: 
        radial-gradient(circle at center, 
            rgba(0, 255, 170, 0.06) 0%, 
            rgba(0, 255, 170, 0.03) 30%,
            rgba(0, 255, 170, 0.01) 60%,
            transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(1.5px);
}

.services-content::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 160px;
    height: 160px;
    background: 
        radial-gradient(circle at center, 
            rgba(0, 255, 170, 0.05) 0%, 
            rgba(0, 255, 170, 0.025) 40%,
            rgba(0, 255, 170, 0.01) 70%,
            transparent 90%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(2px);
}

/* Header */
.services-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-section h2 {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
    font-weight: var(--font-black);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(
        180deg, 
        var(--white) 0%, 
        rgba(255, 255, 255, 0.9) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-section h2 .accent {
    background: linear-gradient(
        90deg, 
        var(--neon-green) 0%, 
        #00FFD4 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.services-subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--gray-light);
    font-weight: var(--font-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Cards - Crisp Brutalist Style */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
    overflow: hidden;
}

/* No ::before pattern needed */

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 170, 0.3);
    transform: translateY(-4px);
}

/* Hover effect matches pain points */

/* Remove accent line */

/* Service Icon */
.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-xl);
    color: var(--neon-green);
    transition: all 0.2s ease;
    flex-shrink: 0;
    stroke-width: 1.2;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--neon-green);
    fill: none;
    stroke-width: 1.2;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

/* Service Content */
.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}


.service-content p {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    flex: 1;
}

/* Responsive Design */

/* Desktop Large (xl ≥1280px) */
@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        max-width: 1100px;
    }
    
    .service-card {
        min-height: 360px;
        padding: 3rem;
    }
    
    .service-icon {
        width: 90px;
        height: 90px;
    }
    
    .service-icon {
        width: 36px;
        height: 36px;
    }
    
    .service-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* Desktop (lg 1024-1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1000px;
    }
    
    .service-card {
        min-height: 340px;
        padding: 2.5rem;
    }
}

/* Tablet (md 640-1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
    .services-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .service-card {
        padding: 2rem;
        min-height: 300px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon {
        width: 30px;
        height: 30px;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Mobile (sm <640px) */
@media (max-width: 639px) {
    .services-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .services-header {
        margin-bottom: var(--spacing-3xl);
    }
    
    .services-section h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: var(--spacing-md);
        line-height: 0.9;
    }
    
    .services-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
        line-height: 1.5;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 var(--spacing-md);
    }
    
    .service-card {
        padding: 1.5rem;
        min-height: 280px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.25rem;
    }
    
    .service-icon {
        width: 28px;
        height: 28px;
    }
    
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .service-content h3 {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .service-content p {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.6;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-icon,
    .service-content h3::after {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 4px;
        border-color: var(--neon-green);
    }
    
    .service-content h3 {
        -webkit-text-stroke: 1px var(--white);
    }
    
    .service-icon {
        border-width: 3px;
        border-color: var(--neon-green);
    }
}

/* Print styles */
@media print {
    .services-section {
        padding: var(--spacing-lg) 0;
    }
    
    .services-section::before,
    .service-card::before,
    .service-card::after {
        display: none;
    }
    
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border-color: #333;
        background: #fff;
    }
    
    .service-content h3,
    .service-content p {
        color: #000;
    }
}