/* Team Section */
.team {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    perspective: 1000px;
    cursor: pointer;
}

.team-card-inner {
    background: var(--dark-card);
    border: 1px solid rgba(255, 140, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.team-card:hover .team-card-inner {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.2);
}

.team-card:active .team-card-inner {
    transform: translateY(-5px) scale(0.98);
}

.team-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--primary-orange-light);
}

/* Team Member Modal */
.team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--dark-card);
    border: 2px solid var(--primary-orange);
    border-radius: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 30px 80px rgba(255, 140, 0, 0.4);
}

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

.modal-content::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange-light);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: var(--primary-orange);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(180deg, rgba(255, 140, 0, 0.1) 0%, transparent 100%);
}

.modal-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.modal-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid var(--primary-orange);
    border-radius: 50%;
    color: var(--primary-orange);
    transition: all 0.3s ease;
    text-decoration: none;
}

.linkedin-btn:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.linkedin-btn svg {
    width: 18px;
    height: 18px;
}

.modal-header p {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 4px solid var(--primary-orange);
    padding-left: 1.5rem;
    margin: 0 0 2.5rem 0;
    line-height: 1.7;
    position: relative;
}

.modal-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-orange);
    position: absolute;
    left: -0.5rem;
    top: -1.5rem;
    opacity: 0.2;
    font-weight: 700;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h4 {
    color: var(--primary-orange);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: justify;
}

.modal-specialty {
    margin-bottom: 2.5rem;
}

.modal-specialty h4 {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-specialty p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

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