/* Service Page Enhancement Styles */
/* Version: 1.0.0 | Date: 2025-10-04 */

/* ============================================
   SERVICE PAGE HERO SECTIONS
   ============================================ */

.service-hero-modern {
  background: linear-gradient(135deg, #1a237e 0%, #667eea 50%, #764ba2 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.service-hero-modern h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.service-hero-modern .lead {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* ============================================
   ROI CALCULATOR SECTION
   ============================================ */

.roi-calculator-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 3px solid #667eea;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
  margin: 3rem 0;
}

.roi-calculator-card h2 {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 2rem;
}

.roi-input-group {
  margin-bottom: 1.5rem;
}

.roi-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.roi-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s;
  font-family: inherit;
}

.roi-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.roi-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #667eea, #764ba2);
  outline: none;
  -webkit-appearance: none;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #667eea;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.roi-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #667eea;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.roi-results {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.roi-value {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 1rem 0;
}

.roi-metric {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.roi-metric:first-child {
  border-top: none;
}

/* ============================================
   CASE STUDY CARDS
   ============================================ */

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.case-study-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.case-study-card-modern:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border-color: #667eea;
}

.case-study-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2rem;
  position: relative;
}

.case-study-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%);
}

.case-study-company {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.case-study-industry {
  font-size: 0.875rem;
  opacity: 0.9;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem;
  background: #f8f9fa;
}

.metric-box {
  text-align: center;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-description {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.case-study-content {
  padding: 2rem;
}

.case-study-quote {
  font-style: italic;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.case-study-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: #667eea;
  opacity: 0.3;
  font-family: Georgia, serif;
}

.case-study-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #667eea;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ============================================
   COMPARISON TABLES
   ============================================ */

.comparison-table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin: 2rem 0;
}

.comparison-table-modern thead {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.comparison-table-modern th {
  padding: 1.5rem;
  font-weight: 700;
  text-align: left;
  font-size: 1rem;
}

.comparison-table-modern td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
  transition: background-color 0.2s;
}

.comparison-table-modern tbody tr:hover td {
  background-color: #f9fafb;
}

.comparison-table-modern tbody tr:last-child td {
  border-bottom: none;
}

.comparison-checkmark {
  color: #10b981;
  font-size: 1.5rem;
}

.comparison-cross {
  color: #ef4444;
  font-size: 1.5rem;
}

/* ============================================
   TECH STACK BADGES
   ============================================ */

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tech-badge {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  cursor: default;
}

.tech-badge:hover {
  border-color: #667eea;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tech-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-accordion-modern {
  margin: 3rem 0;
}

.faq-item-modern {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item-modern:hover {
  border-color: #667eea;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.faq-question:hover {
  color: #667eea;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-item-modern.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-item-modern.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   PRICING COMPARISON
   ============================================ */

.pricing-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-tier-card {
  background: white;
  border: 3px solid #e5e7eb;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.pricing-tier-card.featured {
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.pricing-tier-card:not(.featured):hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: #667eea;
}

.pricing-badge-featured {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pricing-tier-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
}

.pricing-tier-price {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.pricing-tier-period {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pricing-feature-item {
  padding: 0.75rem 0;
  color: #4b5563;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-feature-item::before {
  content: '✓';
  color: #10b981;
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .service-hero-modern {
    padding: 80px 0 60px;
  }

  .service-hero-modern h1 {
    font-size: 2rem;
  }

  .service-hero-modern .lead {
    font-size: 1.1rem;
  }

  .roi-calculator-card {
    padding: 1.5rem;
  }

  .roi-value {
    font-size: 2rem;
  }

  .case-study-metrics {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .metric-number {
    font-size: 2rem;
  }

  .pricing-comparison-grid {
    grid-template-columns: 1fr;
  }

  .pricing-tier-card.featured {
    transform: none;
  }

  .tech-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}
