/* Cutting-edge GIS / IT visual layer */

:root {
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
}

/* ---- Hero geospatial HUD ---- */
.hero-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.hero-hud__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(132, 204, 22, 0.65), rgba(14, 165, 233, 0.65), transparent);
  animation: hudScan 7s linear infinite;
  opacity: 0.55;
}

@keyframes hudScan {
  0% { top: 8%; opacity: 0; }
  8% { opacity: 0.7; }
  92% { opacity: 0.7; }
  100% { top: 92%; opacity: 0; }
}

.hero-hud__corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: rgba(132, 204, 22, 0.45);
  border-style: solid;
  opacity: 0.7;
}

.hero-hud__corner--tl { top: 18%; left: 3%; border-width: 2px 0 0 2px; }
.hero-hud__corner--tr { top: 18%; right: 3%; border-width: 2px 2px 0 0; }
.hero-hud__corner--bl { bottom: 12%; left: 3%; border-width: 0 0 2px 2px; }
.hero-hud__corner--br { bottom: 12%; right: 3%; border-width: 0 2px 2px 0; }

.hero-hud__telemetry {
  position: absolute;
  top: calc(var(--nav-height) + 14px);
  right: max(16px, 2vw);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(163, 230, 53, 0.85);
  text-align: right;
}

.hero-hud__telemetry span {
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(132, 204, 22, 0.22);
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.hero-badge {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
}

.hero-badge::after {
  content: 'LIVE';
  margin-left: 8px;
  padding: 2px 6px;
  background: rgba(132, 204, 22, 0.25);
  border-radius: 4px;
  font-size: 0.62rem;
  animation: hudPulse 2.4s ease-in-out infinite;
}

@keyframes hudPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-stat {
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(132, 204, 22, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.hero-stat-value {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.hero-grid {
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.1; }
}

/* ---- Section tech labels ---- */
.section-label {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
}

.section-label::before {
  content: '// ';
  color: var(--lime);
  opacity: 0.85;
}

/* ---- Featured live deployments ---- */
.deployments-strip {
  padding: 72px 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(20, 83, 45, 0.04) 100%),
    var(--white);
  position: relative;
  overflow: hidden;
}

.deployments-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 83, 45, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 83, 45, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.deployments-strip .container {
  position: relative;
  z-index: 1;
}

.deployments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.deployment-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.deployment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(132, 204, 22, 0.35);
}

.deployment-card__thumb {
  height: 130px;
  overflow: hidden;
  position: relative;
}

.deployment-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.deployment-card:hover .deployment-card__thumb img {
  transform: scale(1.05);
}

.deployment-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.5), transparent 55%);
}

.deployment-card__body {
  padding: 14px 16px 16px;
}

.deployment-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.deployment-card__body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}

.deployment-card__body p {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.45;
}

.deployments-cta {
  margin-top: 28px;
  text-align: center;
}

/* ---- Dark ops map frame ---- */
.map-section {
  background: linear-gradient(160deg, #0a1628 0%, var(--green-deep) 45%, #0a1628 100%) !important;
}

.map-section .section-header h2,
.map-section .section-header p {
  color: rgba(255, 255, 255, 0.92);
}

.map-section .section-label {
  color: var(--lime-light);
}

.map-frame {
  border: 1px solid rgba(132, 204, 22, 0.25) !important;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.45) !important;
}

.map-frame-label {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(132, 204, 22, 0.3) !important;
}

.map-frame .leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.78) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.68rem;
}

.map-frame .leaflet-control-attribution a {
  color: var(--lime-light) !important;
}

.map-frame .leaflet-control-zoom a {
  background: rgba(15, 23, 42, 0.92) !important;
  color: var(--lime-light) !important;
  border-color: rgba(132, 204, 22, 0.35) !important;
}

/* ---- Tech stack glow grid ---- */
.tech-stack {
  background:
    radial-gradient(circle at 15% 20%, rgba(132, 204, 22, 0.12), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.1), transparent 40%),
    var(--navy) !important;
}

.tech-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(132, 204, 22, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 204, 22, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.tech-stack-item {
  position: relative;
  overflow: hidden;
}

.tech-stack-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--blue));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tech-stack-item:hover::before {
  opacity: 1;
}

.tech-stack-item span {
  font-family: var(--font-mono);
  font-size: 0.68rem !important;
  letter-spacing: 0.02em;
}

/* ---- Capability pills under hero ---- */
.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-cap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.hero-cap::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

@media (max-width: 1024px) {
  .deployments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-hud__telemetry {
    display: none;
  }
}

@media (max-width: 560px) {
  .deployments-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hud__scan,
  .hero-grid,
  .hero-badge::after {
    animation: none;
  }
}
