/* ===== team.css ===== */
/* Team page – wide, complete images, beautiful design, no overflow */

/* ---------- RESET OVERFLOW ---------- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- TEAM GRID ---------- */
.team-grid {
    background: var(--white);
}
.grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Team Card */
.team-card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Card Image - FULL WIDTH, COMPLETE IMAGE (no cropping) */
.card-image {
    width: 100%;
    background: linear-gradient(145deg, #f5f7fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 260px;
}
.card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    background: transparent;
}
.team-card:hover .card-image img {
    transform: scale(1.02);
}

/* Optional subtle overlay on hover */
.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.team-card:hover .card-image::after {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
}
.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--deep-blue);
}
.position {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.bio {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}
.read-more {
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.read-more:hover {
    color: var(--gold-hover);
    transform: translateX(5px);
}
.read-more::after {
    content: "→";
    transition: transform 0.2s;
}
.read-more:hover::after {
    transform: translateX(3px);
}

/* ---------- TEAM CULTURE ---------- */
.team-culture {
    background: var(--light-gray);
    text-align: center;
    padding: 3rem 1rem;
}
.culture-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ---------- MODAL (Extended Bio) ---------- */
.team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.team-modal.active {
    display: flex;
}
.modal-content {
    background: var(--white);
    max-width: 550px;
    width: 90%;
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    cursor: default;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--deep-blue);
    transition: var(--transition);
    z-index: 10;
    line-height: 1;
}
.modal-close:hover {
    color: var(--gold);
}
.modal-body {
    padding: 2rem;
    text-align: center;
}
.modal-body img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: var(--light-gray);
}
.modal-body h2 {
    margin-bottom: 0.25rem;
}
.modal-position {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
}
.modal-bio {
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
    font-size: 0.95rem;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .grid.grid-3 {
        grid-template-columns: 1fr;
    }
    .card-image {
        min-height: 220px;
    }
    .modal-body {
        padding: 1.5rem;
    }
    .modal-body img {
        width: 120px;
        height: 120px;
    }
    .culture-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
}