/* Team Header */
.team-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.team-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.team-header p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
}

/* Team Introduction */
.team-intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.intro-content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.intro-content p {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.intro-content p:last-child {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Team Activities */
.team-activities {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.activities-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-secondary);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-item {
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-all);
    cursor: pointer;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.15) 0 4px 20px;
}

.activity-item.hidden {
    display: none;
}

.activity-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.activity-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-item:hover .activity-image img {
    transform: scale(1.05);
}

.activity-info {
    padding: var(--spacing-md);
}

.activity-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.activity-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
}

/* Work Environment */
.work-environment {
    padding: 80px 0;
    background-color: #fff;
}

.environment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-all);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.15) 0 4px 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Team Culture */
.team-culture {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: #fff;
}

.culture-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.culture-content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.culture-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.value-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.value-item i {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.value-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.value-item p {
    font-size: var(--font-size-xs);
    opacity: 0.9;
    line-height: var(--line-height-relaxed);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .team-header {
        padding: 100px 0;
    }

    .team-header h1 {
        font-size: 2.5rem;
    }

    .team-header p {
        font-size: 1.2rem;
    }

    .activities-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .environment-gallery {
        grid-template-columns: 1fr;
    }

    .culture-values {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .value-item {
        padding: 1.5rem;
    }

    .value-item i {
        font-size: 2.5rem;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-header {
        padding: 80px 0;
    }

    .team-header h1 {
        font-size: 2rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .culture-values {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
}