#technologies {
  padding: 100px 10%;
  background: #0f172a;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* TITLE */
#technologies h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

/* INTRO TEXT */
.tech-intro {
  max-width: 900px;
  margin: 0 auto 60px auto;
  text-align: center;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* GRID */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  align-items: stretch;
}

/* tablet */
@media (max-width: 1100px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CARD */
.tech-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;

  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;

  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.7);
}

/* ANIMATION STATE */
.tech-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* HOVER CARD */
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 119, 170, 0.15);
  border-color: rgba(0, 119, 170, 0.3);
}

/* IMAGE WRAPPER */
.tech-image {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #0b1220;
}

/* IMAGE */
.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* hover + active image */
.tech-card:hover .tech-image img,
.tech-card.active .tech-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* TITLE */
.tech-card h3 {
  padding: 15px;
  font-size: 1rem;
  color: #ffffff;
}

/* SHOW ANIMATION */
.tech-card.show {
  opacity: 1;
  transform: translateY(0);
}