/* DanceIQ Pioneers Section Styles */

/* Section Base Styles */
.pioneers {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
  overflow-x: hidden;
}

.pioneers::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="pioneers-pattern" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="1.5" fill="rgba(102,126,234,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23pioneers-pattern)"/></svg>');
  opacity: 0.4;
}

.pioneers-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Carousel Container */
.pioneers-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.pioneers-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Pioneer Card Styles */
.pioneer-card {
  flex: 0 0 100%;
  padding: 0 15px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.pioneer-card-inner {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 3rem 2rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.4s ease;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.pioneer-card-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

/* Pioneer Image */
.pioneer-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid rgba(102, 126, 234, 0.5);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: all 0.4s ease;
}

.pioneer-card-inner:hover .pioneer-image {
  border-color: #667eea;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

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

.pioneer-card-inner:hover .pioneer-image img {
  transform: scale(1.1);
}

/* Placeholder for missing images */
.pioneer-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 3rem;
  font-weight: 700;
}

/* Pioneer Info */
.pioneer-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.pioneer-title {
  font-size: 1.1rem;
  color: #667eea;
  margin-bottom: 1rem;
  font-weight: 500;
}

.pioneer-description {
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  opacity: 0.9;
}

/* Social Links */
.pioneer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pioneer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  border: 2px solid rgba(102, 126, 234, 0.3);
  color: #e2e8f0;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pioneer-social a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Carousel Navigation */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(102, 126, 234, 0.3);
  color: #e2e8f0;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  color: white;
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-50%);
  box-shadow: none;
  color: #e2e8f0;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scale(1.2);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.carousel-dot:hover:not(.active) {
  background: rgba(102, 126, 234, 0.5);
}

/* Desktop Grid Layout */
.pioneers-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Animation */
.pioneer-card {
  animation: fadeInScale 0.6s ease-out forwards;
  opacity: 0;
}

.pioneer-card:nth-child(1) { animation-delay: 0.1s; }
.pioneer-card:nth-child(2) { animation-delay: 0.2s; }
.pioneer-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Styles */
@media (min-width: 769px) {
  .pioneers-carousel {
    display: none !important;
  }
  
  .pioneers-grid {
    display: grid !important;
  }
  
  .carousel-dots {
    display: none;
  }
}

@media (max-width: 768px) {
  .pioneers {
    padding: 4rem 0;
    overflow-x: hidden;
  }
  
  .pioneers-grid {
    display: none;
  }
  
  .section-title {
    font-size: 2.2rem !important;
    padding: 0 1rem;
  }
  
  .pioneers-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .pioneers-carousel {
    padding: 0 45px;
    overflow: hidden;
  }
  
  .pioneer-card {
    padding: 0 10px;
  }
  
  .pioneer-card-inner {
    padding: 2rem 1.5rem;
    max-width: 100%;
    width: 100%;
  }
  
  .pioneer-image {
    width: 120px;
    height: 120px;
  }
  
  .pioneer-name {
    font-size: 1.4rem;
  }
  
  .pioneer-title {
    font-size: 1rem;
  }
  
  .pioneer-description {
    font-size: 0.95rem;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .pioneer-social a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Animation for grid cards on desktop */
.pioneers-grid .pioneer-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.pioneers-grid .pioneer-card:nth-child(1) { animation-delay: 0.1s; }
.pioneers-grid .pioneer-card:nth-child(2) { animation-delay: 0.2s; }
.pioneers-grid .pioneer-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
