/* ============================================
   FAQ PAGE - CLEAN & OPTIMIZED
   Uses Contact page background
   ============================================ */

:root {
  --faq-cyan: #00FFFF;
  --faq-white: #ffffff;
  --faq-gray: #9ca3af;
  --faq-light-gray: #d1d5db;
  --faq-border: rgba(0, 255, 255, 0.1);
  --faq-card: #0f0f11;
  --faq-black: #000000;
}

/* Background (same as Contact page) */
.contact-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

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

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Base Styles */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--faq-cyan), transparent);
  opacity: 0.5;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--faq-border), transparent);
}

.page-header h1 {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 24px;
  color: var(--faq-white);
  letter-spacing: -2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--faq-white), var(--faq-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.3rem;
  color: var(--faq-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--faq-white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.underline {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--faq-cyan), transparent);
  margin: 0 auto;
  position: relative;
}

.underline::before,
.underline::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--faq-cyan);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--faq-cyan);
}

.underline::before {
  left: 0;
}

.underline::after {
  right: 0;
}

/* ============================================
   SEARCH CONTAINER
   ============================================ */
.search-container {
  max-width: 700px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 10;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 15, 17, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid var(--faq-border);
  border-radius: 50px;
  padding: 8px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-wrapper:focus-within {
  border-color: var(--faq-cyan);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2), 0 0 60px rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  color: var(--faq-cyan);
  font-size: 1.2rem;
  margin-right: 16px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--faq-white);
  font-size: 1.1rem;
  padding: 16px 0;
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--faq-gray);
}

.search-clear {
  background: rgba(0, 255, 255, 0.1);
  border: none;
  color: var(--faq-cyan);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.search-clear.active {
  opacity: 1;
  visibility: visible;
}

.search-clear:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ============================================
   FAQ FILTER BAR
   ============================================ */
.faq-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
  padding: 0 20px;
}

.filter-btn {
  padding: 14px 28px;
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid var(--faq-border);
  border-radius: 50px;
  color: var(--faq-light-gray);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--faq-cyan-glow), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  border-radius: 50%;
}

.filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.filter-btn:hover {
  border-color: var(--faq-cyan);
  color: var(--faq-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.15);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
  border-color: var(--faq-cyan);
  color: var(--faq-cyan);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
}

/* ============================================
   FAQ CONTAINER
   ============================================ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* ============================================
   FAQ ITEMS
   ============================================ */
.faq-item {
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--faq-border);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: faqItemFadeIn 0.6s ease-out forwards;
}

@keyframes faqItemFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }
.faq-item:nth-child(6) { animation-delay: 0.35s; }
.faq-item:nth-child(7) { animation-delay: 0.4s; }
.faq-item:nth-child(8) { animation-delay: 0.45s; }
.faq-item:nth-child(9) { animation-delay: 0.5s; }
.faq-item:nth-child(10) { animation-delay: 0.55s; }

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--faq-cyan), transparent);
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateX(8px);
  box-shadow: 
    -8px 0 40px rgba(0, 255, 255, 0.1),
    0 8px 40px rgba(0, 0, 0, 0.3);
}

.faq-item:hover::before {
  transform: scaleX(1);
}

.faq-item.active {
  border-color: var(--faq-cyan);
  background: rgba(15, 15, 17, 0.9);
  box-shadow: 
    -8px 0 40px rgba(0, 255, 255, 0.15),
    0 8px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 30px rgba(0, 255, 255, 0.03);
}

.faq-item.active::before {
  transform: scaleX(1);
}

/* ============================================
   FAQ QUESTION
   ============================================ */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.faq-question h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--faq-white);
  margin: 0;
  padding-right: 40px;
  line-height: 1.5;
  transition: color 0.3s;
}

.faq-item:hover .faq-question h3 {
  color: var(--faq-cyan);
}

.faq-question i {
  font-size: 1.2rem;
  color: var(--faq-cyan);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 50%;
  padding: 8px;
}

.faq-item.active .faq-question i {
  transform: rotate(135deg);
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

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

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 32px 32px;
  opacity: 1;
}

.faq-answer p {
  color: var(--faq-light-gray);
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
}

/* ============================================
   NO RESULTS MESSAGE
   ============================================ */
.no-results {
  text-align: center;
  padding: 100px 40px;
  display: none;
  opacity: 0;
  animation: fadeInScale 0.6s ease-out forwards;
}

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

.no-results.show {
  display: block;
}

.no-results i {
  font-size: 5rem;
  color: var(--faq-cyan);
  opacity: 0.3;
  margin-bottom: 28px;
}

.no-results h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--faq-white);
  margin: 0 0 16px;
}

.no-results p {
  font-size: 1.1rem;
  color: var(--faq-gray);
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */
.faq-cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.faq-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.cta-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-main-content {
  padding-right: 2rem;
}

.cta-header h2 {
  font-size: 2.5rem;
  color: #f0f5ff;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #00ffff 0%, #00ffff 35%, #00ffff 65%, #00ffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-header p {
  font-size: 1.1rem;
  color: rgba(200, 215, 235, 0.85);
  line-height: 1.7;
  margin-bottom: 0;
}

.cta-actions-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 20, 30, 0.8) 0%, rgba(20, 25, 35, 0.8) 100%);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.cta-actions-section:hover {
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 
    0 25px 80px rgba(0, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.1rem 2.2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--faq-cyan) 0%, #00cccc 100%);
  color: #000;
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.25);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 255, 255, 0.35);
}

.secondary-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.secondary-btn:hover {
  border-color: var(--faq-cyan);
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-3px);
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(150, 170, 195, 0.9);
  font-size: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.cta-note i {
  color: var(--faq-cyan);
  font-size: 1rem;
}

/* Old button styles (keep for backward compatibility) */
.btn-faq {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--faq-cyan), #00cccc);
  border: 2px solid var(--faq-cyan);
  border-radius: 50px;
  color: var(--faq-black);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.3);
}

.btn-faq:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--faq-white);
  border-color: var(--faq-white);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--faq-cyan);
  color: var(--faq-cyan);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
  .page-header h1 {
    font-size: 3rem;
  }
  
  .cta-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-main-content {
    padding-right: 0;
  }
  
  .faq-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .faq-filter-bar::-webkit-scrollbar {
    height: 6px;
  }
  
  .faq-filter-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
  }
  
  .faq-filter-bar::-webkit-scrollbar-thumb {
    background: var(--faq-cyan);
    border-radius: 3px;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 140px 20px 60px;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .page-header p {
    font-size: 1.1rem;
  }
  
  .search-container {
    padding: 0 20px;
    margin-bottom: 40px;
  }
  
  .search-wrapper {
    padding: 6px 20px;
  }
  
  .search-input {
    font-size: 1rem;
    padding: 14px 0;
  }
  
  .faq-filter-bar {
    margin-bottom: 40px;
  }
  
  .filter-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
  
  .faq-container {
    padding: 0 20px;
  }
  
  .faq-item:hover {
    transform: translateX(0);
  }
  
  .faq-question {
    padding: 22px 24px;
  }
  
  .faq-question h3 {
    font-size: 1.05rem;
  }
  
  .faq-answer {
    padding: 0 24px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 24px 24px;
  }
  
  .faq-answer p {
    font-size: 0.98rem;
  }
  
  .faq-cta-section {
    padding: 80px 20px;
  }
  
  .cta-header h2 {
    font-size: 2rem;
  }
  
  .cta-header p {
    font-size: 1rem;
  }
  
  .cta-actions-section {
    padding: 2rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .faq-question h3 {
    font-size: 0.95rem;
  }
  
  .faq-answer p {
    font-size: 0.92rem;
  }
}
