/* Team Page Specific Styles */

/* Team Hero */
.team-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/hero-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.team-hero .container {
    position: relative;
    z-index: 2;
}

.team-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.team-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.team-hero .breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.team-hero .breadcrumb a:hover {
    opacity: 0.7;
}

.team-hero .separator {
    margin: 0 10px;
}

.team-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.team-hero .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.team-hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-hero .stat-item {
    text-align: center;
}

.team-hero .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    display: block;
    margin-bottom: 5px;
}

.team-hero .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Leadership Team */
.leadership-team {
    padding: 80px 0;
    background: white;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.leader-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.leader-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.leader-card:hover .leader-image img {
    transform: scale(1.1);
}

.leader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 82, 152, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leader-card:hover .leader-overlay {
    opacity: 1;
}

.leader-overlay .social-links {
    display: flex;
    gap: 15px;
}

.leader-overlay .social-link {
    width: 50px;
    height: 50px;
    background: white;
    color: #2a5298;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.leader-overlay .social-link:hover {
    background: #ffd700;
    transform: scale(1.1);
}

.leader-content {
    padding: 30px;
    text-align: center;
}

.leader-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.leader-position {
    color: #2a5298;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.leader-bio {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.leader-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.expertise-tag {
    background: #e9ecef;
    color: #495057;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Department Teams */
.department-teams {
    padding: 80px 0;
    background: #f8f9fa;
}

.department-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 60px;
}

.dept-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dept-btn:hover,
.dept-btn.active {
    background: #2a5298;
    border-color: #2a5298;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-member.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.member-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 82, 152, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.member-overlay .social-links {
    display: flex;
    gap: 10px;
}

.member-overlay .social-link {
    width: 40px;
    height: 40px;
    background: white;
    color: #2a5298;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.member-overlay .social-link:hover {
    background: #ffd700;
    transform: scale(1.1);
}

.member-content {
    padding: 25px 20px;
    text-align: center;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.member-position {
    color: #2a5298;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.member-department {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.skill-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

/* Company Culture */
.company-culture {
    padding: 80px 0;
    background: white;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.culture-item {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.culture-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2a5298, #ffd700);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.culture-item:hover::before {
    transform: scaleX(1);
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.culture-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.culture-item:hover .culture-icon {
    transform: scale(1.1);
}

.culture-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.culture-description {
    color: #6c757d;
    line-height: 1.6;
    font-size: 14px;
}

/* Join Team CTA */
.join-team-cta {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-team-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/hero-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.join-team-cta .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
}

.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #2a5298;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-hero {
        padding: 100px 0 60px;
    }
    
    .team-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .team-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .team-hero .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .team-hero .stat-number {
        font-size: 2rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .leader-image {
        height: 250px;
    }
    
    .leader-content {
        padding: 25px 20px;
    }
    
    .department-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .dept-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .member-image {
        height: 180px;
    }
    
    .member-content {
        padding: 20px 15px;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .culture-item {
        padding: 30px 25px;
    }
    
    .culture-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .team-hero .hero-title {
        font-size: 2rem;
    }
    
    .leader-card {
        border-radius: 15px;
    }
    
    .leader-image {
        height: 200px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-image {
        height: 160px;
    }
    
    .culture-item {
        padding: 25px 20px;
    }
    
    .culture-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .culture-title {
        font-size: 1.1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2a5298;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Effects */
.leader-card,
.team-member,
.culture-item {
    cursor: pointer;
}

.leader-card:hover .leader-name,
.team-member:hover .member-name {
    color: #2a5298;
}

.culture-item:hover .culture-title {
    color: #2a5298;
}

/* Department Specific Colors */
.team-member[data-department="development"] .member-position {
    color: #28a745;
}

.team-member[data-department="design"] .member-position {
    color: #e83e8c;
}

.team-member[data-department="ai"] .member-position {
    color: #6f42c1;
}

.team-member[data-department="devops"] .member-position {
    color: #fd7e14;
}

.team-member[data-department="qa"] .member-position {
    color: #dc3545;
}

.team-member[data-department="marketing"] .member-position {
    color: #20c997;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .leader-card,
    .team-member,
    .culture-item {
        transition: none;
    }
    
    .leader-image img,
    .member-image img {
        transition: none;
    }
    
    .culture-icon {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .team-hero,
    .join-team-cta {
        background: white !important;
        color: black !important;
    }
    
    .leader-overlay,
    .member-overlay {
        display: none !important;
    }
    
    .social-links {
        display: none !important;
    }
}