/* ==========================================================================
   LAYMAP COMPANY HISTORY SECTION
   Visual Direction: Dark Navy Architectural Blueprint Canvas with 
   Editorial Left Hierarchy, Framed Industrial Visual with Geometric Accents,
   and Elegant Architectural Wave Transition
   ========================================================================== */

.laymap-history-section {
  position: relative;
  width: 100%;
  background: linear-gradient(118deg, #06142A 0%, #0A1E42 35%, #0F2F68 70%, #15418E 100%);
  padding: 5.5rem 0 7.5rem 0;
  overflow: hidden;
  box-sizing: border-box;
}

#company-history {
  scroll-margin-top: 80px;
}

/* Subtle Industrial CAD Linework Backdrop */
.history-cad-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
}

.history-cad-backdrop svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ambient Radial Lighting Glow */
.history-ambient-glow {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 650px;
  height: 550px;
  background: radial-gradient(circle at 60% 40%, rgba(26, 51, 255, 0.25) 0%, rgba(56, 189, 248, 0.14) 45%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  filter: blur(40px);
}

/* Container */
.history-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

/* Grid Layout */
.history-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4.5rem;
  align-items: center;
}

/* ==========================================================================
   Left Column: Editorial Hierarchy
   ========================================================================== */
.history-content-col {
  position: relative;
  z-index: 4;
}

.history-eyebrow-wrap {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.history-eyebrow {
  display: block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #FF4B17;
  margin-bottom: 0.45rem;
}

.history-eyebrow-line {
  width: 38px;
  height: 3px;
  background: #FF4B17;
  border-radius: 2px;
}

.history-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(2.05rem, 2.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}

.history-lead {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.68;
  color: #F1F5F9;
  margin-bottom: 1.35rem;
}

.history-paragraph {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.935rem;
  font-weight: 400;
  line-height: 1.72;
  color: #CBD5E1;
  margin-bottom: 1.25rem;
}

.history-paragraph:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Right Column: Framed Media Composition with Geometric Accents
   ========================================================================== */
.history-media-col {
  position: relative;
  z-index: 4;
}

.history-media-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Orange Geometric Accent (Upper-Left) */
.history-accent-orange {
  position: absolute;
  top: -26px;
  left: -24px;
  width: 135px;
  height: 155px;
  background: linear-gradient(135deg, #FF3D00 0%, #FF5A1F 45%, #FFA040 100%);
  border-radius: 26px;
  clip-path: polygon(0 22%, 35% 0, 100% 0, 100% 78%, 65% 100%, 0 100%);
  z-index: 1;
  box-shadow: 0 16px 36px rgba(255, 61, 0, 0.45);
  filter: drop-shadow(0 6px 14px rgba(255, 61, 0, 0.3));
}

/* Blue Geometric Accent (Lower-Right) */
.history-accent-blue {
  position: absolute;
  bottom: 22px;
  right: -26px;
  width: 90px;
  height: 155px;
  background: linear-gradient(135deg, #1A33FF 0%, #0066FF 60%, #38BDF8 100%);
  border-radius: 22px;
  clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 25% 100%, 0 75%);
  z-index: 1;
  box-shadow: 0 16px 36px rgba(26, 51, 255, 0.45);
  filter: drop-shadow(0 6px 14px rgba(26, 51, 255, 0.35));
}

/* Premium Rounded Image Frame */
.history-image-card {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 10.6;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
  background-color: #07152B;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.history-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.history-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Architectural Wave Transition Divider
   Seamlessly flows into the next light section (#F8FAFD)
   ========================================================================== */
.history-bottom-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  pointer-events: none;
  z-index: 5;
}

.history-bottom-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1100px) {
  .history-grid {
    gap: 3rem;
  }
  
  .history-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 900px) {
  .laymap-history-section {
    padding: 4.5rem 0 6rem 0;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .history-content-col {
    max-width: 680px;
  }

  .history-media-wrapper {
    max-width: 580px;
    margin: 0 auto;
  }

  .history-accent-orange {
    width: 95px;
    height: 115px;
    top: -16px;
    left: -14px;
    border-radius: 18px;
  }

  .history-accent-blue {
    width: 65px;
    height: 115px;
    bottom: 16px;
    right: -14px;
    border-radius: 18px;
  }

  .history-bottom-wave {
    height: 70px;
  }
}

@media (max-width: 540px) {
  .history-container {
    padding: 0 1.25rem;
  }

  .history-title {
    font-size: 1.75rem;
  }

  .history-lead {
    font-size: 0.98rem;
  }

  .history-paragraph {
    font-size: 0.88rem;
  }

  .history-accent-orange {
    width: 75px;
    height: 90px;
    top: -12px;
    left: -10px;
  }

  .history-accent-blue {
    width: 50px;
    height: 90px;
    bottom: 12px;
    right: -10px;
  }

  .history-bottom-wave {
    height: 50px;
  }
}
