/* General Page Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to right, #f3c623, #e04c9d);
  color: white;
  text-align: center;
}

h1 {
  font-size: 36px;
  margin-top: 20px;
  color: #fff;
}

/* Team Container Styling */
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 40px;
}

.team-member {
  border: 3px solid #fff;
  border-radius: 20px;
  padding: 30px;
  width: 300px;
  background: #ffffff; /* White background */
  color: black;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

/* Flip container setup */
.flip-container {
  position: relative;
  width: 250px;
  height: 450px; /* Increased height for extra data */
  margin: 0 auto;
  cursor: pointer;
  perspective: 1000px;
}

.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-container:hover .flipper {
  transform: rotateY(180deg);
}

/* Front image styling */
.front img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.front .team-member-name {
  margin-top: 10px;
  color: #333;
  font-size: 18px;
}

/* Back styling */
.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #333;
  border-radius: 20px;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
}

/* Smaller image on the back side */
.back .small-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Bio and data styling */
.bio {
  text-align: center;
  color: white;
}

.bio p {
  font-size: 14px;
  margin: 5px 0;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  text-decoration: none;
  margin: 0 10px;
  font-size: 16px;
  color: white;
}

.social-links a:hover {
  color: #007bff;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(45deg, #ff9a00, #ff165d);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-info {
  text-align: center;
  color: white;
  margin: 20px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 profiles per row */
  gap: 30px;
  margin: 20px;
}

.team-member {
  width: 300px;
  height: 400px;
  perspective: 1000px;
}

.flip-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.flipper {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-container:hover .flipper {
  transform: rotateY(180deg);
}

.front, .back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.front {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

footer {
  background-color: #f8f9fa;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #6c757d;
  position: relative;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #e9ecef;
}

footer p {
  margin: 5px 0;
}
