/* Team Page Specific Styles */

/* Team Header */
.team-header {
    padding: calc(var(--space-3xl) + 60px) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--light-gray);
}

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

.team-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--dark);
}

.team-tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.team-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Active navigation link */
.nav-links a.active {
    color: var(--primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Team Gallery Section */
.team-gallery {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

/* Gallery Grid */
.team-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

/* Team Photo Cards */
.team-photo {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-photo:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.team-photo:hover img {
    transform: scale(1.05);
}

/* Call to Action Section */
.team-cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, #16a34a 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-cta .btn {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.team-cta .btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px) scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-md);
    }
    
    .team-photo {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .team-header {
        padding: calc(var(--space-2xl) + 60px) 0 var(--space-2xl);
    }
    
    .team-hero h1 {
        font-size: 2.5rem;
    }
    
    .team-tagline {
        font-size: 1.1rem;
    }
    
    .team-description {
        font-size: 1rem;
    }
    
    .team-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--space-md);
    }
    
    .team-photo {
        height: 280px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .team-gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .team-photo {
        height: 250px;
    }
    
    .team-hero h1 {
        font-size: 2rem;
    }
}

/* Animation on scroll */
@media (prefers-reduced-motion: no-preference) {
    .team-photo {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .team-photo:nth-child(1) { animation-delay: 0.1s; }
    .team-photo:nth-child(2) { animation-delay: 0.2s; }
    .team-photo:nth-child(3) { animation-delay: 0.3s; }
    .team-photo:nth-child(4) { animation-delay: 0.4s; }
    .team-photo:nth-child(5) { animation-delay: 0.5s; }
    .team-photo:nth-child(6) { animation-delay: 0.6s; }
    .team-photo:nth-child(7) { animation-delay: 0.7s; }
    .team-photo:nth-child(8) { animation-delay: 0.8s; }
    .team-photo:nth-child(9) { animation-delay: 0.9s; }
    .team-photo:nth-child(10) { animation-delay: 1.0s; }
    .team-photo:nth-child(11) { animation-delay: 1.1s; }
    .team-photo:nth-child(12) { animation-delay: 1.2s; }
}

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

/* Key Team Members Section */
.key-team-members {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.9));
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.team-member-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Team Members */
@media (max-width: 1024px) {
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .key-team-members {
        padding: 40px 0;
    }
    
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }
    
    .team-member-card {
        padding: 15px;
    }
    
    .member-image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .member-info h3 {
        font-size: 1.1rem;
    }
    
    .member-role {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .team-members-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .team-member-card {
        padding: 15px;
    }
    
    .member-image {
        width: 80px;
        height: 80px;
    }
    
    .member-info h3 {
        font-size: 1rem;
    }
} 