/* ===================================
   CASE STUDY - DARK / CYAN
   =================================== */

/* ---- Hero ---- */
.cs-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    background: #0a0a0a;
    overflow: hidden;
    padding: 100px 0 50px;
}

#casestudy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.cs-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cs-hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 100px;
    color: #00FFFF;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cs-badge-live i {
    font-size: 0.5rem;
    animation: csPulse 2s infinite;
}

@keyframes csPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.cs-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.cs-hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #00FFFF;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.cs-hero-desc {
    font-size: 1.05rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 650px;
}

.cs-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cs-btn-primary {
    background: #00FFFF;
    color: #003034;
    font-weight: 700;
}

.cs-btn-primary:hover {
    transform: translateY(-2px);
    background: #00E5E5;
}

.cs-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cs-btn-ghost:hover {
    border-color: #00FFFF;
    color: #00FFFF;
    background: rgba(0, 255, 255, 0.05);
}

/* ---- Stats Bar ---- */
.cs-stats-bar {
    background: #0a0f14;
    border-top: 1px solid rgba(0, 195, 255, 0.15);
    border-bottom: 1px solid rgba(0, 195, 255, 0.15);
    padding: 0;
}

.cs-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.cs-stat {
    padding: 32px 20px;
    position: relative;
}

.cs-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.cs-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #00C3FF;
    letter-spacing: -1px;
}

.cs-stat-label {
    display: block;
    font-size: 0.8rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ---- Sections ---- */
.cs-section {
    padding: 100px 0;
    background: #000;
    position: relative;
}

.cs-section-dark {
    background: #0d1117;
}

.cs-section-header {
    margin-bottom: 60px;
}

.cs-label {
    display: inline-block;
    color: #00C3FF;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.cs-section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

/* ---- Overview ---- */
.cs-overview-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

.cs-overview-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.cs-overview-main p:last-child {
    margin-bottom: 0;
}

.cs-overview-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.cs-detail {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.cs-detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00C3FF;
    font-weight: 600;
    margin-bottom: 4px;
}

.cs-detail-value {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

/* ---- Screenshot ---- */
.cs-screenshot-section {
    padding: 0 0 100px;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-screenshot-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.15);
}

.cs-screenshot-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.cs-screenshot-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    color: #00FFFF;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Challenge Cards ---- */
.cs-challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cs-challenge-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s ease;
}

.cs-challenge-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-4px);
}

.cs-challenge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cs-challenge-card:hover .cs-challenge-icon {
    transform: translateY(-2px);
}

.cs-challenge-icon i {
    color: #00FFFF;
    font-size: 1.2rem;
}

.cs-challenge-card h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cs-challenge-problem {
    color: #808080;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cs-challenge-solution {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-solution-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00C3FF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cs-challenge-solution p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- Workflow ---- */
.cs-workflow {
    max-width: 700px;
    margin: 0 auto;
}

.cs-workflow-step {
    display: grid;
    grid-template-columns: 60px 1fr 48px;
    gap: 24px;
    align-items: start;
    padding: 32px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.cs-workflow-step:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.cs-step-num {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 195, 255, 0.25);
    line-height: 1;
}

.cs-step-content h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cs-step-content p {
    color: #808080;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cs-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-step-icon i {
    color: #00FFFF;
    font-size: 1rem;
}

.cs-workflow-connector {
    width: 2px;
    height: 32px;
    background: rgba(0, 255, 255, 0.2);
    margin: 0 auto;
}

/* ---- Tech Stack ---- */
.cs-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cs-tech-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.cs-tech-item:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.cs-tech-item i {
    font-size: 1.5rem;
    color: #00C3FF;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.cs-tech-item span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ---- Results ---- */
.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.cs-result-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.cs-result-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-4px);
}

.cs-result-number {
    font-size: 3rem;
    font-weight: 800;
    color: #00C3FF;
    letter-spacing: -2px;
    margin-bottom: 12px;
    line-height: 1;
}

.cs-result-card h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cs-result-card p {
    color: #808080;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ---- Testimonial ---- */
.cs-testimonial {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cs-testimonial blockquote {
    position: relative;
    padding: 0;
    border: none;
    margin: 0;
}

.cs-testimonial blockquote::before {
    content: '\201C';
    font-size: 5rem;
    color: rgba(0, 195, 255, 0.15);
    line-height: 1;
    display: block;
    margin-bottom: -20px;
}

.cs-testimonial p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 24px;
}

.cs-testimonial footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-testimonial footer strong {
    color: #fff;
    font-size: 1rem;
}

.cs-testimonial footer span {
    color: #00C3FF;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---- CTA ---- */
.cs-cta {
    padding: 100px 0;
    background: #0d1117;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
}

.cs-cta::before {
    display: none;
}

.cs-cta .container {
    position: relative;
    z-index: 2;
}

.cs-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cs-cta p {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .cs-challenges-grid {
        grid-template-columns: 1fr;
    }
    .cs-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .cs-hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    .cs-hero-title {
        letter-spacing: -1px;
    }
    .cs-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-stat:nth-child(2)::after {
        display: none;
    }
    .cs-stat:nth-child(1)::after,
    .cs-stat:nth-child(3)::after {
        display: block;
    }
    .cs-section {
        padding: 70px 0;
    }
    .cs-workflow-step {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }
    .cs-step-icon {
        display: none;
    }
    .cs-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-hero-actions {
        flex-direction: column;
    }
    .cs-hero-actions .cs-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cs-stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .cs-stat-value {
        font-size: 1.4rem;
    }
    .cs-challenges-grid {
        gap: 16px;
    }
    .cs-challenge-card {
        padding: 24px;
    }
    .cs-result-number {
        font-size: 2.2rem;
    }
    .cs-tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .cs-tech-item {
        padding: 14px 16px;
    }
}
