/* CSS Variables for Problem-Solution section */
:root {
  --accent-color-rgb: 235, 153, 88; /* RGB values of the accent color (#eb9958) */
  --current-text-muted-rgb: 160, 160, 160; /* Default RGB values for muted text */
}

/* Basic styles for the development-support solution */
.development-support-specific {
  color: var(--accent-color);
}

/* Badge styles for pricing plans */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.essential {
  background-color: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #28a745;
}

.badge.development {
  background-color: rgba(0, 123, 255, 0.15);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
}

.badge.partnership {
  background-color: rgba(111, 66, 193, 0.15);
  border: 1px solid rgba(111, 66, 193, 0.3);
  color: #6f42c1;
}

/* Plan comparison table */
.plan-comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.plan-comparison th,
.plan-comparison td {
  padding: 1rem;
  border: 1px solid var(--current-border);
  text-align: center;
}

.plan-comparison th {
  background-color: var(--bg-secondary);
  font-weight: 600;
}

.plan-comparison .feature-name {
  text-align: left;
  font-weight: 500;
}

.plan-comparison .check {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* Custom feature icons */
.support-feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;  color: var(--accent-color);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* FAQ specific styles */
.faq-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.faq-content {
  margin-bottom: 2rem;
  color: rgba(var(--current-text-muted-rgb, 160, 160, 160), 0.85);
}

/* Hero section specific styles */
.hero-image-container {
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
  max-height: 500px;
  box-shadow: var(--current-shadow);
  margin-bottom: 1.5rem;
  aspect-ratio: 3/2;
}

.hero-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  display: block;
  transition: transform 0.3s ease;
}

.hero-image-container:hover .hero-image {
  transform: scale(1.02);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

/* Service card styles */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--current-border);
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--bg-secondary);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--current-shadow);
}

.service-card .card-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.service-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
  transform: scale(1.1);
}

/* Problem-Solution section styles */
.section-badge {
  display: inline-block;
  background-color: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header .section-subtitle {
  margin-top: 1rem;
}

.section-divider {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
}

.section-divider span {
  height: 4px;
  width: 70px;
  background: var(--accent-color);
  border-radius: 2px;
  position: relative;
}

.section-divider span::before, 
.section-divider span::after {
  content: '';
  position: absolute;
  height: 4px;
  width: 4px;
  background: var(--accent-color);
  border-radius: 50%;
  top: 0;
}

.section-divider span::before {
  left: -10px;
}

.section-divider span::after {
  right: -10px;
}

/* Standardized section subtitle styling */
.section-subtitle {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: rgba(var(--current-text-muted-rgb, 160, 160, 160), 0.85);
  line-height: 1.7;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Hero subtitle - left aligned for hero sections */
.hero-subtitle {
  color: rgba(var(--current-text-muted-rgb, 160, 160, 160), 0.85);
  line-height: 1.6;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Lead text - for important paragraphs */
.lead {
  color: rgba(var(--current-text-muted-rgb, 160, 160, 160), 0.85);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Additional utility classes for subtitle variations */
.subtitle-sm {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(var(--current-text-muted-rgb, 160, 160, 160), 0.8);
}

.subtitle-lg {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(var(--current-text-muted-rgb, 160, 160, 160), 0.9);
}

/* Problem-Solution section specific styles */
.problem-solution-container {
  position: relative;
}

/* Desktop connector styles */
.solution-connector {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
}

.connector-arrow {
  font-size: 2.5rem;
  color: var(--accent-color);
  background-color: var(--bg-primary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--current-shadow);
  border: 3px solid var(--accent-color);
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

.connector-arrow:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.3);
  transition: all 0.3s ease;
}

/* Mobile connector styles */
.mobile-connector {
  margin: 2rem 0;
}

.mobile-connector .connector-arrow {
  font-size: 2rem;
  margin: 0 auto;
}

/* Small mobile connector */
  .mobile-connector .connector-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

.problem-card, .solution-card {
  height: 100%;
  border-radius: 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--current-border);
  box-shadow: var(--current-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.problem-card:hover, .solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-top-accent {
  height: 6px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.card-top-accent.problem {
  background: linear-gradient(90deg, #dc3545, #e35d6a);
}

.card-top-accent.solution {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-dark));
}

.card-inner {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.problem-card-header, .solution-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.problem-icon-wrapper, .solution-icon-wrapper {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.75rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.problem-icon-wrapper {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.solution-icon-wrapper {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
}

.problem-card-header h3, .solution-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.problem-list, .solution-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.problem-item, .benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  height: calc(25% - 0.9375rem);
}

.problem-item:last-child, .benefit-item:last-child {
  margin-bottom: 0;
}

.problem-item {
  background-color: rgba(220, 53, 69, 0.03);
  border: 1px solid rgba(220, 53, 69, 0.08);
}

.benefit-item {
  background-color: rgba(var(--accent-color-rgb), 0.03);
  border: 1px solid rgba(var(--accent-color-rgb), 0.08);
}

.problem-item:hover, .benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.problem-item:hover {
  background-color: rgba(220, 53, 69, 0.05);
}

.benefit-item:hover {
  background-color: rgba(var(--accent-color-rgb), 0.05);
}

.problem-item i, .benefit-item i {
  flex-shrink: 0;
  margin-right: 1rem;
  font-size: 1.5rem;
  position: relative;
  top: 0.25rem;
}

.problem-content, .benefit-content {
  flex: 1;
}

.problem-content h4, .benefit-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.problem-content p, .benefit-content p {
  margin: 0;
  color: rgba(var(--current-text-muted-rgb, 160, 160, 160), 0.75);
  font-size: 0.95rem;
}

.solution-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(var(--current-text-muted-rgb, 160, 160, 160), 0.85);
}

/* CTA button styling */
.problem-solution .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 2rem;
  box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.problem-solution .btn-primary:hover {
  background-color: var(--accent-color-dark);
  border-color: var(--accent-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.4);
}

/* Consistent section padding for all sections */
.section {
  padding: 5rem 0;
}

/* Responsive adjustments for problem-solution section */
@media (max-width: 991.98px) {
  .section {
    padding: 4rem 0;
  }
  
  .problem-solution-section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }
  
  .problem-card, .solution-card {
    margin-bottom: 2rem;
  }
  
  .card-inner {
    padding: 1.5rem;
  }
  
  .problem-card-header, .solution-card-header {
    flex-direction: row;
    text-align: left;
    margin-bottom: 1.5rem;
  }
  
  .problem-icon-wrapper, .solution-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-bottom: 0;
  }
  
  .problem-item, .benefit-item {
    padding: 1rem;
    height: auto;
  }
  
  /* Mobile connector styling */
  .mobile-connector {
    order: 2; /* Place between the cards */
  }
  
  .col-lg-5:first-child {
    order: 1;
  }
  
  .col-lg-5:last-child {
    order: 3;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }
  
  .problem-solution-section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .pricing-card {
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .problem-solution {
    padding: 1.5rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .hero-image-container {
    max-height: 350px;
  }
  
  .problem-item, .benefit-item {
    padding: 1rem 0.75rem;
  }
  
  .problem-content h4, .benefit-content h4 {
    font-size: 1rem;
  }
  
  .problem-content p, .benefit-content p {
    font-size: 0.9rem;
  }
  
  .solution-intro {
    font-size: 1rem;
  }
  
  .section-divider span {
    width: 50px;
    height: 3px;
  }
  
  .section-divider {
    margin: 1rem auto;
  }
  
  /* Mobile connector adjustments */
  .mobile-connector .connector-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero-tech-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .hero-image-container {
    max-height: 250px;
  }
  
  /* Improve stacking of cards on mobile */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Adjust pricing tables for mobile */
  .plan-comparison {
    font-size: 0.85rem;
  }
  
  .plan-comparison th,
  .plan-comparison td {
    padding: 0.75rem 0.5rem;
  }
  
  /* Problem-solution section mobile improvements */
  .problem-solution-section {
    padding: 2.5rem 0;
  }
    .section-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
  }
  
  .card-inner {
    padding: 1.25rem;
  }
  
  .problem-card-header, .solution-card-header {
    margin-bottom: 1rem;
  }
  
  .problem-icon-wrapper, .solution-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    margin-right: 0.75rem;
  }
  
  .problem-card-header h3, .solution-card-header h3 {
    font-size: 1.25rem;
  }
  
  .problem-item, .benefit-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .problem-item i, .benefit-item i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
  }
  
  .problem-solution .btn-primary {
    width: 100%;
    padding: 0.6rem 1.5rem;
  }
}

/* Ensure all sections follow standardized header structure */
.section .text-center.mb-5 {
  margin-bottom: 3rem !important;
}

.section .text-center.mb-5 .section-title {
  margin-bottom: 1rem;
}

.section .text-center.mb-5 .section-subtitle {
  margin-top: 1rem;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
a:focus, button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Keyboard navigation improvements */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(235, 153, 88, 0.4);
}

/* Keyboard navigation focus styles */
.keyboard-navigation *:focus {
  outline: 2px solid var(--accent-color) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px rgba(100, 80, 200, 0.3) !important;
}

/* Fix focus styles for interactive elements */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}

/* Improve performance with hardware acceleration */
.pricing-card, .benefit-card, .hero-image-container, .service-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Add prefers-reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles for better printing experience */
@media print {
  body {
    background-color: white !important;
    color: black !important;
  }
  
  .navbar, .footer, .cta-section, .hero-actions, .theme-toggle {
    display: none !important;
  }
  
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hero-title, .section-title, h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }
  
  p, li {
    color: #333 !important;
  }
  
  .hero-image-container, .service-card, .pricing-card, .testimonial-card {
    break-inside: avoid;
  }
  
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  
  img {
    max-width: 100% !important;
  }
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--accent-color-dark);
}

.scroll-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.5);
}

@media (max-width: 575.98px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}

/* Footer logo fix */
.footer-logo img {
  max-width: 180px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.footer {
  padding: 3rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--current-border);
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.footer-links a {
  color: var(--current-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}
