/* Services Section Styles */
.services-section {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    background: transparent;
    /* Inverted for popping off bg-light */
    /* Matches the rhythm: Framework (Dark) -> Services (White) -> Impact (White with bg-light cards) */
    border-top: 1px solid var(--border-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-light);
    /* Inverted for popping off bg-light */
    border-radius: var(--border-radius);
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 210, 190, 0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Tabs */
.services-tabs-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.services-tab-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgb(255, 255, 255);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.services-tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.services-tab-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
}

.services-tab-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.services-tab-btn.active {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 150, 0.2);
    font-weight: 600;
}

.services-tab-panels {
    position: relative;
}

.services-panel {
    display: none;
    animation: fadeInServiceTab 0.4s ease forwards;
}

.services-panel.active {
    display: block;
}

.services-panel-intro h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.services-panel-intro p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.services-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@keyframes fadeInServiceTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 600px) {
    .services-tab-list {
        border-radius: 16px;
        padding: 12px;
    }

    .services-tab-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}