
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.MainEmployee {
    min-height: 100vh;
    background: #f8a51b;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    color: #fff;
    font-size: 24px;
    letter-spacing: 10px;
    margin-bottom: 40px;
}

/* TEAM GRID */
.team {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row desktop */
    gap: 30px;
    perspective: 1200px;
}

/* CARD */
.card {
    height: 360px;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

/* Hover for desktop */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Click for mobile */
.card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* FRONT & BACK */
.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    text-align: center;
}

.front {
    background: #E46526;
}

    .front img {
        width: 240px;
        height: 240px;
        border-radius: 5%;
        object-fit: cover;
/*        border: 4px solid #3a150f;*/
        margin-bottom: 15px;
    }

    .front h3 {
        margin-bottom: 5px;
    }

    .front span {
        font-size: 14px;
        opacity: 0.8;
    }

.back {
    background: #E46526;
    transform: rotateY(180deg);
}

    .back h3 {
        margin-bottom: 8px;
    }

    .back h4 {
        color: #00d4ff;
        margin-bottom: 12px;
        font-size: 15px;
    }

    .back p {
        font-size: 16px;
        line-height: 1.5;
        opacity: 0.9;
    }

/* TABLET */
@media(max-width:1024px) {
    .team {
        grid-template-columns: repeat(2,1fr); /* 2 per row */
    }
}

/* MOBILE */
@media(max-width:600px) {
    .team {
        grid-template-columns: 1fr; /* 1 per row */
    }

    .card {
        height: 330px;
    }
}

