/* ===========================
   Case Study Specific Styles
   =========================== */

:root {
    --progress-height: 0%;
}

/* Progress Navigation */
.progress-nav {
    position: fixed;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: opacity 0.4s ease;
}

.progress-item {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.progress-item:hover {
    transform: scale(1.05);
}

.progress-item:hover .progress-label {
    color: var(--primary-blue);
}

.progress-item.active {
    transform: scale(1.3);
}

.progress-item.active .progress-label {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1rem;
}

/* Mobile Sub-Navigation */
.mobile-subnav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-subnav {
        display: block;
        position: sticky;
        top: 80px;
        background: var(--white);
        border-bottom: 2px solid var(--medium-gray);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        z-index: 99;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-subnav::-webkit-scrollbar {
        display: none;
    }
}

.mobile-subnav-scroll {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    width: 100%;
    overflow-x: auto;
}

.mobile-subnav-item {
    flex-shrink: 0;
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.mobile-subnav-item.active {
    color: var(--white);
    background: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 600;
}

.mobile-subnav-item:hover {
    background: rgba(53, 108, 238, 0.1);
}

/* Hero Section */
.case-hero {
    padding: 10rem 3rem 4rem;
    margin-top: 80px;
    background: var(--white);
}

.case-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.case-hero-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.case-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.case-hero-description {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Image */
.case-hero-image {
    padding: 4rem 3rem;
    background: var(--white);
}

.hero-image-size {
    aspect-ratio: 16/9;
}

/* Container Sizes */
.case-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.case-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Sections */
.case-section {
    padding: 6rem 0;
}

.case-section.reduced-padding {
    padding: 1.5rem 0;
}

.bg-light {
    background: var(--light-gray);
}

/* Typography */
.section-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.section-subtitle.split-bold {
    font-weight: 400;
}

.section-subtitle.split-bold strong {
    font-weight: 600;
}

.section-subtitle.centered {
    text-align: center;
    margin-bottom: 4rem;
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.subsection-title strong {
    font-weight: 600;
}

/* Override for titles that are entirely bold */
.subsection-title-bold {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.body-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.body-text strong {
    font-weight: 600;
    color: var(--text-dark);
}

.body-text em {
    font-style: italic;
}

.body-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.body-list li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.body-list li strong {
    font-weight: 600;
}

/* Callout Box */
.callout-box {
    background: var(--light-gray);
    border-left: 4px solid var(--primary-blue);
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.callout-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: var(--white);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 160px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(53, 108, 238, 0.1);
}

.timeline-content {
    text-align: center;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.timeline-arrow {
    color: var(--medium-gray);
    font-size: 1.5rem;
    align-self: center;
    margin: 0 0.25rem;
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--medium-gray);
    border-radius: 12px;
    margin: 2rem 0;
}

.image-placeholder span {
    color: var(--text-gray);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}

.standard-image-size {
    aspect-ratio: 16/9;
    min-height: 400px;
}

/* Persona Cards */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.persona-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.persona-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.persona-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--medium-gray);
}

.persona-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 2px dashed var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.persona-placeholder span {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: center;
}

.persona-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.persona-type {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.persona-quote {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-blue);
    width: 100%;
}

.persona-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

.persona-section {
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: left;
}

.persona-section h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.persona-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.persona-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

/* Data Tables */
.data-table {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.data-table thead {
    background: var(--primary-blue);
    color: var(--white);
}

.data-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    font-size: 1rem;
    color: var(--text-dark);
}

.data-table tbody tr:hover {
    background: var(--light-gray);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background: rgba(53, 108, 238, 0.05);
}

.highlight-row td {
    font-weight: 600;
}

.highlight-row td {
    font-weight: 600;
}

/* Test Section Label */
.test-section-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 2fr;
    gap: 0;
}

.comparison-header {
    background: var(--primary-blue);
    color: var(--white);
}

.comparison-header .comparison-cell {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-cell {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

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

.comparison-row:not(.comparison-header):hover .comparison-cell {
    background: var(--light-gray);
}

/* Prototype Link */
.prototype-link {
    margin: 3rem 0;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(53, 108, 238, 0.3);
}

.cta-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 108, 238, 0.4);
}

/* Project Navigation */
.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
}

.nav-button {
    padding: 1rem 2rem;
    border: 2px solid var(--text-dark);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1140px) and (min-width: 769px) {
    .progress-nav {
        left: 1.5rem;
        gap: 1rem;
    }

    .progress-item {
        position: relative;
    }

    .progress-item::before {
        content: '';
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--medium-gray);
        display: block;
        transition: all 0.3s ease;
    }

    .progress-item.active::before {
        background: var(--primary-blue);
        box-shadow: 0 0 0 4px rgba(53, 108, 238, 0.2);
        width: 16px;
        height: 16px;
    }

    .progress-item:hover::before {
        background: var(--primary-blue);
        transform: scale(1.2);
    }

    .progress-label {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        pointer-events: none;
        background: var(--text-dark);
        color: var(--white);
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.85rem;
        white-space: nowrap;
        transition: opacity 0.3s ease;
        z-index: 10;
    }

    .progress-label::before {
        content: '';
        position: absolute;
        left: -6px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 6px 6px 6px 0;
        border-color: transparent var(--text-dark) transparent transparent;
    }

    .progress-item:hover .progress-label {
        opacity: 1;
        color: var(--white);
    }

    .progress-item.active {
        transform: none;
    }

    .progress-item.active .progress-label {
        font-weight: 600;
        font-size: 0.85rem;
        color: var(--white);
    }
}

@media (max-width: 1024px) {
    .case-hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.85rem;
    }

    .timeline {
        flex-direction: column;
        gap: 2rem;
    }

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

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

@media (max-width: 768px) {
    .case-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .case-hero-title {
        font-size: 2.25rem;
    }

    .case-hero-description {
        font-size: 1.15rem;
    }

    .case-container,
    .case-container-narrow {
        padding: 0 1.5rem;
    }

    .case-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }

    .body-text,
    .body-list li {
        font-size: 1rem;
    }

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

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 1rem;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-header {
        display: none;
    }

    .comparison-cell {
        border-bottom: 1px solid var(--medium-gray);
        padding: 1rem;
    }

    .comparison-cell:first-child {
        background: var(--light-gray);
        font-weight: 600;
    }

    .project-nav {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .progress-nav {
        display: none;
    }
}
/* Figma Embed */
.figma-embed {
    margin: 3rem 0 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.figma-embed iframe {
    display: block;
    width: 100%;
    min-height: 600px;
}

@media (max-width: 768px) {
    .figma-embed iframe {
        min-height: 500px;
    }
}
