/* ========================================
   Services Section - Metasoft Solutions
   ======================================== */

.services {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(35, 66, 95, 0.1));
    overflow: hidden;
}

@media (min-width: 768px) {
    .services {
        padding: 8rem 0;
    }
}

.services-wrapper {
    max-width: 72rem;
    margin: 0 auto;
}

/* Section Header */
.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(35, 66, 95, 0.5);
    border: 1px solid rgba(26, 107, 194, 0.3);
    border-radius: var(--border-radius-full);
    margin-bottom: 1.5rem;
}

.services-badge span {
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.services-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-intro {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.75;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service Card */
.service-card {
    background-color: rgba(35, 66, 95, 0.2);
    border: 1px solid rgba(26, 107, 194, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(26, 107, 194, 0.5);
    background-color: rgba(35, 66, 95, 0.3);
}

/* Service Image */
.service-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), rgba(2, 8, 20, 0.5), transparent);
    z-index: 1;
}

.service-icon {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to bottom right, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transition: transform 0.6s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

.service-icon svg {
    color: var(--text-light);
}

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

.service-content h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.service-content h3 a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-content h3 a:hover {
    color: var(--primary-light);
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Service Button */
.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-service:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(26, 107, 194, 0.4);
}

.btn-service:active {
    transform: translateX(3px);
}

/* CTA Section */
.services-cta {
    background: linear-gradient(to right, rgba(26, 107, 194, 0.1), rgba(75, 187, 236, 0.1));
    border: 1px solid rgba(26, 107, 194, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-base);
}

@media (min-width: 768px) {
    .services-cta {
        padding: 3rem;
    }
}

.services-cta:hover {
    transform: scale(1.02);
}

.services-cta h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    color: var(--text-light);
    margin-bottom: 1rem;
}

.services-cta p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    margin: 0.5rem;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(26, 107, 194, 0.3);
}

.btn-cta:active {
    transform: scale(0.98);
}
