/* ==========================================================================
   Document Scanner Template - Electronics Industry
   ========================================================================== */

:root {
  --primary-color: #214bff;
  --accent-color: #3498db;
  --bg-light: #f7f9fc;
  --text-dark: #212121;
  --text-muted: #333333;
  --white: #ffffff;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Logo Styles - CRITICAL */
.logo-img {
  max-width: 52px;
  height: auto;
}

/* All other images */
img:not(.logo-img):not(.logo) {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1, .display-4 {
  font-size: 2.5rem;
  font-weight: 600;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.site-name {
  color: var(--primary-color);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

/* Hero Section - Document Scanner Specific */
.hero-section {
  padding: 82px 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.spec-badge {
  background: var(--white);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.spec-value {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.25rem;
}

.spec-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-scanner-preview {
  position: relative;
}

.scanner-image {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 27px rgba(0,0,0,0.12);
}

.scan-preview-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 1rem;
  margin-top: 1rem;
}

.scan-preview-header {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.scanned-doc-preview {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Scan Quality Section */
.dpi-comparison-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 9px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dpi-comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #06b6d4);
  pointer-events: none;
}

.dpi-comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 21px rgba(0,0,0,0.12);
}

.dpi-comparison-card.recommended {
  border: 2px solid var(--accent-color);
}

.dpi-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 22px;
  font-weight: 600;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  margin-bottom: 1rem;
}

.dpi-badge.dpi-low {
  background: #fef3c7;
  color: #92400e;
}

.dpi-badge.dpi-medium {
  background: #dbeafe;
  color: #1e40af;
}

.dpi-badge.dpi-high {
  background: #d1fae5;
  color: #065f46;
}

.recommended-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 22px;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}

.sample-scan {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.dpi-info {
  text-align: center;
}

.quality-metrics {
  margin-top: 2rem;
}

.metric-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.metric-icon {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  color: var(--primary-color);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* OCR Demo Section */
.ocr-source-card,
.ocr-result-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card-header-custom {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accuracy-badge {
  background: #10b981;
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 21px;
  font-size: 0.875rem;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
}

.ocr-source-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.ocr-text-output {
  padding: 1.5rem;
  background: #f8fafc;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  max-height: 300px;
  overflow-y: auto;
}

.ocr-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

@media (max-width: 991px) {
  .ocr-arrow i {
    transform: rotate(90deg);
  }
}

.ocr-features-grid {
  margin-top: 2rem;
}

.ocr-feature-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.ocr-feature-item:hover {
  transform: translateY(-4px);
}

.ocr-feature-icon {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Speed Comparison Section */
.speed-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.speed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  pointer-events: none;
}

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

.speed-card.featured {
  border: 2px solid var(--accent-color);
  transform: scale(1.05);
}

.speed-card.featured::before {
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #06b6d4);
}

.speed-card-header {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.speed-stat-large {
  text-align: center;
  margin: 2rem 0;
}

.speed-value {
  font-size: 3rem;
  font-weight: 600;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  color: var(--accent-color);
  line-height: 1;
}

.speed-unit {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
}

.speed-specs {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.speed-specs li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.speed-specs li:last-child {
  border-bottom: none;
}

.performance-chart-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 17px rgba(0,0,0,0.08);
  margin-top: 2rem;
}

.benchmark-item {
  margin-bottom: 1.5rem;
}

.benchmark-label {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.benchmark-bar {
  background: #e2e8f0;
  height: 41px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.benchmark-fill {
  background: linear-gradient(90deg, var(--accent-color), #06b6d4);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  transition: width 0.6s ease;
  position: relative;
}

.benchmark-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.benchmark-fill span {
  color: var(--white);
  font-weight: 600;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
}

/* Features Section */
.features-section {
  padding: 78px 0;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 11px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 23px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 61px;
  height: 61px;
  background: linear-gradient(135deg, var(--accent-color), #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Services Section */
.service-card-horizontal {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 9px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
  flex: 1;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--text-dark);
}

/* Stats Section */
.stats-section {
  padding: 59px 0;
}

.stat-item {
  padding: 2rem;
}

.stat-icon {
  opacity: 0.9;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 13px rgba(0,0,0,0.08);
  position: relative;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
}

.testimonial-avatar {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

/* Team Section */
.team-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 23px rgba(0,0,0,0.15);
}

.team-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-social a {
  transition: color 0.3s ease;
}

.team-social a:hover {
  color: var(--accent-color) !important;
}

/* FAQ Section */
.accordion-item {
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-button {
  background: var(--white);
  color: var(--primary-color);
  font-weight: 500;
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background: var(--bg-light);
  color: var(--accent-color);
}

.accordion-body {
  padding: 1.25rem;
  background: var(--white);
}

/* CTA Section */
.cta-section {
  padding: 82px 0;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Pricing Section */
.pricing-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

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

.pricing-card.featured {
  border: 3px solid var(--accent-color);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 22px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
}

.pricing-header {
  padding: 2rem;
  background: var(--bg-light);
  text-align: center;
}

.pricing-price {
  margin: 1.5rem 0;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
}

.price-period {
  color: var(--text-muted);
}

.pricing-features {
  padding: 2rem;
}

.pricing-features ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-features ul li:last-child {
  border-bottom: none;
}

.pricing-footer {
  padding: 0 2rem 2rem;
}

.comparison-table {
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--bg-light);
  font-weight: 600;
  padding: 1rem;
}

.comparison-table td {
  padding: 1rem;
  vertical-align: middle;
}

/* Blog Section */
.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 27px rgba(0,0,0,0.15);
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Article Page */
.article-hero {
  padding: 63px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-content {
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content ul {
  margin-left: 2rem;
}

.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

/* Contact Page */
.contact-info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 11px rgba(0,0,0,0.08);
  text-align: center;
}

.contact-icon {
  margin-bottom: 1.5rem;
}

.contact-form-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.schedule-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Case Studies */
.case-study-content {
  padding: 2rem;
}

.result-metric {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  margin-bottom: 0.5rem;
}

/* Product Page Specs */
.feature-box {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 13px rgba(0,0,0,0.12);
}

.use-case-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
}

.product-highlights .badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 3rem 0 1rem;
}

.footer a {
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color) !important;
}

/* Utilities */
.bg-light {
  background-color: var(--bg-light) !important;
}

.text-primary {
  color: var(--accent-color) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Responsive */
@media (max-width: 991px) {
  h1, .display-4 {
    font-size: 2rem;
  }

  .hero-section {
    padding: 59px 0;
  }

  .features-section,
  .cta-section {
    padding: 63px 0;
  }

  .service-image {
    height: 180px;
  }

  .team-photo {
    height: 250px;
  }

  .speed-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  h1, .display-4 {
    font-size: 1.75rem;
  }

  .spec-badge {
    padding: 0.75rem;
  }

  .speed-value {
    font-size: 2.5rem;
  }

  .contact-form-card {
    padding: 2rem;
  }
}
