* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffd700;
}

.header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  color: white;
  text-shadow: 0 0 8px #000;
}

.search-section {
  text-align: center;
  margin: 1rem 0 2rem;
  z-index: 10;
}

#searchInput {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  width: 60%;
  max-width: 400px;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
}

#searchInput:focus {
  outline: 2px solid #ffd700;
}

#clearBtn {
  padding: 0.62rem 1rem;
  font-size: 1rem;
  border: none;
  background-color: #dc3545;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#clearBtn:hover {
  background-color: #a71d2a;
}

.results-section {
  max-width: 900px;
  margin: 2rem auto 3rem;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}

.hidden {
  display: none;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 280px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  margin: 0.5rem 0 0.25rem;
}

.card p {
  color: #555;
  font-style: italic;
  margin-bottom: 1rem;
}

.about-main,
.contact-main {
  max-width: 800px;
  margin: 3rem auto;
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-main h1,
.contact-main h1 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  width: 200px;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 7px rgba(0,0,0,0.3);
}

.team-member h3 {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.team-member p {
  color: #666;
  font-style: italic;
}

form label {
  display: block;
  margin: 1rem 0 0.3rem;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
}

form input:focus,
form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px #007bff66;
}

form button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: white;
  border: none;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0056b3;
}

#formMessage {
  margin-top: 1rem;
  color: green;
  font-weight: bold;
  text-align: center;
}
