/* Client Solutions Section */
.solutions-section {
    padding: 100px 0;
    background-color: #ffffff;
    color: #333;
}

.solutions-container {
    max-width: 1400px;
    /* Wide container for 4 columns */
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Split Layout (Light Mode) */
.solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.solutions-header-left {
    flex: 1;
    min-width: 300px;
}

.solutions-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.solutions-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
    /* Dark text for light bg */
    margin: 0;
}

.solutions-header-right {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.solutions-header-right p {
    color: #666;
    /* Grey text */
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Scrollable Navigation */
.solutions-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    border-bottom: 1px solid #eee;
    /* Add divider */
    padding-bottom: 0;
}

/* Arrows for nav (optional/decorative) */
.solutions-nav-wrapper::before,
.solutions-nav-wrapper::after {
    content: '»';
    /* Unicode arrow placeholder */
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    display: none;
    /* Keep hidden for cleanliness unless needed */
}

.solutions-nav-wrapper::before {
    left: 0;
    content: '«';
}

.solutions-nav-wrapper::after {
    right: 0;
}

.solutions-nav {
    display: flex;
    gap: 40px;
    /* Increased gap */
    overflow-x: auto;
    padding-bottom: 15px;
    /* Adjust for border */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    white-space: nowrap;
}

.solutions-nav::-webkit-scrollbar {
    display: none;
}

.sol-nav-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    position: relative;
    padding-bottom: 15px;
    /* Touch the border */
    transition: all 0.3s ease;
    margin-bottom: -1px;
    /* Overlap border */
    border-bottom: 3px solid transparent;
}

.sol-nav-item:hover,
.sol-nav-item.active {
    color: var(--secondary-color);
    /* Purple active state */
}

.sol-nav-item.active {
    border-bottom-color: var(--secondary-color);
}

.sol-nav-item.active::after {
    content: none;
    /* Remove old style */
}

/* Grid Layout */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 30px;
    margin-bottom: 60px;
    animation: fadeIn 0.5s ease-in-out;
}

.solutions-grid.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Solution Card - Dark Card Style on White BG */
.solution-card {
    background-color: #120826;
    /* Deep Midnight Purple */
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Match heights */
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Card Image/Preview Area */
.sol-card-preview {
    height: 200px;
    background-color: #1a0d33;
    position: relative;
    overflow: hidden;
}

.sol-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.solution-card:hover .sol-card-bg {
    opacity: 0.5;
}

.sol-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    /* Purple "FEATURED" */
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

/* Card Content */
.sol-card-content {
    padding: 25px;
    flex: 1;
    /* occupy remaining space */
    display: flex;
    flex-direction: column;
}

.sol-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    /* font-family: serif; */
    /* Removed serif placeholder */
}

.sol-category {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sol-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.sol-tag {
    font-size: 0.85rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sol-tag span {
    color: #a366ff;
    /* Lighter purple for better legibility on dark background */
}

.sol-tech-stack {
    display: flex;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom */
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tech-badge {
    background-color: var(--secondary-color);
    color: #fff;
    /* White text on purple background for readability */
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-consult {
    width: 100%;
    background-color: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-consult:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x4 on tablet */
    }
}

@media (max-width: 600px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        /* 1x8 on mobile */
    }

    .solutions-container {
        padding: 0 20px;
    }
}