/* General styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Background styling */
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/background.jpeg') no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
  opacity: 0.3;
}

/* Header styling */
header {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  color: #333;
}

/* Main layout */
main {
  padding: 20px;
  max-width: 1200px;
  margin: 20px auto;
}

/* Team Leader Section */
.team-leader {
  text-align: center;
  margin-bottom: 40px;
}

.team-leader .leader {
  display: inline-block;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-leader .leader:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-leader img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 4px solid #2575fc;
}

.team-leader a {
  display: block;
  font-size: 1.4rem;
  color: #2575fc;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 5px;
}

.team-leader p {
  font-size: 1rem;
  color: #777;
}

/* Team Members Section */
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.member {
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.member:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.member img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #2575fc;
}

.member a {
  display: block;
  font-size: 1.2rem;
  color: #2575fc;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 5px;
}

.member a:hover {
  text-decoration: underline;
}

.member p {
  font-size: 0.9rem;
  color: #777;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 15px;
  background: #ffffff;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 0.9rem;
}

footer a {
  color: #2575fc;
  text-decoration: none;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar a {
  text-decoration: none;
  color: #333;
  margin: 0 10px;
  font-weight: bold;
}

.navbar button {
  padding: 5px 10px;
  border: none;
  background: #2575fc;
  color: #ffffff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s all;
}

.navbar button:hover {
  background: #1a5cc8;
}

/* About Section */
.about-section {
  text-align: center;
  padding: 40px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.about-section h2 {
  margin-bottom: 15px;
  font-size: 2.5rem;
  color: #333;
  text-transform: uppercase;
}

.about-section p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Enhanced Contact Section */
.contact-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  color: #ffffff;
  border-top: none;
}

.contact-section h2 {
  margin-bottom: 20px;
  font-size: 2.7rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-section p {
  font-size: 1.3rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  color: #2575fc;
  background: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s all;
}

.contact-section a:hover {
  background: #f0f0f0;
  color: #6a11cb;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background: #2575fc;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* Hidden by default */
  transition: 0.3s all;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
  background: #1a5cc8;
  transform: scale(1.1);
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #222;
  color: #f9f9f9;
}

body.dark-mode .navbar {
  background: #333;
  color: #ffffff;
}

body.dark-mode .navbar a {
  color: #ffffff;
}

body.dark-mode .navbar button {
  background: #444;
  color: #ffffff;
}

body.dark-mode .about-section,
body.dark-mode .contact-section {
  background: #444;
  color: #f9f9f9;
  border-color: #555;
}

body.dark-mode .team-leader,
body.dark-mode .team-members .member {
  background: #333;
  color: #ffffff;
  border-color: #555;
}

body.dark-mode #back-to-top {
  background: #444;
}

/* Filters for Team Members */
.filters {
  text-align: center;
  margin-bottom: 20px;
}

.filters button {
  margin: 5px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  background: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  transition: 0.3s all;
}

.filters button:hover {
  background: #2575fc;
  color: #ffffff;
}

.filters button.active {
  background: #2575fc;
  color: #ffffff;
}