/* ========================================
   CASE STUDY PAGE STYLES
   ======================================== */

/* Carousel animation for lofi images */
@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Enable custom cursor - Desktop only */
@media (pointer: fine) {
    body {
        cursor: none;
    }

    a, button, .nav-link, .logo {
        cursor: none;
    }
}

/* No animations - just show everything */
.scroll-animate {
    opacity: 1;
}

/* Hero Section - using home page featured-project styles */
.featured-project {
    position: relative;
    overflow: hidden;
    padding-top: 140px !important;
}

.case-hero-bg {
    position: absolute;
    top: -10%;
    right: -60%;
    left: 40%;
    height: 120%;
    pointer-events: none;
    z-index: 1;
}

.case-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
        #ecfdf5 0%,
        #f0fdfa 30%,
        #ecfeff 50%,
        rgba(236, 253, 245, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.case-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    min-width: 100%;
    animation: zoomOut 3s ease-out forwards;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Extend background width on ultra-wide screens */
@media (min-width: 1800px) {
    .case-hero-bg {
        left: 43%;
    }

    .case-hero-bg::before {
        left: -15%;
        width: 47.5%;
    }
}

@media (min-width: 2200px) {
    .case-hero-bg {
        left: 46%;
    }

    .case-hero-bg::before {
        left: -17.5%;
        width: 40%;
    }
}

.project-mockup {
    position: relative;
    z-index: 2;
}

/* Pulsing animation for featured badge dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
}

.badge-dot {
    animation: pulse-dot 2s ease-in-out infinite !important;
}

/* Tools Bar */
.tools-bar {
    background: #1e293b;
    padding: 16px 48px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tools-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.tools-icons {
    display: flex;
    align-items: center;
    gap: 32px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-item img {
    height: 24px;
    width: auto;
}

.tool-item.figma img {
    height: 22px;
}

.tool-item.usertesting img {
    height: 24px;
}

.tool-item.mural img {
    height: 42px !important;
    width: auto !important;
}

.tool-item.analytics img {
    height: 32px;
}

.tool-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* Base Styles */
.case-section {
    padding: 96px 48px;
}

/* Scroll animations for content */
/* Default: slide up - for brief, problem */
.case-container,
.case-container-wide {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

.case-container.animate-in,
.case-container-wide.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Tools bar: no animation, always visible */
.tools-bar {
    opacity: 1 !important;
    transform: none !important;
}

/* Pain point cards: slide in from left */
.insight-card {
    opacity: 0 !important;
    transform: translateX(-40px) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

.insight-card.animate-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Approach steps and A/B testing: keep slide up (as requested) */
.process-step,
.ab-card,
.ab-phone {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

.process-step.animate-in,
.ab-card.animate-in,
.ab-phone.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Solution grid: staggered left-to-right ripple effect */
.solution-grid {
    opacity: 0 !important;
    transform: translateX(-30px) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out !important;
}

.solution-grid.animate-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.solution-grid img {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.solution-grid.animate-in img:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0s;
}

.solution-grid.animate-in img:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.08s;
}

.solution-grid.animate-in img:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.16s;
}

.solution-grid.animate-in img:nth-child(4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.24s;
}

.solution-grid.animate-in img:nth-child(5) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.32s;
}

.solution-grid.animate-in img:nth-child(6) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

.solution-grid.animate-in img:nth-child(7) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.48s;
}

.solution-grid.animate-in img:nth-child(8) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.56s;
}

/* Hide lofi carousel on desktop */
.lofi-carousel-wrapper {
    display: none;
}

/* Lofi carousel track - hidden by default, shown when JS ready */
.lofi-carousel-track {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lofi-carousel-track.ready {
    opacity: 1;
}

/* Solution phone: scale in */
.solution-phone {
    opacity: 0 !important;
    transform: scale(0.9) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

.solution-phone.animate-in {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Impact card: fade and scale */
.impact-card {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

.impact-card.animate-in {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.case-container {
    max-width: 1600px;
    margin: 0 auto;
}

.case-container-wide {
    max-width: 1800px;
    margin: 0 auto;
}

.case-container.center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-label.light {
    color: #34d399;
}

.case-section h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    color: #0a0a0a;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.case-section h2.light {
    color: #ffffff;
}

.case-section h2.large {
    font-size: 56px;
}

.case-section p {
    font-size: 18px;
    line-height: 30px;
    color: #4a5568;
    max-width: 700px;
}

.case-section p.light {
    color: #cbd5e1;
}

.text-red {
    color: #ef4444;
}

/* Brief Section */
.brief-section {
    background: #ffffff;
}

/* Problem Section */
.problem-section {
    background: #fef8f3;
}

.problem-section .case-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.problem-content {
    display: flex;
    flex-direction: column;
}

.problem-icon {
    margin-bottom: 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 350px;
}

.stat-box {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #0a0a0a;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number.red {
    color: #ef4444;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.stat-label.red {
    color: #ef4444;
}

.stat-sublabel {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Dark Section */
.dark-section {
    background: #1e293b;
}

.insights-grid {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.insight-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insight-num {
    font-size: 120px;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 8px;
    letter-spacing: -3px;
}

.insight-num.red {
    color: #f87171;
}

.insight-num.orange {
    color: #fb923c;
}

.insight-num.yellow {
    color: #fbbf24;
}

.insight-card h3 {
    font-size: 30px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.insight-content {
    background: #334155;
    border-radius: 12px;
    padding: 0;
    display: flex;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.insight-content p {
    flex: 1;
    font-size: 24px;
    line-height: 34px;
    color: #cbd5e1;
    margin: 0;
    padding: 32px;
}

.insight-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    max-width: 33%;
}

.insight-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insight-card p {
    font-size: 18px;
    line-height: 28px;
    color: #cbd5e1;
    margin: 0;
}

/* Approach Section */
.approach-section {
    background: #fef8f3;
}

.process-steps {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    position: relative;
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 40px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 30px;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--from-color), var(--to-color));
    transform: translateY(30px);
}

.process-step:last-child::after {
    display: none;
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 4px;
}

.process-step:nth-child(1) {
    --from-color: #10b981;
    --to-color: #14b8a6;
}

.process-step:nth-child(1) .step-num {
    background: #10b981;
}

.process-step:nth-child(2) {
    --from-color: #14b8a6;
    --to-color: #06b6d4;
}

.process-step:nth-child(2) .step-num {
    background: #14b8a6;
}

.process-step:nth-child(3) .step-num {
    background: #06b6d4;
}

.step-content {
    flex: 1;
    padding-top: 0;
}

.step-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 18px;
    line-height: 28px;
    color: #6b7280;
}

/* Solution Section */
.solution-section {
    background: #f4f4f4;
}

.solution-layout {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 24px;
    max-width: 800px;
}

.solution-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.solution-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solution-phone img {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.results-header {
    text-align: center;
    margin-bottom: 60px;
}

.filter-icon {
    margin-bottom: 24px;
}

.ab-test-layout {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.ab-phone {
    flex-shrink: 0;
}

.ab-phone img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.ab-phone:last-child img {
    filter: drop-shadow(0 0 80px rgba(255, 255, 255, 0.8)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.ab-cards {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.ab-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    min-width: 240px;
}

.ab-card.winner {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
}

.ab-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.ab-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.ab-card.winner .ab-label {
    color: #14b8a6;
}

.ab-result {
    font-size: 48px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.ab-result.winner {
    color: #10b981;
    font-size: 64px;
}

.ab-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #ffffff !important;
}

/* Impact Section */
.impact-section {
    background: #1e293b;
}

p.impact-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: #ffffff !important;
}

.impact-card {
    background: #2d3748;
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(0, 211, 243, 0.5), 0 0 40px rgba(81, 162, 255, 0.4);
}

.impact-icon {
    margin-bottom: 24px;
}

.impact-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: -8px;
}

.impact-from {
    font-size: 64px;
    font-weight: 600;
    background: linear-gradient(180deg, #00D3F3 0%, #51A2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.impact-arrow {
    flex-shrink: 0;
}

.impact-to {
    font-size: 80px;
    font-weight: 900;
    background: linear-gradient(180deg, #00D3F3 0%, #51A2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0px;
}

.impact-label {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.impact-sub {
    font-size: 18px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 1200px) {
    .case-hero h1 {
        font-size: 56px;
    }

    .solution-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1024px) {
    /* Hide background image on tablet */
    .case-hero-bg {
        display: none;
    }

    .case-section {
        padding: 80px 32px;
    }

    .case-hero h1 {
        font-size: 48px;
    }

    .case-section h2 {
        font-size: 40px;
    }

    .problem-section .case-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .problem-content {
        order: 1;
    }

    .stats-row {
        order: 2;
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
    }

    .impact-stats {
        grid-template-columns: 1fr;
    }

    /* Stack pain point cards vertically but keep desktop layout */
    .insights-grid {
        flex-direction: column;
        gap: 32px;
    }

    .insight-card {
        margin-bottom: 0;
    }

    /* Lofi carousel - small desktop/large tablet */
    .solution-layout {
        flex-direction: column;
        gap: 24px;
    }

    .lofi-carousel-wrapper {
        display: block;
        overflow: hidden;
        padding: 0 0 40px;
    }

    .lofi-carousel-track {
        display: flex;
        gap: 12px;
        width: max-content;
        animation: scroll-carousel 30s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .lofi-carousel-track.ready {
        opacity: 1;
    }

    .lofi-item {
        flex-shrink: 0;
        width: 100px;
        height: auto;
        position: relative;
    }

    .lofi-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 0;
    }

    /* Hide grid on small desktop */
    .solution-grid {
        display: none !important;
    }

    .solution-phone {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .case-hero {
        flex-direction: column;
        min-height: auto;
    }

    .case-hero-bg {
        display: none;
    }

    .case-hero-content {
        padding: 40px 24px;
    }

    .case-hero h1 {
        font-size: 40px;
        max-width: 100%;
    }

    .case-hero-desc {
        max-width: 100%;
    }

    .case-section {
        padding: 64px 24px;
    }

    .case-section h2 {
        font-size: 32px;
    }

    .case-section h2.large {
        font-size: 36px;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }

    .tools-bar {
        padding: 16px 24px;
        flex-direction: column;
        gap: 16px;
    }

    .tools-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .process-step {
        padding-left: 0;
        border-left: none;
    }

    .process-step::after {
        display: none;
    }

    .step-num {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .process-step h3 {
        font-size: 28px;
    }

    /* Pain point cards - stack vertically */
    .insights-grid {
        flex-direction: column;
        gap: 32px;
    }

    .insight-card {
        margin-bottom: 0;
    }

    .insight-number {
        font-size: 80px;
    }

    .insight-card h3 {
        font-size: 24px;
    }

    .insight-content {
        flex-direction: column;
    }

    .insight-text {
        padding: 24px;
    }

    .insight-mockup {
        width: 100%;
        height: 250px;
    }

    /* Solution section - carousel on tablet */
    .solution-layout {
        flex-direction: column;
        gap: 24px;
    }

    /* Lofi carousel - tablet */
    .lofi-carousel-wrapper {
        display: block;
        overflow: hidden;
        padding: 0 0 40px;
    }

    .lofi-carousel-track {
        display: flex;
        gap: 12px;
        width: max-content;
        animation: scroll-carousel 30s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .lofi-carousel-track.ready {
        opacity: 1;
    }

    .lofi-item {
        flex-shrink: 0;
        width: 100px;
        height: auto;
        position: relative;
    }

    .lofi-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 0;
    }

    /* Hide grid on tablet */
    .solution-grid {
        display: none !important;
    }

    .solution-phone {
        max-width: 300px;
    }

    /* A/B Testing section */
    .ab-container {
        flex-direction: column;
        gap: 32px;
    }

    .ab-phones {
        flex-direction: column;
        gap: 24px;
    }

    .ab-phone {
        max-width: 280px;
        margin: 0 auto;
    }

    .ab-cards {
        flex-direction: column;
        gap: 20px;
    }

    .ab-card {
        padding: 24px;
    }

    .ab-label {
        font-size: 16px;
    }

    .ab-result {
        font-size: 48px;
    }

    .ab-result.winner {
        font-size: 56px;
    }

    /* Impact section */
    .impact-card {
        padding: 32px 24px;
    }

    .impact-from {
        font-size: 48px;
    }

    .impact-to {
        font-size: 64px;
    }

    .impact-arrow svg {
        width: 32px;
        height: 32px;
    }

    .impact-label {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .case-hero h1 {
        font-size: 32px;
    }

    .case-section h2 {
        font-size: 28px;
    }

    .case-meta {
        gap: 24px;
    }

    .impact-num {
        font-size: 56px;
    }

    .result-big {
        font-size: 48px;
    }

    /* Featured project hero section */
    .featured-project {
        padding-top: 80px !important;
    }

    .featured-project-inner {
        flex-direction: column;
        gap: 32px;
        padding: 0px 16px 30px;
    }

    .project-mockup {
        margin-left: 0 !important;
    }

    .project-mockup img {
        max-width: 350px;
    }

    .project-title {
        font-size: 32px;
    }

    /* Tools bar - smaller icons */
    .tool-item.figma img {
        width: 18px !important;
        height: 18px !important;
    }

    .tool-item.usertesting img {
        width: 20px !important;
        height: 20px !important;
    }

    .tool-item.mural img {
        width: 34px !important;
        height: 34px !important;
    }

    .tool-item.analytics img {
        width: 26px !important;
        height: 26px !important;
    }

    /* Stat boxes */
    .stat-box {
        padding: 24px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-label {
        font-size: 18px;
    }

    /* Pain point numbers */
    .insights-grid {
        gap: 24px;
    }

    .insight-number {
        font-size: 64px;
    }

    .insight-card h3 {
        font-size: 20px;
    }

    .insight-card p {
        font-size: 18px;
    }

    .insight-mockup {
        height: 200px;
    }

    /* Process steps */
    .step-num {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .process-step h3 {
        font-size: 24px;
    }

    .process-step p {
        font-size: 18px;
    }

    /* Lofi carousel - mobile continuous auto-scroll */
    .lofi-carousel-wrapper {
        display: block;
        overflow: hidden;
        padding: 0 0 40px;
    }

    .lofi-carousel-track {
        display: flex;
        gap: 12px;
        width: max-content;
        animation: scroll-carousel 30s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .lofi-carousel-track.ready {
        opacity: 1;
    }

    .lofi-item {
        flex-shrink: 0;
        width: 100px;
        height: auto;
        position: relative;
    }

    .lofi-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 0;
    }

    /* Hide grid on mobile */
    .solution-grid {
        display: none !important;
    }

    .solution-phone {
        max-width: 100%;
        margin-top: 24px;
        text-align: center;
    }

    .solution-phone img {
        max-width: 280px;
    }

    /* A/B testing */
    .ab-phone {
        max-width: 240px;
    }

    .ab-result {
        font-size: 40px;
    }

    .ab-result.winner {
        font-size: 48px;
    }

    .ab-description {
        font-size: 17px;
    }

    /* Impact */
    .impact-from {
        font-size: 40px;
    }

    .impact-to {
        font-size: 52px;
    }

    .impact-arrow svg {
        width: 28px;
        height: 28px;
    }

    .impact-label {
        font-size: 18px;
    }

    .impact-sub {
        font-size: 16px;
    }
}

/* ========================================
   THE HUB CASE STUDY
   ======================================== */

/* Hub Hero Section - Purple/Pink Background */
.hub-hero {
    background: #fdf4ff !important;
}

.hub-hero .case-hero-bg {
    left: 40%;
}

.hub-hero .case-hero-bg img {
    animation: zoomOutHub 3s ease-out forwards;
}

@keyframes zoomOutHub {
    0% {
        transform: scale(0.74);
    }
    100% {
        transform: scale(0.64);
    }
}

.hub-hero .case-hero-bg::before {
    background: linear-gradient(to right,
        #fdf4ff 0%,
        #fdf4ff 20%,
        rgba(253, 244, 255, 0) 100%);
}

/* Hub background positioning for ultra-wide screens */
@media (min-width: 1800px) {
    .hub-hero .case-hero-bg {
        left: 43%;
    }
}

@media (min-width: 2200px) {
    .hub-hero .case-hero-bg {
        left: 46%;
    }
}

.tablet-mockup {
    width: 120%;
    max-width: 720px;
    height: auto;
    margin-left: -20%;
}

/* Reset tablet mockup positioning on mobile/tablet */
@media (max-width: 1024px) {
    .tablet-mockup {
        margin-left: 0;
    }
}

/* Legacy System Section */
.legacy-section {
    padding: 120px 0;
    background: #ffffff;
}

.case-container-split {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.legacy-image {
    position: relative;
}

.legacy-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.image-caption {
    margin-top: 16px;
    font-size: 16px !important;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

.legacy-content h2 {
    font-size: 48px;
    font-weight: 900;
    color: #0a0a0a;
    margin-bottom: 24px;
    line-height: 1.2;
}

.legacy-content p {
    font-size: 20px;
    line-height: 1.7;
    color: #364153;
}

/* Hub Feature Sections */
.hub-feature {
    padding: 80px 0;
}

.purple-bg {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.white-bg {
    background: #ffffff;
}

.feature-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 48px;
    text-align: center;
}

.feature-title.dark {
    color: #0a0a0a !important;
}

.feature-image {
    margin-bottom: 40px;
    text-align: center;
}

.feature-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.feature-description {
    font-size: 18px;
    line-height: 1.7;
    color: #ffffff !important;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.feature-description.dark {
    color: #364153 !important;
}

/* ========================================
   HUB-SPECIFIC ANIMATIONS
   ======================================== */

/* Legacy Section - Split slide animation */
.legacy-section .legacy-image {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.legacy-section .legacy-content {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}

.legacy-section .case-container-split.animate-in .legacy-image {
    opacity: 1;
    transform: translateX(0);
}

.legacy-section .case-container-split.animate-in .legacy-content {
    opacity: 1;
    transform: translateX(0);
}

/* Feature Sections - Title fade in from top */
.hub-feature .feature-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hub-feature .case-container.animate-in .feature-title {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Images - Scale and bounce */
.hub-feature .feature-image {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.2s;
}

.hub-feature .case-container.animate-in .feature-image {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Feature Descriptions - Fade in from bottom */
.hub-feature .feature-description {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: 0.4s;
}

.hub-feature .case-container.animate-in .feature-description {
    opacity: 1;
    transform: translateY(0);
}

/* Impact Section - Stagger animation */
.impact-section .section-label {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.impact-section .case-container.animate-in .section-label {
    opacity: 1;
    transform: translateY(0);
}

.impact-section h2 {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.1s;
}

.impact-section .case-container.animate-in h2 {
    opacity: 1;
    transform: translateY(0);
}

.impact-section .impact-description {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: 0.2s;
}

.impact-section .case-container.animate-in .impact-description {
    opacity: 1;
    transform: translateY(0);
}

/* Impact Card - Enhanced scale with rotation */
.impact-section .impact-card {
    opacity: 0;
    transform: scale(0.9) rotate(-2deg);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.4s;
}

.impact-section .impact-card.animate-in {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}


/* Tablet Responsive */
@media (max-width: 1024px) {
    .case-container-split {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 40px;
    }

    .legacy-content h2 {
        font-size: 36px;
    }

    .legacy-content p {
        font-size: 18px;
    }

    .feature-title {
        font-size: 32px;
    }

    .feature-description {
        font-size: 18px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Reset sticky social icons for case study pages */
    .social-icons {
        position: static;
        margin-left: 0;
        padding-left: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .legacy-section {
        padding: 80px 0;
    }

    .case-container-split {
        padding: 0 24px;
        gap: 32px;
    }

    .legacy-content h2 {
        font-size: 28px;
    }

    .legacy-content p {
        font-size: 18px;
    }

    .hub-feature {
        padding: 60px 0;
    }

    .feature-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .feature-description {
        font-size: 18px;
    }

    .feature-image {
        padding: 0 24px;
    }

    .feature-image img {
        border-radius: 8px;
    }
}

/* ========================================
   EE TEAM PLAN CASE STUDY
   ======================================== */

/* EE Hero Section - Yellow tint background, mimics homepage */
.ee-hero {
    background: rgba(235, 243, 4, 0.1) !important;
    overflow: hidden;
}

.ee-hero .featured-project-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: row-reverse;
    gap: 122px;
    align-items: center;
    justify-content: center;
}

.ee-hero .project-content {
    flex: 1;
}

.ee-mockup-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -8%;
}

.ee-mockup-group img {
    max-width: 88%;
    height: auto;
}


/* Solution Steps Section - EE Team Plan specific */
.ee-hero ~ .tools-bar ~ .solution-section {
    background: #ecfdf5;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
}

.solution-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.solution-step {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.solution-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.solution-step:nth-child(2) {
    transition-delay: 0.1s;
}

.solution-step:nth-child(3) {
    transition-delay: 0.2s;
}

.solution-step-number {
    display: block;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    margin: 0 auto 24px;
}

.solution-step img {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.solution-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.solution-step p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Design Process Section */
.design-section {
    background: #ffffff;
}

.design-process-alt {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr;
    gap: 48px;
    margin-top: 48px;
    align-items: center;
}

.lofi-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lofi-sketches-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.lofi-sketches-row img {
    height: 300px;
    width: auto;
    object-fit: contain;
}

.lofi-wireframe {
    width: 100%;
    height: auto;
}

.hifi-column img {
    width: 100%;
    height: auto;
}

.design-process {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 48px;
}

.design-wireframes img,
.design-high-fidelity img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.design-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outcome Cards Section */
.outcome-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.outcome-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.outcome-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.outcome-card:nth-child(2) {
    transition-delay: 0.1s;
}

.outcome-card:nth-child(3) {
    transition-delay: 0.2s;
}

.outcome-card-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
}

.outcome-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.outcome-card p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* EE Responsive */
@media (max-width: 1024px) {
    .ee-hero .featured-project-inner {
        flex-direction: column;
        gap: 48px;
        padding: 80px 40px 64px;
    }

    .ee-mockup-group {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 0;
    }

    .ee-mockup-group img {
        max-width: 100%;
        width: 80%;
    }

    .solution-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .design-process-alt {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .design-process-alt .design-arrow {
        transform: rotate(90deg);
    }

    .lofi-sketches-row {
        flex-direction: column;
        gap: 16px;
    }

    .lofi-sketches-row img {
        height: auto;
        width: 100%;
        max-width: 400px;
    }

    .lofi-wireframe {
        width: 100%;
        max-width: 400px;
    }

    .hifi-column img {
        width: 100%;
        max-width: 500px;
    }

    .design-process {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .design-arrow {
        transform: rotate(90deg);
    }

    .outcome-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .ee-hero .featured-project-inner {
        padding: 60px 32px 48px;
        gap: 32px;
    }

    .ee-mockup-group img {
        width: 90%;
        max-width: 350px;
    }

    .project-title {
        font-size: 36px;
    }

    .project-description {
        font-size: 18px;
    }

    .section-intro h2 {
        font-size: 32px;
    }

    .section-intro p {
        font-size: 18px;
    }

    .solution-step {
        padding: 24px;
    }

    .solution-step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
    }

    .solution-step h3 {
        font-size: 18px;
    }

    .solution-step img {
        max-width: 150px;
    }

    .lofi-sketches-row img,
    .lofi-wireframe,
    .hifi-column img {
        max-width: 100%;
    }

    .outcome-card {
        padding: 32px 24px;
    }

    .outcome-card-image {
        height: 200px;
    }

    .outcome-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .featured-project {
        padding-top: 80px !important;
    }

    .ee-hero .featured-project-inner {
        padding: 0px 16px 30px;
        gap: 24px;
    }

    .ee-mockup-group img {
        width: 100%;
        max-width: 350px;
    }

    .project-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .project-description {
        font-size: 17px;
    }

    .tags {
        gap: 8px;
    }

    .tag-gray,
    .tag {
        font-size: 14px;
        padding: 6px 12px;
    }

    .section-intro h2 {
        font-size: 26px;
    }

    .section-intro p {
        font-size: 17px;
    }

    .solution-step {
        padding: 20px;
    }

    .solution-step-number {
        width: 36px;
        height: 36px;
        font-size: 18px;
        line-height: 36px;
        margin-bottom: 16px;
    }

    .solution-step h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .solution-step p {
        font-size: 16px;
    }

    .solution-step img {
        max-width: 140px;
        margin-bottom: 16px;
    }

    .case-section h2 {
        font-size: 28px;
    }

    .case-section p {
        font-size: 17px;
    }

    .lofi-sketches-row {
        gap: 12px;
    }

    .design-arrow svg {
        width: 48px;
        height: 48px;
    }

    .outcome-card {
        padding: 24px 20px;
    }

    .outcome-card-image {
        height: 140px;
    }

    .outcome-card h3 {
        font-size: 18px;
    }

    .outcome-card p {
        font-size: 16px;
    }
}
