/* ================= THEME VARIABLES ================= */
:root {
  --primary-blue: #29499C;
  --secondary-blue: #2A4A9D;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #F8FAFC;
}

.industries-page { margin-top: 80px; font-family: "Poppins", sans-serif; }
.section-spacing { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ================= HERO ================= */
.industries-hero {
  height: 60vh;
  min-height: 450px;
  background: url('../images/industries/industries-hero.jpeg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(41, 73, 156, 0.8));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  color: #bfdbfe;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.hero-content p { font-size: 1.25rem; color: #cbd5e1; max-width: 600px; margin: 0 auto; }

/* ================= INTRO ================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text h2 { font-size: 2.5rem; color: var(--text-main); margin-bottom: 20px; }
.intro-text p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; }

.intro-stats { display: flex; gap: 30px; }
.stat-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  border: 1px solid #e2e8f0;
}
.stat-card h3 { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 5px; }
.stat-card p { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }

/* ================= INDUSTRY CARDS (The Upgrade) ================= */
.section-header { text-align: center; margin-bottom: 60px; }
.sub-heading { color: var(--primary-blue); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.section-header h2 { font-size: 2.5rem; color: var(--text-main); }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.industry-card {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: transform 0.4s ease;
}

.industry-card:hover { transform: translateY(-10px); }

/* Background Image Zoom Effect */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 0;
}
.industry-card:hover .card-bg { transform: scale(1.1); }

/* Dark Gradient Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-content .icon { font-size: 2rem; margin-bottom: 15px; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 700; }
.card-content p { font-size: 0.95rem; color: #cbd5e1; margin-bottom: 20px; line-height: 1.5; opacity: 0.9; }
.card-content .arrow { font-size: 1.5rem; color: var(--blue-accent); font-weight: bold; opacity: 0; transform: translateX(-10px); transition: 0.3s; display: block; }

.industry-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ================= WHY SECTION ================= */
.industries-why { background: var(--bg-light); }
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.why-content h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--text-main); }
.why-content > p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }

.why-list { display: flex; flex-direction: column; gap: 30px; }
.why-item h4 { font-size: 1.2rem; color: var(--primary-blue); margin-bottom: 8px; }
.why-item p { color: var(--text-muted); font-size: 0.95rem; }

.why-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* ================= CTA ================= */
.industries-cta {
  background: #0F172A;
  text-align: center;
  padding: 100px 0;
  color: white;
}
.cta-content h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-content p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 40px; }

.btn-glow {
  padding: 16px 40px;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  transition: 0.3s;
}
.btn-glow:hover { background: white; color: var(--primary-blue); }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid, .why-layout { grid-template-columns: 1fr; gap: 40px; }
  .why-image { order: -1; }
}

@media (max-width: 600px) {
  .industries-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.8rem; }
}