.cases-section {
    padding: 5rem 0;
    margin-bottom: 5rem;
    background-color: #1a1a2e;
}

.cases-title {
    font-size: 2.5rem;
    color: #F1F5F9;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 2.5rem;
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.case-description {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.cases-particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
}

.cases-title {
    font-size: 2.5rem;
    color: #F1F5F9;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.cases-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #9013fe);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.cases-waterfall {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .cases-waterfall {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .cases-waterfall {
        column-count: 3;
    }
}

.case-card {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.case-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.03);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
}

.case-icon-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.case-type {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.case-type.platform {
    background-color: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
}

.case-type.ecommerce {
    background-color: rgba(144, 19, 254, 0.1);
    color: #9013fe;
}

.case-type.saas {
    background-color: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.case-type.ai-tool {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.case-type.enterprise {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.case-type.data {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.case-content {
    padding: 1.5rem;
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.case-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-client {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #eee;
}

.case-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.metric-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.metric-label {
    font-size: 0.75rem;
    color: #999;
}

.blue-gradient {
    background: linear-gradient(135deg, #4a90e2, #5b73e8);
}

.purple-gradient {
    background: linear-gradient(135deg, #9013fe, #b36ef9);
}

.orange-gradient {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.green-gradient {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.pink-gradient {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.red-gradient {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}