/* --- INDUSTRIES SECTION (Dynamic Hover Environment) --- */
.section-industries {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 10rem;
    overflow: hidden;
    color: var(--text-light);
}

/* Background Image Layer */
.industry-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--bg-dark);
}

.industry-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* CSS transition for the smooth image crossfade */
    transition: opacity 0.4s ease-in-out, transform 8s ease-out;
    transform: scale(1.05); /* Slight zoom for premium feel */
}

/* Gradient Overlay to ensure text pops */
.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 31, 23, 0.95) 0%, rgba(11, 31, 23, 0.75) 100%);
    z-index: 2;
}

/* Foreground Content */
.industry-content {
    position: relative;
    z-index: 3;
    max-width: var(--container-max);
    margin: 0 auto;
}


/* --- SQUARE INDUSTRY CARDS GRID --- */
.industry-grid {
    display: grid;
    /* Automatically creates as many columns as fit, ensuring a responsive grid */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.industry-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    
    /* Makes the card a perfect square */
    aspect-ratio: 1 / 1; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
    
    color: var(--text-light);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

/* Icon Styling */
.industry-card svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease-out);
}

.industry-card span {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Hover & Active States */
.industry-card:hover,
.industry-card.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(132, 204, 22, 0.25);
}

.industry-card:hover svg,
.industry-card.active svg {
    transform: scale(1.1);
}

.industry-card:hover span,
.industry-card.active span {
    font-weight: 700;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .industry-grid {
        /* Force a 2-column grid on mobile to keep squares nicely proportioned */
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 3rem;
    }
    
    .industry-card svg {
        width: 28px;
        height: 28px;
    }
    
    .industry-card span {
        font-size: 0.75rem;
    }
}