/* ===== MODERN WHY JOIN US SECTION ===== */
.why-join-section {
  background: var(--bg);
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}

html[data-theme='dark'] .why-join-section {
  background: var(--bg);
}

.why-join-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== SECTION HEADER ===== */
.why-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  animation: tagBounce 3s ease-in-out infinite;
}

html[data-theme='dark'] .section-tag {
  background: linear-gradient(135deg, #f472b6, #ec4899);
}

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

.section-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

html[data-theme='dark'] .section-title {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
}

html[data-theme='dark'] .section-subtitle {
  color: #94a3b8;
}

/* ===== WHY CARDS GRID ===== */
.why-join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.why-card {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(99, 102, 241, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

html[data-theme='dark'] .why-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Decorative Shape */
.card-shape {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.1;
  transition: all 0.5s ease;
}

.shape-glow {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(60px);
}

.shape-glow-1 { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.shape-glow-2 { background: linear-gradient(135deg, #10b981, #059669); }
.shape-glow-3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.shape-glow-4 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.why-card:hover .card-shape {
  opacity: 0.2;
  transform: scale(1.2);
}

/* Icon Container */
.card-icon-container {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.card-icon-bg {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

html[data-theme='dark'] .card-icon-bg {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.card-icon-bg svg {
  color: white;
  position: relative;
  z-index: 2;
}

.why-card:hover .card-icon-bg {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.5);
}

/* Card Content */
.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  position: relative;
}

html[data-theme='dark'] .card-title {
  color: #f1f5f9;
}

.card-description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

html[data-theme='dark'] .card-description {
  color: #94a3b8;
}

/* Card Number */
.card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.1;
  transition: all 0.3s ease;
}

html[data-theme='dark'] .card-number {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-card:hover .card-number {
  opacity: 0.2;
  transform: scale(1.1);
}

/* Card Hover Effect */
.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
}

html[data-theme='dark'] .why-card:hover {
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

/* ===== STATS SECTION ===== */
.why-stats {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
  border-radius: 2rem;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
}

html[data-theme='dark'] .why-stats {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #8b5cf6 100%);
}

.why-stats::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="statsPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url("#statsPattern#statsPattern")"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.stat-item {
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal="pop"] {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="pop"].is-visible {
  opacity: 1;
  transform: scale(1);
}

[data-reveal="fade"] {
  opacity: 0;
  transition: opacity 0.8s ease;
}

[data-reveal="fade"].is-visible {
  opacity: 1;
}

/* Stagger delays for cards */
[data-delay="100"].is-visible { transition-delay: 0.1s; }
[data-delay="200"].is-visible { transition-delay: 0.2s; }
[data-delay="300"].is-visible { transition-delay: 0.3s; }
[data-delay="400"].is-visible { transition-delay: 0.4s; }

/* Counter Animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-number.counting {
  animation: countUp 0.5s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .why-join-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .why-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .why-join-section {
    padding: 4rem 1rem;
  }
  
  .why-stats {
    grid-template-columns: 1fr;
  }
}