/* ============================================================
   BHAR India – Components Stylesheet | components.css
   ============================================================ */

/* ============================================================
   ABOUT PAGE COMPONENTS
   ============================================================ */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.about-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.about-feature:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.about-feature-icon {
  width: 36px; height: 36px;
  background: var(--gradient-soft);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.about-feature h4 { font-size: 14.5px; margin-bottom: 4px; }
.about-feature p { font-size: 13.5px; color: var(--text-muted); }

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.team-card-photo {
  width: 100%;
  height: 220px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.team-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.team-card-body { padding: 22px 20px 24px; }
.team-card-body h4 {
  font-family: var(--ff-head);
  font-size: 17px; font-weight: 700;
  margin-bottom: 5px;
}
.team-card-role {
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.team-card-body p {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.65;
}
.team-card-social {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 16px;
}
.team-card-social a {
  width: 32px; height: 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted);
  transition: var(--transition);
}
.team-card-social a:hover { color: var(--primary); border-color: var(--border-hover); }

/* Leadership card (larger) */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.leader-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--glow);
  border-color: var(--border-hover);
}
.leader-photo {
  width: 100%;
  height: 240px;
  flex-shrink: 0;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  overflow: hidden;
  position: relative;
}
/* gradient fade at bottom of photo into card body */
.leader-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.leader-body { padding: 18px 22px 22px; }
.leader-body .role-tag {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.leader-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}
.leader-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
}
.leader-social {
  display: flex; gap: 8px; margin-top: 18px;
}
.leader-social a {
  width: 34px; height: 34px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted);
  transition: var(--transition);
}
.leader-social a:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: rgba(30,53,112,0.07);
}

/* ============================================================
   SERVICES PAGE COMPONENTS
   ============================================================ */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }

.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-sec);
}
.service-feature-item::before {
  content: '✓';
  width: 20px; height: 20px;
  background: var(--gradient);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.service-visual {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.service-visual::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,82,204,0.12), transparent 70%);
  border-radius: 50%;
}
.service-visual-icon {
  font-size: 72px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}
.service-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.svc-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.svc-stat-num {
  font-family: var(--ff-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.svc-stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   PRODUCTS PAGE COMPONENTS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl), var(--glow);
}
.product-num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--ff-head);
  font-size: 3.5rem; font-weight: 800;
  color: rgba(0,82,204,0.07);
  line-height: 1;
  user-select: none;
}
[data-theme="dark"] .product-num { color: rgba(0,180,216,0.08); }
.product-icon {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0,82,204,0.25);
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.product-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.product-features {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.product-feature-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--text-sec);
}
.product-feature-item::before {
  content: '→';
  color: var(--accent); font-weight: 700; flex-shrink: 0;
}
.product-badge-row {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 18px;
}

/* Product Tabs layout */
.products-tabs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.product-tabs-nav {
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.product-tab-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.product-tab-btn:hover { color: var(--text); border-color: var(--border-hover); }
.product-tab-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0,82,204,0.25);
}
.product-panel { display: none; }
.product-panel.active { display: block; }
.product-panel-header {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.product-panel-header h2 { margin-bottom: 10px; }
.product-panel-header p { font-size: 16px; color: var(--text-muted); max-width: 600px; }
.product-panel-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.product-feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.product-feature-card:hover { border-color: var(--border-hover); }
.product-feature-card h4 { font-size: 14.5px; margin-bottom: 7px; }
.product-feature-card p { font-size: 13.5px; color: var(--text-muted); }
.product-use-cases h3 { font-size: 1.1rem; margin-bottom: 14px; }
.use-case-list { display: flex; flex-wrap: wrap; gap: 10px; }
.use-case-chip {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 50px;
  font-size: 13px; color: var(--text-sec);
  transition: var(--transition);
}
.use-case-chip:hover { border-color: var(--border-hover); color: var(--primary); }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), var(--glow);
  border-color: var(--border-hover);
}
.project-thumb {
  height: 200px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.project-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-thumb::after { opacity: 0.1; }
.project-card-body { padding: 24px 22px 26px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.project-tag {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; color: var(--text-muted);
}
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-card-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.project-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.view-project-btn {
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  display: flex; align-items: center; gap: 5px;
  transition: gap 0.2s;
}
.view-project-btn:hover { gap: 8px; }

/* Project Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal-content { transform: translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.modal-close:hover { color: var(--text); background: var(--bg3); }
.modal-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 1.6rem; margin-bottom: 10px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-body h3 { font-size: 1.1rem; margin: 22px 0 10px; }
.modal-body p { font-size: 14.5px; color: var(--text-muted); line-height: 1.8; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.tech-chip {
  background: var(--gradient-soft);
  border: 1px solid rgba(0,82,204,0.15);
  padding: 5px 13px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--primary);
}
[data-theme="dark"] .tech-chip {
  border-color: rgba(0,180,216,0.2);
  color: var(--accent);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info-cards {
  display: grid; gap: 14px;
}
.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.contact-info-card:hover { border-color: var(--border-hover); }
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-info-card h4 { font-size: 14px; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a {
  font-size: 14px; color: var(--text-muted);
  transition: color 0.2s;
}
.contact-info-card a:hover { color: var(--primary); }

.contact-map {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
  height: 200px;
}
.contact-map iframe { width: 100%; height: 100%; border: none; }
.map-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  font-size: 32px; color: var(--text-muted);
}
.map-placeholder p { font-size: 13px; }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-form-wrap > p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 7px;
}
.form-group label span { color: #EF4444; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 14.5px;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,82,204,0.12);
  background: var(--bg);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-control.error { border-color: #EF4444; }
.form-control.success { border-color: #22C55E; }
.field-error {
  display: none;
  font-size: 12px; color: #EF4444;
  margin-top: 5px;
}
.field-error.visible { display: block; }
.form-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status {
  font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: 8px;
  display: none;
}
.form-status.success { display: block; background: rgba(34,197,94,0.1); color: #16A34A; }
.form-status.error   { display: block; background: rgba(239,68,68,0.1); color: #DC2626; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.blog-thumb {
  height: 190px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  border-bottom: 1px solid var(--border);
}
.blog-body { padding: 22px 20px 24px; }
.blog-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-category {
  background: rgba(0,82,204,0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
[data-theme="dark"] .blog-category {
  background: rgba(0,180,216,0.1);
  color: var(--accent);
}
.blog-body h3 { font-size: 1.05rem; margin-bottom: 9px; line-height: 1.35; }
.blog-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.blog-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.read-more {
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  display: flex; align-items: center; gap: 5px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 8px; }

/* Blog search/filter */
.blog-filter-row {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px;
}
.blog-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 10px 18px;
  transition: var(--transition);
}
.blog-search:focus-within { border-color: var(--primary); }
.blog-search input {
  background: none; border: none; outline: none;
  font-size: 14px; color: var(--text);
  min-width: 200px;
}
.blog-search input::placeholder { color: var(--text-muted); }
.blog-search span { color: var(--text-muted); }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
  padding: 7px 16px; border-radius: 50px;
  background: var(--bg2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.filter-tag:hover { border-color: var(--border-hover); color: var(--text); }
.filter-tag.active {
  background: var(--gradient); color: #fff; border-color: transparent;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps-row::before {
  content: '';
  position: absolute;
  top: 32px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.2;
}
.process-step {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.step-num {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head);
  font-weight: 800; font-size: 17px; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(0,82,204,0.3);
}
.process-step h4 { font-size: 15px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--text-muted); }

/* ============================================================
   TABS (generic)
   ============================================================ */
.tabs-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.tab-btn {
  padding: 10px 20px;
  font-family: var(--ff-body); font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   WHY CHOOSE US GRID
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: center;
}
.why-features { display: flex; flex-direction: column; gap: 14px; }
.why-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.why-feature:hover {
  border-color: var(--border-hover);
  transform: translateX(5px);
}
.why-icon {
  width: 42px; height: 42px;
  background: var(--gradient-soft);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.why-feature h4 { font-size: 14.5px; margin-bottom: 5px; }
.why-feature p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* Why visual */
.why-visual {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.why-visual h3 { font-size: 1.25rem; margin-bottom: 6px; }
.why-visual > p { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }
.process-list { display: flex; flex-direction: column; gap: 0; }
.process-list-item {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.process-list-item:last-child { border-bottom: none; }
.pl-circle {
  width: 32px; height: 32px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head);
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0; margin-top: 2px;
}
.process-list-item h4 { font-size: 14px; margin-bottom: 4px; }
.process-list-item p { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   ABOUT STATS ROW
   ============================================================ */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.about-stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: var(--transition);
}
.about-stat-item:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.about-stat-num {
  font-family: var(--ff-head);
  font-size: 2.4rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.about-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  box-shadow: 0 6px 24px rgba(0,82,204,0.35);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 900;
  border: none;
}
#back-to-top.show { opacity: 1; pointer-events: all; }
#back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   SERVICE FEATURE LIST (shared across pages)
   ============================================================ */
.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-sec);
  line-height: 1.6;
}
.service-feature-item::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2 6 5 9 10 3' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   HOMEPAGE AUTOMATION SHOWCASE GALLERY
   ============================================================ */
.automation-gallery-section {
  margin-top: 58px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(30,53,112,0.06), rgba(196,98,45,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.automation-gallery-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: var(--gradient-soft);
  border-radius: 50%;
  opacity: 0.65;
  pointer-events: none;
}
.automation-gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}
.automation-gallery-head h3 {
  font-size: 1.55rem;
  margin: 8px 0 8px;
  color: var(--text);
}
.automation-gallery-head p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.automation-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}
.automation-gallery-card {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  color: inherit;
  font: inherit;
}
.automation-gallery-card:hover,
.automation-gallery-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--glow);
  outline: none;
}
.gallery-image-slot {
  height: 145px;
  background:
    linear-gradient(135deg, rgba(30,53,112,0.12), rgba(0,180,216,0.10)),
    radial-gradient(circle at top right, rgba(196,98,45,0.18), transparent 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.gallery-image-slot::after {
  content: '+';
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  right: 14px;
  bottom: 14px;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .gallery-image-slot::after {
  background: rgba(12,19,35,0.88);
}
.gallery-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-image-slot:has(img) span,
.gallery-image-slot:has(img)::after {
  display: none;
}
.gallery-card-body {
  padding: 17px 16px 18px;
}
.gallery-card-body h4 {
  font-size: 15.5px;
  margin-bottom: 5px;
  color: var(--text);
}
.gallery-card-body p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.automation-info-content {
  max-width: 820px;
}
.automation-modal-image {
  min-height: 220px;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  background:
    linear-gradient(135deg, rgba(30,53,112,0.10), rgba(0,180,216,0.08)),
    radial-gradient(circle at bottom left, rgba(196,98,45,0.16), transparent 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}
.automation-modal-image img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.automation-modal-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding-left: 0;
  list-style: none;
  margin-top: 12px;
}
.automation-modal-points li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-sec);
  font-size: 14px;
  line-height: 1.55;
}
.automation-modal-points li::before {
  content: '→';
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .automation-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .automation-gallery-section {
    padding: 24px 18px;
    margin-top: 38px;
  }
  .automation-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .gallery-image-slot {
    height: 125px;
  }
  .automation-info-content {
    padding: 28px 20px;
  }
  .automation-modal-image {
    min-height: 170px;
  }
}
@media (max-width: 520px) {
  .automation-gallery-grid {
    grid-template-columns: 1fr;
  }
}
