/* ==========================================================================
   Page: Case Studies (case-studies.css) - Solannseo
   Description: Modern, user-centric layout & interactive elements
   ========================================================================== */

/* Hero Banner */
.cs-hero-section {
    background: linear-gradient(135deg, #0b192c 0%, #1e3e62 50%, #000000 100%);
    padding: 90px 0 80px;
    position: relative;
    overflow: hidden;
}

.cs-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.cs-hero-badge {
    background: rgba(13, 110, 253, 0.15);
    border: 1px solid rgba(13, 110, 253, 0.4);
    color: #6ea8fe;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.cs-stat-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cs-stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 110, 253, 0.5);
}

.cs-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #4dabf7, #339af0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Industry Filter Bar */
.cs-filter-wrapper {
    margin-top: -35px;
    position: relative;
    z-index: 10;
}

.cs-filter-nav {
    background: #ffffff;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.cs-filter-btn {
    border: none;
    background: transparent;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.cs-filter-btn:hover {
    color: #0d6efd;
    background: #f8f9fa;
}

.cs-filter-btn.active {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
}

/* Case Study Cards */
.cs-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cs-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12);
    border-color: #74c0fc;
}

.cs-card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f1f3f5;
}

.cs-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #e7f5ff;
    color: #1971c2;
}

.cs-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.cs-metric-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 14px;
    border-left: 3px solid #0d6efd;
}

.cs-metric-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1971c2;
    line-height: 1.2;
}

.cs-metric-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.cs-card-footer {
    padding: 18px 24px;
    background: #fafafa;
    border-top: 1px solid #f1f3f5;
    margin-top: auto;
}

/* Modal Styling */
.cs-modal .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cs-modal-header {
    background: linear-gradient(135deg, #0b192c 0%, #1e3e62 100%);
    color: #ffffff;
    padding: 30px;
}

.cs-timeline-step {
    position: relative;
    padding-left: 35px;
    margin-bottom: 24px;
}

.cs-timeline-step::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #0d6efd;
    z-index: 2;
}

.cs-timeline-step::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 20px;
    bottom: -24px;
    width: 2px;
    background: #e9ecef;
}

.cs-timeline-step:last-child::after {
    display: none;
}

/* Proof Section */
.cs-proof-section {
    background: #f8f9fa;
    border-radius: 30px;
    padding: 60px 40px;
}

/* CTA Card */
.cs-cta-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 24px;
    color: #ffffff;
    padding: 50px 30px;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.25);
}

@media (max-width: 768px) {
    .cs-hero-section {
        padding: 60px 0 60px;
    }

    .cs-filter-nav {
        border-radius: 16px;
        width: 100%;
    }

    .cs-filter-btn {
        width: 100%;
        text-align: center;
    }

    .cs-metrics-grid {
        grid-template-columns: 1fr;
    }

    .cs-proof-section {
        padding: 40px 20px;
    }
}
