.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  /* background: rgb(21,91,79); */
  /* background: radial-gradient(circle, rgba(21,91,79,1) 0%, rgba(21,91,79,0.9) 100%); */
  background: url("../Assets/images/Hero_BG.webp") !important;
  background-size: cover;
  z-index: 1;
}

.hero-content-container {
  display: flex;
  width: 1198px;
  flex-direction: column;
  align-items: center !important;
  gap: 12px;
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 12px;
}

.hero-title {
  color: var(--main-bg);
  text-align: center !important;
  font-family: "JUST Sans", var(--default-font-family);
  font-size: 70px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  width: auto;
  display: inline-block;
}

.hero-description {
  color: var(--light-bg);
  text-align: center !important;
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  /* 28.8px */
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.portfolio-item .card-img {
  height: 230px;
  /* Fixed height for all images */
  object-fit: cover;
  /* Crop nicely */
}

/* Ensure overlay scale is clipped within the card */
.portfolio-item .card {
  overflow: hidden;
}

/* Hover overlay */
.card-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.96);
  will-change: transform, opacity;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.card:hover .card-overlay {
  opacity: 1;
  transform: scale(1);
}
.card-overlay .info {
   font-size: clamp(0.875rem, 2vw + 0.5rem, 1.50rem);
  color: #6e6f75;
  font-weight: 700;
}

/* Fade-in animation for cards on load/filter */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-item.fade-in-up {
  animation: fadeInUp 500ms ease-out both;
}

@media (max-width:320px){
  .portfolio-item .card-img {
    height: 171px;
  }
}

@media (max-width:375px) {
  .portfolio-item .card-img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .portfolio-item .card-img {
    height: 200px;
  }
}

@media (max-width: 1024px) {
  .portfolio-item .card-img {
    height: 170px;
  }
}

@media (max-width: 1440px) {
  .portfolio-item .card-img {
    height: 220px;
  }
}

