/* ===== SERVICE PAGE IMPROVEMENTS ===== */
/* Modern, interactive service pages with animations and better visual hierarchy */

/* Service Hero Section */
.service-hero {
  background: linear-gradient(135deg, var(--navy, #0A2342) 0%, var(--slate, #2C3E50) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.service-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--s-7, 48px) 0;
}

.service-icon {
  margin: 0 auto var(--s-5, 32px);
}

.icon-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.icon-placeholder:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.service-hero h1 {
  color: white;
  margin-bottom: var(--s-4, 24px);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--s-6, 40px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.key-benefits {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2, 12px);
  padding: var(--s-5, 32px);
  margin-bottom: var(--s-5, 32px);
  backdrop-filter: blur(10px);
}

.key-benefits h3 {
  color: var(--emerald, #2ECC71);
  margin-bottom: var(--s-3, 16px);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-2, 12px);
  text-align: left;
}

.benefits-list li {
  padding-left: 32px;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald, #2ECC71);
  font-weight: 700;
  font-size: 1.2rem;
}

.service-actions {
  margin-top: var(--s-5, 32px);
}

/* Service Overview Section */
.service-overview {
  background: white;
}

.service-overview h2 {
  text-align: center;
  margin-bottom: var(--s-6, 40px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.overview-content {
  max-width: 800px;
  margin: 0 auto;
}

.overview-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--slate, #2C3E50);
  margin-bottom: var(--s-4, 24px);
}

.overview-content p:last-child {
  margin-bottom: 0;
}

/* Service Features Section */
.service-features {
  background: var(--gray-50, #F5F6FA);
}

.service-features h2 {
  text-align: center;
  margin-bottom: var(--s-7, 48px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.features-grid {
  display: grid;
  gap: var(--s-6, 40px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
  background: white;
  border-radius: var(--radius-2, 12px);
  padding: var(--s-6, 40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--sky, #4FC3F7);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--s-4, 24px);
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
  color: var(--navy, #0A2342);
  margin-bottom: var(--s-3, 16px);
  font-size: 1.5rem;
}

.feature-card > p {
  color: var(--slate, #2C3E50);
  line-height: 1.6;
  margin-bottom: var(--s-4, 24px);
}

.feature-details {
  list-style: none;
  padding: 0;
}

.feature-details li {
  padding: var(--s-2, 8px) 0;
  padding-left: 24px;
  position: relative;
  color: var(--slate, #2C3E50);
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-details li:last-child {
  border-bottom: none;
}

.feature-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--sky, #4FC3F7);
  font-weight: 700;
}

/* Service Process Timeline */
.service-process {
  background: white;
}

.service-process h2 {
  text-align: center;
  margin-bottom: var(--s-7, 48px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.process-timeline {
  display: grid;
  gap: var(--s-5, 32px);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-4, 24px);
  }
}

.process-step {
  position: relative;
  text-align: center;
  padding: var(--s-5, 32px);
  background: var(--gray-50, #F5F6FA);
  border-radius: var(--radius-2, 12px);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:hover {
  border-color: var(--emerald, #2ECC71);
  background: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--s-3, 16px);
  background: linear-gradient(135deg, var(--sky, #4FC3F7) 0%, var(--emerald, #2ECC71) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.step-content h3 {
  color: var(--navy, #0A2342);
  margin-bottom: var(--s-2, 12px);
  font-size: 1.2rem;
}

.step-content p {
  color: var(--slate, #2C3E50);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--s-3, 16px);
}

.step-duration {
  display: inline-block;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(79, 195, 247, 0.1) 100%);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald, #2ECC71);
  border: 1px solid var(--emerald, #2ECC71);
}

/* Service Technologies & Frameworks Section */
.service-technologies {
  background: var(--gray-50, #F5F6FA);
}

.service-technologies h2 {
  text-align: center;
  margin-bottom: var(--s-6, 40px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.technologies-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: var(--s-5, 32px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tech-item {
  background: white;
  padding: var(--s-5, 32px);
  border-radius: var(--radius-2, 12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-align: center;
}

.tech-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--sky, #4FC3F7);
}

.tech-item h4 {
  color: var(--navy, #0A2342);
  margin-bottom: var(--s-2, 12px);
  font-size: 1.2rem;
  font-weight: 600;
}

.tech-item p {
  color: var(--slate, #2C3E50);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Service Pricing */
.service-pricing {
  background: linear-gradient(135deg, var(--emerald, #2ECC71) 0%, #27AE60 100%);
  color: white;
}

.service-pricing h2 {
  color: white;
  text-align: center;
  margin-bottom: var(--s-6, 40px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.pricing-info {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.pricing-highlight {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-3, 16px);
  padding: var(--s-6, 40px);
  margin-bottom: var(--s-5, 32px);
  backdrop-filter: blur(10px);
}

.price-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-2, 8px);
  opacity: 0.9;
}

.price-amount {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pricing-info > p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--s-5, 32px);
}

.pricing-factors {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2, 12px);
  padding: var(--s-5, 32px);
  margin-bottom: var(--s-5, 32px);
  text-align: left;
}

.pricing-factors h4 {
  color: white;
  margin-bottom: var(--s-3, 16px);
}

.pricing-factors ul {
  list-style: none;
  padding: 0;
}

.pricing-factors li {
  padding: var(--s-2, 8px) 0 var(--s-2, 8px) 28px;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.pricing-factors li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: white;
  font-weight: 700;
}

.pricing-info .btn {
  background: white;
  color: var(--emerald, #2ECC71);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pricing-info .btn:hover {
  background: var(--gray-50, #F5F6FA);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.service-faq {
  background: var(--gray-50, #F5F6FA);
}

.service-faq h2 {
  text-align: center;
  margin-bottom: var(--s-7, 48px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-2, 12px);
  margin-bottom: var(--s-4, 24px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: var(--s-4, 24px);
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy, #0A2342);
  cursor: pointer;
  position: relative;
  padding-right: 60px;
  transition: color 0.2s ease;
  user-select: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sky, #4FC3F7);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
  color: var(--sky, #4FC3F7);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--s-4, 24px);
  color: var(--slate, #2C3E50);
  line-height: 1.6;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 var(--s-4, 24px) var(--s-4, 24px);
}

/* Case Studies */
.service-case-studies {
  background: white;
}

.service-case-studies h2 {
  text-align: center;
  margin-bottom: var(--s-7, 48px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.case-studies-grid {
  display: grid;
  gap: var(--s-6, 40px);
}

.case-study-card {
  background: linear-gradient(135deg, var(--gray-50, #F5F6FA) 0%, white 100%);
  border-radius: var(--radius-2, 12px);
  padding: var(--s-6, 40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.case-study-card h3 {
  color: var(--navy, #0A2342);
  margin-bottom: var(--s-2, 12px);
  font-size: 1.5rem;
}

.company {
  color: var(--sky, #4FC3F7);
  font-weight: 600;
  margin-bottom: var(--s-3, 16px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.results {
  display: grid;
  gap: var(--s-4, 24px);
  margin-top: var(--s-5, 32px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.result-item {
  background: white;
  padding: var(--s-4, 24px);
  border-radius: var(--radius-2, 8px);
  text-align: center;
  border: 2px solid var(--emerald, #2ECC71);
}

.metric {
  display: block;
  font-size: 0.9rem;
  color: var(--slate, #2C3E50);
  margin-bottom: var(--s-2, 8px);
}

.improvement {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald, #2ECC71);
}

/* Related Services */
.related-services {
  background: var(--gray-50, #F5F6FA);
}

.related-services h2 {
  text-align: center;
  margin-bottom: var(--s-6, 40px);
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
}

.related-grid {
  display: grid;
  gap: var(--s-5, 32px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.related-card {
  background: white;
  padding: var(--s-5, 32px);
  border-radius: var(--radius-2, 12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--sky, #4FC3F7);
}

.related-card h3 {
  margin-bottom: var(--s-2, 12px);
}

.related-card h3 a {
  color: var(--navy, #0A2342);
  text-decoration: none;
}

.related-card h3 a:hover {
  color: var(--sky, #4FC3F7);
}

.related-card p {
  color: var(--slate, #2C3E50);
  line-height: 1.6;
  margin-bottom: var(--s-3, 16px);
}

.learn-more {
  color: var(--sky, #4FC3F7);
  font-weight: 600;
  text-decoration: none;
}

.learn-more:hover {
  color: var(--emerald, #2ECC71);
  text-decoration: underline;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .process-step,
  .faq-answer,
  .icon-placeholder {
    transition: none;
    animation: none;
  }

  .feature-card,
  .process-step {
    opacity: 1;
    transform: none;
  }
}

/* Print Styles */
@media print {
  .service-hero {
    background: white;
    color: black;
  }

  .faq-answer {
    max-height: none !important;
    padding: 0 var(--s-4, 24px) var(--s-4, 24px) !important;
  }

  .feature-card,
  .process-step,
  .case-study-card {
    box-shadow: none;
    border: 1px solid #333;
    break-inside: avoid;
  }
}
