/* Team Page Specific Styles */

/* Team Hero */
.team-hero {
    text-align: center;
    padding: 140px 48px 100px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(110, 71, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.team-hero-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 84px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 28px;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.team-hero-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.team-hero-description {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.highlight-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Orchestrator Section */
.orchestrator-section {
    padding: 80px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.orchestrator-card {
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 40px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 0 60px rgba(110, 71, 255, 0.4), 0 20px 60px var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.orchestrator-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    min-width: 180px;
    border-radius: 24px;
    overflow: hidden;
}

.orchestrator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(110, 71, 255, 0.5);
}

.orchestrator-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(110, 71, 255, 0.6);
    animation: orchestratorPulse 3s ease-in-out infinite;
    border: 3px solid var(--bg-primary);
}

.orchestrator-badge svg {
    width: 30px;
    height: 30px;
    color: #FFFFFF;
}

.orchestrator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(110, 71, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.orchestrator-icon {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(110, 71, 255, 0.5);
    animation: orchestratorPulse 3s ease-in-out infinite;
}

.orchestrator-icon svg {
    width: 60px;
    height: 60px;
    color: #FFFFFF;
}

@keyframes orchestratorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 40px rgba(110, 71, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 16px 60px rgba(110, 71, 255, 0.7);
    }
}

.orchestrator-content {
    flex: 1;
    z-index: 1;
}

.orchestrator-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.orchestrator-description {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Agents Grid Section */
.agents-grid-section {
    padding: 100px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.agents-section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 80px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.agent-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px;
}

.agent-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.agent-card:hover .agent-image {
    transform: scale(1.05);
}

.agent-image-container .agent-card-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(110, 71, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.agent-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px var(--shadow-lg), 0 0 0 1px var(--border-glow);
    background: var(--bg-card-hover);
}

.agent-card:hover::before {
    opacity: 1;
}

.agent-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.agent-card-icon svg {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
}

.agent-card:hover .agent-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Agent Icon Colors */
.electric-blue { background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%); }
.orange-glow { background: linear-gradient(135deg, #FF8C42 0%, #E67E22 100%); }
.aqua-green { background: linear-gradient(135deg, #1ABC9C 0%, #16A085 100%); }
.deep-purple { background: linear-gradient(135deg, #6e47ff 0%, #5a37cc 100%); }
.gold-glow { background: linear-gradient(135deg, #F39C12 0%, #D68910 100%); }
.metallic-gold { background: linear-gradient(135deg, #D4AF37 0%, #AA8D2D 100%); }
.ruby-red { background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%); }
.magenta-glow { background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%); }
.pink-glow { background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%); }
.lime-green { background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%); }
.steel-grey { background: linear-gradient(135deg, #78909C 0%, #546E7A 100%); }
.sky-blue { background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%); }

.agent-card-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.agent-card-role {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    margin: -8px 0 0 0;
}

.agent-card-description {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.agent-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.skill-tag {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(110, 71, 255, 0.15);
    border: 1px solid rgba(110, 71, 255, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Synergy Section */
.synergy-section {
    padding: 100px 48px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.synergy-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.synergy-description {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Team CTA Section */
.team-cta-section {
    padding: 100px 48px 120px;
    text-align: center;
}

.team-cta-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 1.2;
}

.team-cta-button {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(110, 71, 255, 0.4);
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    display: inline-block;
}

.team-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(110, 71, 255, 0.6);
}

.team-cta-subcopy {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 968px) {
    .team-hero {
        padding: 80px 32px 60px;
    }

    .team-hero-title {
        font-size: 56px;
    }

    .team-hero-subtitle {
        font-size: 20px;
    }

    .team-hero-description {
        font-size: 16px;
    }

    .orchestrator-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }

    .orchestrator-title {
        font-size: 28px;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .agents-section-title {
        font-size: 36px;
    }

    .synergy-title {
        font-size: 36px;
    }

    .synergy-description {
        font-size: 18px;
    }

    .team-cta-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .team-hero-title {
        font-size: 42px;
    }

    .team-hero-subtitle {
        font-size: 18px;
    }

    .orchestrator-title {
        font-size: 24px;
    }

    .orchestrator-description {
        font-size: 15px;
    }

    .team-cta-title {
        font-size: 32px;
    }

    .team-cta-button {
        width: 100%;
        max-width: 400px;
    }
}
