/* Solutions Page Premium Stylesheet */

/* Hero Ambient Glows */
.solutions-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px 0;
}

.ambient-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.ambient-glow-2 {
  position: absolute;
  bottom: 0;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 178, 0.06) 0%, transparent 75%);
  pointer-events: none;
  filter: blur(60px);
}

/* Gradients */
.text-gradient-cyan-green {
  background: linear-gradient(135deg, var(--color-neon-cyan) 0%, var(--color-neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Solution Category Cards Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.solution-card {
  position: relative;
  background: rgba(10, 22, 52, 0.45);
  border: 1px solid rgba(0, 217, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--glass-shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 178, 0.3);
  box-shadow: 0 12px 40px rgba(0, 255, 178, 0.08);
}

.solution-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neon-cyan);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.solution-card:hover .card-icon {
  background: rgba(0, 255, 178, 0.15);
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
}

.solution-card h3 {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-card .card-summary {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Hover Expanded Detail Panel */
.card-hover-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 11, 33, 0.98);
  border-radius: inherit;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 255, 178, 0.4);
  box-shadow: inset 0 0 20px rgba(0, 255, 178, 0.05);
  transform: scale(0.98);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.solution-card:hover .card-hover-panel {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.card-hover-panel .panel-section {
  font-size: 0.82rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-hover-panel .panel-section strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.text-problem { color: #ff6b6b; }
.text-solution { color: var(--color-neon-cyan); }
.text-result { color: var(--color-neon-green); }

/* Glowing Connected Mini-Cards (Modules) */
.modules-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.mini-card {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.15);
  color: var(--color-neon-cyan);
  font-weight: 500;
  transition: all 0.25s ease;
}

.mini-card:hover {
  background: rgba(0, 255, 178, 0.1);
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 178, 0.2);
}

.use-case-note {
  font-size: 0.78rem;
  color: var(--text-very-muted);
  border-left: 2px solid var(--color-neon-cyan);
  padding-left: 8px;
  margin-bottom: 12px;
}

/* Problem-Solution-Result Comparison Section */
.comparison-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comparison-pane {
  background: rgba(10, 22, 52, 0.35);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.pane-problem {
  border: 1px solid rgba(239, 68, 68, 0.15);
}
.pane-problem:hover {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.05);
}

.pane-solution {
  border: 1px solid rgba(0, 217, 255, 0.25);
  background: rgba(10, 22, 52, 0.55);
}
.pane-solution:hover {
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.1);
}

.pane-result {
  border: 1px solid rgba(0, 255, 178, 0.25);
}
.pane-result:hover {
  border-color: rgba(0, 255, 178, 0.5);
  box-shadow: 0 8px 30px rgba(0, 255, 178, 0.1);
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pane-title i {
  font-size: 1.4rem;
}
.pane-problem .pane-title i { color: #ff6b6b; }
.pane-solution .pane-title i { color: var(--color-neon-cyan); }
.pane-result .pane-title i { color: var(--color-neon-green); }

.pane-title h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
  font-weight: 800;
}

.pane-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pane-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pane-list li i {
  margin-top: 4px;
  flex-shrink: 0;
}

.pane-problem li i { color: #ff6b6b; }
.pane-solution li i { color: var(--color-neon-cyan); }
.pane-result li i { color: var(--color-neon-green); }

/* Industry Solutions Grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.industry-card {
  background: rgba(10, 22, 52, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
}

.industry-card:hover {
  border-color: rgba(0, 217, 255, 0.2);
  transform: translateY(-3px);
  background: rgba(10, 22, 52, 0.5);
}

.industry-card .ind-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.industry-card .ind-header i {
  color: var(--color-neon-cyan);
  font-size: 1.15rem;
}

.industry-card .ind-header h4 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0;
}

.ind-detail {
  font-size: 0.82rem;
  margin-bottom: 8px;
  line-height: 1.45;
}

.ind-detail span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-very-muted);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

/* Why Our Solutions Work */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 255, 178, 0.05);
  border: 1px solid rgba(0, 255, 178, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neon-green);
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Accordion FAQs */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(10, 22, 52, 0.45);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover, .faq-item.active {
  border-color: rgba(0, 217, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.05);
}

.faq-head {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-head h4 {
  font-size: 0.98rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
  padding-right: 15px;
}

.faq-head i {
  color: var(--color-neon-cyan);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-head i {
  transform: rotate(180deg);
  color: var(--color-neon-green);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: rgba(5, 12, 34, 0.5);
  border-top: 1px solid transparent;
}

.faq-item.active .faq-body {
  max-height: 1000px; /* arbitrary height to slide open */
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0);
  border-top: 1px solid rgba(0, 217, 255, 0.08);
}

.faq-content {
  padding: 18px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-left: 3px solid var(--color-neon-green);
  margin: 0;
}

/* Call to Action Glowing Backdrop */
.solutions-cta {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 22, 47, 0.8) 0%, rgba(3, 10, 31, 0.9) 100%);
  border: 1px solid rgba(0, 255, 178, 0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  border-radius: 20px;
  padding: 60px 40px;
  overflow: hidden;
}

.solutions-cta .cta-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 178, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .comparison-container {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .solutions-cta {
    padding: 40px 20px;
  }
}

/* Responsive hardening for solution-specific layouts */
.solutions-grid,
.industry-grid,
.features-grid,
.comparison-container {
  max-width: 100%;
}

.solutions-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.industry-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.solution-card,
.comparison-pane,
.industry-card,
.feature-item,
.solutions-cta {
  min-width: 0;
}

.ambient-glow-1,
.ambient-glow-2,
.solutions-cta .cta-glow {
  max-width: 100vw;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .comparison-container,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .solutions-hero {
    padding-top: 118px;
    padding-bottom: 58px;
  }

  .solution-card {
    min-height: auto;
    padding: 24px;
  }

  .comparison-pane,
  .industry-card {
    padding: 22px;
  }

  .feature-item {
    align-items: flex-start;
  }

  .solutions-cta {
    padding: 28px 20px;
  }
}

@media (max-width: 420px) {
  .solutions-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .solution-card,
  .comparison-pane,
  .industry-card,
  .solutions-cta {
    padding: 18px;
  }

  .pane-title {
    align-items: flex-start;
  }
}
