/* ==========================================================================
   Bharat HunarCard — Official Web Portal & Profile Design System
   Aesthetic: AMOLED Modern Dark / Clean Light, India Tricolor Identity,
   Responsive Desktop & Mobile Grid Layout
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --saffron: #ff9933;
  --white: #ffffff;
  --india-green: #138808;
  --whatsapp-green: #25D366;
  --aadhaar-red: #dc2626;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --emerald: #10b981;

  --bg-page: #000000;
  --bg-surface: #121212;
  --bg-card: #18181b;
  --bg-subtle: #222226;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --border-color: #27272a;
  --border-subtle: #1e1e24;
  --border-highlight: rgba(255, 153, 51, 0.4);

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --radius-card: 16px;
  --radius-btn: 10px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --shadow-card: 0 12px 30px -8px rgba(15, 23, 42, 0.08);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #111111;
  border: 1.5px solid var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: var(--saffron);
  box-shadow: 0 2px 10px rgba(255, 153, 51, 0.25);
}

.brand-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.btn-apk-pill {
  background: #138808;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(19, 136, 8, 0.35);
  transition: all 0.2s ease;
}

.btn-apk-pill:hover {
  background: #159b0a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(19, 136, 8, 0.5);
}

/* ==========================================================================
   Page Layout Containers
   ========================================================================== */
.page-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  flex: 1;
}

/* Hero Section: 2 Columns on Desktop, 1 Column on Mobile */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    margin-bottom: 64px;
    padding-top: 16px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge-national {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 153, 51, 0.12);
  border: 1px solid rgba(255, 153, 51, 0.3);
  color: var(--saffron);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--text-main);
}

@media (min-width: 600px) {
  .hero-title {
    font-size: 42px;
  }
}

.hero-title span.tricolor-text {
  background: linear-gradient(90deg, #ff9933 0%, #ffffff 50%, #138808 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
}

.trust-pill svg {
  color: var(--emerald);
}

/* ==========================================================================
   Search Engine Box
   ========================================================================== */
.search-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.search-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.search-input-group {
  display: flex;
  gap: 10px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-main);
  outline: none;
  font-weight: 500;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
}

.btn-search {
  background: #138808;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-search:hover {
  background: #159b0a;
}

.search-hint {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Categories Pills */
.categories-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.categories-slider::-webkit-scrollbar {
  display: none;
}

.category-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.category-chip:hover, .category-chip.active {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--saffron);
}

/* ==========================================================================
   Live Search Results Card (Instant Verification)
   ========================================================================== */
#searchResultsArea {
  display: none;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  border-color: var(--saffron);
  transform: translateY(-1px);
}

.search-result-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--saffron);
  font-size: 16px;
  object-fit: cover;
}

/* ==========================================================================
   Aadhaar-Style Physical Card Component
   ========================================================================== */
.aadhaar-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aadhaar-card:hover {
  border-color: rgba(255, 153, 51, 0.4);
}

/* Tricolor Indian Ribbon */
.tricolor-ribbon {
  display: flex;
  height: 5px;
  width: 100%;
}
.tricolor-ribbon .saffron { flex: 1; background-color: var(--saffron); }
.tricolor-ribbon .white { flex: 1; background-color: var(--white); }
.tricolor-ribbon .green { flex: 1; background-color: var(--india-green); }

/* Card Header */
.card-header {
  padding: 14px 18px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.card-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111111;
  border: 1.5px solid var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.card-title-col {
  flex: 1;
}

.card-title-hi {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--text-main);
  line-height: 1.2;
}

.card-subtitle-en {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.card-seal-badge {
  background: #138808;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Card Body */
.card-body {
  padding: 18px;
  display: flex;
  gap: 16px;
}

.photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.photo-frame {
  width: 94px;
  height: 110px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: #1e1e24;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-fallback {
  font-size: 26px;
  font-weight: 900;
  color: var(--saffron);
}

.validity-pill {
  font-size: 9px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.details-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.worker-name {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.trade-pill {
  display: inline-block;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  width: fit-content;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.verified-pill {
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 11px;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Card Number Bar */
.card-number-bar {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 18px;
}

.card-number-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.hunar-card-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-main);
  text-align: center;
}

.aadhaar-red-line {
  height: 2.5px;
  background: var(--aadhaar-red);
  width: 140px;
  margin: 6px auto 0;
  border-radius: 2px;
}

/* Card Footer */
.card-footer {
  padding: 10px 18px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

/* ==========================================================================
   Section Cards & Professional Grid
   ========================================================================== */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 40px 0 16px;
}

.section-headline {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.section-subheadline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.professionals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .professionals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .professionals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pro-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 153, 51, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
}

.pro-card-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}

.pro-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 10px;
}

.pro-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pro-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 14px;
  font-size: 11.5px;
}

.pro-card-id {
  font-family: monospace;
  font-weight: 700;
  color: var(--saffron);
}

/* ==========================================================================
   App Download Promotion Banner (Full Width Desktop)
   ========================================================================== */
.download-promo-card {
  background: linear-gradient(135deg, #18181b 0%, #222226 100%);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 32px 28px;
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 800px) {
  .download-promo-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 36px 40px;
  }
}

.download-promo-content h3 {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.download-promo-content p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
}

.btn-download-apk {
  background: #138808;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(19, 136, 8, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-download-apk:hover {
  background: #159b0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 136, 8, 0.55);
}

/* ==========================================================================
   Features & Value Proposition
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 153, 51, 0.1);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.feature-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 36px 20px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-disclaimer {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* ==========================================================================
   Public Profile Detail Screen Specifics
   ========================================================================== */
.profile-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .profile-detail-layout {
    grid-template-columns: 440px 1fr;
    gap: 36px;
    align-items: start;
  }
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-action {
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-call {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-call:hover {
  background: var(--bg-subtle);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #20bd5a;
}

.btn-pay-upi {
  grid-column: span 2;
  background: #111111;
  color: #ffffff;
  border: 1.5px solid var(--saffron);
}
.btn-pay-upi:hover {
  background: rgba(255, 153, 51, 0.1);
}

.content-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
}

.content-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.service-item:last-child {
  border-bottom: none;
}

.service-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}
.service-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.service-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald);
  text-align: right;
}
.service-unit {
  font-size: 10.5px;
  color: var(--text-dim);
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Modal for UPI */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
