/* ============================================
   CASE STUDY TEMPLATE STYLES
   Shared styles for all individual case study pages
   ============================================ */

/* Hero Section */
.cs-hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.cs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(239, 73, 35, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 140, 90, 0.1) 0%, transparent 40%);
}

.cs-hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.cs-float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 73, 35, 0.2) 0%, rgba(255, 140, 90, 0.1) 100%);
    animation: float 6s ease-in-out infinite;
}

.cs-float-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.cs-float-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation-delay: -2s;
}

.cs-float-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: -50px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.cs-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.cs-back-link:hover {
    color: var(--primary-color);
}

.cs-back-link svg {
    width: 16px;
    height: 16px;
}

.cs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 73, 35, 0.1);
    border: 1px solid rgba(239, 73, 35, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
}

.cs-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.cs-hero-badge span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.cs-hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Key Results Banner */
.cs-results-banner {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.cs-result-item {
    text-align: center;
}

.cs-result-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.cs-result-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Client Info Section */
.cs-client-section {
    padding: 80px 0;
    background: #f8fafc;
}

.cs-client-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.cs-client-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
}

.cs-client-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 800;
    color: white;
    overflow: hidden;
}

.cs-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cs-client-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
}

.cs-client-industry {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 24px;
}

.cs-client-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.cs-client-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cs-client-detail:last-child {
    border-bottom: none;
}

.cs-detail-label {
    font-size: 14px;
    color: #64748b;
}

.cs-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.cs-client-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cs-client-website:hover {
    background: var(--primary-color);
    color: white;
}

.cs-client-website svg {
    width: 16px;
    height: 16px;
}

.cs-client-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    margin-left: 8px;
    padding: 12px 20px;
    background: #0077b5;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cs-client-linkedin:hover {
    background: #005885;
}

.cs-client-linkedin svg {
    width: 16px;
    height: 16px;
}

/* Story Content */
.cs-story-content {
    max-width: 700px;
}

.cs-section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.cs-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.cs-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(239, 73, 35, 0.1);
    border-radius: 30px;
    margin-bottom: 16px;
}

.cs-section-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.cs-section-badge span {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cs-section p {
    font-size: 17px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Challenge Card */
.cs-challenge-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 28px;
    margin-top: 20px;
}

.cs-challenge-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 12px;
}

.cs-challenge-card h4 svg {
    width: 20px;
    height: 20px;
}

.cs-challenge-card p {
    font-size: 15px;
    color: #7f1d1d;
    margin: 0;
}

/* Solution Card */
.cs-solution-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #f0fff4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 28px;
    margin-top: 20px;
}

.cs-solution-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 12px;
}

.cs-solution-card h4 svg {
    width: 20px;
    height: 20px;
}

.cs-solution-card p {
    font-size: 15px;
    color: #14532d;
    margin: 0;
}

/* Tool Used */
.cs-tool-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.cs-tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-tool-icon.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.cs-tool-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.cs-tool-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
}

.cs-tool-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Process List */
.cs-process-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.cs-process-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cs-process-list li:last-child {
    border-bottom: none;
}

.cs-process-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cs-process-check svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

.cs-process-list li span {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Recommendation Link */
.cs-recommendation-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: #0077b5;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cs-recommendation-link:hover {
    background: #005885;
    transform: translateY(-2px);
}

.cs-recommendation-link svg {
    width: 18px;
    height: 18px;
}

/* Results Section */
.cs-results-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.cs-results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 20%, rgba(239, 73, 35, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255, 140, 90, 0.08) 0%, transparent 50%);
}

.cs-results-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cs-results-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: white;
    margin-bottom: 60px;
}

.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.cs-result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.cs-result-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.cs-result-card .number {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.cs-result-card .label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 8px;
}

.cs-result-card .sublabel {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Conclusion Section */
.cs-conclusion {
    padding: 100px 0;
    background: white;
}

.cs-conclusion-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cs-conclusion h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 24px;
}

.cs-conclusion p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cs-conclusion-quote {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 16px 16px 0;
    padding: 32px 40px;
    margin: 40px 0;
    text-align: left;
}

.cs-conclusion-quote p {
    font-size: 20px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.7;
}

.cs-conclusion-quote .author {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

/* CTA Section */
.cs-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d63d1a 100%);
    text-align: center;
}

.cs-cta h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.cs-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: white;
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cs-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cs-cta-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .cs-client-grid {
        grid-template-columns: 1fr;
    }

    .cs-client-card {
        position: static;
    }

    .cs-results-banner {
        flex-wrap: wrap;
        gap: 40px;
    }

    .cs-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cs-hero {
        padding: 120px 0 80px;
    }

    .cs-result-number {
        font-size: 40px;
    }

    .cs-result-card .number {
        font-size: 56px;
    }

    .cs-client-card {
        padding: 28px;
    }
}
