/*
 * ThreeStar Ltd - Enhanced Industries Cards
 * Design Credits: Datacare (https://datacare.co.ke)
 */

/* Industries Section Styling */
#industries,
.industries-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #ffffff 0%, var(--light-color) 100%);
}

/* Industry Card - Enhanced Design */
.industry-card {
  background: var(--white);
  border-radius: 15px;
  padding: 40px 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Gradient overlay on hover */
.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.industry-card:hover::before {
  transform: scaleX(1);
}

.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.2);
  border-color: var(--primary-color);
}

/* Industry Icon */
.industry-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  color: var(--white);
  font-size: 3rem;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(33, 150, 243, 0.3);
}

.industry-card:hover .industry-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 15px 35px rgba(33, 150, 243, 0.5);
}

/* Industry Title */
.industry-card h3,
.industry-card h4 {
  font-size: 1.75rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
}

/* Industry Description */
.industry-card p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  flex-grow: 1;
}

/* Industry Features List */
.industry-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.industry-features li {
  padding: 10px 0;
  padding-left: 35px;
  position: relative;
  color: var(--gray-700);
  line-height: 1.6;
}

.industry-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* Industry CTA Button */
.industry-cta {
  margin-top: auto;
  text-align: center;
  padding-top: 20px;
}

.industry-cta .btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.industry-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
}

/* Alternative Card Layout - Image Top */
.industry-card-alt {
  text-align: left;
}

.industry-card-alt .industry-icon {
  margin: 0 0 25px 0;
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
}

.industry-card-alt h3,
.industry-card-alt h4 {
  text-align: left;
}

.industry-card-alt p {
  text-align: left;
}

/* Industry Stats */
.industry-stats {
  display: flex;
  justify-content: space-around;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 2px solid var(--light-color);
  border-bottom: 2px solid var(--light-color);
}

.industry-stat {
  text-align: center;
}

.industry-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.industry-stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Industry Tags */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.industry-tag {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--primary-light);
}

/* Section Header Enhancement */
.industries-header {
  text-align: center;
  margin-bottom: 60px;
}

.industries-header h2 {
  font-size: 3rem;
  color: var(--dark-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.industries-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .industry-card {
    padding: 30px 20px;
  }

  .industry-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .industry-card h3,
  .industry-card h4 {
    font-size: 1.5rem;
  }

  .industries-header h2 {
    font-size: 2.25rem;
  }

  .industry-stats {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .industry-card {
    padding: 25px 15px;
  }

  .industry-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .industries-header h2 {
    font-size: 1.85rem;
  }
}
