/* ===== NOVA ESTRUTURA EQUIPE - Nosso Time, Mentores, Representantes, Onde Estamos ===== */

/* ===== VARIÁVEIS TESTFUSION ===== */
:root {
  --testfusion-primary: #06B6D4;
  --testfusion-secondary: #22D3EE;
  --testfusion-pink: #EC4899;
  --testfusion-gradient: linear-gradient(135deg, #06B6D4, #22D3EE);
  --testfusion-dark: #0A0F1C;
  --testfusion-card-bg: rgba(17, 24, 39, 0.8);
  --testfusion-card-border: rgba(6, 182, 212, 0.2);
  --testfusion-text-light: #E2E8F0;
  --testfusion-text-muted: #94A3B8;
  --linkedin-blue: #0077B5;
}

/* ===== SEÇÃO NOSSO TIME ===== */
#nosso-time {
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.03), rgba(236, 72, 153, 0.03));
}

.team-unified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Desktop: 3 colunas para melhor distribuição */
@media (min-width: 1024px) {
  .team-unified-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Tablet: 2 colunas */
@media (min-width: 768px) and (max-width: 1023px) {
  .team-unified-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile: 1 coluna */
@media (max-width: 767px) {
  .team-unified-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== ELEMENTOS DO CARD ===== */
.team-photo-container {
  margin-bottom: 1.8rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--testfusion-primary);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 30px rgba(6, 182, 212, 0.5),
    0 0 0 6px rgba(6, 182, 212, 0.2),
    0 0 20px rgba(34, 211, 238, 0.2);
  position: relative;
  margin: 0 auto;
  display: block;
}

.team-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--testfusion-primary), var(--testfusion-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 auto;
  box-shadow: 
    0 10px 30px rgba(6, 182, 212, 0.5),
    0 0 0 6px rgba(6, 182, 212, 0.2),
    0 0 20px rgba(34, 211, 238, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.team-photo-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
  transition: all 0.4s ease;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-role {
  font-size: 1rem;
  font-weight: 600;
  color: #33c3ff;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  text-shadow: 0 0 10px rgba(51, 195, 255, 0.3);
}

.team-role::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--testfusion-primary), var(--testfusion-secondary));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.team-bio {
  font-size: 0.95rem;
  color: #cdd7ff;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.team-linkedin-profile {
  font-size: 0.88rem;
  color: #4ac3ff;
  line-height: 1.5;
  margin-bottom: 1.8rem;
  font-style: italic;
  opacity: 0.95;
  transition: all 0.4s ease;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(74, 195, 255, 0.08);
  border: 1px solid rgba(74, 195, 255, 0.2);
  position: relative;
  backdrop-filter: blur(10px);
  text-shadow: 0 0 8px rgba(74, 195, 255, 0.4);
}

.team-linkedin-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(74, 195, 255, 0.1) 0%, 
    rgba(51, 195, 255, 0.05) 50%, 
    rgba(6, 182, 212, 0.1) 100%);
  border-radius: 8px;
  z-index: -1;
  transition: all 0.4s ease;
}

.unified-team-card:hover .team-linkedin-profile::before {
  background: linear-gradient(135deg, 
    rgba(74, 195, 255, 0.25) 0%, 
    rgba(51, 195, 255, 0.15) 50%, 
    rgba(6, 182, 212, 0.2) 100%);
  transform: scale(1.02);
}

.team-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  opacity: 0.8;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.team-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  color: var(--testfusion-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(10px);
}

/* Estilo específico para LinkedIn */
.team-social-link[href*="linkedin"] {
  background: rgba(0, 119, 181, 0.2);
  color: var(--linkedin-blue);
  border-color: rgba(0, 119, 181, 0.3);
}

.team-social-link[href*="linkedin"]:hover {
  background: var(--linkedin-blue);
  color: white;
  transform: translateY(-3px) scale(1.15);
  border-color: var(--linkedin-blue);
  box-shadow: 
    0 8px 25px rgba(0, 119, 181, 0.4),
    0 0 20px rgba(0, 119, 181, 0.3);
}

.team-social-link:hover {
  background: var(--testfusion-gradient);
  color: white;
  transform: translateY(-3px) scale(1.15);
  border-color: var(--testfusion-secondary);
  box-shadow: 
    0 8px 25px rgba(6, 182, 212, 0.4),
    0 0 20px rgba(34, 211, 238, 0.3);
}

/* ===== CARD UNIFICADO DO TIME ===== */
.unified-team-card {
  background: var(--testfusion-card-bg);
  border-radius: 24px;
  padding: 2.8rem 2.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--testfusion-card-border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  min-height: 420px;
  transform-style: preserve-3d;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(6, 182, 212, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.unified-team-card.scroll-reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.9) rotateX(15deg);
}

.unified-team-card.scroll-reveal.revealed {
  animation: teamCardReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Gradiente animado no topo */
.unified-team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, 
    var(--testfusion-primary), 
    var(--testfusion-secondary), 
    #22D3EE, 
    var(--testfusion-primary));
  background-size: 300% 100%;
  transform: scaleX(0);
  transition: all 0.6s ease;
  transform-origin: left;
  animation: gradientShift 3s ease infinite;
  z-index: 1;
}

/* Efeito de brilho sutil */
.unified-team-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 0;
}

/* Estados de hover */
.unified-team-card:hover {
  transform: translateY(-15px) rotateX(3deg) scale(1.01);
  border-color: #33c3ff;
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 
    0 25px 60px rgba(51, 195, 255, 0.4),
    0 0 0 2px rgba(51, 195, 255, 0.3),
    0 0 40px rgba(74, 195, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.unified-team-card:hover::before {
  transform: scaleX(1);
}

.unified-team-card:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.unified-team-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--testfusion-purple);
  box-shadow: 
    0 25px 50px rgba(107, 70, 193, 0.2),
    0 15px 30px rgba(236, 72, 153, 0.1),
    0 0 0 1px rgba(107, 70, 193, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.unified-team-card:hover .team-photo-container {
  transform: scale(1.08) translateY(-5px);
  animation: floatAnimation 2s ease-in-out infinite;
}

.unified-team-card:hover .team-photo,
.unified-team-card:hover .team-photo-placeholder {
  box-shadow: 
    0 20px 50px rgba(6, 182, 212, 0.6),
    0 0 0 8px rgba(6, 182, 212, 0.3),
    0 0 40px rgba(34, 211, 238, 0.4);
  transform: rotate(-2deg) scale(1.05);
  border-color: var(--testfusion-secondary);
}

.unified-team-card:hover .team-photo-placeholder::before {
  transform: rotate(45deg) translateX(100%);
}

.unified-team-card:hover .team-name {
  transform: translateY(-3px) scale(1.05);
  color: white;
  text-shadow: 0 2px 15px rgba(6, 182, 212, 0.5);
}

.unified-team-card:hover .team-role {
  color: #33c3ff;
  transform: translateY(-2px);
  text-shadow: 0 0 15px rgba(51, 195, 255, 0.6);
}

.unified-team-card:hover .team-role::after {
  width: 60px;
  box-shadow: 0 2px 10px rgba(51, 195, 255, 0.5);
}

.unified-team-card:hover .team-bio {
  opacity: 1;
  transform: translateY(-1px);
  color: #cdd7ff;
}

.unified-team-card:hover .team-linkedin-profile {
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  background: rgba(74, 195, 255, 0.15);
  border-color: rgba(74, 195, 255, 0.4);
  text-shadow: 0 0 12px rgba(74, 195, 255, 0.6);
  box-shadow: 0 4px 20px rgba(74, 195, 255, 0.2);
  animation: glowPulse 2s ease-in-out infinite;
}

.unified-team-card:hover .team-social-links {
  opacity: 1;
  transform: translateY(-5px);
}

.unified-team-card:hover .team-social-links .team-social-link {
  animation: socialIconsBounce 0.6s ease-out;
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 
    0 6px 20px rgba(6, 182, 212, 0.4),
    0 0 15px rgba(34, 211, 238, 0.2);
}

.unified-team-card:hover .team-social-links .team-social-link[href*="linkedin"] {
  animation: socialIconsBounce 0.6s ease-out;
  background: rgba(0, 119, 181, 0.3);
  border-color: rgba(0, 119, 181, 0.5);
  box-shadow: 
    0 6px 20px rgba(0, 119, 181, 0.4),
    0 0 15px rgba(0, 119, 181, 0.2);
}

.unified-team-card > * {
  position: relative;
  z-index: 1;
}

/* ===== SEÇÃO MENTORES OFICIAIS ===== */
#mentores-oficiais {
  position: relative;
}

.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .mentors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mentor-official-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mentor-official-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(107, 70, 193, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mentor-official-card:hover::before {
  opacity: 1;
}

.mentor-official-card:hover {
  transform: translateY(-8px);
  border-color: var(--testfusion-pink);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
}

.mentor-official-card > * {
  position: relative;
  z-index: 1;
}

/* ===== SEÇÃO REPRESENTANTES REGIONAIS ===== */
#representantes-regionais {
  background: rgba(236, 72, 153, 0.02);
}

.representatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .representatives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.representative-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.representative-card:hover {
  transform: translateY(-8px);
  border-color: var(--testfusion-purple);
  box-shadow: 0 15px 35px rgba(107, 70, 193, 0.2);
}

/* ===== SEÇÃO ONDE ESTAMOS ===== */
#onde-estamos {
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(236, 72, 153, 0.02));
}

.locations-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .locations-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ===== MAPA DO BRASIL ===== */
.brazil-map-container {
  position: relative;
}

.brazil-map {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.brazil-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(107, 70, 193, 0.1));
}

.location-point {
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.location-point:hover {
  r: 12;
  filter: drop-shadow(0 0 10px currentColor);
}

.location-point.future {
  animation: none;
  opacity: 0.6;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(74, 195, 255, 0.4);
    opacity: 0.95;
  }
  50% {
    text-shadow: 0 0 12px rgba(74, 195, 255, 0.6);
    opacity: 1;
  }
}

/* ===== CARDS DAS REGIÕES ===== */
.regions-info {
  display: flex;
  flex-direction: column;
}

.region-cards {
  display: grid;
  gap: 1.5rem;
}

.region-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.region-card.active {
  border-color: var(--testfusion-purple);
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(236, 72, 153, 0.02));
}

.region-card.future {
  opacity: 0.7;
  border-color: rgba(107, 70, 193, 0.2);
}

.region-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 70, 193, 0.15);
}

.region-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.region-card h3 {
  color: var(--testfusion-purple);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.region-card h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.region-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.region-contact {
  font-size: 0.9rem;
  color: var(--testfusion-pink);
  font-weight: 500;
}

/* ===== EXPANSÃO NACIONAL ===== */
.expansion-info {
  text-align: center;
}

.expansion-card {
  background: var(--bg-card);
  border: 2px solid var(--testfusion-purple);
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.expansion-card h3 {
  background: var(--testfusion-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 700;
}

.expansion-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--testfusion-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ===== CTAs ===== */
.mentors-cta,
.representatives-cta {
  text-align: center;
  margin-top: 3rem;
}

.mentors-cta-card,
.representatives-cta-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.mentors-cta-card::before,
.representatives-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--testfusion-gradient);
  opacity: 0.05;
}

.mentors-cta-card > *,
.representatives-cta-card > * {
  position: relative;
  z-index: 1;
}

.mentors-cta-card h3,
.representatives-cta-card h3 {
  background: var(--testfusion-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 700;
}

/* ===== RESPONSIVIDADE ESPECÍFICA ===== */
@media (max-width: 480px) {
  .unified-team-card,
  .mentor-official-card,
  .representative-card {
    padding: 1.5rem;
  }
  
  .expansion-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .mentors-cta-card,
  .representatives-cta-card,
  .expansion-card {
    padding: 2rem 1.5rem;
  }
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.unified-team-card,
.mentor-official-card,
.representative-card,
.region-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.unified-team-card.revealed,
.mentor-official-card.revealed,
.representative-card.revealed,
.region-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delay para animação em cascata */
.unified-team-card:nth-child(1) { transition-delay: 0.1s; }
.unified-team-card:nth-child(2) { transition-delay: 0.2s; }
.unified-team-card:nth-child(3) { transition-delay: 0.3s; }
.unified-team-card:nth-child(4) { transition-delay: 0.4s; }
.unified-team-card:nth-child(5) { transition-delay: 0.5s; }
.unified-team-card:nth-child(6) { transition-delay: 0.6s; }
.unified-team-card:nth-child(7) { transition-delay: 0.7s; }
.unified-team-card:nth-child(8) { transition-delay: 0.8s; }
.unified-team-card:nth-child(9) { transition-delay: 0.9s; }
.unified-team-card:nth-child(10) { transition-delay: 1.0s; }

/* ===== ANIMAÇÕES KEYFRAMES ===== */

@keyframes teamCardReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9) rotateX(15deg);
  }
  60% {
    transform: translateY(-10px) scale(1.02) rotateX(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

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

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
  }
}

@keyframes socialIconsBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes teamPhotoFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(1deg);
  }
}
.unified-team-card:nth-child(5) { transition-delay: 0.5s; }
.unified-team-card:nth-child(6) { transition-delay: 0.6s; }
.unified-team-card:nth-child(7) { transition-delay: 0.1s; }
.unified-team-card:nth-child(8) { transition-delay: 0.2s; }
.unified-team-card:nth-child(9) { transition-delay: 0.3s; }
.unified-team-card:nth-child(10) { transition-delay: 0.4s; }