/* ============ Team ============ */

/* Statement / hero block */
.team-statement-section {
    background: var(--color-bg-dark);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-statement-section .team-container {
    text-align: center;
}

.team-statement-section .team-heading {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.team-statement-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto 3rem;
}

.team-stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.team-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-cyan);
    line-height: 1;
}

.team-stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.team-section {
    background: var(--color-bg);
    padding: 5rem 0;
}

.team-section-alt {
    background: var(--color-bg-dark);
}

.team-container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.team-heading {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
}

.team-subheading {
    font-size: 1rem;
    color: var(--color-cyan);
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 3rem;
}

/* Leadership cards - horizontal with large photo */
.team-leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.team-leader-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.team-leader-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.1);
}

.team-leader-photo {
    height: 100%;
    min-height: 220px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-leader-initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.team-leader-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.team-leader-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-leader-title {
    font-size: 0.82rem;
    color: var(--color-cyan);
    margin-bottom: 0.75rem;
}

.team-leader-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
    font-style: italic;
}

.team-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    width: fit-content;
}

.team-card-btn:hover {
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

/* Engineer cards - compact with small round photo */
.team-engineer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-engineer-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.75rem;
    display: flex;
    gap: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.team-engineer-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.1);
}

.team-engineer-photo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: rgba(0, 168, 232, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-engineer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-engineer-initials {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.team-engineer-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.team-engineer-title {
    font-size: 0.78rem;
    color: var(--color-cyan);
    margin-bottom: 0.75rem;
}

.team-engineer-bio {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Culture / fun cards */
.team-culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-culture-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.team-culture-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.1);
}

.team-culture-img {
    height: 180px;
    overflow: hidden;
    background: #0a0a0a;
}

.team-culture-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.team-culture-body {
    padding: 1.25rem;
}

.team-culture-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-cyan);
}

.team-culture-body p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* CTA card */
.team-cta-card {
    border-style: dashed;
    text-decoration: none;
    color: inherit;
}

.team-cta-card .team-leader-info h3 {
    color: var(--color-text);
}

.team-cta-card .team-leader-photo {
    background: rgba(0, 168, 232, 0.06);
}

.team-cta-card .team-leader-initials {
    font-size: 3rem;
    color: rgba(0, 168, 232, 0.4);
}

.team-cta-card:hover .team-leader-initials {
    color: var(--color-cyan);
}

/* Expertise banner */
.team-expertise-banner {
    background: var(--color-bg-dark);
    padding: 5rem 0;
}

.team-expertise-inner {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.team-expertise-label {
    font-size: 1rem;
    color: var(--color-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-expertise-heading {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.team-expertise-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.team-disciplines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 750px;
    margin: 0 auto;
}

.team-discipline-tag {
    background: rgba(0, 168, 232, 0.06);
    border: 1px solid rgba(0, 168, 232, 0.2);
    color: var(--color-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    transition: background 0.2s;
}

.team-discipline-tag:hover {
    background: rgba(0, 168, 232, 0.12);
}


/* Team Modal */
.team-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.team-modal-overlay.active {
    display: flex;
}

.team-modal {
    background: #0d1117;
    border: 1px solid var(--color-cyan);
    border-radius: 8px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.team-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.team-modal-close:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.1);
}

.team-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-avatar-lg {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 168, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-lg .team-initials {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.team-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.team-modal-title {
    font-size: 0.85rem;
    color: var(--color-cyan);
}

.team-modal-body p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.team-modal-funfact {
    background: rgba(0, 168, 232, 0.06);
    border-left: 3px solid var(--color-cyan);
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.team-modal-funfact strong {
    color: var(--color-cyan);
}

/* Team responsive */
@media (max-width: 900px) {
    .team-stats-row {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .team-leadership-grid {
        grid-template-columns: 1fr;
    }

    .team-engineer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-leader-card {
        grid-template-columns: 1fr;
    }

    .team-leader-photo {
        min-height: 200px;
    }

    .team-engineer-grid {
        grid-template-columns: 1fr;
    }

    .team-culture-grid {
        grid-template-columns: 1fr;
    }

    .team-modal {
        padding: 1.5rem;
    }
}
