.team {
    text-align: center;
    background-color: var(--accent-color);
    padding-top: 7rem;
    padding-bottom: 7rem;

}

.team-container {
    display: flex;

    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.team h2 {
    font-size: 3rem;
}

.team p {
    font-size: 1.3rem;
}

.team-member {
    margin-top: 3rem;
    perspective: 1000px;
    /* Adds perspective for 3D effect */
    width: 20rem;
    /* Adjust as needed */
    height: 25rem;
    /* Adjust as needed */

}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    /* Ensures the 3D effect */
}

.team-member:hover .flip-card-inner {
    transform: rotateY(180deg);
    /* Flips the card on hover */
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* Hides the back of the card during flip */
    border-radius: 80px 0px 10px 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.flip-card-front {
    background: var(--secondary-color);
    color: var(--text-color);
}

.flip-card-back {
    background: var(--secondary-color);
    color: var(--text-color);
    transform: rotateY(180deg);
    /* Initially hides the back side */
}

.flip-card-front img,
.flip-card-back img {
    width: 120px;
    /* Adjust as needed */
    height: 120px;
    /* Adjust as needed */
    border-radius: 50%;
    margin-bottom: 15px;
}

.flip-card-front h3,
.flip-card-back h3 {
    color: var(--primary-color);
    margin: 10px 0;
    font-size: 1.3em;
}

.flip-card-front p,
.flip-card-back p {
    margin: 5px 0;
    font-size: 1.3rem;
}