/* Team Page Styles */

:root {
    --isuzu-red: #E4002B;
    --isuzu-dark: #1a1a1a;
    --isuzu-black: #000000;
    --isuzu-gray: #666666;
    --isuzu-light-gray: #f8f8f8;
    --isuzu-white: #ffffff;
    --border-color: #e5e5e5;
    --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--isuzu-dark);
    line-height: 1.6;
    background: var(--isuzu-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Hero */
.team-overlay {
    inset: 0;
    position: absolute;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    width: 100%;
    height: 100%;
    border-radius: 1em;
}

.page-hero {
    margin: 7em 1em 0 1em;
    padding: 10rem 0 10rem;
    text-align: center;
    background: var(--isuzu-light-gray);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    border-radius: 1em;
}

.page-hero .container {
    background-color: #00000050;
    width: fit-content;
    padding: 1.5em 3em;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--isuzu-red);
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--isuzu-white);
}

/* Team Introduction */
.team-intro {
    padding: 5rem 0;
    background: var(--isuzu-white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--isuzu-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.intro-content h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--isuzu-black);
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.125rem;
    color: var(--isuzu-gray);
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background: var(--isuzu-light-gray);
}

.team-section:nth-child(odd) {
    background: var(--isuzu-white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--isuzu-black);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--isuzu-gray);
}

/* Team Grid */
.team-grid {
    display: grid;
    gap: 2.5rem;
}

.leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Team Card - Flip Effect */
.team-card {
    perspective: 1000px;
    height: 520px;
}

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

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

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

/* Card Front */
.card-front {
    background: var(--isuzu-white);
    border: 1.5px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .card-front {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--isuzu-red);
}

.member-photo {
    width: fit-content;
    height: 280px;
    overflow: hidden;
    /* background: var(--isuzu-light-gray); */
    border-radius: 8px;
    /* padding-top:  */
    margin: 1.4rem auto 0 auto;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    /* padding-top: 1.2em; */
}

.team-card:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 2rem;
}

.member-name {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--isuzu-black);
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--isuzu-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-bio-short {
    font-size: 0.9375rem;
    color: var(--isuzu-gray);
    line-height: 1.7;
}

.flip-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    background: var(--isuzu-red);
    color: var(--isuzu-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(228, 0, 43, 0.3); */
}

.flip-btn:hover {
    transform: scale(1.1);
    /* box-shadow: 0 4px 16px rgba(228, 0, 43, 0.5); */
}

/* Card Back */
.card-back {
    background: var(--isuzu-white);
    border: 2px solid var(--isuzu-red);
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.back-header {
    padding-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.back-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--isuzu-black);
    margin-bottom: 0.5rem;
}

.back-header p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--isuzu-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-content {
    flex: 1;
    overflow-y: auto;
}

.back-content p {
    font-size: 0.9375rem;
    color: var(--isuzu-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.back-content p:last-child {
    margin-bottom: 0;
}

.flip-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--isuzu-light-gray);
    color: var(--isuzu-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flip-back-btn:hover {
    background: var(--border-color);
    border-color: var(--isuzu-dark);
}

/* Technical Team Section */
.technical-team-section {
    background: var(--isuzu-white);
}

.technical-team-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.team-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.team-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.team-description h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--isuzu-black);
    margin-bottom: 1rem;
}

.team-description > p {
    font-size: 1rem;
    color: var(--isuzu-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-skills {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tech-skills li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--isuzu-dark);
    font-weight: 500;
}

.tech-skills li svg {
    color: var(--isuzu-red);
    flex-shrink: 0;
}

.team-commitment {
    font-size: 1rem;
    color: var(--isuzu-gray);
    line-height: 1.7;
    padding: 1.5rem;
    background: var(--isuzu-light-gray);
    border-left: 4px solid var(--isuzu-red);
    border-radius: 4px;
}

/* CTA Section */
.team-cta {
    padding: 6rem 0;
    background: var(--isuzu-black);
    text-align: center;
}

.team-cta h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--isuzu-white);
    margin-bottom: 1rem;
}

.team-cta p {
    font-size: 1.125rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: var(--isuzu-red);
    color: var(--isuzu-white);
}

.cta-btn.primary:hover {
    background: #c00024;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(228, 0, 43, 0.4);
}

.cta-btn.outline {
    background: transparent;
    color: var(--isuzu-white);
    border-color: var(--isuzu-white);
}

.cta-btn.outline:hover {
    background: var(--isuzu-white);
    color: var(--isuzu-black);
}

/* Responsive */
@media (max-width: 1024px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .technical-team-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .page-hero {
        padding: 6rem 8px 6rem;
    }

    .page-hero .container {
        padding: 1.25em 2em;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1.125rem;
    }

    .intro-content h2,
    .section-header h2,
    .team-description h3 {
        font-size: 2rem;
    }

    .team-section {
        padding: 3rem 0;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card {
        height: 500px;
    }

    .member-photo {
        height: 240px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    /* .page-hero {
        margin: 5.5em 0.5em 0 0.5em;
        padding: 4rem 0 4rem;
    } */

    /* .page-hero .container {
        padding: 1em 1.5em;
    } */

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .intro-content h2,
    .section-header h2,
    .team-description h3,
    .team-cta h2 {
        font-size: 1.75rem;
    }

    .team-card {
        height: 480px;
    }

    .member-photo {
        height: 220px;
    }

    .member-info {
        padding: 1.5rem;
    }

    .member-name {
        font-size: 1.25rem;
    }

    .card-back {
        padding: 1.5rem;
    }
}
