/* Case Detail Page Styles */

/* Case Hero Section */
.case-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.case-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.case-hero .container {
    position: relative;
    z-index: 2;
}

.case-hero .breadcrumb {
    margin-bottom: 3rem;
}

.case-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Client Badge */
.client-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.client-logo-large {
    width: 80px;
    height: 60px;
    object-fit: contain;
    background: white;
    padding: 0.75rem;
    border-radius: var(--border-radius);
}

.client-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.client-info p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Case Title */
.case-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Case Tags */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Hero Metrics */
.case-hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hero-metric {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-metric .metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #00f2fe;
    margin-bottom: 0.5rem;
}

.hero-metric .metric-label {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* Context Section */
.case-context {
    padding: 6rem 0;
    background: white;
}

.context-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.context-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

/* Challenge Points */
.challenge-points {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.challenge-point {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.point-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.point-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.point-content p {
    color: var(--gray-600);
    line-height: 1.5;
}

/* Context Stats */
.stat-box {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.stat-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-100);
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stat-item .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Solution Section */
.case-solution {
    padding: 6rem 0;
    background: var(--gray-50);
}

.solution-overview {
    margin-bottom: 4rem;
    text-align: center;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Implementation Section */
.case-implementation {
    padding: 6rem 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.timeline-content {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Results Section */
.case-results {
    padding: 6rem 0;
    background: var(--gray-50);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.result-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    text-align: center;
}

.result-card.primary {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.result-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.result-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.before, .after {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.before .label, .after .label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.before .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-400);
}

.after .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.arrow {
    font-size: 1.5rem;
    color: var(--gray-400);
}

.improvement {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.result-value-large {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ROI Section */
.roi-section {
    background: var(--dark-color);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.roi-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.roi-breakdown {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.roi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roi-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.roi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #00f2fe;
}

.roi-item.highlight .roi-value {
    font-size: 2.5rem;
    color: #10b981;
}

/* Testimonial Section */
.case-testimonial {
    padding: 6rem 0;
    background: white;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 2rem;
}

.testimonial-content blockquote {
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 3rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Technology Section */
.case-technology {
    padding: 6rem 0;
    background: var(--gray-50);
}

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

.tech-category {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
}

.tech-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.tech-name {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.tech-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Case CTA Section */
.case-cta {
    padding: 6rem 0;
    background: var(--dark-color);
    color: white;
    text-align: center;
}

.case-cta .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.case-cta .cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design - Amélioré */

/* Large screens */
@media (min-width: 1200px) {
    .case-title {
        font-size: 3.5rem;
    }
    
    .case-hero-content {
        gap: 5rem;
    }
    
    .case-hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero-metric {
        padding: 2.5rem 1.5rem;
    }
    
    .feature-card,
    .result-card,
    .tech-category {
        padding: 3rem;
    }
    
    .timeline-content {
        padding: 2.5rem;
    }
}

/* Tablets landscape */
@media (max-width: 1024px) {
    .case-hero {
        padding: 7rem 0 3.5rem;
    }
    
    .case-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .case-title {
        font-size: 2.75rem;
    }
    
    .case-hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .context-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .solution-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-info {
        text-align: center;
    }
}

/* Tablets portrait and small laptops */
@media (max-width: 768px) {
    .case-hero {
        padding: 6rem 0 3rem;
    }
    
    .breadcrumb {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .case-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .client-badge {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .client-logo-large {
        width: 70px;
        height: 55px;
        margin: 0 auto;
    }
    
    .case-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .case-subtitle {
        font-size: 1.125rem;
    }
    
    .case-tags {
        justify-content: center;
    }
    
    .case-hero-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-metric {
        padding: 1.5rem 1rem;
    }
    
    .hero-metric .metric-value {
        font-size: 2rem;
    }
    
    .context-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .context-content h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .lead {
        font-size: 1.125rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .challenge-point {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .point-icon {
        font-size: 2.5rem;
    }
    
    .solution-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
        text-align: center;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .result-comparison {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
    }
    
    .roi-breakdown {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-info {
        text-align: center;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Large phones */
@media (max-width: 600px) {
    .case-hero {
        padding: 5rem 0 2.5rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .case-title {
        font-size: 1.875rem;
    }
    
    .case-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .client-badge {
        padding: 1rem;
    }
    
    .client-logo-large {
        width: 60px;
        height: 45px;
    }
    
    .case-tags {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .hero-metric {
        padding: 1.25rem 0.75rem;
    }
    
    .hero-metric .metric-value {
        font-size: 1.75rem;
    }
    
    .hero-metric .metric-label {
        font-size: 0.8rem;
    }
    
    .context-content h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .challenge-point {
        padding: 1.25rem;
    }
    
    .point-content h4 {
        font-size: 1rem;
    }
    
    .point-content p {
        font-size: 0.875rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-card p {
        font-size: 0.875rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.125rem;
    }
    
    .timeline-content p {
        font-size: 0.875rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .result-card h3 {
        font-size: 1rem;
    }
    
    .before .value,
    .after .value {
        font-size: 1.25rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
    
    .tech-category h3 {
        font-size: 1.125rem;
    }
    
    .case-cta {
        padding: 4rem 0;
    }
    
    .case-cta .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .case-cta .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .case-hero {
        padding: 4rem 0 2rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .case-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .case-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .client-badge {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .client-logo-large {
        width: 50px;
        height: 40px;
    }
    
    .client-info h2 {
        font-size: 1.25rem;
    }
    
    .client-info p {
        font-size: 0.875rem;
    }
    
    .case-tags {
        gap: 0.375rem;
    }
    
    .tag {
        padding: 0.3rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .case-hero-metrics {
        max-width: 280px;
    }
    
    .hero-metric {
        padding: 1rem 0.5rem;
    }
    
    .hero-metric .metric-value {
        font-size: 1.5rem;
    }
    
    .hero-metric .metric-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .context-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .challenge-point {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .point-icon {
        font-size: 2rem;
    }
    
    .point-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .point-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .stat-box h3 {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-item .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-item .stat-value {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.825rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-card li {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        left: -12.5px;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-content p {
        font-size: 0.825rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-content li {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .result-card {
        padding: 1.25rem;
    }
    
    .result-card h3 {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .result-icon {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .before .value,
    .after .value {
        font-size: 1.125rem;
    }
    
    .before .label,
    .after .label {
        font-size: 0.7rem;
    }
    
    .improvement {
        font-size: 0.8rem;
    }
    
    .roi-section {
        padding: 2rem;
    }
    
    .roi-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .roi-item {
        gap: 0.25rem;
    }
    
    .roi-label {
        font-size: 0.8rem;
    }
    
    .roi-value {
        font-size: 1.5rem;
    }
    
    .roi-item.highlight .roi-value {
        font-size: 1.75rem;
    }
    
    .testimonial-content {
        padding: 0 1rem;
    }
    
    .quote-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-content blockquote {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.8rem;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .tech-category {
        padding: 1.25rem;
    }
    
    .tech-category h3 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .tech-item {
        padding: 0.75rem;
    }
    
    .tech-name {
        font-size: 0.9rem;
    }
    
    .tech-desc {
        font-size: 0.8rem;
    }
    
    .case-cta {
        padding: 3rem 0;
    }
    
    .case-cta .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .case-cta .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .case-hero {
        padding: 3.5rem 0 1.5rem;
    }
    
    .case-title {
        font-size: 1.5rem;
    }
    
    .case-subtitle {
        font-size: 0.875rem;
    }
    
    .client-badge {
        padding: 0.75rem;
    }
    
    .client-logo-large {
        width: 45px;
        height: 35px;
    }
    
    .hero-metric {
        padding: 0.875rem 0.375rem;
    }
    
    .hero-metric .metric-value {
        font-size: 1.25rem;
    }
    
    .context-content h2 {
        font-size: 1.375rem;
    }
    
    .challenge-point {
        padding: 0.875rem;
    }
    
    .feature-card,
    .result-card,
    .tech-category {
        padding: 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .case-cta .cta-content h2 {
        font-size: 1.375rem;
    }
}

/* Touch optimization */
@media (pointer: coarse) {
    .breadcrumb a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0.5rem;
    }
    
    .cta-buttons .btn {
        min-height: 48px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .case-hero {
        background: #000;
        color: #fff;
    }
    
    .client-badge {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        border: 2px solid #fff;
    }
    
    .tag {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        border: 1px solid #fff;
    }
    
    .hero-metric {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        border: 2px solid #fff;
    }
    
    .feature-card,
    .result-card,
    .tech-category {
        border: 2px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .result-card,
    .hero-metric {
        transition: none;
    }
    
    .feature-card:hover,
    .result-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .case-hero {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0 !important;
    }
    
    .breadcrumb,
    .case-cta {
        display: none !important;
    }
    
    .case-title {
        font-size: 2rem !important;
        color: #000 !important;
    }
    
    .client-badge,
    .hero-metric,
    .feature-card,
    .result-card,
    .tech-category {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .solution-features,
    .results-grid,
    .tech-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .timeline::before {
        display: none !important;
    }
    
    .timeline-marker {
        position: static !important;
        display: inline-block !important;
        margin-right: 0.5rem !important;
    }
    
    .timeline-item {
        padding-left: 0 !important;
    }
} 