/* ==========================================================================
   Team Page Specific Styles
   ========================================================================== */

/* Team Introduction */
.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.team-intro-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.team-intro-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Team Member Cards */
.team-member {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 0;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.team-member:hover {
    border-color: var(--primary-accent);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 70px rgba(255, 214, 90, 0.15);
    cursor: pointer;
}

/* Member Image */
.member-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.team-member:hover .member-image {
    transform: scale(1.05);
}

/* Member Overlay */
.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 60%,
            rgba(0, 0, 0, 0.7) 90%,
            rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-accent);
    color: #000000;
    transform: scale(1.1);
}

/* Member Info */
.member-info {
    padding: 2rem;
    text-align: center;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.member-bio:last-child {
    margin-bottom: 0;
}

/* Base popup overlay */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Popup box */
.popup-content {
    background: #000;
    border: 1px solid var(--border-subtle);
    color: #f2f2f2;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
}

.mb-0 {
    margin-bottom: 0;
}

.my-half {
    margin-block: 0.5rem;
}

/* Close button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: var(--border-subtle);
    color: #fff;
    border-color: transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Values in Action Section */
.values-action {
    background: rgba(255, 255, 255, 0.02);
    padding: 6rem 0;
}

.values-action-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.values-action-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4rem;
}

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

.action-item {
    text-align: center;
    padding: 2rem;
}

.action-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 214, 90, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.action-item:hover .action-icon {
    background: rgba(255, 214, 90, 0.2);
    transform: scale(1.1);
}

.action-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.action-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .values-action-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .team-intro-title {
        font-size: 2rem;
    }

    .team-intro-text {
        font-size: 1.1rem;
    }
}

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

    .member-image-container {
        /* height: 250px; */
        height: auto;
    }

    .member-info {
        padding: 1.5rem;
    }

    .member-name {
        font-size: 1.3rem;
    }

    .member-role {
        font-size: 1rem;
    }

    .team-intro {
        margin-bottom: 3rem;
    }

    .values-action-title {
        font-size: 2rem;
    }

    .action-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 4rem 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-action {
        padding: 4rem 0;
    }

    .team-intro-title {
        font-size: 1.8rem;
    }

    .team-intro-text {
        font-size: 1rem;
    }

    /* .member-image-container {
        height: 200px;
    } */

    .member-info {
        padding: 1rem;
    }

    .member-bio {
        font-size: 0.9rem;
    }

    .values-action-title {
        font-size: 1.8rem;
    }

    .action-title {
        font-size: 1.2rem;
    }

    .action-description {
        font-size: 0.9rem;
    }
}

/* Animation Enhancements */
@media (prefers-reduced-motion: no-preference) {
    .team-member {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }

    .team-member:nth-child(1) {
        animation-delay: 0.1s;
    }

    .team-member:nth-child(2) {
        animation-delay: 0.2s;
    }

    .team-member:nth-child(3) {
        animation-delay: 0.3s;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}