/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   
}

.card1 {
  font-family: 'Arial', sans-serif;
  background-color:#111111;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 90%;
  max-width: 1200px;
}

/* Card Styling */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

/* Card Image */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay Styling */
.overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.11);
  padding: 10px 15px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 0px;
  z-index: 2;
}

/* Popup Content Styling */
.popup-content {
  width: 280px;
  height:442px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.103);
  color: #fff;
   padding: 15px;
   margin-top: -20px;
  font-size: 20px;
  font-weight: 400;
  line-height:38px;
  border-radius: 0px;
  backdrop-filter: blur(93px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

/* Show Popup Content on Hover */
.card:hover .popup-content {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}
