/* ==========================================================================
   ALCHOTECH INDUSTRIES WE SERVE PAGE STYLES
   File: assets/css/industries.css
   ========================================================================== */

/* Main Section Background */
.industries-section {
  background-color: #f8fafc;
  position: relative;
  padding: 80px 0 100px;
}

/* 4-Card Grid Row Layout (Col 4) */
.industry-card {
  position: relative;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  background-color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px -10px rgba(16, 83, 243, 0.2);
  border-color: rgba(16, 83, 243, 0.4);
}

/* Background Image */
.industry-card-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card:hover .industry-card-img {
  transform: scale(1.1);
}

/* Bottom Default Pill Badge (Unhovered State) */
.industry-pill-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0f172a;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.industry-pill-badge i {
  color: #1053f3;
  font-size: 1rem;
}

.industry-card:hover .industry-pill-badge {
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
}

/* Frosted Glass Blur Overlay (Hover State showing Full Details) */
.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: rgb(16 16 16 / 31%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.industry-card:hover .industry-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay Icon Box */
.industry-overlay-icon {
  width: 44px;
  height: 44px;
  background: rgba(16, 83, 243, 0.2);
  border: 1px solid rgba(16, 83, 243, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 12px;
  transition: transform 0.4s ease;
}

.industry-card:hover .industry-overlay-icon {
  transform: scale(1.08);
}

/* Overlay Header */
.industry-overlay-title {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Overlay Full Details Paragraph */
.industry-overlay-desc {
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 400;
}

/* Feature Badge tag */
.industry-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Substantial styling for Government & Public Sector */
.industry-card.gov-card {
  border: 1.5px solid rgba(16, 83, 243, 0.25);
}

.industry-card.gov-card .industry-pill-badge {
  border-color: rgba(16, 83, 243, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .industry-card {
    height: 380px;
  }
  .industry-card-overlay {
    padding: 26px 20px;
  }
  .industry-overlay-title {
    font-size: 1.2rem;
  }
  .industry-overlay-desc {
    font-size: 0.83rem;
  }
}
