/* =================================================================
   OUR TEAM PAGE - ADDITIONAL STYLES
================================================================= */

/* Team Hero Section */
.team-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(52, 143, 80, 0.15) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M20 20h60v60H20z' fill='none' stroke='%23348f50' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E") repeat;
    opacity: 0.05;
}

.team-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.team-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.team-stat-item {
    text-align: center;
    padding: 25px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.team-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(52, 143, 80, 0.15);
    border-color: rgba(86, 180, 211, 0.3);
}

.team-stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #56b4d3;
    margin-bottom: 8px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
}

.team-stat-item .stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Department Filter */
.team-filter {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--navbar-height);
    z-index: 100;
    backdrop-filter: blur(20px);
}

.department-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.department-tab {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.department-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.department-tab:hover,
.department-tab.active {
    border-color: #56b4d3;
    color: white;
    transform: translateY(-2px);
}

.department-tab:hover::before,
.department-tab.active::before {
    left: 0;
}

.department-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(52, 143, 80, 0.3);
}

/* Team Section Layout */
.team-section {
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Enhanced Team Member Cards */
.team-member-card {
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: center;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    display: block;
}

.team-member-card.animate-in {
    animation: slideInUp 0.8s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(52, 143, 80, 0.15);
    border-color: rgba(86, 180, 211, 0.3);
}

.team-member-card:hover::before {
    transform: scaleX(1);
}

.member-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.team-member-card .team-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(52, 143, 80, 0.3);
    transition: var(--transition);
}

.team-member-card:hover .team-avatar {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(52, 143, 80, 0.4);
}

.member-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    z-index: 2;
}

.member-status.online {
    background: #00d4aa;
    animation: pulse-online 2s infinite;
}

.member-status.busy {
    background: #ff6b35;
}

.member-status.away {
    background: #ffd700;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.member-info {
    margin-bottom: 25px;
}

.team-member-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.team-member-card .team-role {
    color: #56b4d3;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.member-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.member-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.achievement {
    background: rgba(86, 180, 211, 0.1);
    color: #56b4d3;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(86, 180, 211, 0.2);
}

.team-member-card .team-social {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-member-card .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
}

.team-member-card .social-link:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(52, 143, 80, 0.3);
}

.member-contact-btn {
    background: transparent;
    border: 2px solid #56b4d3;
    color: #56b4d3;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.member-contact-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 143, 80, 0.3);
}

/* Leadership Grid Enhancement */
.leadership-grid .team-member-card {
    position: relative;
}

.leadership-grid .team-member-card::after {
    content: '👑';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
    transition: var(--transition);
}

.leadership-grid .team-member-card:hover::after {
    opacity: 1;
    transform: rotate(15deg) scale(1.2);
}

/* Department Filtering Animation */
.team-member-card {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    transition: all 0.3s ease;
    display: block;
}

.team-member-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease;
}

.team-member-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    transition: all 0.3s ease;
    display: block;
}

/* Team Member Modal */
.team-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.team-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.team-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: var(--transition);
}

.team-modal-overlay.active .team-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid #ff4757;
    color: #ff4757;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1);
}

.modal-content {
    padding: 40px;
}

/* Join Team Section */
.join-team-content {
    text-align: center;
}

.join-team-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.join-team-content > p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.open-positions h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.position-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(52, 143, 80, 0.15);
    border-color: rgba(86, 180, 211, 0.3);
}

.position-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.position-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.position-details span {
    background: rgba(86, 180, 211, 0.1);
    color: #56b4d3;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(86, 180, 211, 0.2);
}

.position-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.apply-btn {
    align-self: flex-start;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 25px;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 143, 80, 0.3);
}

/* Team Benefits */
.team-benefits {
    margin-bottom: 50px;
}

.team-benefits h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(52, 143, 80, 0.1);
    border-color: rgba(86, 180, 211, 0.3);
}

.benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-text p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.join-cta {
    padding: 40px;
    background: rgba(86, 180, 211, 0.05);
    border: 1px solid rgba(86, 180, 211, 0.1);
    border-radius: var(--border-radius);
}

.join-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.join-cta .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .team-hero {
        min-height: 50vh;
        padding: 100px 0 60px;
    }

    .team-hero h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-stat-item .stat-number {
        font-size: 1.8rem;
    }

    .department-filters {
        gap: 10px;
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
    }

    .department-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-member-card {
        padding: 25px;
    }

    .positions-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .position-details {
        justify-content: center;
    }

    .member-achievements {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .team-hero h1 {
        font-size: 2rem;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .team-stat-item {
        padding: 20px;
    }

    .team-member-card .team-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .member-status {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .team-member-card {
        padding: 20px;
    }

    .position-card {
        padding: 20px;
    }

    .join-cta {
        padding: 25px;
    }

    .modal-content {
        padding: 25px;
    }
}

/* Dark Mode Specific Adjustments */
[data-theme="dark"] .team-filter {
    background: rgba(26, 26, 26, 0.95);
}

[data-theme="dark"] .join-cta {
    background: rgba(86, 180, 211, 0.08);
    border-color: rgba(86, 180, 211, 0.15);
}

/* Light Mode Specific Adjustments */
[data-theme="light"] .team-filter {
    background: rgba(248, 249, 250, 0.95);
}

[data-theme="light"] .join-cta {
    background: rgba(52, 143, 80, 0.05);
    border-color: rgba(52, 143, 80, 0.1);
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .team-member-card,
    .position-card,
    .benefit-item {
        transition: none;
    }
    
    .member-status.online {
        animation: none;
    }
    
    .team-member-card.animate-in {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.department-tab:focus,
.member-contact-btn:focus,
.apply-btn:focus,
.modal-close:focus {
    outline: 3px solid #56b4d3;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .team-filter,
    .chat-widget,
    .scroll-top,
    .team-modal-overlay {
        display: none;
    }
    
    .team-member-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}