@import url('/css/styles.css');

/* Showcase-specific styles */
.showcase-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.showcase-section {
    margin-bottom: 3rem;
}

.project-img.showcase {
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    background: #f5f5f7;
    margin-bottom: 1.5rem;
}

.showcase-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
}

.showcase-section-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.process-step {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
}

.process-step-number {
    background: var(--accent);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.process-step-content {
    flex: 1;
}

.conclusion-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.showcase-hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 3rem 0;
}

.showcase-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 3rem;
}

.showcase-project-img {
    width: 510px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive adjustments for showcase-project-img */
@media (max-width: 768px) {
    .showcase-project-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 540px) {
    .showcase-project-img {
        height: 180px;
    }
}

.showcase-project-img.order-1 {
    order: 1;
}

.showcase-project-img.order-2 {
    order: 2;
}

/* Mobile view - ensure text comes first, image comes second */
@media (max-width: 768px) {
    .showcase-about-content {
        grid-template-columns: 1fr;
    }

    /* In mobile view, the first child (text content) should come first */
    /* and the second child (image) should come second */
    .showcase-about-content > div:first-child {
        order: 1;
    }

    .showcase-about-content > div:last-child {
        order: 2;
    }
}

.project-img.case-study-hero {
    height: 350px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0066ff, #4d94ff);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-hero-fused {
    width: 1600px;
    height: 800px;
    background-image: url('../assets/ClivetHero.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    background-color: #0066ff;
}

/* Remove rounded corners for screens smaller than 1600px */
@media (max-width: 1599px) {
    .case-study-hero-fused {
        border-radius: 0;
    }
}

.case-study-hero-fused::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

main.showcase-container {
    padding: 0;
}

/* Responsive adjustments for fused hero */
@media (max-width: 1600px) {
    .case-study-hero-fused {
        width: 100%;
        height: 600px;
    }

    .case-study-title {
        font-size: 2.8rem;
    }

    .case-study-description {
        font-size: 1.2rem;
    }
}

.case-study-description {
    font-size: 1.5rem;
    color: white;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.case-study-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments for showcase pages */
@media (max-width: 768px) {
    .showcase-container {
        padding: 0 1rem;
    }

    .process-step {
        flex-direction: column;
        gap: 1rem;
    }

    .showcase-section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .showcase-about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .showcase-project-img {
        height: 200px;
    }

    .project-img.case-study-hero {
        height: 250px;
        font-size: 1.2rem;
    }

    .case-study-description {
        font-size: 1.1rem;
    }

    .conclusion-section {
        padding: 1.5rem;
    }

    .case-study-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .case-study-hero-fused {
        height: 400px;
    }

    .case-study-title {
        font-size: 2.2rem;
    }

    .case-study-description {
        font-size: 1.1rem;
    }
}

/* Extra small mobile adjustments */
@media (max-width:540px) {
    .showcase-section-title {
        font-size: 1.3rem;
    }

    .showcase-project-img {
        height: 180px;
    }

    .project-img.case-study-hero {
        height: 200px;
        font-size: 1.1rem;
    }

    .case-study-description {
        font-size: 1rem;
    }

    .process-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .showcase-content {
        padding: 1rem;
    }

    .conclusion-section {
        padding: 1.5rem;
    }

    .case-study-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .case-study-hero-fused {
        height: 300px;
    }

    .case-study-title {
        font-size: 1.8rem;
    }

    .case-study-description {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1rem;
    }
}