* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #e3f2fd, #e1bee7);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px;
}

h1 {
  margin-bottom: 20px;
  color: #333;
  font-size: 2rem;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.search-box {
  margin-bottom: 30px;
  width: 100%;
  max-width: 500px;
}

.search-box input {
  width: 100%;
  padding: 12px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.search-box input:focus {
  outline: none;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1000px;
  animation: fadeIn 1.5s ease-in-out;
}

.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 25px 15px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s forwards;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.card h3 {
  color: #333;
  font-size: 1.2rem;
}

.card p {
  color: #777;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }

  .card {
    padding: 20px;
  }
}
