* {
box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
}

.founder-heading {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 30px;
    color: #f5f5f5;
}

.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.about-section h1 {
    margin-bottom: 12px;
    font-size: 2.5rem;
}

.about-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #ccc;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.flip-card {
    background: transparent;
    width: 320px;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.flip-card-front {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-card-back {
    background: linear-gradient(135deg, #7a0000, #1a1a1a);
    transform: rotateY(180deg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-back h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.flip-card-back h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #ffb3b3;
    font-weight: normal;
}

.flip-card-back p {
    margin: 0;
    color: #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.flip-card:focus {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* Founder image polish */
.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(120, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-img:hover {
    transform: scale(1.03);
    box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(160, 0, 0, 0.25);
}

/* Optional: tighten for smaller screens */
@media (max-width: 480px) {
    .about-section {
        padding: 40px 16px;
    }

    .flip-card {
        width: 280px;
        height: 280px;
    }

    .flip-card-back {
        padding: 18px;
    }

    .flip-card-back h2 {
        font-size: 1.2rem;
    }

    .flip-card-back h3 {
        font-size: 0.95rem;
    }

    .flip-card-back p {
        font-size: 0.9rem;
    }
}
