/* ===========================
   CASE STUDIES PAGE STYLES
   =========================== */

.case-studies-header {
    padding-bottom: 3rem;
    margin-bottom: 4rem;
}

.case-studies-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.case-studies-header p {
    font-size: 1.1rem;
    color: #999;
    line-height: 1.6;
    max-width: 700px;
}

/* ===========================
   CASE STUDIES SECTION
   =========================== */

.case-studies-section {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-bottom: 6rem;
}

.case-study {
    border: 1px solid #222;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.05) 0%, rgba(200, 255, 0, 0) 100%);
    transition: all 0.3s ease;
}

.case-study:hover {
    border-color: #333;
    box-shadow: 0 8px 32px rgba(200, 255, 0, 0.1);
}

.case-study-featured {
    border: 2px solid #c8ff00;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.1) 0%, rgba(200, 255, 0, 0.02) 100%);
}

/* ===========================
   CASE STUDY HEADER
   =========================== */

.case-study-header {
    padding: 3rem;
    border-bottom: 1px solid #222;
}

.case-study-featured .case-study-header {
    border-bottom-color: rgba(200, 255, 0, 0.2);
}

.case-study-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.case-study-category {
    display: inline-block;
    background: rgba(200, 255, 0, 0.15);
    color: #c8ff00;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-weight: 600;
}

.case-study-year {
    display: inline-block;
    color: #666;
    font-weight: 500;
}

.case-study-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.case-study-subtitle {
    font-size: 1.1rem;
    color: #999;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   CASE STUDY HERO
   =========================== */

.case-study-hero {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #111;
}

.case-study-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.case-study-hero-small {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.case-study-hero-small img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   CASE STUDY CONTENT
   =========================== */

.case-study-content {
    padding: 3rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.case-study-grid.reversed {
    direction: rtl;
}

.case-study-grid.reversed > * {
    direction: ltr;
}

.cs-col-left,
.cs-col-right {
    display: flex;
    flex-direction: column;
}

.case-study-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.case-study-grid h3:first-child {
    margin-top: 0;
}

.case-study-grid h3:not(:first-child) {
    margin-top: 2rem;
}

.case-study-grid p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.challenge-list,
.solution-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.challenge-list li,
.solution-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ccc;
    line-height: 1.6;
    position: relative;
}

.challenge-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
    width: 1.5rem;
}

.solution-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c8ff00;
    font-weight: bold;
    width: 1.5rem;
}

.solution-list-compact {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    columns: 1;
}

.solution-list-compact li {
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
    color: #ccc;
    position: relative;
}

.solution-list-compact li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #c8ff00;
    font-weight: bold;
}

/* ===========================
   METRICS BOX
   =========================== */

.metrics-box {
    background: rgba(200, 255, 0, 0.08);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.metrics-box h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #c8ff00;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.metric-label {
    display: block;
    font-size: 0.95rem;
    color: #999;
    line-height: 1.4;
}

.metrics-box-vertical {
    background: rgba(200, 255, 0, 0.08);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.metrics-box-vertical h3 {
    margin-top: 0;
}

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

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(200, 255, 0, 0.1);
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-item .metric-label {
    text-align: left;
    margin: 0;
}

.metric-item .metric-value {
    margin: 0;
}

.metrics-inline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(200, 255, 0, 0.05);
    border-radius: 8px;
}

.metric-inline {
    text-align: center;
}

.metric-value-sm {
    font-size: 1.75rem;
    font-weight: 700;
    color: #c8ff00;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-inline p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

/* ===========================
   TESTIMONIAL BOX
   =========================== */

.testimonial-box {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: #fff;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-inline {
    background: rgba(200, 255, 0, 0.08);
    border-left: 3px solid #c8ff00;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    font-style: italic;
    color: #ccc;
    line-height: 1.8;
}

.testimonial-inline footer {
    margin-top: 1rem;
    color: #999;
    font-style: normal;
}

/* ===========================
   PROCESS TIMELINE
   =========================== */

.case-study-process {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #222;
}

.case-study-process h3 {
    margin-top: 0;
    margin-bottom: 2rem;
}

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

.process-step {
    display: flex;
    gap: 1.5rem;
}

.process-number {
    font-size: 2rem;
    font-weight: 800;
    color: #c8ff00;
    min-width: 50px;
    line-height: 1.2;
}

.process-content h4 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    color: #fff;
}

.process-content p {
    font-size: 0.95rem;
    color: #999;
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   RESULTS HIGHLIGHT
   =========================== */

.results-highlight {
    background: rgba(200, 255, 0, 0.08);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(200, 255, 0, 0.1);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: #999;
    font-size: 0.95rem;
}

.result-value {
    color: #c8ff00;
    font-weight: 700;
}

/* ===========================
   TRUST SECTION
   =========================== */

.trust-section {
    margin: 6rem 0;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.08) 0%, rgba(200, 255, 0, 0.02) 100%);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 20px;
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-left h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.trust-left > p {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.trust-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.trust-metric-item {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border-left: 3px solid #c8ff00;
}

.trust-metric-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #c8ff00;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.trust-metric-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.trust-metric-description {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.trust-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trust-benefit {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(200, 255, 0, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(200, 255, 0, 0.15);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    width: 32px;
    height: 32px;
    background: #c8ff00;
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #fff;
}

.benefit-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
    line-height: 1.5;
}

/* ===========================
   PORTFOLIO SHOWCASE
   =========================== */

.portfolio-showcase {
    margin: 6rem 0;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.showcase-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.showcase-header p {
    font-size: 1.1rem;
    color: #999;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.showcase-card {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.08) 0%, rgba(200, 255, 0, 0.02) 100%);
    border: 1px solid rgba(200, 255, 0, 0.2);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.15) 0%, rgba(200, 255, 0, 0.05) 100%);
    border-color: #c8ff00;
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(200, 255, 0, 0.15);
}

.showcase-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #c8ff00;
    color: #000;
    border-radius: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.showcase-card h3 {
    font-size: 1.4rem;
    margin: 0 0 0.75rem 0;
    color: #fff;
}

.showcase-card p {
    font-size: 0.95rem;
    color: #999;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    flex-grow: 1;
}

.showcase-cta {
    display: inline-block;
    font-size: 0.9rem;
    color: #c8ff00;
    font-weight: 600;
    transition: all 0.3s ease;
}

.showcase-card:hover .showcase-cta {
    transform: translateX(4px);
}

.showcase-btn-all {
    display: inline-block;
    padding: 1rem 1.75rem;
    background: transparent;
    border: 2px solid #c8ff00;
    color: #c8ff00;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.showcase-btn-all:hover {
    background: #c8ff00;
    color: #000;
    transform: translateX(4px);
}

/* ===========================
   FINAL CTA SECTION
   =========================== */

.final-cta-section {
    margin: 6rem 0 3rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #c8ff00 0%, rgba(200, 255, 0, 0.8) 100%);
    border-radius: 20px;
    color: #000;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.cta-left h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: #000;
}

.cta-left > p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.6;
}

.cta-checklist {
    margin-bottom: 2.5rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #000;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-block;
    padding: 1.1rem 2.25rem;
    background: #000;
    color: #c8ff00;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #000;
}

.btn-cta-primary:hover {
    background: transparent;
    color: #000;
    transform: translateY(-3px);
}

.btn-cta-secondary {
    display: inline-block;
    padding: 1.1rem 2rem;
    background: transparent;
    color: #000;
    border: 2px solid #000;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: #000;
    color: #c8ff00;
}

.cta-right {
    display: flex;
    align-items: center;
}

.cta-confidence {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border-left: 4px solid #000;
}

.confidence-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 1.5rem 0;
}

.confidence-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confidence-list li {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
}

.confidence-list li:last-child {
    margin-bottom: 0;
}

.confidence-list strong {
    color: #000;
    font-weight: 700;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-study-grid.reversed {
        direction: ltr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metrics-inline {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .trust-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .cta-container {
        grid-template-columns: 1fr;
    }

    .trust-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .case-study-header {
        padding: 2rem;
    }

    .case-study-content {
        padding: 2rem;
    }

    .case-study-header h2 {
        font-size: 1.5rem;
    }

    .case-study-subtitle {
        font-size: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.85rem;
    }

    .trust-section {
        padding: 2.5rem;
    }

    .trust-left h2 {
        font-size: 1.75rem;
    }

    .final-cta-section {
        padding: 2.5rem;
    }

    .cta-left h2 {
        font-size: 1.75rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }

    .showcase-card {
        padding: 2rem;
    }

    .showcase-number {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .showcase-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .case-study-meta {
        flex-wrap: wrap;
    }

    .case-study-header h2 {
        font-size: 1.25rem;
    }

    .case-study-content {
        padding: 1.5rem;
    }

    .metrics-box {
        padding: 1.5rem;
    }

    .challenge-list li,
    .solution-list li {
        padding-left: 1.25rem;
        font-size: 0.95rem;
    }

    .trust-section {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .trust-content {
        gap: 1.5rem;
    }

    .trust-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trust-metric-item {
        padding: 1rem;
    }

    .trust-metric-number {
        font-size: 1.75rem;
    }

    .trust-benefit {
        padding: 1rem;
        gap: 0.75rem;
    }

    .benefit-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .benefit-content h4 {
        font-size: 0.9rem;
    }

    .benefit-content p {
        font-size: 0.8rem;
    }

    .showcase-header h2 {
        font-size: 1.5rem;
    }

    .showcase-card {
        padding: 1.5rem;
    }

    .showcase-number {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .showcase-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .showcase-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .showcase-btn-all {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }

    .final-cta-section {
        padding: 1.5rem;
        margin: 4rem 0 2rem;
    }

    .cta-left h2 {
        font-size: 1.5rem;
    }

    .cta-left > p {
        font-size: 0.95rem;
    }

    .checklist-item {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .check {
        width: 24px;
        height: 24px;
    }

    .cta-actions {
        gap: 1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 0.95rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-right {
        display: none;
    }

    .cta-confidence {
        padding: 1.5rem;
    }

    .confidence-label {
        font-size: 0.85rem;
    }

    .confidence-list li {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}
