/* Team Member Profile Styles */
.team-member-profile {
    min-height: 100vh;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: #ffffff;
    padding: 40px 0;
}

/* Header with Back Button */
.team-profile__header {
    padding: 20px 0;
    margin-bottom: 40px;
}

.back-to-team-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(243, 146, 34, 0.1);
    border: 1px solid rgba(243, 146, 34, 0.3);
    border-radius: 999px;
    color: #f39222;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-team-btn:hover {
    background: rgba(243, 146, 34, 0.2);
    border-color: #f39222;
    transform: translateX(-5px);
}

.back-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.back-to-team-btn:hover .back-arrow {
    transform: translateX(-3px);
}

/* Hero Section */
.team-profile__hero {
    padding: 60px 0;
    margin-bottom: 60px;
}

.team-profile__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 968px) {
    .team-profile__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

/* Image Section */
.team-profile__image-section {
    position: relative;
}

.team-profile__main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(243, 146, 34, 0.1), rgba(96, 165, 250, 0.1));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.team-profile__main-image:hover .profile-main-img {
    transform: scale(1.05);
}

.team-profile__hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
    overflow: hidden;
}

.team-profile__hover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-profile__main-image:hover .team-profile__hover-image {
    opacity: 1;
}

/* Info Section */
.team-profile__info-section {
    position: relative;
}

.team-profile__avatar {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #f39222, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 0 30px rgba(243, 146, 34, 0.8);
    animation: profile-avatar-pulse 3s ease-in-out infinite;
    z-index: 10;
}

@media (max-width: 968px) {
    .team-profile__avatar {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto 30px;
    }
}

.team-profile__name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .team-profile__name {
        font-size: 2.2rem;
    }
}

.team-profile__position {
    font-size: 1.3rem;
    color: rgba(248, 250, 252, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

/* Contact Information */
.team-profile__contact {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    color: rgba(248, 250, 252, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #f39222;
    padding-left: 10px;
}

.contact-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

/* Social Links */
.team-profile__social {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 968px) {
    .team-profile__social {
        justify-content: center;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.social-link:hover {
    background: #f39222;
    border-color: #f39222;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(243, 146, 34, 0.3);
}

/* Skills Section */
.team-profile__skills {
    padding: 60px 0;
    background: rgba(15, 23, 42, 0.5);
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #f39222, #ffd27a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(243, 146, 34, 0.1);
    border-color: rgba(243, 146, 34, 0.5);
    transform: translateY(-5px);
}

.skill-name {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.9);
}

/* Biography Section */
.team-profile__bio {
    padding: 60px 0;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.85);
}

.bio-content h1,
.bio-content h2,
.bio-content h3 {
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.bio-content h1 { font-size: 2.2rem; }
.bio-content h2 { font-size: 1.8rem; }
.bio-content h3 { font-size: 1.4rem; }

.bio-content p {
    margin-bottom: 24px;
}

.bio-content ul,
.bio-content ol {
    margin: 24px 0;
    padding-left: 30px;
}

.bio-content li {
    margin-bottom: 12px;
}

/* Animations */
@keyframes profile-avatar-pulse {
    0% {
        box-shadow: 0 0 0 rgba(243, 146, 34, 0);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(243, 146, 34, 0.8);
        transform: translateX(-50%) scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 rgba(243, 146, 34, 0);
        transform: translateX(-50%) scale(1);
    }
}

@media (max-width: 968px) {
    @keyframes profile-avatar-pulse {
        0% {
            box-shadow: 0 0 0 rgba(243, 146, 34, 0);
            transform: scale(1);
        }
        50% {
            box-shadow: 0 0 40px rgba(243, 146, 34, 0.8);
            transform: scale(1.05);
        }
        100% {
            box-shadow: 0 0 0 rgba(243, 146, 34, 0);
            transform: scale(1);
        }
    }
}
