/* ===== MODERN FAQ SECTION ===== */
.faq-section {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 50%, #f5f3ff 100%);
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}

html[data-theme='dark'] .faq-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  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(139, 92, 246, 0.3);
  animation: tagFloat 3s ease-in-out infinite;
}

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

.section-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6b21a8 0%, #8b5cf6 50%, #a78bfa 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, #c084fc 0%, #a78bfa 50%, #8b5cf6 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;
}

/* ===== FAQ GRID ===== */
.faq-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 4rem;
}

.faq-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 2px solid rgba(139, 92, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

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

.faq-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

html[data-theme='dark'] .faq-card:hover {
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.2);
}

/* FAQ Icon */
.faq-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 0;
}

html[data-theme='dark'] .faq-icon {
  background: linear-gradient(135deg, #a78bfa, #c084fc);
}

.faq-card:hover .faq-icon {
  transform: rotate(360deg) scale(1.05);
}

.faq-icon svg {
  color: white;
  width: 20px;
  height: 20px;
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: color 0.3s ease;
  gap: 1rem;
}

.question-text {
  flex: 1;
}

.faq-question:hover {
  color: #8b5cf6;
}

.faq-toggle {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

html[data-theme='dark'] .faq-toggle {
  background: linear-gradient(135deg, #334155, #475569);
}

.faq-toggle svg {
  color: #6b7280;
  transition: transform 0.3s ease;
}

html[data-theme='dark'] .faq-toggle svg {
  color: #94a3b8;
}

.faq-card.active .faq-toggle {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  transform: rotate(45deg);
}

.faq-card.active .faq-toggle svg {
  color: white;
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 0 0 60px;
  opacity: 0;
}

.faq-card.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
  padding-bottom: 0;
  opacity: 1;
}

.faq-answer p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

html[data-theme='dark'] .faq-answer p {
  color: #94a3b8;
}

/* ===== FAQ CTA ===== */
.faq-cta {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c084fc 100%);
  border-radius: 2rem;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

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

.faq-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="faqPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url("#faqPattern#faqPattern")"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  animation: ctaIconFloat 3s ease-in-out infinite;
}

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

.cta-icon svg {
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.faq-cta h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.faq-cta p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.faq-cta-btn.primary {
  background: white;
  color: #8b5cf6;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.faq-cta-btn.primary:hover {
  background: #f5f3ff;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
  color: #8b5cf6;
  text-decoration: none;
}

.faq-cta-btn.primary svg {
  transition: transform 0.3s ease;
}

.faq-cta-btn.primary:hover svg {
  transform: translateX(3px);
}

.faq-cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.faq-cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-3px);
  color: white;
  text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .faq-section {
    padding: 4rem 1rem;
  }
  
  .faq-card {
    padding: 1.5rem;
  }
  
  .faq-question {
    font-size: 1.1rem;
  }
  
  .faq-answer p {
    font-size: 1rem;
  }
  
  .faq-cta {
    padding: 2.5rem 1.5rem;
  }
  
  .faq-cta h3 {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .faq-cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .faq-answer {
    padding-left: 0;
  }
  
  .faq-cta h3 {
    font-size: 1.6rem;
  }
  
  .faq-cta p {
    font-size: 1rem;
  }
  
  .cta-icon {
    width: 65px;
    height: 65px;
  }
  
  .cta-icon svg {
    width: 36px;
    height: 36px;
  }
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal="pop"] {
  opacity: 0;
  transform: scale(0.95);
  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 */
[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; }