/* Case Studies Page Unique Styles */

/* Hero Section */
.case-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.case-hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.case-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cases Section */
.cases-section {
    padding: 6rem 0;
    background: white;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.case-study.featured {
    grid-template-columns: 1fr;
    margin-bottom: 8rem;
}

.case-study.featured .case-image {
    grid-row: 1;
    margin-bottom: 3rem;
}

.case-study:nth-child(even) {
    direction: rtl;
}

.case-study:nth-child(even) .case-content {
    direction: ltr;
}

.case-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.case-image:hover {
    transform: scale(1.02);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.case-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.case-content {
    padding: 2rem 0;
}

.case-header {
    margin-bottom: 2rem;
}

.case-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.2;
}

.case-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.case-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.case-description {
    margin-top: 2rem;
}

.case-description h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--dark-color);
}

.case-description h3:first-child {
    margin-top: 0;
}

.case-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.case-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-radius: 20px;
}

.result-item {
    text-align: center;
    color: white;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.case-testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-content {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    margin-top: 2rem;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.author-role {
    font-size: 1rem;
    color: var(--text-light);
}

/* CTA Section */
.case-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: white;
    text-align: center;
}

.case-cta .cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.case-cta .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 968px) {
    .case-study {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .case-study:nth-child(even) {
        direction: ltr;
    }

    .case-hero-stats {
        gap: 2rem;
    }

    .case-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-hero {
        padding: 6rem 1rem 3rem;
    }

    .case-hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .case-details {
        grid-template-columns: 1fr;
    }

    .case-results {
        grid-template-columns: 1fr;
    }

    .testimonial-content {
        padding: 3rem 1.5rem;
    }
}

