/* services.css */

/* ====================== DARK HERO SECTION STYLES ====================== */

/* Import Contact Hero Styles for Dark Theme */
.contact-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 150px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 25px;
  /* CHANGED: Made same as industries.css */
  background: linear-gradient(to right, var(--light), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: hidden;
}

.tagline {
  font-size: 14px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 30px;
  animation: fadeIn 1s ease;
}

.description {
  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1.5s ease;
}

/* ====================== WHITE THEME STYLES ====================== */
.white-theme {
  background: white !important;
  color: #333 !important;
}

.white-theme .section-bg.services-bg,
.white-theme .section-bg.process-bg,
.white-theme .section-bg.interactive-bg,
.white-theme .section-bg.cta-bg {
  display: none !important;
}

.white-theme .service-card,
.white-theme .interactive-card,
.white-theme .calculator,
.white-theme .timeline-content,
.white-theme .process-step,
.white-theme .cta-container {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  color: #333 !important;
}

.white-theme .section-title h2,
.white-theme .section-title h3,
.white-theme .service-card h3,
.white-theme .interactive-card h3,
.white-theme .calculator h3,
.white-theme .calculator h4,
.white-theme .timeline-content h4,
.white-theme .process-step h3,
.white-theme .cta-container h2 {
  color: #333 !important;
}

.white-theme .section-title p,
.white-theme .service-card p,
.white-theme .interactive-card p,
.white-theme .service-features li,
.white-theme .calculator p,
.white-theme .timeline-content p,
.white-theme .process-step p,
.white-theme .cta-container p {
  color: #666 !important;
}

.white-theme .service-icon,
.white-theme .interactive-icon,
.white-theme .step-number {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--primary) !important;
}

.white-theme .service-link,
.white-theme .service-features li i,
.white-theme .calculator .form-group input,
.white-theme .calculator .form-group select {
  color: var(--primary) !important;
}

.white-theme .service-card:hover,
.white-theme .interactive-card:hover,
.white-theme .timeline-content:hover,
.white-theme .process-step:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: #dee2e6 !important;
}

.white-theme .calculator-result {
  background: rgba(248, 249, 250, 0.8) !important;
  border: 1px solid #dee2e6 !important;
}

.white-theme .calculator .form-group input,
.white-theme .calculator .form-group select {
  background: white !important;
  border: 1px solid #e9ecef !important;
  color: #333 !important;
}

.white-theme .calculator .form-group input:focus,
.white-theme .calculator .form-group select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* ====================== SPACING FIXES - Match Industries Page ====================== */

/* Section Title Spacing Improvements */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 700;
  line-height: 1.2;
}

.section-title p {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 0;
}

/* Services Section - Better Spacing */
.services {
  padding: 120px 40px;
  position: relative;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  margin-top: 40px;
}

.service-card {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 50px 40px;
  transition: all 0.4s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 550px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 52px;
  color: var(--primary);
  margin-bottom: 30px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-light);
}

.service-card h3 {
  font-size: 26px;
  margin-bottom: 20px;
  transition: color 0.3s ease;
  line-height: 1.3;
  color: #333;
}

.service-card:hover h3 {
  color: var(--primary-light);
}

.service-card p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
  font-size: 16px;
}

.service-features {
  list-style: none;
  margin-bottom: 35px;
}

.service-features li {
  color: #666;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.service-features li i {
  color: var(--primary);
  margin-top: 5px;
  flex-shrink: 0;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
}

.service-link:hover {
  gap: 15px;
  color: var(--primary-light);
}

/* Process Section - Better Spacing */
.process {
  padding: 120px 40px;
  position: relative;
}

.process-container {
  max-width: 1400px;
  margin: 0 auto;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
  gap: 30px;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  border: 1px solid #e9ecef;
  transition: all 0.4s ease;
  margin: 0 10px;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 70px;
  height: 70px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.4s ease;
}

.process-step:hover .step-number {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.process-step p {
  color: #666;
  line-height: 1.6;
  font-size: 16px;
}

/* Interactive Elements Section - Better Spacing */
.interactive-elements {
  padding: 120px 40px;
  position: relative;
}

.interactive-container {
  max-width: 1400px;
  margin: 0 auto;
}

.interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.interactive-card {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 280px;
}

.interactive-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.interactive-card:hover::before {
  opacity: 0.05;
}

.interactive-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.interactive-icon {
  font-size: 64px;
  color: var(--primary);
  margin-bottom: 25px;
  transition: all 0.4s ease;
}

.interactive-card:hover .interactive-icon {
  transform: scale(1.1);
  color: var(--primary-light);
}

.interactive-card h3 {
  font-size: 26px;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #333;
}

.interactive-card p {
  color: #666;
  line-height: 1.7;
  font-size: 16px;
}

/* Interactive Calculator */
.calculator {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 50px;
  max-width: 600px;
  margin: 40px auto 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.calculator h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  color: #666;
  font-weight: 600;
  font-size: 16px;
}

.form-group input,
.form-group select {
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  background: white;
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Calculator-specific button styles (not affecting header) */
.calculator .cta-button {
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 17px;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.calculator .cta-button:hover {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.calculator-result {
  margin-top: 40px;
  padding: 30px;
  background: white;
  border-radius: 15px;
  text-align: center;
  display: none;
  border: 1px solid #e9ecef;
}

.calculator-result.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.calculator-result h4 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary);
}

.result-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin: 15px 0;
  line-height: 1;
}

.calculator-result p {
  color: #666;
  font-size: 17px;
  line-height: 1.6;
}

.calculator-result span {
  font-weight: 700;
  color: var(--primary);
}

/* Service Recommender Styles */
.recommendation-list {
  margin: 30px 0;
}

.recommendation-item {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.recommendation-header i {
  font-size: 32px;
  color: var(--primary);
}

.recommendation-header h4 {
  font-size: 20px;
  margin: 0;
  color: #333;
  flex-grow: 1;
}

.match-badge {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: white !important; /* Force white text color */
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700; /* Increased from 600 to 700 for bolder text */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Add subtle text shadow for better contrast */
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

.recommendation-item p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.match-details {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.08);
  padding: 12px 15px;
  border-radius: 8px;
  margin-top: 10px;
}

.match-details i {
  color: var(--primary);
}

.match-details span {
  color: #555;
  font-size: 15px;
}

/* White theme adjustments for recommender */
.white-theme .recommendation-item {
  background: white !important;
  border-left-color: var(--primary) !important;
}

.white-theme .recommendation-header i {
  color: var(--primary) !important;
}

.white-theme .recommendation-header h4 {
  color: #333 !important;
}

.white-theme .match-badge {
  color: white !important;
  background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.white-theme .match-details {
  background: rgba(59, 130, 246, 0.1) !important;
}

/* Interactive Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 70px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid #e9ecef;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-content::after {
  content: "";
  position: absolute;
  top: 30px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -52px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -52px;
}

.timeline-date {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 5px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
}

.timeline-content h4 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.timeline-content p {
  color: #666;
  line-height: 1.7;
  font-size: 16px;
}

/* ====================== CTA SECTION - EXACT COPY FROM HOME PAGE ====================== */

/* CTA Section Background */
.cta-bg {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 40%
    ),
    linear-gradient(90deg, rgba(15, 23, 42, 0.7) 0%, transparent 50%);
  background-size: 180% 180%;
  animation: gradientFlow 25s ease infinite;
}

/* CTA Section - White Theme */
.cta-section.white-theme {
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
  background: white !important;
}

.cta-section.white-theme .cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-align: center;
}

.cta-section.white-theme h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #333 !important;
}

.cta-section.white-theme p {
  font-size: 20px;
  margin-bottom: 40px;
  color: #666 !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section.white-theme .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* CTA Button - Exact copy from home page white theme */
.cta-section.white-theme .cta-button {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--primary-light)
  ) !important;
  color: white !important;
  text-decoration: none;
  border: none !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.cta-section.white-theme .cta-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5) !important;
  background: linear-gradient(
    90deg,
    var(--primary-light),
    var(--primary)
  ) !important;
  color: white !important;
}

/* Add animation keyframes if not already in your CSS */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ====================== RESPONSIVE SPACING ====================== */

@media (max-width: 1200px) {
  .services-container,
  .process-container,
  .interactive-container {
    gap: 50px;
  }

  .cta-section.white-theme h2 {
    font-size: 38px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-content::after {
    left: -40px !important;
  }
  
  .process-steps {
    gap: 20px;
  }
  
  .process-steps::before {
    left: 40px;
    right: 40px;
  }
}

@media (max-width: 992px) {
  .process-steps {
    flex-direction: column;
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

  .process-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 25px;
    margin: 0;
  }

  .step-number {
    margin: 0;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .process-step h3 {
    font-size: 20px;
  }

  .process-step p {
    font-size: 15px;
  }

  .calculator {
    padding: 40px 30px;
  }

  .calculator h3 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .cta-section.white-theme {
    padding: 80px 40px;
  }

  .cta-section.white-theme h2 {
    font-size: 34px;
  }

  .cta-section.white-theme p {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 130px 20px 60px;
  }

  .contact-hero h1 {
    font-size: 36px;
  }

  .services,
  .process,
  .interactive-elements,
  .cta-section.white-theme {
    padding: 80px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-card {
    padding: 40px 30px;
    min-height: auto;
  }

  .service-icon {
    font-size: 48px;
    margin-bottom: 25px;
  }

  .service-card h3 {
    font-size: 24px;
  }

  .service-features {
    margin-bottom: 25px;
  }

  .service-features li {
    font-size: 14px;
  }

  .interactive-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .interactive-card {
    padding: 40px 30px;
    min-height: auto;
  }

  .interactive-icon {
    font-size: 56px;
    margin-bottom: 20px;
  }

  .interactive-card h3 {
    font-size: 24px;
  }

  .interactive-card p {
    font-size: 15px;
  }

  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .step-number {
    margin: 0 auto;
  }

  .timeline-content {
    padding: 25px 20px;
  }

  .timeline-content h4 {
    font-size: 20px;
  }

  .timeline-content p {
    font-size: 15px;
  }

  .calculator .cta-button {
    padding: 16px 30px;
    font-size: 16px;
  }

  .recommendation-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .recommendation-header i {
    font-size: 28px;
  }
  
  .recommendation-header h4 {
    font-size: 18px;
  }
  
  .match-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .recommendation-item {
    padding: 20px;
  }

  .cta-section.white-theme h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .cta-section.white-theme p {
    font-size: 17px;
    margin-bottom: 35px;
  }

  .cta-section.white-theme .cta-button {
    width: 100%;
    max-width: 300px;
    padding: 16px 30px !important;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 32px;
  }

  .section-title p {
    font-size: 16px;
  }

  .calculator {
    padding: 30px 20px;
  }

  .calculator h3 {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .result-value {
    font-size: 42px;
  }

  .service-card {
    padding: 35px 25px;
  }

  .service-icon {
    font-size: 44px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .calculator .cta-button {
    padding: 15px 25px;
    font-size: 15px;
  }

  .cta-section.white-theme h2 {
    font-size: 28px;
  }

  .cta-section.white-theme p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .cta-section.white-theme .cta-button {
    padding: 15px 25px !important;
    font-size: 15px;
  }
}