/* ==========================================================================
   Sectors Page - Dedicated Stylesheet (sectors.css)
   Built with high-fidelity glassmorphism, responsive grids, and smooth animations.
   ========================================================================== */

/* 1. Page Background & Backdrop Stars Layout */
.sectors-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--bg-color-main);
  overflow: hidden;
  pointer-events: none;
}

/* Radiant glow backdrops for ambient high-tech feeling */
.sectors-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(218, 255, 156, 0.08) 0%, rgba(5, 5, 5, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
}

.sectors-glow-secondary {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(65, 105, 225, 0.05) 0%, rgba(5, 5, 5, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* Overriding some layout configurations on the body for a unified experience */
body {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   2. Sectors Hero Header Section
   ========================================================================== */
.sectors-hero {
  padding: 10rem 0 4rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.sectors-hero .badge {
  margin-bottom: 1.5rem;
}

.sectors-hero-title {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

.sectors-hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   3. Sectors Card Grid
   ========================================================================== */
.sectors-grid-section {
  padding: 2rem 0 6rem 0;
  position: relative;
  z-index: 2;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

/* Premium Card Design with Background scaling & glass overlay */
.sector-card {
  position: relative;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sector-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

/* Sleek dark gradient overlay that allows the image to show beautifully but keeps text legible */
.sector-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.2) 100%);
  transition: background 0.4s ease;
  z-index: 1;
}

/* Neon Green Stat Badge */
.sector-card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  background-color: var(--color-green-neon);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(218, 255, 156, 0.3);
  transition: transform 0.3s ease;
}

.sector-card-content {
  position: relative;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sector-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-green-neon);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.sector-card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  opacity: 0.9;
  transition: color 0.3s ease;
}

/* Hover Interactive Effects */
.sector-card:hover {
  transform: translateY(-8px);
  border-color: rgba(218, 255, 156, 0.35);
  box-shadow: 0 15px 35px rgba(218, 255, 156, 0.1), 0 5px 15px rgba(0, 0, 0, 0.6);
}

.sector-card:hover .sector-card-bg {
  transform: scale(1.08);
}

.sector-card:hover .sector-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.sector-card:hover .sector-card-badge {
  transform: scale(1.05);
}

/* ==========================================================================
   4. FAQ Accordion Section
   ========================================================================== */
.sectors-faq-section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-color);
}

.faq-row-layout {
  display: flex;
  gap: 4rem;
}

.faq-left-col {
  flex: 1;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.faq-right-col {
  flex: 1.5;
}

.faq-left-col .badge {
  margin-bottom: 1.5rem;
}

.faq-section-title {
  font-family: var(--font-header);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.faq-section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 420px;
}

.faq-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-green-neon);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.faq-contact-link svg {
  transition: transform 0.2s ease;
}

.faq-contact-link:hover {
  border-bottom-color: var(--color-green-neon);
}

.faq-contact-link:hover svg {
  transform: translate(2px, -2px);
}

/* Accordion Design Rules */
.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  background-color: var(--bg-color-card);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-primary);
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

.accordion-num {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collapsible body mechanics - smoothly transitions heights */
.accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-body {
  padding: 0 1.5rem 1.5rem 4.1rem; /* Indents body content past the number column */
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Accordion Active / Opened states */
.accordion-item.open {
  border-color: rgba(218, 255, 156, 0.25);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.accordion-item.open .accordion-header {
  background-color: rgba(255, 255, 255, 0.02);
}

.accordion-item.open .accordion-num {
  color: var(--color-green-neon);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: var(--color-green-neon);
}

.accordion-header:hover .accordion-title {
  color: var(--color-green-neon);
}

/* ==========================================================================
   5. Centered Glassmorphic CTA Card
   ========================================================================== */
.sectors-cta-section {
  padding: 6rem 0 8rem 0;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-glass-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4rem 3rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Glowing card outline effect */
.cta-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-green-neon), transparent);
  opacity: 0.7;
}

.cta-card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(218, 255, 156, 0.06) 0%, rgba(5, 5, 5, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-card-title {
  font-family: var(--font-header);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.cta-card-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto 2.5rem auto;
}

/* High-tech glow trial button */
.cta-card-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-green-neon);
  color: #000000;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(218, 255, 156, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-card-button svg {
  transition: transform 0.3s ease;
}

.cta-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(218, 255, 156, 0.55);
}

.cta-card-button:hover svg {
  transform: translate(3px, -3px);
}

.cta-card-disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
}

/* ==========================================================================
   6. Responsive Layout Adjustments (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .sectors-hero-title {
    font-size: 3rem;
  }
  
  .sectors-grid {
    gap: 1.5rem;
  }
  
  .sector-card {
    height: 380px;
    padding: 2rem;
  }
  
  .faq-row-layout {
    gap: 2.5rem;
  }
  
  .faq-section-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 800px) {
  .sectors-hero {
    padding-top: 8rem;
  }
  
  .sectors-grid {
    grid-template-columns: 1fr; /* Single column card stack */
    max-width: 580px;
    margin: 0 auto;
  }
  
  .faq-row-layout {
    flex-direction: column; /* Stack left and right column on FAQ */
    gap: 3rem;
  }
  
  .faq-left-col {
    position: static;
    text-align: center;
  }
  
  .faq-section-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .sectors-hero-title {
    font-size: 2.3rem;
  }
  
  .sectors-hero-subtitle {
    font-size: 1rem;
  }
  
  .sector-card {
    height: 350px;
    padding: 1.5rem;
  }
  
  .sector-card-title {
    font-size: 1.5rem;
  }
  
  .faq-section-title {
    font-size: 1.8rem;
  }
  
  .accordion-header {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .accordion-title {
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 0 1.25rem 1.25rem 2.8rem;
    font-size: 0.9rem;
  }
  
  .cta-card-title {
    font-size: 1.8rem;
  }
  
  .cta-glass-card {
    padding: 3rem 1.5rem;
  }
  
  .cta-card-button {
    width: 100%;
    justify-content: center;
  }
}
