/* ============================================== */
/* === 1. PROJECT HERO & META === */
/* ============================================== */

.project-hero {
    max-width: 1250px; 
    margin: 128px auto;
    padding: 0 24px;
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 40px;
}

.project-header-meta { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    align-items: flex-start;
}

/* --- PROJECT META GRID --- */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    width: 100%;
    padding: 24px 0;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.1em;
}

.meta-value {
    font-size: 16px;
    color: #111;
}

/* --- VIDEO --- */
  .videoshowcase {
    border: 1px solid #eee;
    width: 100%;
    border-radius: 8px;
  }


/* ============================================== */
/* === 2. GENERAL SECTIONS (Results & Content) === */
/* ============================================== */

.project-section {
    max-width: 1250px;
    margin: 128px auto;
    padding: 0 24px;
}


/* --- RESULTS SECTION --- */
.results-section .section-big-title {
    margin-bottom: 40px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.result-card {
    background: #f7f7f7;
    border-radius: 6px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #f0f0f0;
}

.result-card .stat-val {
    font-size: 48px;
    font-weight: 700;
    /* Uses the gradient styling from style.css */
    background: linear-gradient(90deg, #7f5af0, #00e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.result-card .stat-desc {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* --- CONTENT BLOCKS (CHALLENGE/SOLUTION/VISUALS) --- */
.content-section .content-grid,
.visual-breakdown .content-grid {
    display: grid;
    gap: 64px;
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-block h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
}

.content-block p {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.content-block .full-width {
    grid-column: 1 / -1;
}

.red {
    color: #c11c4a;
    margin-bottom: 0px;}

.green {
    color: #34b168;
    margin-bottom: 0px;}

.image-pair {
    grid-column: 1 / -1; /* Spans both columns */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.asset-mockup {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}
.asset-mockup img {
    width: 100%;
    height: auto;
    display: block;
}
.asset-mockup .caption {
    padding: 12px 16px;
    font-size: 12px;
    color: #888;
    font-style: italic;
    background: #f7f7f7;
}


/* ================================================= */
/* === 3. INTERACTIVE PROCESS SECTION (New) === */
/* ================================================= */

.interactive-process-section {
    max-width: 1250px;
    margin: 128px auto;
    padding: 0 24px;
}

.project-process-title {
    font-size: 72px; 
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 60px;
    max-width: 1000px;
}

.process-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Text wider than steppers */
    gap: 100px;
    align-items: flex-start;
}

/* --- Left Column: Text Block (managed by JS for active state) --- */
.process-text-block {
    position: relative;
    min-height: 150px; 
}

.process-text-block .step-content {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.process-text-block .step-content.active {
    opacity: 1;
    pointer-events: all;
    position: static; 
}

.process-text-block p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}
.process-text-block p strong {
    color: #000;
}


/* --- Right Column: Steppers --- */
.process-steppers {
    display: flex;
    flex-direction: column;
    gap: 32px;
    top: 100px; 
}

.stepper-numbers {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stepper-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.number-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stepper-item.active .number-circle {
color: #7f5af0;
font-size: 18px;
}

.stepper-item:hover .number-circle {
    color: #000;
background: #ececec;}

.stepper-description {
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.stepper-description.active {
    display: block;
    opacity: 1;
}

.step-meta-label {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
    display: block;
}

.stepper-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}


/* ================================================= */
/* === 4. NEXT PROJECT FOOTER (New) === */
/* ================================================= */

.next-project-footer {
    max-width: 1250px;
    max-height: 400px;
    margin: 128px auto 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.next-case-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.next-case-link .section-header {
margin-bottom: 0px;
}

.next-project-title {
    font-weight: 400;
    line-height: 1.1;
    color: #111;
    transition: color 0.3s ease;
}

.next-case-link:hover .next-project-title {
    color: #7f5af0;
}

.arrow-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.next-arrow-icon {
    width: 24px;
    height: 24px;
    stroke: #111;
    transition: transform 0.3s ease, stroke 0.3s ease;
    transform: rotate(90deg); /* Downward pointing arrow */
}

.next-case-link:hover .next-arrow-icon {
    transform: rotate(90deg) translateX(10px);
}

.next-case-link:hover ~ .next-project-visuals img {
    transform: translateY(-10px); 
}

.next-project-visuals {
    width: 100%;
    /* Apply clip effect here by setting a specific height and hiding overflow */
    padding-bottom: 0; 
    height: 400px; /* Define the height you want to display */
    overflow: hidden;
    position: relative;

}

.next-project-visuals img {
  margin-top: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    /* Image transition for the lift effect */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.next-project-visuals i:hover .next-arrow-icon {
    transform: rotate(90deg) translateX(10px);
}

.next-case-link:hover ~ .next-project-visuals img {
    transform: translateY(-10px); 
}


/* ================================================= */
/* === 5. MEDIA QUERIES === */
/* ================================================= */

@media (max-width: 900px) {
    .project-meta-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .results-grid, 
    .content-section .content-grid,
    .visual-breakdown .content-grid {
        grid-template-columns: 1fr;
    }
    .image-pair {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .content-block h3 {
        font-size: 24px;
    }

    .result-card .stat-val {
    font-size: 32px;
    font-weight: 700;
    /* Uses the gradient styling from style.css */
    background: linear-gradient(90deg, #7f5af0, #00e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
    
    /* Process Section Mobile */
    .project-process-title {
        font-size: 42px;
        margin-bottom: 40px;
    }
    .process-content-grid {
        grid-template-columns: 1fr;
    }
    .process-steppers {
        position: static; 
        order: -1; 
        flex-direction: row; 
        gap: 12px;
        align-self: center;
        max-width: 300px;
    }
    .stepper-description {
        display: none !important; 
    }
    .stepper-numbers {
        gap: 8px;
    }
    
    /* Next Footer Mobile */
    .next-project-visuals {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}