/* ==========================================================================
   SWARAJ MHE INDIA — ABOUT US COMPANY IMAGE CARD
   Premium Cinematic Industrial Portfolio Card
   ========================================================================== */

.about-company-card-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto 0;
  perspective: 1000px;
}

.about-company-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  will-change: transform, opacity;
}

/* Image Wrapper with exact 4:3 Aspect Ratio (1448 / 1086) showing 100% of the image */
.company-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1448 / 1086;
  background: #f1f5f9;
  overflow: hidden;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.company-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ANIMATION 03 — Mechanical Yellow Line Sweep along bottom edge of image */
.company-card-line-sweep {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--yellow, #ffc629);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 5;
  will-change: transform;
  pointer-events: none;
}

/* Caption Area below the image */
.company-card-caption {
  position: relative;
  background: #ffffff;
  padding: 24px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  z-index: 2;
}

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

/* Small Yellow Indicator Bar */
.caption-accent-bar {
  width: 32px;
  height: 3.5px;
  background: var(--yellow, #ffc629);
  border-radius: 2px;
  margin-bottom: 10px;
  transition: width 0.4s ease, background-color 0.3s ease;
}

.caption-company-name {
  font-family: var(--display, 'Barlow Condensed', -apple-system, sans-serif);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #151613;
  margin: 0 0 6px;
  text-transform: uppercase;
  line-height: 1.1;
}

.caption-location {
  font-family: var(--body, 'DM Sans', -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #718096;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-pin-icon {
  width: 14px;
  height: 14px;
  color: #ffc629;
  flex-shrink: 0;
}

/* Diagonal Arrow Action Indicator */
.caption-arrow-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.caption-arrow {
  display: inline-block;
  font-family: var(--body, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #151613;
  line-height: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  will-change: transform;
}

/* Subtle Yellow Geometric Corner Accent (as in reference image) */
.caption-corner-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, transparent 48%, rgba(255, 198, 41, 0.25) 48%, rgba(255, 198, 41, 0.5) 75%, #ffc629 100%);
  border-bottom-right-radius: 11px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

/* Heading size decrease for "BUILT ON PRACTICAL ENGINEERING." */
.inner-story h2 {
  font-family: var(--display) !important;
  font-size: clamp(34px, 3.8vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: .02em !important;
  color: #111 !important;
  margin: 0 0 20px !important;
}
.inner-story h2 em {
  color: #bd8d14 !important;
  font-style: normal !important;
}

/* ANIMATION 04 — Premium Desktop Hover Interaction */
@media (hover: hover) and (pointer: fine) {
  .about-company-card:hover {
    box-shadow: 
      0 26px 55px rgba(0, 0, 0, 0.09),
      0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 198, 41, 0.45);
  }

  .about-company-card:hover .caption-accent-bar {
    width: 44px;
  }

  .about-company-card:hover .caption-arrow-wrap {
    background: #ffc629;
    border-color: #ffc629;
  }

  .about-company-card:hover .caption-arrow {
    color: #111827;
  }

  .about-company-card:hover .caption-corner-accent {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-company-card-wrap {
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .company-card-caption {
    padding: 18px 20px 20px;
  }
  .caption-company-name {
    font-size: 18px;
  }
  .caption-location {
    font-size: 10px;
    letter-spacing: 1.4px;
  }
}
