/* Teams-specific styles */

/* Teams Hero Section */
.teams-hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-100) 100%);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  min-height: 500px;
}

.teams-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="teams-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(139,92,246,0.1)"/><path d="M0 15h30M15 0v30" stroke="rgba(59,130,246,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23teams-pattern)"/></svg>');
  opacity: 0.7;
}

.teams-hero-content {
  position: relative;
  z-index: 2;
}

.teams-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.highlight-teams {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.teams-hero p {
  font-size: 1.3rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.team-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.stat-bubble {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  animation: bubble-float 3s ease-in-out infinite;
}

.stat-bubble:nth-child(1) { animation-delay: 0s; }
.stat-bubble:nth-child(2) { animation-delay: 0.5s; }
.stat-bubble:nth-child(3) { animation-delay: 1s; }

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

.stat-bubble:hover {
  transform: translateY(-15px) scale(1.1);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-xl);
}

.stat-bubble .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-purple);
  line-height: 1;
}

.stat-bubble .stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.teams-hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-constellation {
  position: relative;
  width: 300px;
  height: 300px;
}

.constellation-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 3px solid var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: constellation-pulse 2s ease-in-out infinite;
}

.constellation-node.leadership { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.constellation-node.development { top: 20%; right: 10%; animation-delay: 0.3s; }
.constellation-node.cloud { bottom: 20%; right: 10%; animation-delay: 0.6s; }
.constellation-node.ai { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.9s; }
.constellation-node.security { bottom: 20%; left: 10%; animation-delay: 1.2s; }
.constellation-node.design { top: 20%; left: 10%; animation-delay: 1.5s; }

@keyframes constellation-pulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-lg); }
  50% { transform: scale(1.1); box-shadow: var(--shadow-xl); }
}

.constellation-line {
  position: absolute;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-blue));
  height: 2px;
  opacity: 0.3;
  animation: line-glow 3s ease-in-out infinite;
}

.line-1 { top: 30px; left: 50%; width: 80px; transform: rotate(30deg); animation-delay: 0s; }
.line-2 { top: 80px; right: 40px; width: 60px; transform: rotate(-30deg); animation-delay: 0.5s; }
.line-3 { bottom: 80px; right: 40px; width: 60px; transform: rotate(30deg); animation-delay: 1s; }
.line-4 { bottom: 30px; left: 50%; width: 80px; transform: rotate(-30deg); animation-delay: 1.5s; }
.line-5 { bottom: 80px; left: 40px; width: 60px; transform: rotate(-30deg); animation-delay: 2s; }

@keyframes line-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.team-member {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  position: relative;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-purple);
}

.team-member-placeholder {
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.team-member-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

.team-member h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-blue);
  font-weight: 600;
}

.team-member .position {
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

/* Leadership Section */
.leadership-section {
  margin: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.highlight-leadership {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-specialists {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-culture {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-green));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-careers {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.leader-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue);
}

.leader-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-lg);
}

.avatar-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--accent-purple);
  border-radius: 50%;
  animation: avatar-rotate 10s linear infinite;
}

@keyframes avatar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: avatar-glow 2s ease-in-out infinite;
}

@keyframes avatar-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.leader-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--accent-green);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.leader-info {
  text-align: center;
}

.leader-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.leader-title {
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

.leader-bio {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.leader-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.leader-footer .leader-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.leader-footer .leader-social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.leader-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.skill-tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.leader-card:hover .skill-tag {
  background: var(--accent-purple);
  color: var(--white);
  transform: translateY(-2px);
}

.leader-social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.leader-background-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  opacity: 0.05;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="50" cy="50" r="15" fill="currentColor"/></svg>');
  transition: all 0.4s ease;
}

.leader-card:hover .leader-background-pattern {
  opacity: 0.1;
  transform: rotate(45deg) scale(1.2);
}

/* Specialists Section */
.specialists-section {
  margin: var(--space-3xl) 0;
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.specialist-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.4s ease;
  cursor: pointer;
  min-height: 280px;
}

.specialist-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-green);
}

.specialist-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  border-radius: 50%;
  font-size: 2rem;
}

.icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: icon-pulse-specialist 2s ease-in-out infinite;
}

@keyframes icon-pulse-specialist {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.specialist-info {
  text-align: center;
}

.specialist-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.specialist-role {
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.specialist-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.specialist-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.tech-badge {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.specialist-card:hover .tech-badge {
  background: var(--accent-green);
  color: var(--white);
  transform: translateY(-2px);
}

.specialist-hover-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  text-align: center;
}

.specialist-card:hover .specialist-hover-content {
  opacity: 1;
  max-height: 100px;
}

.projects-count,
.experience-years {
  display: inline-block;
  background: var(--gray-50);
  color: var(--gray-700);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 var(--space-xs) var(--space-sm);
}

.contact-specialist {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-specialist:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Culture Section */
.culture-section {
  background: var(--gray-50);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-xl);
  margin: var(--space-3xl) 0;
}

.culture-content {
  text-align: center;
}

.culture-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.culture-content p {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: var(--space-3xl);
}

.culture-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.value-item {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-purple);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.value-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.value-item p {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Careers CTA */
.careers-cta {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-xl);
  margin: var(--space-3xl) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.careers-cta .cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.careers-cta .cta-content p {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
}

.careers-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.growth-chart {
  display: flex;
  align-items: end;
  gap: var(--space-md);
  height: 150px;
  margin-bottom: var(--space-md);
}

.chart-bar {
  width: 40px;
  background: linear-gradient(to top, var(--accent-blue), var(--accent-purple));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: all 0.3s ease;
  animation: chart-grow 2s ease-out;
}

.chart-bar[data-height="60"] { height: 60%; }
.chart-bar[data-height="80"] { height: 80%; }
.chart-bar[data-height="95"] { height: 95%; }
.chart-bar[data-height="100"] { height: 100%; }

@keyframes chart-grow {
  from { height: 0; }
  to { height: var(--final-height); }
}

.chart-bar:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.bar-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
}

.chart-caption {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive Design for Teams */
@media (max-width: 768px) {
  .teams-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .team-stats {
    justify-content: center;
  }
  
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  
  .specialists-grid {
    grid-template-columns: 1fr;
  }
  
  .culture-values {
    grid-template-columns: 1fr;
  }
  
  .careers-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}