.team-member-detail {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.team-member-detail::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #F39C12, #E67E22);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    transform: translate(30%, -30%);
    animation: gradientFloat 8s ease-in-out infinite;
}

.member-photo-wrapper {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo {
    position: relative;
    padding: 30px;
    min-height: 100%;
    transform: translateY(0);
    animation: imageFloat 6s ease-in-out infinite;
}

.member-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 15px;
    transform: translate(15px, 15px);
    transition: transform 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.member-info {
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: contentFadeIn 1s ease-out forwards;
}

.member-info h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #F39C12, #E67E22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(0);
    animation: titleFloat 4s ease-in-out infinite;
}

.member-info .position {
    font-size: 1.3rem;
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
    opacity: 0.9;
}

.member-info .short-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
    padding: 15px;
    border-left: 3px solid #F39C12;
    background: rgba(243, 156, 18, 0.05);
    border-radius: 0 10px 10px 0;
}

.member-bio {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
}

.social-links {
    margin-top: 30px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--color2-amber);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.member-expertise {
    margin-top: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-expertise h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.expertise-item {
    background: rgba(243, 156, 18, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 3px solid #F39C12;
}

.expertise-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.expertise-item p {
    color: #666;
    line-height: 1.6;
}

.contact-info {
    margin-top: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
}

.contact-info p i {
    width: 35px;
    height: 35px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color2-amber);
    margin-right: 15px;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes gradientFloat {
    0%, 100% { transform: translate(30%, -30%) scale(1); }
    50% { transform: translate(25%, -35%) scale(1.1); }
}

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

@media (max-width: 991px) {
    .member-photo-wrapper {
        margin-bottom: 40px;
    }

    .member-info h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .member-info {
        text-align: center;
        padding-top: 40px;
    }
}

@media (max-width: 767px) {
    .member-info h2 {
        font-size: 2rem;
    }

    .member-info .position {
        font-size: 1.1rem;
    }

    .member-bio {
        font-size: 1rem;
        line-height: 1.7;
    }
}
