.industries-showcase {
    color: var(--color-ink);
    padding: var(--section-padding-y) 1.5rem;
}

.industries-showcase--bg-white {
    background-color: var(--color-white);
}

.industries-showcase--bg-soft {
    background-color: var(--color-surface-soft);
}

.industries-showcase--bg-surface {
    background-color: var(--color-surface);
}

.industries-showcase__inner {
    width: min(100%, var(--container-width));
    margin: 0 auto;
}

.industries-showcase__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.industries-showcase__title {
    margin: 0 0 1rem;
    color: var(--color-ink);
    font-size: var(--section-title-font-size);
    font-weight: var(--section-title-font-weight);
    line-height: var(--section-title-line-height);
}

.industries-showcase__title-accent {
    color: var(--color-highlight);
}

.industries-showcase__description {
    max-width: 50rem;
    margin: 0 auto;
    color: rgba(6, 8, 29, 0.65);
    font-size: clamp(1.0625rem, 1.45vw, 1.125rem);
    line-height: 1.6;
}

.industries-showcase__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.industries-showcase__grid--has-scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    padding-inline: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-highlight) transparent;
    -webkit-overflow-scrolling: touch;
}

.industries-showcase__grid--has-scroll::-webkit-scrollbar {
    height: 6px;
}

.industries-showcase__grid--has-scroll::-webkit-scrollbar-thumb {
    background-color: var(--color-highlight);
    border-radius: 10px;
}

.industries-showcase__card {
    position: relative;
    flex: 0 0 clamp(280px, 20vw, 310px);
    aspect-ratio: 1 / 1.25;
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--color-surface-soft);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.industries-showcase__card--bg-white {
    background-color: var(--color-white);
}

.industries-showcase__card--bg-soft {
    background-color: var(--color-surface-soft);
}

.industries-showcase__card--bg-surface {
    background-color: var(--color-surface);
}

/* Semi-transparent black overlay by default */
.industries-showcase__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    transition: background-color 0.4s ease;
    z-index: 1;
}

.industries-showcase__card:hover::before {
    background-color: #6E7740;
    /* Theme Color on Hover */
}

.industries-showcase__card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease;
}

.industries-showcase__card-title {
    margin: 0;
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.4s ease;
}

.industries-showcase__card-hover-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.industries-showcase__card:hover .industries-showcase__card-hover-content {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

.industries-showcase__card-description {
    margin: 0;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .industries-showcase__grid:not(.industries-showcase__grid--has-scroll) {
        flex-direction: column;
        align-items: center;
    }

    .industries-showcase__card {
        flex: 0 0 100%;
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }
}
