/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 103vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  margin-top: -120px; /* header overlap if used */
}
.hero-bg { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:1; }
.hero-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0, 0, 0, 0.823); z-index:2; }
.hero-content { position:relative; z-index:3; color:#fff; max-width:900px; padding: 0 20px; }
.hero h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom:0.25em; }
.hero h3 { font-size: clamp(1rem,2.5vw,1.25rem); margin-bottom:0.75em; color: #fff; }
.hero-lead { color: rgba(255,255,255,0.9); font-size:1rem; margin-top:0.5rem; }

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  text-decoration: none;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 0.5rem;
}

.btn-primary {
  background: #e26b07;
  color: #fff;
  margin-right: 1em;
}

.btn-secondary {
  border: 2px solid #fff;
  color:  #fff;
  background: transparent;
}

/* Reveal Animations */
.reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translateY(0);
}

/* GLOBAL CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5em 2em;
}

/* PRODUCT INTRO */
.product-intro {
  background: #0c0c0c;
  color: #fff;
  text-align: center;
}

.product-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5em;
}

.product-intro p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
}

/* PRODUCT GRID */
.product-grid {
  background: #111;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2em;
}

.product-card {
  background: #1a1a1a;
  padding: 2em;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card h3 {
  color: #e26b07;
  margin-bottom: 0.5em;
}

.product-card p {
  color: rgba(125, 83, 83, 0.85);
  font-size: 0.95rem;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* PRODUCT DETAIL BACKGROUND SUPPORT */
.product-detail {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.505);
}

.product-detail .container {
  position: relative;
  z-index: 2;
}

/* ALIGNMENT */
.detail-row {
  display: flex;
  min-height: 60vh;
  align-items: center;
}

.detail-row.left {
  justify-content: flex-start;
}

.detail-row.right {
  justify-content: flex-end;
}

.detail-text {
  background: rgba(255, 255, 255, 0.6);
  padding: 2.5em;
  border-radius: 8px;
  max-width: 600px;
}

/* BACKGROUND IMAGE PLACEHOLDERS */
.bg-erp {
  background-image: url('/assets/images/prod-erp-bg.jpg');
}

.bg-tracker {
  background-image: url('/assets/images/prod-tracker-bg.jpg');
}

.bg-farming {
  background-image: url('/assets/images/prod-farming-bg.jpg');
}

.bg-cooling {
  background-image: url('/assets/images/byd-vascom-bg.jpg');
}

.bg-cyber {
  background-image: url('/assets/images/data.jpg');
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .detail-row {
    justify-content: center !important;
  }

  .detail-text {
    max-width: 100%;
  }
}

/* ===== INDUSTRIES BANNER SECTION ===== */
.industries-banner {
  position: relative;
  width: 100%;
  height: 90vh; /* adjust height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  transform: translateY(40px);
  transition: all 1s ease;
}

.industries-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.industries-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.industries-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55); /* darkens image for text contrast */
  z-index: 2;
}

.industries-layout {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 2em;
}

.industries-layout h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #fff;
}

.industries-layout p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  color: #ddd;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #e26b07;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #cf5f06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}