/* ==========================================================================
   PRECISION ENGINEERING / TECHNOLOGY CARDS — PIXEL-PERFECT REFERENCE MATCH
   ========================================================================== */

#technology.tech-section {
  position: relative;
  background: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 45%),
    #f8faf9;
  padding: 100px 0 95px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#technology.tech-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#technology .container {
  position: relative;
  z-index: 2;
  width: 80% !important;
  max-width: 80% !important;
  margin-inline: auto !important;
}

@media (max-width: 1200px) {
  #technology .container {
    width: 88% !important;
    max-width: 88% !important;
  }
}

@media (max-width: 768px) {
  #technology .container {
    width: 95% !important;
    max-width: 95% !important;
    padding-inline: 16px;
  }
}

#technology .sec-head {
  margin-bottom: 52px;
}

#technology .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #00873d;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
}

#technology .eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00b050;
  box-shadow: 0 0 6px rgba(0, 176, 80, 0.8);
  animation: techDotPulse 2s ease-in-out infinite;
}

@keyframes techDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

#technology .h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}

#technology .lead {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 740px;
  line-height: 1.65;
  margin: 0 auto;
}

/* ── 3-COLUMN RESPONSIVE GRID ── */
.tech-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* ── INDIVIDUAL CARD ── */
.tech-ref-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  border: 1.5px solid #dcf2e5;
  padding: 34px 28px 28px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.32s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-ref-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 176, 80, 0.45);
  box-shadow: 0 22px 46px -10px rgba(0, 176, 80, 0.18), 0 8px 20px -4px rgba(0, 0, 0, 0.04);
}

/* Top Orbital Track & Planet Dot */
.tech-ref-icon-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
}

.tech-ref-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #86efac;
}

.tech-ref-orbit-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00b050;
  box-shadow: 0 0 5px rgba(0, 176, 80, 0.8);
}

.tech-ref-icon-core {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c853 0%, #009639 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 176, 80, 0.35);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-ref-card:hover .tech-ref-icon-core {
  transform: scale(1.08);
}

/* Card Body Content */
.tech-ref-body {
  position: relative;
  z-index: 2;
  flex: 1;
}

.tech-ref-title {
  font-family: var(--font-sans, sans-serif);
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 10px;
}

.tech-ref-dash {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 9999px;
  background: #00b050;
  margin-bottom: 14px;
}

.tech-ref-desc {
  font-size: 0.94rem;
  color: #4b5563;
  line-height: 1.62;
  margin: 0 0 24px;
  min-height: 64px;
}

/* Bottom Action Row */
.tech-ref-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* "Learn More" Pill Button */
.tech-ref-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 6px 5px 18px;
  border-radius: 9999px;
  background: #eefbf3;
  border: 1px solid rgba(0, 176, 80, 0.18);
  color: #00873d;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.28s ease;
}

.tech-ref-btn-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #009639;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.tech-ref-card:hover .tech-ref-btn {
  background: #e2f7ea;
  border-color: rgba(0, 176, 80, 0.38);
}

.tech-ref-card:hover .tech-ref-btn-arrow {
  transform: translateX(3px);
  background: #00a843;
}

/* Decorative Corner Wave (dual swoop) */
.tech-ref-corner-wave {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 108px;
  height: 74px;
  pointer-events: none;
  z-index: 1;
}

/* Section Bottom Button */
#technology .section-foot {
  text-align: center;
  margin-top: 12px;
}

#technology .section-foot .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  border-radius: 9999px;
  background: #009639;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  box-shadow: 0 8px 24px -4px rgba(0, 150, 57, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

#technology .section-foot .btn:hover {
  background: #00a843;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(0, 150, 57, 0.48);
}

/* ── RESPONSIVE ADAPTATIONS ── */
@media (max-width: 1024px) {
  .tech-ref-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  #technology.tech-section {
    padding: 70px 0 65px;
  }
  .tech-ref-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tech-ref-card {
    padding: 26px 22px 22px;
    border-radius: 18px;
  }
  .tech-ref-desc {
    min-height: auto;
    margin-bottom: 20px;
  }
}
