/* ================================
   TECH GALLERY SECTION
================================ */

.tech-gallery-section {
  position: relative;
  padding: 96px 24px;
  background: radial-gradient(circle at top, #1a2740 0, #050816 40%, #02030a 100%);
  overflow: hidden;
  color: #f9fafb;
}

/* Grid de fundo "tech" com linhas sutis */
.tech-gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Glow animado suave */
.tech-gallery-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(37,99,235,0.6), transparent 60%);
  top: -120px;
  right: -60px;
  opacity: 0.7;
  filter: blur(6px);
  pointer-events: none;
}

/* Container interno opcional */
.tech-gallery-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  z-index: 1;
}

.tech-gallery-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #e5e7eb, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tech-gallery-subtitle {
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #6C7A89;
  margin-bottom: 40px;
}

/* GRID */
.tech-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1024px) {
  .tech-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tech-gallery-section {
    padding: 72px 16px;
  }
  .tech-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CARD BASE */
.tech-gallery-card {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.6), rgba(147,51,234,0.4), rgba(15,23,42,1));
  overflow: hidden;
  transform-style: preserve-3d;
  transform: translate3d(0, 40px, 0);
  opacity: 0;
}

/* camada "vidro" */
.tech-gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
}

.tech-gallery-card-glow {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg at 50% 50%, rgba(59,130,246,0.2), rgba(147,51,234,0.25), rgba(59,130,246,0.2));
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

.tech-gallery-card:hover .tech-gallery-card-glow {
  opacity: 1;
}

/* conteúdo interno do card */
.tech-gallery-card-media,
.tech-gallery-card-content {
  position: relative;
  z-index: 1;
}

.tech-gallery-card-media {
  border-radius: 18px 18px 12px 12px;
  overflow: hidden;
  background: radial-gradient(circle at top, #0f172a, #020617);
}

/* IMAGEM */
.tech-gallery-image {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(1.1) contrast(1.05);
}

.tech-gallery-card:hover .tech-gallery-image {
  transform: scale(1.08);
  filter: saturate(1.3) contrast(1.15);
}

/* scanline/efeito tech sobre a imagem */
.tech-gallery-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.06),
    transparent 20%,
    transparent 80%,
    rgba(59,130,246,0.25)
  );
  mix-blend-mode: soft-light;
  opacity: 0.0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tech-gallery-card:hover .tech-gallery-card-media::after {
  opacity: 0.8;
}

/* conteúdo textual */
.tech-gallery-card-content {
  padding: 18px 18px 16px;
  backdrop-filter: blur(14px);
  background: linear-gradient(145deg, rgba(15,23,42,0.9), rgba(15,23,42,0.7));
}

.tech-gallery-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0 0 6px;
}

.tech-gallery-card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9ca3af;
  margin: 0;
}

/* Interações sutis com hover */
.tech-gallery-card {
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s ease-out;
  box-shadow:
    0 0 0 rgba(15,23,42,0.4),
    0 18px 45px rgba(15,23,42,0.9);
}

.tech-gallery-card:hover {
  box-shadow:
    0 0 0 rgba(15,23,42,0.4),
    0 28px 70px rgba(15,23,42,1);
}

/* Caso use links/botões dentro do card */
.tech-gallery-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #60a5fa;
  text-decoration: none;
  gap: 6px;
}

.tech-gallery-card-link:hover {
  color: #93c5fd;
}