/* ── Cards de pessoa ─────────────────────────────────────────────── */
.person {
    display: flex;
    margin-bottom: 20px;
    text-align: left;
    padding: 10px 40px;
    border-radius: 8px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.person:hover {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 4px 0 0 #ff7d13;
}

.person-image {
    width: 150px;
    height: auto;
    cursor: pointer;
    transition: transform 0.5s ease, width 0.2s ease;
    border-radius: 4px;
}

.person-info {
    flex-grow: 1;
    margin-left: 10px;
    box-sizing: border-box;
    max-height: 150px;
    overflow: hidden;
}

.person-image:hover {
    width: 160px;
}

.rotate-image {
    transition: transform 1s ease;
    transform: rotate(360deg);
}

/* ── Modal ───────────────────────────────────────────────────────── */
#person-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    align-items: center;
    justify-content: center;
}

#person-modal.modal-open {
    display: flex;
}

#person-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s ease;
}

#person-modal-box {
    position: relative;
    background: #1e1060;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 560px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.25s ease;
    z-index: 1;
    color: #ffffff;
}

#person-modal-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ff7d13;
}

#person-modal-info {
    text-align: center;
}

#person-modal-name {
    font-size: 24px;
    color: #ffbb83;
    margin-bottom: 12px;
}

#person-modal-desc {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
    color: #e0d8ff;
    font-family: Arial, Helvetica, sans-serif;
}

#person-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #ffbb83;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

#person-modal-close:hover {
    color: #ff7d13;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media only screen and (max-width: 600px) {
    .person h2, .person p {
        font-size: 16px;
    }

    .person-image {
        width: 100px;
        height: auto;
    }

    .person-image:hover {
        width: 100px;
    }

    .person {
        padding: 10px 20px;
    }

    #person-modal-img {
        width: 130px;
        height: 130px;
    }

    #person-modal-box {
        padding: 28px 20px;
    }
}