/* ==========================================================================
   SWARAJ MHE INDIA — POWERING PROJECTS ACROSS KEY INDUSTRIES
   Premium Engineering Animation System & Styling
   ========================================================================== */

.industry-section {
  position: relative;
  background-color: #f6f7f8;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(240, 242, 245, 0.95) 100%);
  padding-block: 95px 85px;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle Industrial Geometric Background Accents (Upper Left & Upper Right) */
.industry-bg-accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.industry-bg-accents .accent-facet-left {
  position: absolute;
  top: -60px;
  left: -80px;
  width: 420px;
  height: 290px;
  background: linear-gradient(135deg, rgba(220, 225, 232, 0.6) 0%, rgba(240, 242, 245, 0) 70%);
  transform: skewX(-24deg);
  border-bottom: 2px solid rgba(255, 198, 41, 0.2);
}

.industry-bg-accents .accent-facet-right {
  position: absolute;
  top: -80px;
  right: -100px;
  width: 460px;
  height: 330px;
  background: linear-gradient(225deg, rgba(220, 225, 232, 0.65) 0%, rgba(240, 242, 245, 0) 75%);
  transform: skewX(-24deg);
  border-bottom: 2px solid rgba(255, 198, 41, 0.22);
}

/* --------------------------------------------------------------------------
   Center Heading & Eyebrow
   -------------------------------------------------------------------------- */
.industry-section .center-heading {
  text-align: center;
  margin: 0 auto 46px;
  max-width: 840px;
}

.industry-eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.industry-eyebrow-dash {
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--yellow, #ffc629);
  border-radius: 1px;
}

.industry-section .section-kicker {
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.8px;
  color: #8c731f !important;
  text-transform: uppercase;
  margin: 0;
}

.industry-title {
  font-family: var(--display, 'Barlow Condensed', sans-serif);
  font-size: clamp(38px, 4.3vw, 68px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: #151613;
  margin: 0;
  text-transform: uppercase;
}

.industry-title .title-line {
  display: block;
}

.industry-title .highlight-yellow {
  color: #151613;
}

.industry-desc {
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: #6a6b68;
  max-width: 480px;
  margin: 15px auto 0;
}

/* --------------------------------------------------------------------------
   Industry Grid Layout (3 Columns matching Reference)
   -------------------------------------------------------------------------- */
.industry-grid {
  display: grid;
  grid-template-columns: 1.34fr 1.28fr 1.02fr;
  grid-template-rows: 245px 245px;
  gap: 16px;
  max-width: 1340px;
  margin: 0 auto;
}

/* Base Card */
.industry-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: #1e2220;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Override old hero.css dark gradient overlay */
.industry-card::before {
  display: none !important;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

/* Grid Spanning */
.industry-card.industry-large {
  grid-column: 1;
  grid-row: 1 / 3;
}

.industry-card.industry-tall {
  grid-column: 2;
  grid-row: 1 / 3;
}

.industry-card.industry-small.card-stacker {
  grid-column: 3;
  grid-row: 1;
}

.industry-card.industry-small.card-pallet {
  grid-column: 3;
  grid-row: 2;
}

/* --------------------------------------------------------------------------
   Card Chamfer Corner Geometry & Yellow Precision Accent
   -------------------------------------------------------------------------- */
/* Chamfered shape for Large and Tall Cards (diagonal cut on top-left and bottom-left) */
.industry-card.industry-large,
.industry-card.industry-tall {
  clip-path: polygon(
    32px 0, 100% 0, 100% 100%, 32px 100%, 0 calc(100% - 32px), 0 32px
  );
}

/* Small Cards (chamfers on top-right and bottom-left) */
.industry-card.industry-small.card-stacker {
  clip-path: polygon(
    0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%
  );
}

.industry-card.industry-small.card-pallet {
  clip-path: polygon(
    0 0, 100% 0, 100% 100%, 32px 100%, 0 calc(100% - 32px)
  );
}

/* Yellow Corner Accent SVG Traces */
.card-corner-svg {
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
  z-index: 6;
}

.card-corner-svg.corner-tl {
  top: 0;
  left: 0;
}

.card-corner-svg.corner-bl {
  bottom: 0;
  left: 0;
}

.card-corner-svg.corner-tr {
  top: 0;
  right: 0;
}

.card-corner-path {
  fill: none;
  stroke: var(--yellow, #ffc629);
  stroke-width: 3.5px;
  stroke-linecap: square;
  stroke-linejoin: miter;
  filter: drop-shadow(0 2px 6px rgba(255, 198, 41, 0.4));
  transition: stroke 0.3s ease, filter 0.3s ease;
}

.industry-card:hover .card-corner-path {
  stroke: #ffd447;
  filter: drop-shadow(0 2px 10px rgba(255, 198, 41, 0.75));
}

/* --------------------------------------------------------------------------
   Cinematic Image Mask Wrapper & Parallax
   -------------------------------------------------------------------------- */
.card-image-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.card-parallax-img {
  position: absolute;
  inset: -8% -4%;
  width: 108%;
  height: 116%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.industry-large .card-parallax-img {
  object-position: 82% 40%;
}

.industry-tall .card-parallax-img {
  object-position: 40% 62%;
}

/* Scrim Gradients for Dark Cards (Card 1 & Card 2) */
.industry-large .card-image-mask::after,
.industry-tall .card-image-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(14, 16, 15, 0.85) 0%, rgba(14, 16, 15, 0.15) 45%, rgba(14, 16, 15, 0.88) 100%),
    linear-gradient(90deg, rgba(14, 16, 15, 0.75) 0%, rgba(14, 16, 15, 0) 65%);
  z-index: 2;
  pointer-events: none;
}

/* Small Cards (Light Background Style with Machinery on Right) */
.industry-card.industry-small {
  background: #ffffff;
  border: 1px solid rgba(225, 228, 232, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.industry-small .card-image-mask {
  background: #ffffff;
}

.industry-small .card-parallax-img {
  inset: 0;
  left: auto;
  right: 10px;
  width: 52%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  mix-blend-mode: multiply;
  padding: 12px 6px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Subtle image motion on card hover */
.industry-card:hover .card-parallax-img {
  transform: scale(1.035);
}

.industry-small:hover .card-parallax-img {
  transform: scale(1.04) translateX(2px);
}

/* --------------------------------------------------------------------------
   Card Content & Typography
   -------------------------------------------------------------------------- */
.industry-card-content {
  position: relative;
  z-index: 3;
  padding: 26px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}

.industry-small .industry-card-content {
  padding: 22px 20px;
  max-width: 56%;
}

.card-badge {
  display: inline-block;
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--yellow, #ffc629);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.industry-small .card-badge {
  color: #8c731f;
}

.card-heading {
  font-family: var(--display, 'Barlow Condensed', sans-serif);
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.industry-small .card-heading {
  color: #151613;
  font-size: clamp(22px, 1.8vw, 29px);
  line-height: 0.96;
}

.card-heading .highlight-yellow {
  color: var(--yellow, #ffc629);
}

/* Precision Yellow Underline */
.card-accent-line {
  width: 38px;
  height: 3px;
  background-color: var(--yellow, #ffc629);
  border-radius: 2px;
  margin-bottom: 14px;
  transform-origin: left center;
  transition: width 0.35s ease;
}

.industry-card:hover .card-accent-line {
  width: 52px;
}

.card-desc {
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 270px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Explore CTA Button inside each Card
   -------------------------------------------------------------------------- */
.card-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  pointer-events: auto;
  width: max-content;
  text-decoration: none;
}

.industry-large .card-explore-btn,
.industry-tall .card-explore-btn {
  margin-top: 36px;
}

.industry-small .card-explore-btn {
  margin-top: auto;
}

.card-explore-btn .btn-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--yellow, #ffc629);
  color: #151613;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 198, 41, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}

.card-explore-btn .btn-text {
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
}

.industry-small .card-explore-btn .btn-text {
  color: #20221e;
}

/* Hover Reactions for Button */
.industry-card:hover .card-explore-btn .btn-circle {
  transform: translateX(5px);
  background-color: #ffd447;
  box-shadow: 0 6px 18px rgba(255, 198, 41, 0.55);
}

.industry-card:hover .card-explore-btn .btn-text {
  color: var(--yellow, #ffc629);
  transform: translateX(4px);
}

.industry-small:hover .card-explore-btn .btn-text {
  color: #000000;
}

/* --------------------------------------------------------------------------
   Bottom Section CTA Button ("See our work")
   -------------------------------------------------------------------------- */
.industry-cta-wrap {
  text-align: center;
  margin-top: 40px;
}

.industry-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 28px;
  border-radius: 999px;
  background-color: var(--yellow, #ffc629);
  color: #151613;
  font-family: var(--body, 'DM Sans', sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(255, 198, 41, 0.28);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease,
              background-color 0.3s ease;
}

.industry-cta span {
  font-size: 15px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.industry-cta:hover {
  transform: translateY(-3px);
  background-color: #ffd852;
  box-shadow: 0 12px 32px rgba(255, 198, 41, 0.45);
}

.industry-cta:hover span {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .industry-section {
    padding-block: 70px 60px;
  }
  .industry-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }
  .industry-card.industry-large,
  .industry-card.industry-tall,
  .industry-card.industry-small.card-stacker,
  .industry-card.industry-small.card-pallet {
    grid-column: 1;
    grid-row: auto;
    min-height: 280px;
  }
  .industry-card.industry-small {
    min-height: 200px;
  }
  .industry-small .card-parallax-img {
    width: 45%;
  }
  .industry-small .industry-card-content {
    max-width: 60%;
  }
}
