/* Reuse variables from homepage */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #0077b3;
    --dark-color: #1a1a1a;
    --light-bg: #f8f9fa;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #F44336;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --control-bg: rgba(0, 51, 102, 0.9);
    --focus-color: #ff9900;
}

/* Reuse base styles from homepage */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    transition: top 0.3s ease;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Header and Nav styles */
header {
    padding: 1rem;
    background: var(--secondary-color);
    position: relative;
    z-index: 100;
}

.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    height: 80px;
    width: 250px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    max-width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0 0.5rem;
    position: relative;
}

#search {
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    width: 280px;
    transition: all 0.3s ease;
    max-width: 100%;
}

#search::placeholder {
    color: rgba(255, 255, 255, 0.95);
}

#search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.search-button {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover, .search-button:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.search-button:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.search-button {
    background: #ffffff;
    color: #003366;
}

.search-button:hover, .search-button:focus {
    background: #f0f0f0;
    color: #0056b3;
}

nav {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 90;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    justify-content: center;
    transition: transform 0.3s ease;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a:focus {
    color: var(--primary-color);
}

nav a:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Team Hero Section */
.team-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-image {
    margin-top: 3rem;
    width: 100%;
    max-width: 600px;
}

.team-illustration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.person {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.person1 {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    animation-delay: 0s;
}

.person2 {
    background: linear-gradient(45deg, #a1c4fd, #c2e9fb);
    animation-delay: 1s;
}

.person3 {
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    animation-delay: 2s;
}

.person4 {
    background: linear-gradient(45deg, #84fab0, #8fd3f4);
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Team Section */
.team-section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 600;
}

.section-heading::after {
    content: '';
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.member-photo {
    position: relative;
    height: 280px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
}

.social-links {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-member:hover .social-links {
    opacity: 1;
    transform: translateY(0);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-links a:hover, 
.social-links a:focus {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.social-links a:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.member-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.bio {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Values Section */
.values-section {
    padding: 6rem 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    margin: 4rem 0;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Join Section */
.join-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 10px;
    padding: 4rem;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.join-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.join-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.join-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border: 2px solid transparent;
}

.cta-button:hover, .cta-button:focus {
    background: #0088cc;
    transform: translateY(-2px);
    outline: none;
    border-color: white;
}

.cta-button:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.join-illustration {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 300px;
}

.illustration-person {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.illustration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Footer styles */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

footer h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

footer a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    padding-left: 15px;
}

footer a:hover::before {
    opacity: 1;
    left: 0;
}

footer a:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .team-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .join-section {
        flex-direction: column;
        text-align: center;
    }
    
    .join-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .team-hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .values-section {
        padding: 4rem 1rem;
    }
    
    .join-section {
        padding: 2rem;
    }
    
    .join-content h2 {
        font-size: 1.8rem;
    }
    
    .person {
        width: 80px;
        height: 80px;
    }
}