/* ===================================
   Project Page Specific Styles
   =================================== */

/* Container Variations */
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container-narrow {
        padding: 0 20px;
    }
}

/* ===================================
   Project Hero
   =================================== */

.project-hero {
    padding: 120px 0 40px;
    background-color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 32px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #0066cc;
}

.project-hero-title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.project-hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #666;
    margin-bottom: 48px;
}

.project-meta-section {
    padding: 0;
    background-color: #fff;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding: 24px 0 40px;
    border-bottom: 1px solid #e5e5e5;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.meta-value {
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .project-hero {
        padding: 60px 0 60px;
    }

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

    .project-hero-subtitle {
        font-size: 20px;
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===================================
   Full-Width Hero Image
   =================================== */

.hero-image-section {
    width: 100%;
    background-color: #f5f5f5;
    padding: 0;
}

.hero-image-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero-image {
        max-height: none;
    }
}

/* ===================================
   Project Sections
   =================================== */

.project-section {
    padding: 40px 0;
    background-color: #fff;
}

.project-section.bg-light {
    background-color: #fafafa;
}

.project-section.bg-dark {
    background-color: #1a1a1a;
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.section-title-light {
    font-size: 36px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 32px;
}

.subsection-title {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 48px 0 24px;
}

.section-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
    font-weight: 300;
}

.section-list {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin: 24px 0;
    padding-left: 24px;
    font-weight: 300;
}

.section-list li {
    margin-bottom: 12px;
}

.section-list.learnings li {
    font-weight: 400;
}

.callout-box {
    background-color: #f0f4f8;
    border-left: 4px solid #0066cc;
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    margin: 32px 0;
}

.callout-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: #1a1a1a;
    margin: 0;
}

@media (max-width: 768px) {
    .project-section {
        padding: 40px 0;
    }

    .section-title,
    .section-title-light {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .subsection-title {
        font-size: 20px;
        margin: 32px 0 16px;
    }

    .section-text,
    .section-list {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .section-list {
        margin: 16px 0;
        padding-left: 20px;
    }
}

/* ===================================
   Image Placeholders
   =================================== */

.image-placeholder {
    background-color: #e5e5e5;
    border: 2px dashed #999;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    margin: 48px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder.hero-image {
    min-height: 500px;
}

.image-placeholder.large-image {
    min-height: 600px;
}

.placeholder-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ===================================
   Section Images
   =================================== */

.project-image-full {
    width: 75vw;
    max-width: 1400px;
    margin: 48px auto;
    position: relative;
    left: 50%;
    margin-left: -37.5vw;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-shadow {
    box-shadow: none !important;
}

.project-image-split {
    width: 75vw;
    max-width: 1400px;
    margin: 48px auto;
    position: relative;
    left: 50%;
    margin-left: -37.5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-image-split .image-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-align: center;
    padding: 12px 20px;
    margin: 0;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .project-image-full {
        width: 100%;
        margin: 32px 0;
        left: 0;
        margin-left: 0;
    }
}

.project-image-full.smaller {
    width: 56.25vw;
    margin-left: calc(50% - 28.125vw);
}

@media (max-width: 768px) {
    .project-image-full.smaller {
        width: 100%;
        margin-left: 0;
    }
}

/* ===================================
   Workflow Diagram
   =================================== */

.workflow-diagram {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 48px;
    margin: 48px 0;
    border: 1px solid #dee2e6;
}

.workflow-header {
    text-align: center;
    margin-bottom: 40px;
}

.workflow-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.workflow-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.workflow-step {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 216px;
    max-width: 264px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.step-issue {
    display: inline-block;
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ffeeba;
}

.workflow-arrow {
    font-size: 24px;
    color: #0066cc;
    font-weight: 600;
    flex-shrink: 0;
}

.workflow-footer {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #dc3545;
}

.workflow-stat {
    font-size: 16px;
    font-weight: 600;
    color: #dc3545;
    margin: 0;
}

@media (max-width: 1024px) {
    .workflow-steps {
        flex-wrap: wrap;
    }

    .workflow-arrow {
        display: none;
    }

    .workflow-step {
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .workflow-diagram {
        padding: 32px 20px;
    }

    .workflow-steps {
        flex-direction: column;
        gap: 16px;
    }

    .workflow-step {
        max-width: 100%;
        width: 100%;
    }
}

/* Pain Points Grid Layout */
.container-narrow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.container-narrow .pain-points-card {
    grid-column: 1;
}

/* Create 4-column grid for pain points cards */
.container-narrow:has(.pain-points-card) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.container-narrow .section-title,
.container-narrow .section-text {
    grid-column: 1 / -1;
}

@media (max-width: 1200px) {
    .container-narrow:has(.pain-points-card) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container-narrow:has(.pain-points-card) {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Pain Points Grid
   =================================== */

.pain-points-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 48px auto;
    width: 85vw;
    max-width: 1400px;
}

.pain-points-header {
    grid-column: 1 / -1;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: left;
    border: 2px solid #0066cc;
}

.pain-points-grid .pain-point-item {
    background: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
    border-radius: 12px;
    padding: 36px;
    border: 2px solid #0066cc;
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-points-grid .pain-point-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(0, 102, 204, 0.4);
}

/* Pain Points Grid Responsive */
@media (max-width: 1200px) {
    .pain-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pain-points-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pain-points-grid .pain-point-item {
        padding: 24px;
    }
}

.pain-points-card {
    background: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
    border-radius: 12px;
    padding: 48px;
    margin: 48px 0;
    border: 2px solid #0066cc;
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.2);
}

.pain-points-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 32px;
}

.pain-point-item {
    display: flex;
    gap: 24px;
    padding: 0;
}

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

.pain-point-number {
    font-size: 28.8px;
    font-weight: 700;
    color: #0066cc;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 4px;
}

.pain-point-content {
    flex: 1;
}

.pain-point-heading {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.pain-point-description {
    font-size: 15.2px;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .pain-points-card {
        padding: 32px 24px;
    }

    .pain-point-item {
        gap: 16px;
    }

    .pain-point-number {
        font-size: 24px;
    }

    .pain-point-heading {
        font-size: 18px;
    }

    .pain-point-description {
        font-size: 14px;
    }
}

/* ===================================
   Workflow Grid Diagram (15 Steps)
   =================================== */

.workflow-grid-diagram {
    background: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
    border-radius: 12px;
    padding: 48px;
    margin: 48px 0;
    border: 2px solid #0066cc;
}

.workflow-grid-header {
    text-align: center;
    margin-bottom: 40px;
}

.workflow-grid-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.workflow-grid-subtitle {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

.workflow-grid-step {
    background: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.workflow-grid-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

/* Add connecting arrow indicators base */
.workflow-grid-step::after {
    content: '→';
    position: absolute;
    color: #0066cc;
    font-size: 20px;
    font-weight: 600;
    z-index: 10;
    line-height: 1;
    display: none;
    /* Hidden by default, shown by specific layouts */
}

/* Desktop layout (3 columns) */
.workflow-grid-step:not(:nth-child(3n)):not(:last-child)::after {
    display: block;
    right: -19px;
    top: 50%;
    transform: translateY(-50%);
}

.step-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0066cc;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #3a3e45;
}

.step-text {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Adjust arrows for 2-column layout */
    .workflow-grid-step::after {
        display: none;
        /* Reset desktop arrows */
    }

    .workflow-grid-step:not(:last-child)::after {
        display: block;
    }

    .workflow-grid-step:nth-child(odd):not(:last-child)::after {
        content: '→';
        right: -25px;
        bottom: auto;
        top: 50%;
        left: auto;
        transform: translateY(-50%);
    }

    .workflow-grid-step:nth-child(even):not(:last-child)::after {
        content: '↓';
        right: auto;
        left: 50%;
        top: auto;
        bottom: -25px;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .workflow-grid-diagram {
        padding: 32px 20px;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* All arrows point down in single column */
    .workflow-grid-step:not(:last-child)::after {
        display: block !important;
        content: '↓' !important;
        right: auto !important;
        left: 50% !important;
        top: auto !important;
        bottom: -20px !important;
        transform: translateX(-50%) !important;
    }

    .workflow-grid-step:last-child::after {
        display: none !important;
    }
}

/* ===================================
   Stats Grid
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 48px 0;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    font-weight: 400;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

/* ===================================
   Insight Box
   =================================== */

.insight-box {
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
    padding: 32px;
    margin: 48px 0;
    border-radius: 4px;
}

.insight-title {
    font-size: 18px;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-text {
    font-size: 20px;
    line-height: 1.7;
    color: #1a1a1a;
    font-weight: 400;
}

/* ===================================
   Challenge Box
   =================================== */

.challenge-box {
    background: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
    padding: 80px 60px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #0066cc;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.15);
    position: relative;
    overflow: hidden;
}

.challenge-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #00a8e8 100%);
}

.challenge-title {
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.challenge-text {
    font-size: 26px;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .challenge-box {
        padding: 40px 24px;
    }

    .challenge-text {
        font-size: 22px;
    }
}

/* ===================================
   Features Grid
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.feature-card {
    background-color: #fff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    font-weight: 300;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Problem Grid
   =================================== */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.problem-card {
    background-color: #fff;
    padding: 32px;
    border-radius: 4px;
    border-left: 3px solid #2E7DAF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.problem-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Context & Info Cards
   =================================== */

.context-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 32px 0;
}

.info-card {
    padding: 0;
}

.info-card-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2E7DAF;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background-color: #eee;
}

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

.info-list li {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
    font-weight: 300;
}

.info-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2E7DAF;
    font-weight: 500;
}

.scope-card {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin-top: 24px;
}

.scope-card .subsection-title {
    margin-top: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2E7DAF;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .context-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===================================
   Testimonial
   =================================== */

.testimonial {
    background-color: #fff;
    padding: 48px;
    border-left: 4px solid #0066cc;
    margin: 48px 0;
    border-radius: 4px;
}

.testimonial-text {
    font-size: 24px;
    line-height: 1.6;
    color: #1a1a1a;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    font-style: normal;
}

@media (max-width: 768px) {
    .testimonial {
        padding: 32px 24px;
    }

    .testimonial-text {
        font-size: 20px;
    }
}

/* ===================================
   Impact Grid
   =================================== */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0 auto;
    width: 75%;
    max-width: 1200px;
}

.impact-card {
    text-align: center;
    padding: 60px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.impact-card:hover {
    background: rgba(0, 102, 204, 0.05);
}

.impact-card:last-child {
    border-right: none;
}

.impact-number {
    font-size: 52px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 14px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.impact-label {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    max-width: 220px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 0;
    }

    .impact-card {
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .impact-card:last-child {
        border-bottom: none;
    }

    .impact-number {
        font-size: 36px;
    }
}

/* Remove border radius from all images on mobile */
@media (max-width: 768px) {

    img,
    .hero-image,
    .section-image,
    .mockup-screen,
    .project-image img,
    .hero-image-container img {
        border-radius: 0 !important;
    }
}

/* Ensure consistent font sizing in problem cards */
.problem-card .section-list {
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.problem-card .section-list li {
    margin-bottom: 8px;
}