/* ====== TEAM PAGE STYLES ====== */

/* Hero Section */
#team-hero {
    background-color: #000000;
}

#team-hero-container {
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    #team-hero-container {
        height: 450px !important;
        padding: 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #team-hero-container {
        height: 500px !important;
    }
}

@media (min-width: 1440px) {
    #team-hero-container {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
}

#team-hero-bg-desktop {
    z-index: 0;
    background-image: linear-gradient(90deg, rgb(0 0 0 / 54%) 31%, rgb(0 0 0 / 0%) 100%), url(../images/team/team-hero-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 5%;
}

@media print {
    #team-hero-bg-desktop {
        display: none;
    }
}

#team-hero-content {
    /* Styles inherited from parent, GSAP animation applied */
}

#team-hero-title {
    /* Inherits from text-h1 class */
}

@media (max-width: 767px) {
    #team-hero-title {
        font-size: 36px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #team-hero-title {
        font-size: 48px !important;
    }
}

@media (min-width: 1024px) {
    #team-hero-title {
        font-size: 60px !important;
    }
}

#team-hero-bg-mobile {
    background-image: url(../images/team/team-hero-bg-mobile.jpg);
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: scale(1.2);
}

/* Intro Section */
#team-intro {
    background-color: #060E0E;
}

#team-intro-text {
    color: #906E9F;
    font-size: 32px;
    line-height: 1.2;
}

/* Team Members Section */
#team-members {
    background-color: #13001A;
    border-bottom: 1px solid #013233;
}

/* Team Tabs */
#team-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.team-tab-button,
.team-tab {
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.team-tab-button.active,
.team-tab.active {
    background: #009688;
    border: none;
}

.team-tab-button:not(.active),
.team-tab:not(.active) {
    border: 1px solid #A52DDB;
    background: transparent;
}

.team-tab-button span,
.team-tab span {
    color: #FEF9F4;
    font-size: 24px;
    line-height: 1.2;
}

/* Team Content */
.team-content {
    transition: all 0.3s ease;
}

.team-content.hidden {
    display: none;
}

/* Team Member Cards */
.team-member-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #2C003E;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;

}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Team Member Image */
.team-member-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team Member Content */
.team-member-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member-content h3 {
    color: #ABEBF0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 500;
}

.team-member-content p {
    color: #FEF9F4;
    font-size: 24px;
    line-height: 1.2;
}

/* Team Member Button */
.team-member-button {
    width: 54px;
    height: 54px;
    border-radius: 30px;
    border: 1px solid #ABEBF0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.team-member-button:hover {
    background: #ABEBF0;
}

.team-member-button:hover svg rect {
    fill: #13001A;
}

.team-member-button svg {
    width: 14px;
    height: 10px;
}

.team-member-button svg rect {
    fill: #C2A5CF;
    transition: fill 0.3s ease;
}

/* Team Modal */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-modal.hidden {
    display: none;
}

.team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.team-modal-content {
    position: relative;
    z-index: 2;
    background: #5E376E;
    border-radius: 20px;
    padding: 32px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.team-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 20px;
}

.team-modal-info {
    flex: 1;
}

.team-modal-info h3 {
    color: #ABEBF0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-modal-role-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-modal-role {
    color: #FEF9F4;
    font-size: 24px;
    line-height: 1.2;
}

.team-modal-social {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.team-modal-social svg {
    width: 100%;
    height: 100%;
}

.team-modal-close {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #FEF9F4;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-modal-close svg {
    width: 24px;
    height: 24px;
}

.team-modal-body {
    margin-top: 20px;
}

.team-modal-description {
    color: #FFFFFF;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-member-card {
        padding: 16px;
    }
    
    .team-member-image {
        height: 300px;
    }
    
    .team-member-content h3 {
        font-size: 28px;
    }
    
    .team-member-content p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    #team-hero-container {
        padding: 20px 16px;
    }
    
    #team-hero-title {
        font-size: 40px !important;
        line-height: 1.1 !important;
    }
    
    #team-intro-container {
        padding: 40px 16px;
    }
    
    #team-intro-text {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    
    #team-members-container {
        padding: 40px 16px;
    }
    
    #team-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .team-tab-button,
    .team-tab {
        width: 100%;
        text-align: center;
    }
    
    .team-tab-button span,
    .team-tab span {
        font-size: 20px;
    }
    
    .team-member-card {
        padding: 12px;
    }
    
    .team-member-image {
        height: 250px;
    }
    
    .team-member-content h3 {
        font-size: 24px;
    }
    
    .team-member-content p {
        font-size: 18px;
    }
    
    .team-member-button {
        width: 50px;
        height: 50px;
    }
    
    .team-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .team-modal-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .team-modal-info h3 {
        font-size: 28px;
    }
    
    .team-modal-role {
        font-size: 20px;
    }
    
    .team-modal-description {
        font-size: 18px;
    }
    .team-member-image{
        height: 362px;
    }
}

/* GSAP Animation States */
/* GSAP animation initial states are now handled by JavaScript */

.gsap-text-reveal {
    transform: translateY(100px);
    opacity: 0;
}

/* Word Reveal Animation */
.word-reveal-text {
    overflow: hidden;
}

.word-reveal-text .word {
    display: inline-block;
    color: #6B7280;
    transition: color 0.3s ease;
    margin-right: 0.25em;
}

.word-reveal-text .word.revealed {
    color: #906E9F;
}

/* Word Reveal Animation 2 */
.word-reveal-text-2 {
    overflow: hidden;
}

.word-reveal-text-2 .word {
    display: inline-block;
    color: #6B7280;
    transition: color 0.3s ease;
    margin-right: 0.25em;
}

.word-reveal-text-2 .word.revealed {
    color: #906E9F;
}

/* Word Reveal Animation 3 */
.word-reveal-text-3 {
    overflow: hidden;
}

.word-reveal-text-3 .word {
    display: inline-block;
    color: #6B7280;
    transition: color 0.3s ease;
    margin-right: 0.25em;
}

.word-reveal-text-3 .word.revealed {
    color: #906E9F;
}

/* Word Reveal Animation 4 */
.word-reveal-text-4 {
    overflow: hidden;
}

.word-reveal-text-4 .word {
    display: inline-block;
    color: #6B7280;
    transition: color 0.3s ease;
    margin-right: 0.25em;
}

.word-reveal-text-4 .word.revealed {
    color: #906E9F;
}