/*
Technical Solutions Page Styles
===============================*/

/* Hero Section */
.tech-solutions-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
  overflow: hidden;
}

.tech-solutions-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
}

.hero-badge span {
  background: var(--main-color);
  color: var(--white-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-title .highlight {
  color: var(--main-color);
}

.hero-description {
  font-size: 18px;
  color: var(--body-color);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--main-color);
  line-height: 1;
  margin-bottom: 8px;
  /* Static display - no animation */
  opacity: 1;
  transform: none;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--body-color);
  font-weight: 600;
}

.hero-actions {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero buttons use .default-btn class from main styles.scss */

.hero-technologies {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tech-label {
  font-size: 14px;
  color: var(--body-color);
  font-weight: 600;
}

.tech-logos {
  display: flex;
  gap: 12px;
}

.tech-item {
  background: var(--white-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--heading-color);
  border: 1px solid #e1e5e9;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.visual-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Visual Cards - Clickable */
.visual-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.visual-card:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.visual-card.active {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(119, 182, 52, 0.2);
  border: 2px solid var(--main-color);
}

.visual-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--main-color);
  border-bottom: 2px solid var(--main-color);
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0;
  transition: var(--transition);
}

.visual-card:hover::after {
  opacity: 1;
  right: 12px;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--main-color), #5a9627);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon i {
  font-size: 24px;
  color: var(--white-color);
}

.card-content h4 {
  font-size: 16px;
  color: var(--heading-color);
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-bar {
  width: 120px;
  height: 6px;
  background: #f1f3f4;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--main-color);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Hero Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(119, 182, 52, 0.1), rgba(119, 182, 52, 0.05));
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
}

.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(119, 182, 52, 0.1) 1px, transparent 0);
  background-size: 30px 30px;
}

/* Use standard padding classes from main styles */
.custom-applications-section,
.data-solutions-section,
.quality-engineering-section,
.salesforce-solutions-section {
  /* Use .ptb-70 class equivalent */
  padding: 70px 0;
}

.data-solutions-section {
  /* Use .bg-color-f4f7ff equivalent */
  background: #f4f7ff;
}

.salesforce-solutions-section {
  /* Use .bg-color-f4f7ff equivalent */
  background: #f4f7ff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.6s ease-out;
}

.section-badge {
  margin-bottom: 16px;
}

.section-badge span {
  background: rgba(119, 182, 52, 0.1);
  color: var(--main-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Reuse section-title structure from main styles */
.section-title {
  /* Inherits from main .section-title in style.scss */
  margin-bottom: 16px;
}

.section-title .highlight {
  color: var(--main-color);
}

.section-description {
  font-size: 18px;
  color: var(--body-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background: #353b5e;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid #f1f3f4;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-card.featured {
  border: 2px solid var(--main-color);
  transform: scale(1.02);
}

.service-card.featured:hover {
  transform: scale(1.02) translateY(-8px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--main-color), #5a9627);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon i {
  font-size: 28px;
  color: var(--white-color);
}

.service-card h3 {
  font-size: 24px;
  color: white;
  margin-bottom: 16px;
  font-weight: 700;
}

.service-card p {
  color: white;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tech-highlight {
  background: rgba(119, 182, 52, 0.1);
  color: var(--main-color);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

/* Learn More buttons use .read-more class from main styles.scss */

/* Section CTA */
.section-cta {
  text-align: center;
}

/* Final CTA Section */
.final-cta-section {
  /* Use .ptb-100 class equivalent */
  padding: 100px 0;
  background: linear-gradient(135deg, var(--heading-color) 0%, #1a2837 100%);
  color: var(--white-color);
}

.final-cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-content h2 {
  font-size: 40px;
  color: var(--white-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.final-cta-content h2 .highlight {
  color: var(--main-color);
}

.final-cta-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Extend btn-light behavior with specific styling for this page */
.btn-light {
  /* Similar to default-btn but with light variant */
  background: transparent;
  color: var(--white-color);
  border: 2px solid var(--white-color);
  padding: 14px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-light:hover {
  background: var(--white-color);
  color: var(--heading-color);
}

.cta-trust {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.trust-item i {
  color: var(--main-color);
  font-size: 16px;
}

/* Section animation on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .tech-solutions-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-trust {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .tech-solutions-hero {
    padding: 80px 0 60px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .hero-technologies {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .tech-logos {
    flex-wrap: wrap;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-description {
    font-size: 16px;
  }
  
  .final-cta-content h2 {
    font-size: 28px;
  }
  
  /* Visual cards mobile adjustments */
  .visual-card::after {
    display: none; /* Hide arrow on mobile */
  }
  
  .visual-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .service-card {
    padding: 24px;
  }
  
  .hero-badge span,
  .section-badge span {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .btn-primary,
  .btn-light {
    padding: 12px 24px;
    font-size: 14px;
  }
  .hero-content{
    margin-top: -8rem;
  }
}

/* Smooth scroll offset */
html {
  scroll-behavior: smooth;
}

/* Section scroll positioning */
section[id] {
  scroll-margin-top: 100px;
}

/* Add scroll margin for better positioning */
.custom-applications-section,
.data-solutions-section,
.quality-engineering-section,
.salesforce-solutions-section {
  scroll-margin-top: 100px;
}
