/* Hero Section */
.services-hero {
    background: var(--sofirm-gradient);
    color: var(--sofirm-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.services-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
}

.services-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.services-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
}

/* Software Development Section */
.software-section,
.firmware-section,
.technologies-section {
    padding: 5rem 0;
}

.software-section {
    background: var(--sofirm-white);
}

.firmware-section {
    background: var(--sofirm-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sofirm-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--sofirm-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Category Cards */
.service-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sofirm-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--sofirm-gradient);
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    background: var(--sofirm-white);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sofirm-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--sofirm-accent);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--sofirm-primary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sofirm-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--sofirm-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-features li {
    padding: 0.35rem 0;
    color: var(--sofirm-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--sofirm-accent);
    font-size: 0.9rem;
}

.service-link {
    color: var(--sofirm-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* Firmware specific cards - subtle background */
.firmware-section .service-card {
    background: var(--sofirm-white);
    border: 1px solid #e2e8f0;
}

/* Technologies Section */
.technologies-section {
    background: var(--sofirm-white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    background: var(--sofirm-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--sofirm-primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--sofirm-primary);
    margin-bottom: 1rem;
}

.tech-name {
    font-weight: 700;
    color: var(--sofirm-dark);
    margin-bottom: 0.25rem;
}

.tech-category {
    font-size: 0.85rem;
    color: var(--sofirm-text);
    opacity: 0.8;
}

/* CTA Section */
.services-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--sofirm-dark) 0%, var(--sofirm-text) 100%);
    color: var(--sofirm-white);
    text-align: center;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: var(--sofirm-white);
    color: var(--sofirm-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--sofirm-white);
    color: var(--sofirm-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .services-hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.75rem 1.25rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}