@font-face{
    font-family: "Poppins";
    src: url("../resources/fonts/Poppins-Regular.ttf") format(truetype);
}

/* Page title */
.team-page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.team-page-title h1 {
    font-family: "PP Acma Bold", sans-serif;
    color: #ad1739;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-page-title p {
    color: #777;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Team Cards Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Compact Card Preview */
.team-card {
    position: relative;
    background: linear-gradient(145deg, #FAF7F2 0%, #F5EDE0 100%);
    border-radius: 24px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ad1739, #d4a574);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(173, 23, 57, 0.25);
}

/* Card Image */
.team-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
}

/* Card Body */
.team-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Title */
.team-card-title {
    font-family: "PP Acma Bold", sans-serif;
    font-size: 1.5rem;
    color: #ad1739;
    text-align: center;
    margin: 0 0 1rem;
    line-height: 1.3;
}

/* Short preview text */
.team-preview {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Click hint */
.team-click-hint {
    text-align: center;
    color: #ad1739;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin-top: auto;
}

.team-card:hover .team-click-hint {
    opacity: 1;
}

.team-click-hint svg {
    width: 18px;
    height: 18px;
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Fullscreen Modal */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.team-modal.active {
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    opacity: 1;
    pointer-events: all;
}

/* Modal Content */
.team-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: linear-gradient(145deg, #FAF7F2 0%, #F5EDE0 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-modal.active .team-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.team-modal-header {
    position: relative;
    padding: 2.5rem 3rem 2rem;
    background: linear-gradient(135deg, #ad1739 0%, #8b1230 100%);
    color: white;
    border-bottom: 4px solid #d4a574;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.team-modal-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.team-modal-header-text {
    flex-grow: 1;
}

.team-modal-header h2 {
    font-family: "PP Acma Bold", sans-serif;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.team-modal-role {
    font-size: 1.1rem;
    color: #d4a574;
    font-weight: 500;
    margin: 0;
}

/* Close Button */
.team-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.team-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.team-modal-body {
    padding: 2.5rem 3rem;
    max-height: calc(85vh - 220px);
    overflow-y: auto;
    overflow-x: hidden;
}

.team-modal-body::-webkit-scrollbar {
    width: 8px;
}

.team-modal-body::-webkit-scrollbar-track {
    background: rgba(173, 23, 57, 0.1);
    border-radius: 4px;
}

.team-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ad1739, #8b1230);
    border-radius: 4px;
}

/* Animated content sections */
.team-modal-body > * {
    animation: fadeSlideIn 0.6s ease-out backwards;
}

.team-modal-body > *:nth-child(1) { animation-delay: 0.1s; }
.team-modal-body > *:nth-child(2) { animation-delay: 0.2s; }
.team-modal-body > *:nth-child(3) { animation-delay: 0.3s; }
.team-modal-body > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-modal-body p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.team-modal-body b,
.team-modal-body strong {
    color: #ad1739;
}

.team-modal-body i {
    color: #666;
    display: block;
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #d4a574;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-card {
        padding: 0;
    }

    .team-card-img {
        height: 250px;
    }

    .team-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .team-modal-header {
        padding: 2rem 1.5rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .team-modal-img {
        width: 100px;
        height: 100px;
    }

    .team-modal-header h2 {
        font-size: 1.5rem;
    }

    .team-modal-role {
        font-size: 1rem;
    }

    .team-modal-body {
        padding: 1.5rem;
        max-height: calc(90vh - 200px);
    }

    .team-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

