/* Team Section Styling */
.team-section {
    padding: 3rem 0;
    background: #f9fbfd;
    position: relative;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.team-intro {
  color: #7f8c8d;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  justify-items: center;
}

.team-container,
.trades-container {
    justify-items: center;
}

.member-card,
.trade-card {
    transition: all 0.3s ease;
}

/* Team Member Card */
.member-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  width: 280px;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.member-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
  border-radius: 10px 10px 0 0;
}

.member-card:hover .member-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 128, 185, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover .image-overlay {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  background: rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

.member-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.member-info h3 {
  margin: 0 0 0.5rem;
  color: #2c3e50;
  font-size: 1.3rem;
}

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

.position {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.bio-toggle {
  background: linear-gradient(18deg, #796b06, #175771);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: center;
}

.bio-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Skilled Trades Section */
.trades-section {
  margin-top: 4rem;
}

.subheading {
  text-align: center;
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
}

.trades-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  justify-items: center;
}

.trade-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
  width: 275px;
}

.trade-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.trade-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: white;
}

.trade-icon.electrician {
  background: #f39c12;
}

.trade-icon.plumber {
  background: #3498db;
}

.trade-icon.bricklayer {
  background: #e74c3c;
}

.trade-info h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.specialty {
  color: #3498db;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.experience {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
  
/* Modal Styles */
.bio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    overflow-y: auto;
  }
  
.bio-modal.active {
  display: block;
}

#bio-modal .modal-content {
  background: rgb(218, 218, 218);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  margin: 50px auto;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  background-color: #f5f5f5;
  color: #000000;
}

.modal-body {
  padding: 30px;
}

#bio-modal .modal-body .modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
}

.modal-header .position {
  color: #7f8c8d;
  margin: 8px 8px 0;
  font-size: 1.1rem;
}

.modal-bio {
  line-height: 1.7;
  color: #34495e;
  font-size: 1rem;
}

.modal-bio p {
  padding: 0 5px;
}

.modal-social {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  padding: 20px;
}

.modal-social a {
  color: white;
  background-color: #3498db;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.modal-social a:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}