/* FAQ Section Styles */
.faq-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background-color: var(--dark-bg);
}

.faq-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.faq-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: fadeParticles 8s infinite alternate;
}

@keyframes fadeParticles {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

.faq-glow {
  position: absolute;
  top: 30%;
  left: 10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3), transparent 70%);
  filter: blur(60px);
  animation: moveGlow 15s infinite alternate ease-in-out;
}

@keyframes moveGlow {
  0% { transform: translate(0, 0); }
  50% { transform: translate(100px, -50px); }
  100% { transform: translate(-50px, 100px); }
}

.faq-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.faq-floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  opacity: 0.15;
  filter: blur(3px);
}

.shape1 {
  top: 15%;
  left: 5%;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  animation: floatShape 20s infinite alternate ease-in-out;
}

.shape2 {
  top: 70%;
  right: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: floatShape 25s infinite alternate-reverse ease-in-out;
}

.shape3 {
  bottom: 20%;
  left: 15%;
  width: 60px;
  height: 60px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: linear-gradient(-45deg, var(--accent-color), var(--primary-color));
  animation: floatShape 18s infinite alternate ease-in-out;
}

.shape4 {
  top: 40%;
  right: 5%;
  width: 100px;
  height: 100px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: linear-gradient(135deg, var(--primary-color), transparent);
  animation: floatShape 22s infinite alternate-reverse ease-in-out;
}

@keyframes floatShape {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -20px) rotate(180deg); }
  100% { transform: translate(-20px, 30px) rotate(360deg); }
}

/* FAQ Navigation */
.faq-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
  gap: 20px;
}

.faq-nav-btn {
  position: relative;
  background: rgba(var(--card-bg-rgb), 0.5);
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-nav-btn .btn-icon {
  margin-right: 10px;
  font-size: 18px;
  color: var(--primary-color);
  transition: all 0.4s ease;
}

.faq-nav-btn .btn-text {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.faq-nav-btn .btn-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.faq-nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.2);
}

.faq-nav-btn:hover .btn-highlight {
  opacity: 1;
}

.faq-nav-btn.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.2));
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-3px);
}

.faq-nav-btn.active .btn-icon {
  color: var(--accent-color);
}

.faq-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 3px;
}

/* FAQ Tab Content */
.faq-tab-content {
  display: none;
  animation: fadeIn 0.6s ease forwards;
}

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

.faq-tab-content.active {
  display: block;
}

/* FAQ Container */
.faq-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(var(--card-bg-rgb), 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.4);
}

.faq-question {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.question-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.question-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.2));
  color: var(--primary-color);
  font-size: 18px;
  transition: all 0.4s ease;
}

.faq-item.active .question-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  transform: rotate(360deg);
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.faq-item.active .faq-question h3 {
  color: var(--primary-color);
}

.faq-toggle {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
}

.toggle-bar {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.toggle-bar:first-child {
  transform: rotate(90deg);
}

.faq-item.active .toggle-bar:first-child {
  transform: rotate(45deg);
}

.faq-item.active .toggle-bar:last-child {
  transform: rotate(-45deg);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  transition: all 0.3s ease;
}

.faq-icon i {
  color: var(--primary-color);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.faq-item:hover .faq-icon {
  background: rgba(var(--primary-rgb), 0.3);
  transform: rotate(5deg);
}

.faq-item.active .faq-icon {
  background: var(--primary-color);
}

.faq-item.active .faq-icon i {
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.answer-content {
  padding: 0 25px 25px 80px;
  color: var(--text-light);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
}

.faq-item.active .answer-content {
  opacity: 1;
  transform: translateY(0);
}

.answer-content p {
  margin-top: 0;
  margin-bottom: 15px;
}

.answer-content p:last-child {
  margin-bottom: 0;
}

.answer-content ul {
  padding-left: 20px;
  margin-top: 10px;
}

.answer-content ul li {
  margin-bottom: 10px;
  position: relative;
}

.answer-content ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* FAQ More Section */
.faq-more {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-progress {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-track {
  width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(5px);
  animation: progressGlow 2s infinite linear;
}

.progress-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.load-more-btn {
  background: transparent;
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  border-radius: 25px;
  padding: 10px 25px;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.2), transparent);
  transition: all 0.5s ease;
}

.load-more-btn:hover {
  background: rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px);
}

.load-more-btn:hover::before {
  left: 100%;
}

.load-more-btn i {
  transition: all 0.3s ease;
}

.load-more-btn:hover i {
  transform: translateY(3px);
}

/* FAQ CTA */
.faq-cta {
  text-align: center;
  margin-top: 60px;
  position: relative;
  z-index: 2;
  padding: 40px;
  background: rgba(var(--card-bg-rgb), 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: pulseGlow 3s infinite alternate;
}

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

.faq-cta p {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--text-color);
  font-weight: 500;
}

.faq-cta .glow-btn {
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.faq-cta .glow-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
  z-index: -1;
  border-radius: 30px;
  background-size: 400%;
  animation: glowingBorder 3s linear infinite;
}

@keyframes glowingBorder {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .faq-container {
    flex-direction: column;
  }
  
  .faq-visual {
    flex: 0 0 auto;
    margin-bottom: 40px;
  }
  
  .faq-brain {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-section .section-header h2 {
    font-size: 32px;
  }
  
  .faq-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .faq-tab {
    margin: 5px;
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .faq-question h3 {
    font-size: 16px;
    padding-right: 10px;
  }
  
  .faq-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .faq-navigation {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .faq-nav-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .question-content {
    gap: 10px;
  }
  
  .question-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .faq-question h3 {
    font-size: 16px;
  }
  
  .answer-content {
    padding: 0 20px 20px 65px;
  }
}

@media (max-width: 576px) {
  .faq-section {
    padding: 80px 0;
  }
  
  .faq-question {
    padding: 20px;
  }
  
  .question-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .answer-content {
    padding: 0 20px 20px 60px;
  }
  
  .faq-cta {
    padding: 30px 20px;
  }
}

/* Light Theme Adjustments */
body.light-theme .faq-section {
  background: linear-gradient(135deg, rgba(240, 245, 255, 0.95) 0%, rgba(220, 230, 250, 0.95) 100%);
}

body.light-theme .faq-particles {
  background-image: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 1px, transparent 1px);
}

body.light-theme .faq-grid-lines {
  background-image: 
    linear-gradient(to right, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
}

body.light-theme .faq-section .section-header h2 {
  color: #14253d;
}

body.light-theme .faq-section .section-subtitle {
  color: rgba(20, 37, 61, 0.7);
}

body.light-theme .faq-question h3 {
  color: #14253d;
}

body.light-theme .faq-answer {
  color: rgba(20, 37, 61, 0.7);
}

body.light-theme .faq-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

body.light-theme .stat-card {
  background: rgba(255, 255, 255, 0.7);
}

body.light-theme .stat-label {
  color: rgba(20, 37, 61, 0.7);
}

body.light-theme .faq-tab {
  background: rgba(255, 255, 255, 0.7);
  color: rgba(20, 37, 61, 0.7);
}

body.light-theme .faq-tab.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0.2) 100%);
  color: #14253d;
}

body.light-theme .faq-cta p {
  color: rgba(20, 37, 61, 0.8);
}

/* Interactive Hover Effects */
.faq-item:hover .faq-icon i {
  animation: iconSpin 1s ease;
}

.faq-item.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.1) 100%);
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--accent-rgb), 0.05) 100%);
}

.faq-item.active .faq-icon {
  background: rgba(var(--primary-rgb), 0.3);
  transform: rotate(10deg);
}

/* Highlight Effect */
.highlight-text {
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: rgba(var(--primary-rgb), 0.2);
  z-index: -1;
  transform: skewX(-5deg);
}

/* Typing Cursor Effect */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--primary-color);
  margin-left: 5px;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Futuristic Scrollbar */
.faq-content::-webkit-scrollbar {
  width: 6px;
}

.faq-content::-webkit-scrollbar-track {
  background: rgba(20, 30, 48, 0.5);
  border-radius: 3px;
}

.faq-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 3px;
}

.faq-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #5a9aff, #9d4eff);
}

/* Accessibility Improvements */
.faq-item:focus-within {
  outline: 2px solid var(--primary-color);
}

.faq-tab:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .faq-section {
    background: white !important;
    color: black !important;
  }
  
  .faq-bg-elements,
  .faq-visual,
  .faq-tabs,
  .faq-cta {
    display: none !important;
  }
  
  .faq-item {
    page-break-inside: avoid;
    border: 1px solid #ddd !important;
    background: white !important;
    margin-bottom: 15px !important;
  }
  
  .faq-answer {
    max-height: none !important;
    display: block !important;
    padding: 15px !important;
  }
}