/* Dark Scrub — Surveillance Image Styles */
/* Modular CSS for image integration across site */

/* ============================================
   HERO BACKGROUND IMAGE
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 80px;
  background: radial-gradient(ellipse at top left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 40%, rgba(0,0,0,0) 75%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.15;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ============================================
   THREAT ASSESSMENT GRID IMAGES
   ============================================ */
.problem-card {
  position: relative;
  overflow: hidden;
}

.problem-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 59, 48, 0.15);
}

.problem-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.7;
  filter: saturate(0.8);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.problem-card:hover .problem-card-image img {
  opacity: 0.9;
  filter: saturate(1);
}

/* ============================================
   "IT'S EVERYWHERE" SCROLL SECTION
   ============================================ */
.surveillance-scroll {
  padding: 5rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 59, 48, 0.1);
  border-bottom: 1px solid rgba(255, 59, 48, 0.1);
}

.surveillance-scroll .section-label {
  color: #ff3b30;
  font-family: 'Major Mono Display', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.surveillance-scroll .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.surveillance-scroll .section-desc {
  color: rgba(255,255,255,0.5);
  font-family: 'Major Mono Display', monospace;
  font-size: 0.85rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.surveillance-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.surveillance-item {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 59, 48, 0.1);
  aspect-ratio: 9/12;
}

.surveillance-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(0.7);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.surveillance-item:hover img {
  opacity: 0.85;
  filter: saturate(1);
  transform: scale(1.03);
}

.surveillance-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  font-family: 'Major Mono Display', monospace;
  font-size: 0.65rem;
  color: rgba(255, 59, 48, 0.8);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.surveillance-item-label span {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-bg-image {
    width: 100%;
    height: 40%;
    top: auto;
    bottom: 0;
  }
  .hero-bg-image img {
    mask-image: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
  }
  .surveillance-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .problem-card-image {
    height: 140px;
  }
  .surveillance-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .surveillance-scroll .section-title {
    font-size: 1.6rem;
  }
}

/* ============================================
   BLOG ARTICLE IMAGES
   ============================================ */
.blog-img {
  width: 100%;
  margin: 2rem 0;
  border: 1px solid rgba(255, 59, 48, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  filter: saturate(0.85);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.blog-img:hover img {
  opacity: 0.95;
  filter: saturate(1);
}

.blog-img figcaption {
  padding: 8px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #464658;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 59, 48, 0.08);
}

@media (max-width: 600px) {
  .blog-img {
    margin: 1.5rem 0;
  }
}

/* ============================================
   LAZY LOADING
   ============================================ */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  opacity: 1;
}
