@import url("../styles/components/base.css");

/* Container */
.set-container,
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Team Section */
.team {
  padding: clamp(100px, 12vw, 140px) 0 clamp(80px, 12vw, 120px);
  position: relative;
  background: radial-gradient(
      circle at 70% 30%,
      rgba(138, 43, 226, 0.05) 0%,
      transparent 50%
    ),
    var(--dark-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: clamp(60px, 10vw, 80px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: clamp(16px, 3vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title .highlight {
  background: linear-gradient(135deg, #8a2be2, #9370db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.6;
}

/* Team Container */
.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 40px);
  margin-top: clamp(40px, 8vw, 60px);
}

/* Team Card */
.team-card {
  background: rgba(30, 35, 40, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #8a2be2, #9370db);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.team-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(138, 43, 226, 0.2);
  border-color: #8a2be2;
}

.team-card:hover::before {
  opacity: 0.05;
}

/* Team Image */
.team-image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  z-index: 2;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(20, 25, 30, 0.3) 50%,
    rgba(20, 25, 30, 0.8) 100%
  );
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-card:hover .image-overlay {
  opacity: 0.7;
}

/* Team Info */
.team-info {
  padding: clamp(28px, 5vw, 36px);
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-weight: 700;
  margin-bottom: clamp(8px, 1.5vw, 12px);
  color: var(--text-primary);
  transition: all 0.6s ease;
}

.team-card:hover .member-name {
  color: #8a2be2;
  transform: translateX(4px);
}

.member-rank {
  display: inline-block;
  background: rgba(138, 43, 226, 0.15);
  color: #8a2be2;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  font-weight: 600;
  margin-bottom: clamp(16px, 3vw, 20px);
  border: 1px solid rgba(138, 43, 226, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  align-self: flex-start;
}

.team-card:hover .member-rank {
  background: rgba(138, 43, 226, 0.25);
  border-color: #8a2be2;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.2);
}

.member-bio {
  color: var(--text-primary);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: clamp(20px, 4vw, 24px);
  flex: 1;
  transition: all 0.6s ease;
}

.team-card:hover .member-bio {
  color: var(--text-primary);
}

/* Member Socials */
.member-socials {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.member-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 50%;
  color: #8a2be2;
  font-size: 1.1rem;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.member-socials a:hover {
  background: #8a2be2;
  color: white;
  border-color: #8a2be2;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

/* Join CTA Section */
.join-cta {
  padding: clamp(60px, 10vw, 80px) 0;
  position: relative;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(138, 43, 226, 0.08) 0%,
      transparent 50%
    ),
    var(--dark-secondary);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 60px);
  background: rgba(30, 35, 40, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-content:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.3);
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: clamp(16px, 3vw, 20px);
  color: var(--text-primary);
  line-height: 1.2;
}

.cta-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-primary);
  margin-bottom: clamp(28px, 5vw, 36px);
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #8a2be2, #9370db);
  color: white;
  text-decoration: none;
  padding: clamp(14px, 3vw, 18px) clamp(32px, 6vw, 48px);
  border-radius: 12px;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.15rem);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(138, 43, 226, 0.35);
  border-color: #9370db;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .team-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .team-container {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 32px);
  }

  .team-image {
    height: 280px;
  }

  .member-socials {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .team-card {
    min-height: auto;
  }

  .team-image {
    height: 240px;
  }

  .team-info {
    padding: clamp(20px, 4vw, 24px);
  }

  .member-socials a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.3s !important;
  }
}

/* Loading animation for page */
@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}