/* ═══════════════════════════════════════════
   DIGIEXPAND — PREMIUM CASE STUDY DESIGN SYSTEM
   Modern, Immersive, Glassmorphic & Metric-Driven
   ═══════════════════════════════════════════ */

/* ─── Page Hero ─── */
.case-hero {
    padding: 8rem 5% 4rem;
    max-width: 1250px;
    margin: 0 auto;
}

.case-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #999;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-pill:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: #4780BC;
    color: #4780BC;
    transform: translateX(-4px);
}

.case-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #264B77;
}

.case-kicker .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #264B77;
    box-shadow: 0 0 10px #264B77;
}

.case-hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.case-subtitle {
    font-size: 1.25rem;
    color: #777;
    line-height: 1.7;
    max-width: 820px;
    margin-bottom: 3rem;
}

/* ─── Project Specs Strip ─── */
.case-specs-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.75rem 2.5rem;
    backdrop-filter: blur(15px);
    margin-bottom: 3.5rem;
}

.spec-item h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4780BC;
    margin-bottom: 0.4rem;
}

.spec-item p {
    font-size: 1rem;
    font-weight: 600;
    color: #ddd;
}

/* ─── Cinematic Mockup Window ─── */
.case-mockup-window {
    background: #111116;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(71, 128, 188, 0.08);
    margin-bottom: 5rem;
}

.mockup-header {
    background: #0d0d10;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.mockup-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-header-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.mockup-header-spacer {
    width: 44px;
    flex-shrink: 0;
}

.mockup-address-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 4px 16px;
    font-size: 0.75rem;
    color: #666;
    font-family: monospace;
    flex: 1;
    max-width: 320px;
    text-align: center;
}

.mockup-viewport {
    height: auto;
    min-height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 4%;
}

/* Visual UI Preview Inside Mockup */
.mockup-ui-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mockup-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mockup-stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mockup-stat-val {
    font-size: 2rem;
    font-weight: 900;
    color: #4780BC;
}

.mockup-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    padding-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px 6px 0 0;
    transition: height 0.6s ease;
    position: relative;
}

.mockup-bar.active {
    background: linear-gradient(180deg, #264B77 0%, #4780BC 100%);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* ─── Challenge vs Solution (Side-by-Side Split) ─── */
.case-split-section {
    max-width: 1250px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.case-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.case-split-card {
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.case-split-card.challenge-card {
    background: rgba(255, 50, 50, 0.02);
    border: 1px solid rgba(255, 50, 50, 0.15);
}

.case-split-card.solution-card {
    background: rgba(0, 210, 255, 0.02);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.split-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.challenge-card .split-card-tag { color: #ff5555; }
.solution-card .split-card-tag { color: #4780BC; }

.case-split-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.case-split-card p {
    color: #999;
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.split-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.split-list li {
    font-size: 0.95rem;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.split-list li .bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.challenge-card .bullet { background: #ff5555; }
.solution-card .bullet { background: #4780BC; box-shadow: 0 0 8px #4780BC; }

/* ─── 3-Phase Execution Roadmap ─── */
.case-process-section {
    max-width: 1250px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.case-process-section .section-header {
    text-align: left;
    margin-bottom: 3rem;
}

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

.process-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 0, 255, 0.3);
}

.process-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 1rem;
}

.process-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #f0f0f0;
}

.process-card p {
    color: #888;
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ─── Results Showcase ─── */
.case-results-section {
    max-width: 1250px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.case-results-section .section-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    border-color: rgba(0, 210, 255, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(0, 210, 255, 0.1);
}

.result-number {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #264B77, #4780BC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.result-label {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

/* ─── Client Endorsement Callout ─── */
.case-quote-section {
    max-width: 1250px;
    margin: 0 auto 5rem;
    padding: 0 5%;
}

.case-quote-card {
    background: linear-gradient(135deg, rgba(15, 42, 74, 0.15) 0%, rgba(71, 128, 188, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3.5rem;
    position: relative;
    backdrop-filter: blur(15px);
}

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: #264B77;
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
}

.case-quote-text {
    font-size: 1.35rem;
    font-style: italic;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 900px;
}

.case-quote-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.case-quote-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: white;
}

.case-quote-author h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.case-quote-author span {
    font-size: 0.85rem;
    color: #888;
}

/* ─── Next Project Switcher Banner ─── */
.next-project-section {
    max-width: 1250px;
    margin: 0 auto 4rem;
    padding: 0 5%;
}

.next-project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3rem 4rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
}

.next-project-card:hover {
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.next-project-info p {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #264B77;
    margin-bottom: 0.5rem;
}

.next-project-info h3 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.next-project-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4780BC;
    transition: all 0.3s ease;
}

.next-project-card:hover .next-project-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4780BC;
    transition: all 0.3s ease;
}

/* ─── Footer CTA ─── */
.case-footer {
    padding: 6rem 5%;
    text-align: center;
    background: #09090b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-footer h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.case-footer p {
    color: #888;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .case-specs-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.75rem 2.5rem;
    backdrop-filter: blur(15px);
    margin-bottom: 3.5rem;
}
    .process-grid {
        grid-template-columns: 1fr;
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-split-grid {
        grid-template-columns: 1fr;
    }
}
/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .case-hero {
        padding: 7rem 5% 3rem;
    }

    .case-hero h1 {
        font-size: 2.4rem;
    }

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

    .case-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Specs bar: 2 columns on tablet */
    .case-specs-bar {
        grid-template-columns: 1fr 1fr;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    /* Mockup: remove height restriction, let image breathe */
    .case-mockup-window {
        border-radius: 16px;
        margin-bottom: 3rem;
    }

    .mockup-viewport {
        padding: 1.5rem 4% !important;
    }

    .mockup-viewport img {
        border-radius: 10px !important;
    }

    .mockup-ui-card {
        padding: 1.25rem;
    }

    .mockup-stat-val {
        font-size: 1.5rem;
    }

    .mockup-chart-bars {
        height: 90px;
        gap: 8px;
    }

    /* Split cards stack */
    .case-split-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-split-card {
        padding: 2rem;
    }

    .case-split-card h3 {
        font-size: 1.4rem;
    }

    /* Process grid stacks */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Results: 2 columns */
    .results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .result-number {
        font-size: 2.5rem;
    }

    /* Quote */
    .case-quote-card {
        padding: 2rem 1.5rem;
    }

    .case-quote-text {
        font-size: 1.05rem;
    }

    /* Next project */
    .next-project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem;
    }

    .next-project-info h3 {
        font-size: 1.5rem;
    }

    /* Footer */
    .case-footer {
        padding: 4rem 5%;
    }

    .case-footer h2 {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL PHONE (≤480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .case-hero {
        padding: 6rem 5% 2.5rem;
    }

    .case-hero h1 {
        font-size: 1.85rem;
        letter-spacing: -1px;
    }

    .case-subtitle {
        font-size: 0.95rem;
    }

    /* Specs bar: 1 column on small phones */
    .case-specs-bar {
        grid-template-columns: 1fr 1fr;
        padding: 1rem 1.2rem;
        gap: 0.85rem;
        border-radius: 14px;
        margin-bottom: 2rem;
    }

    .spec-item p,
    .spec-item h4 {
        font-size: 0.9rem;
    }

    /* Mockup shrinks gracefully */
    .mockup-viewport {
        height: auto !important;
        padding: 0.8rem 2% !important;
    }

    .mockup-header {
        padding: 10px 14px;
    }

    .mockup-header-title {
        font-size: 0.68rem;
        letter-spacing: 0.8px;
    }

    .mockup-dots,
    .mockup-header-spacer {
        width: 38px;
    }

    /* Results: 1 column */
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-number {
        font-size: 2.2rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    /* Split cards */
    .case-split-card {
        padding: 1.5rem;
    }

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

    /* Quote */
    .case-quote-card {
        padding: 1.5rem 1.25rem;
    }

    .case-quote-text {
        font-size: 1rem;
    }

    /* Next project */
    .next-project-card {
        padding: 1.5rem;
    }

    .next-project-info h3 {
        font-size: 1.3rem;
    }

    /* Footer */
    .case-footer h2 {
        font-size: 1.6rem;
    }
}
