* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url(../Images/BI\ -\ 1.jpeg);
  background-size: contain;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding-top: 70px;
}
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(rgba(249, 249, 249, 0.5), rgba(255, 255, 255, 0)); 
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: -1;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  height: 60vh;
  display: flex;
  align-items: center;
  padding: 20px;
}

.profile-card {
  width: 350px;
  height: 250px;
  background-color: rgb(246, 246, 246);
  padding: 35px;
  border-radius: 100%;
  box-shadow: 0px 10px 30px rgba(196, 196, 196, 0.5);
  transition: all .3s;
  margin: 20px;
  position: relative; /* Added positioning context */
  z-index: 2; /* Ensure it's above the background but below navbar */
}

.profile-card:hover {
  border-radius: 50px;
  height: 450px;
}

.profile-card .img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.profile-card:hover img {
  border-radius: 10px;
  transform: translateY(-120px);
}

.img img {
  width: 100%;
  border-radius: 50%;
  transition: all .2s;
}

.caption {
  text-align: center;
  transform: translateY(-99%);
  opacity: 0;
  transition: all .5s;
}

.profile-card:hover .caption {
  opacity: 1;
  pointer-events: all;
}

.caption h3 {
  font-size: 18px;
  color: black;
  padding: 20px;
  font-weight: 600;
}

.topic {
  font-size: 40px;
  margin-top: 150px;
  margin-bottom: 50px;
  text-align: center;
  opacity: 0; /* Initially hide the text */
  transform: translateY(-100%); /* Move the text above the viewport */
  animation: slideDown 1.8s ease forwards; /* Apply animation */
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-100%); /* Start position above the viewport */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* End position at the top of the viewport */
  }
}

.profile-card .img img {
  object-fit: fill;
  width: 100%;
  border-radius: 50%;
  transition: all .4s;
  z-index: 99;
  filter: grayscale(40%);
}

.profile-card:hover .img img {
  filter: none;
}

.description {
  font-size: 15px;
  text-align: center;
  padding: 40px;
  color: black;
}

#cent {
  text-align: center;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1200px) {
  .main {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  .topic {
    font-size: 32px;
    margin-top: 100px;
  }
  
  .main {
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  .topic {
    font-size: 24px;
    margin-top: 80px;
  }
  
  .description {
    padding: 20px;
  }
  
  .main {
    padding: 5px;
  }
  
  .profile-card {
    margin: 10px;
  }
}