body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
}

.maincontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #D3D3D3; 
}

.container {
  background-color: #fff;
  color: #333;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 10px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container h1 {
  padding: 10px;
  margin-left: 40px;
  font-size: 2rem;
  color: #333;
}

.team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px; 
  justify-content: center;
}

.team-member {
  background-color: #fff;
  border: 2px solid #ddd; 
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  width: 300px;
  padding: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.5s ease, border-color 0.2s ease; 
  position: relative; /* Added for ::before pseudo-element */
}

.team-member img {
  width: 100%;
  height: 400px; 
  object-fit: cover; 
  display: block;
}

.team-member h2 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.team-member p {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

.team-member:hover {
  transform: scale(1.05); 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: gray;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.team-member:hover::before {
  opacity: 0;
}

.team-member h2, .team-member p {
  position: relative;
  z-index: 2;
}

header {
  width: 100%;
  height: 150px;
  background: linear-gradient(rgba(255, 249, 242, 0.3), rgba(255, 249, 242, 0.2));
  display: flex;
  background: #030728 no-repeat center;
  justify-content: space-between;
  align-items: center;
  background-size: cover;
  font-family: sans-serif;
  position: relative;
  color: black;
  border: 2px solid black;
}

nav {
  width: 100%;
  height: 100px;
  color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  font-size: 2em;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-around;
}

#lb {
  max-width: 95px;
  max-height: 100px;
  background-color: white;
  border-radius: 50%;
  padding: 20px;
}

.navbar a {
  text-decoration: none;
  color: white;
  padding: 10px 20px;
  font-size: 20px;
  position: relative;
}

.navbar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-bottom: 2px solid indianred;
  transition: 0.4s linear;
}

.navbar a:hover::before {
  width: 90%;
}

.team-member p {
  text-align: center;
  margin: 0;
  font-size: 16px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 100px;
}

.footer-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anurag-logo img {
  width: 120px;
  height: 50px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.follow-us {
  text-align: center;
  margin-top: 20px;
}

.follow-us h4 {
  margin-bottom: 10px;
}

.social-network {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.social-network li {
  display: inline-block;
  margin: 0 5px;
}

.social-network li a {
  display: block;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  color: black;
  border-radius: 50%;
  background-color: #F9F9F9;
  transition: background-color 0.3s ease;
}

.social-network li a:hover {
  background-color: #FA944B;
  text-decoration: none;
  color: black;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.contact-info i {
  margin-right: 5px;
  color: white;
}

.contact-info span {
  color: white;
}

.copy {
  margin-top: 20px;
  font-size: 12px;
  color: white;
  border-top: 1px solid #FFFFFF;
}