/* About Section */
.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding:var(--fluid-padding);
    background-color: var(--background-color);
    width: fit-content;
    gap: var(--fluid-gap);
  }


  .about-content {
    padding: var(--fluid-padding);
    flex: 1 1 400px;
  }

  

  .about-content p {
    line-height: 1.8;
    margin-bottom: var(--fluid-margin);
    text-align: justify;

  }

  .about-image {
    flex: 1 1 300px;
  }

  .about-image img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
  }

  /* Team Section */
  .team-section {
    background-color: var(--background-color);
    padding: 50px 20px;
    text-align: center;
  }



  .team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  /* Team member card - 3D Flip */
  .team-member {
    perspective: 1000px; /* For the 3D flip effect */
    width: 300px;
    height: 400px;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }

  .team-member:hover {
    transform: scale(1.05); /* Slight enlarge on hover */
  }

  /* Inner card content */
  .team-member-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }

  /* Card front and back */
  .team-member-front,
  .team-member-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back face when flipping */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  /* Front of the card */
  .team-member-front {
    background-color: white;
    display: flex;
    flex-direction: column;

  }

  /* Enlarge image on hover */
  .team-member-front img {
    height: 300px;
    object-fit: cover;
    max-width: 100%;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
  }

  

  .team-member-front h3 {
    font-size: 1.5rem;
    margin-top: 10px;
  }

  .team-member-front p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
  }

  /* Back of the card */
  .team-member-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg); /* Initially hidden and flipped */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
  }

  .team-member-back p {
    font-size: calc( 1.25 * var(--fluid-font-size));
    margin-bottom: 20px;
    color: var(--background-color);
  }

  /* CTA Button */
  .view-profile-btn {
    transition: background-color 0.3s ease;
  }



  /* Flip card on click */
  .team-member.flipped .team-member-inner {
    transform: rotateY(180deg);
  }

