/* InduSphere Technologies: Production Stylesheet
   Supports Light/Dark Mode, Rich Glassmorphism, Micro-Animations, and Complete RTL for Pakistani Languages */

:root {
  --bg-main: #070D1E;
  --bg-surface: #0E1A38;
  --bg-card: #15244C;
  --bg-card-hover: #1C3064;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --accent-teal: #00A896;
  --accent-teal-glow: rgba(0, 168, 150, 0.35);
  --accent-emerald: #02C39A;
  --accent-cyan: #06B6D4;
  --accent-amber: #F4A261;
  --accent-rose: #EF4444;
  --accent-purple: #8B5CF6;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 168, 150, 0.4);
  
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', serif;
  --font-pashto: 'Noto Naskh Arabic', 'Noto Nastaliq Urdu', serif;
  --font-sindhi: 'Noto Naskh Arabic', serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-subtle: 0 4px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 168, 150, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 168, 150, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* RTL Support for Urdu, Punjabi, Pashto, Sindhi, Balochi, Saraiki */
body.rtl-mode {
  direction: rtl;
  text-align: right;
  font-family: var(--font-urdu);
}

body.rtl-mode nav.header-nav {
  direction: rtl;
}

body.rtl-mode .brand-logo {
  flex-direction: row-reverse;
}

body.rtl-mode .feature-list li {
  justify-content: flex-start;
}

/* Top Sticky Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 30, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #070D1E;
  box-shadow: var(--shadow-glow);
}

.brand-name-group h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name-group p {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

nav.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

nav.header-nav a:hover {
  color: var(--accent-teal);
}

/* Language Selector Dropdown */
.lang-selector-wrap {
  position: relative;
  display: inline-block;
}

.lang-select-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.lang-select-btn:hover {
  border-color: var(--accent-teal);
  background: rgba(0, 168, 150, 0.1);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  width: 210px;
  box-shadow: var(--shadow-subtle);
  display: none;
  z-index: 120;
}

.lang-dropdown-menu.active {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-option:hover, .lang-option.active {
  background: var(--accent-teal);
  color: #070D1E;
  font-weight: 800;
}

.lang-flag {
  font-size: 14px;
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-emerald));
  color: #070D1E;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 168, 150, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-header-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 80px 40px 60px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 168, 150, 0.1);
  border: 1px solid rgba(0, 168, 150, 0.3);
  color: var(--accent-teal);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 840px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.btn-large-primary {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-emerald));
  color: #070D1E;
  padding: 15px 30px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(0, 168, 150, 0.4);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-large-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-large-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 15px 30px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-large-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

/* Multi-Trade Sector Grid (6 Trade Portfolios) */
.sectors-section {
  max-width: 1320px;
  margin: 0 auto 90px;
  padding: 0 40px;
}

.section-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}

.section-heading {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.sector-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card);
  box-shadow: var(--shadow-subtle);
}

.sector-card:hover::before {
  opacity: 1;
}

.sector-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.sector-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
}

.sector-card p.sub-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.sector-card p.desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list li span.check {
  color: var(--accent-teal);
  font-weight: bold;
}

.sector-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-card-action {
  background: rgba(0, 168, 150, 0.15);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-card-action:hover {
  background: var(--accent-teal);
  color: #070D1E;
}

/* Modals & Inputs */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 13, 30, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

.form-input-site {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  margin-bottom: 12px;
}

.form-input-site:focus {
  border-color: var(--accent-teal);
}

/* Filter Button Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-teal);
  color: #070D1E;
  border-color: var(--accent-teal);
  box-shadow: 0 4px 15px var(--accent-teal-glow);
}

/* Micro Badges in Hero */
.micro-badges-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.micro-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.micro-badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

/* ROI & Pilferage Calculator Section */
.calculator-section {
  max-width: 1000px;
  margin: 0 auto 90px;
  padding: 0 40px;
}

.calculator-card {
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-card));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 25px;
}

.calc-input-group {
  margin-bottom: 20px;
}

.calc-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-range-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--accent-teal);
  cursor: pointer;
}

.calc-range-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-teal);
}

.calc-results-box {
  background: rgba(7, 13, 30, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.res-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

.res-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.res-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.res-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-emerald);
}

.res-value.danger {
  color: var(--accent-rose);
}

.res-value.highlight {
  color: var(--accent-cyan);
}

/* Radical Simplicity Pillars */
.pillars-section {
  max-width: 1200px;
  margin: 0 auto 90px;
  padding: 0 40px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.pillar-card .pillar-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.pillar-card h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modal Enhancements */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-close-modal:hover {
  color: var(--accent-rose);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Footer */
footer.site-footer {
  background: #040813;
  border-top: 1px solid var(--border-color);
  padding: 60px 40px 40px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent-teal);
}

.footer-col p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.nayatel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 168, 150, 0.1);
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  header.site-header { padding: 14px 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .hero-title { font-size: 34px; }
  .sectors-grid { grid-template-columns: 1fr; }
}
