/* Case Studies Page - Modern Visual Design */
.case-studies-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(5, 5, 17, 1) 0%, rgba(10, 14, 39, 1) 100%);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #765af3 0%, #9b7ff5 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.02em;
}

.case-overview {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 3rem;
    background: linear-gradient(145deg, rgba(118, 90, 243, 0.1) 0%, rgba(5, 5, 17, 0.8) 100%);
    border: 2px solid rgba(118, 90, 243, 0.3);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.case-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.case-overview h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.case-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.case-study-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(118, 90, 243, 0.05) 100%);
    border: 1px solid rgba(118, 90, 243, 0.2);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(118, 90, 243, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.case-study-card:hover {
    border-color: rgba(118, 90, 243, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(118, 90, 243, 0.3);
}

.case-study-card:hover::before {
    opacity: 1;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(118, 90, 243, 0.15) 0%, rgba(5, 5, 17, 0.5) 100%);
    border-bottom: 1px solid rgba(118, 90, 243, 0.2);
    flex-wrap: wrap;
}

.case-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #765af3 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.case-header h3 {
    font-size: 2rem;
    color: #ffffff;
    flex: 1;
    min-width: 250px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.case-tag {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(118, 90, 243, 0.3) 0%, rgba(118, 90, 243, 0.1) 100%);
    border: 1px solid rgba(118, 90, 243, 0.5);
    border-radius: 30px;
    font-size: 0.95rem;
    color: #c4b5fd;
    font-weight: 500;
    white-space: nowrap;
}

.case-content {
    display: grid;
    gap: 0;
    padding: 2.5rem;
}

.case-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(118, 90, 243, 0.1);
}

.case-section:last-child {
    border-bottom: none;
}

.case-section h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-section h4::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.case-section p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 1.05rem;
}

.results-list,
.solution-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.results-list li {
    padding: 1rem 1.5rem;
    background: rgba(118, 90, 243, 0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.results-list li:hover {
    background: rgba(118, 90, 243, 0.15);
    transform: translateX(5px);
}

.solution-list li {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(118, 90, 243, 0.05) 0%, rgba(5, 5, 17, 0.3) 100%);
    border: 1px solid rgba(118, 90, 243, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    transition: all 0.3s ease;
}

.solution-list li:hover {
    border-color: rgba(118, 90, 243, 0.4);
    background: linear-gradient(135deg, rgba(118, 90, 243, 0.1) 0%, rgba(5, 5, 17, 0.5) 100%);
}

.solution-list strong {
    color: #c4b5fd;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* Success Factors */
.success-factors {
    margin: 5rem 0;
    padding: 4rem 0;
    border-top: 2px solid rgba(118, 90, 243, 0.2);
    position: relative;
}

.success-factors::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.success-factors h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #765af3 0%, #9b7ff5 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.factor-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(118, 90, 243, 0.08) 100%);
    border: 1px solid rgba(118, 90, 243, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.factor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.factor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(118, 90, 243, 0.5);
    box-shadow: 0 15px 40px rgba(118, 90, 243, 0.2);
}

.factor-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 600;
}

.factor-card ul {
    list-style: none;
    padding: 0;
}

.factor-card li {
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
}

.factor-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Case CTA */
.case-cta {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(145deg, rgba(118, 90, 243, 0.15) 0%, rgba(5, 5, 17, 0.8) 100%);
    border: 2px solid rgba(118, 90, 243, 0.3);
    border-radius: 32px;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.case-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(118, 90, 243, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.case-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.case-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .case-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .case-number {
        font-size: 3rem;
    }

    .case-header h3 {
        font-size: 1.6rem;
    }

    .case-content {
        padding: 2rem;
    }

    .factors-grid {
        grid-template-columns: 1fr;
    }

    .case-cta {
        padding: 3rem 2rem;
    }

    .case-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .success-factors h2 {
        font-size: 2rem;
    }
}