/* --- Industries Page Layout --- */
#industries {
    padding-top: 100px; /* Space from fixed navbar */
}

.industries-header {
    text-align: center;
    margin-bottom: 50px;
}

.main-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
}

.industries-grid {
    display: grid;
    /* 4 columns on desktop, responsive minmax for flexibility */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* --- Industry Card Styling --- */
.industry-card {
    padding: 30px 20px;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: all 0.3s ease;
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--secondary-color); /* Orange accent color */
    margin-bottom: 15px;
    transition: color 0.3s;
}

.industry-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 5px;
    margin-bottom: 10px;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
    flex-grow: 1;
}

/* Highlight card for other sectors */
.industry-card.many-more {
    background-color: var(--primary-color);
    color: white;
}
.industry-card.many-more h3 {
    color: white;
}
.industry-card.many-more i {
    color: var(--secondary-color);
}
.industry-card.many-more p {
    color: rgba(255, 255, 255, 0.8);
}


/* --- ANIMATION STYLES (Used by js/script.js Intersection Observer) --- */
/* Initial state for elements with 'scroll-anim' class */
.scroll-anim {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-anim.fade-in {
    transform: translateY(0); 
    transition: opacity 1s ease-out;
}

.scroll-anim.slide-up {
    transform: translateY(40px); /* Slide up from bottom */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Final state when 'visible' class is added by JS */
.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .industries-grid {
        /* 2 columns on tablet/small desktop */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
@media (max-width: 576px) {
    .industries-grid {
        /* Single column on mobile */
        grid-template-columns: 1fr;
    }
    .industry-card {
        min-height: 180px;
    }
}