@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Root Variables for Color Palette and Fonts */
:root {
    --text-color: #ffffff;
    --background: #ea1538;
    --black: #000000;
    --dark-gray: #313131;
    --light-gray: #f3f3f3;
    --highlight-shadow: rgba(128, 6, 6, 0.8);
    --shadow-light: rgba(0, 0, 0, 0.5);
    --body-font: 'Source Sans Pro', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --transition-time: 0.3s ease;
}

/* General Styling for the About Section */
.about {
    background: linear-gradient(0deg, var(--dark-gray), var(--black));
    color: var(--text-color);
    font-family: var(--body-font);
    padding: 1rem;
    overflow: hidden;
    /* Prevent content overflow */
}

/* About Content */
.about-content {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

/* Section Headers */
.about h1,
.about h2 {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--background);
    text-align: center;
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 2rem;
    text-align: center;
}

/* Decorative Borders for Sections */
.about-section {
    margin: 3rem auto;
    text-align: center;
    border: 10px double var(--background);
    padding: 2rem;
    border-radius: 10px;
}



/* Founders Section */
.founders {
    background-color: var(--dark-gray);
    color: var(--text-color);
    font-family: var(--body-font);
    padding:  1rem;
}

.founders h2 {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--background);
    text-align: center;
    margin-bottom: 2rem;
}

.founder-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.founder-card {
    background: linear-gradient(0deg, var(--black), var(--dark-gray));
    width: 25%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform var(--transition-time), box-shadow var(--transition-time);
    text-align: center;
}

.founder-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--highlight-shadow);
}

.founder-card img {
    width: 100%;
    height: 45vh;
    /* Fixed height */
    object-fit: cover;
    border-bottom: 2px solid var(--background);
}

.founder-card h3 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--background);
    margin: 1rem 0;
}

.founder-card p {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .founder-card {
        width: 35%;
    }

}

@media (max-width: 768px) {
    .about-content {
        padding: 1rem;
    }

    .founder-cards {
        gap: 2rem;
    }

    .founder-card {
        width: 45%;
    }

    .about p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .about h1,
    .about h2 {
        font-size: 2.2rem;
    }

    .founder-cards {
        flex-direction: column;
        align-items: center;
    }

    .founder-card {
        width: 90%;
    }

}

/* Team Section */
.team {
    background: linear-gradient(180deg, var(--dark-gray), var(--black));
    color: var(--text-color);
    font-family: var(--body-font);
    padding: 2rem 1rem;
}

.team h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--background);
    text-align: center;
    margin-bottom: 1rem;
}

.team-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem 1rem;
    margin-bottom: 90px;
}

/* Flip Card Styling */
.flip-card {
    width: 14vw;
    height: 35vh;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-time);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.flip-card-front {
    background: linear-gradient(0deg, var(--black), var(--dark-gray));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-name h3 {
    margin: 14px 0;
    font-family: var(--heading-font);
    font-size: 1rem;
    color: var(--background);
    text-align: center;
}

.flip-card-back {
    background: linear-gradient(0deg, var(--background), var(--black));
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotateY(180deg);
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flip-card {
        width: 40vw;
        height: 28vh;
    }

    .flip-card-front h3 {
        font-size: 1rem;
    }

    .flip-card-back {
        font-size: 1rem;
    }
}