/* Case Studies Page Styles */

/* 1. Hero Section */
.cs-hero {
    padding: 120px 0 80px;
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cs-hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-hero .badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cs-hero .badge-modern svg {
    width: 16px;
    height: 16px;
}

.cs-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.cs-hero .lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

/* 2. Featured Case Study */
.cs-featured {
    padding: 40px 20px 80px;
}

.featured-card {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    overflow: hidden;
    padding: 48px;
}

.fc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.fc-category {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fc-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.fc-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.fc-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.fc-metrics {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 32px;
}

.fc-metric {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fc-metric svg {
    width: 32px;
    height: 32px;
}

.fc-metric strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.fc-metric span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mt-4 { margin-top: 16px; }

/* Dashboard Mockup (for Featured) */
.fc-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(0, 157, 230, 0.05));
    border-radius: 16px;
    padding: 32px;
    position: relative;
}

.fc-img-container {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.fc-img-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.floating-stat {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 3s ease-in-out infinite;
}

.floating-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.floating-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 3. Case Studies Grid */
.cs-grid-section {
    padding: 80px 20px;
    background: transparent;
}

.cs-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cs-filter {
    padding: 12px 28px;
    border-radius: 100px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.cs-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

.cs-filter.active {
    background: var(--primary-grediant);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

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

.cs-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border);
}

.cs-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.cs-card-img {
    height: 320px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.cs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-card:hover .cs-card-img img {
    transform: scale(1.08);
}

.mega-icon {
    width: 64px;
    height: 64px;
}

.bg-light-blue { background: #e0f2fe; }
.bg-light-purple { background: #f3e8ff; }
.bg-light-green { background: #dcfce7; }
.text-blue { color: #0ea5e9; }
.text-purple { color: #a855f7; }
.text-green { color: #22c55e; }

.cs-card-body {
    padding: 32px;
}

.cs-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tag {
    background: var(--bg-light-blue);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bg-blue);
}

.client {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cs-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.cs-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cs-card-stat {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.cs-card-stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    margin-right: 8px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.read-more svg {
    width: 16px;
    height: 16px;
}

.cs-card:hover .read-more {
    gap: 12px;
}

/* 4. CTA Section */
.cs-cta {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.cs-cta-content {
    background: var(--primary-grediant);
    padding: 64px 40px;
    border-radius: 32px;
    text-align: center;
    max-width: 900px;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
}

.cs-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cs-cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cs-cta-content .btn-primary {
    background: #ffffff;
    color: var(--bg-blue);
}

.cs-cta-content .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}
.cs-cta-content .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .fc-image {
        order: -1; /* Image on top */
    }
}

@media (max-width: 768px) {
    .cs-hero h1 {
        font-size: 2.5rem;
    }
    
    .featured-card {
        padding: 32px 24px;
    }
    
    .fc-metrics {
        flex-direction: column;
        gap: 24px;
    }
    
    .cs-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cs-cta-content {
        padding: 40px 24px;
    }
    
    .cs-cta-content h2 {
        font-size: 2rem;
    }
}
