/**
 * BitQube Technologies - Enterprise Design System & Stylesheet
 * Preserves the core brand identity (#0b5ea8, #1d4ed8, #14b8a6, #0f172a)
 * with tier-1 enterprise aesthetics, dark/light theming, and responsive layouts.
 */

:root {
  --primary: #0b5ea8;
  --primary-rgb: 11, 94, 168;
  --primary-dark: #073e72;
  --primary-light: #2563eb;
  --primary-gradient: linear-gradient(135deg, #0b5ea8 0%, #1d4ed8 50%, #14b8a6 100%);
  --accent: #14b8a6;
  --accent-rgb: 20, 184, 166;
  --accent-dark: #0f766e;
  --accent-cyan: #06b6d4;

  --navy-900: #0a0f1d;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --navy-600: #334155;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --card-bg: #ffffff;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-subtle: rgba(203, 213, 225, 0.5);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.18);
}

[data-bs-theme="dark"] {
  --primary: #38bdf8;
  --primary-rgb: 56, 189, 248;
  --primary-dark: #0284c7;
  --primary-light: #60a5fa;
  --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #14b8a6 100%);
  --accent: #2dd4bf;
  --accent-rgb: 45, 212, 191;
  --accent-dark: #0d9488;
  --accent-cyan: #22d3ee;

  --bg-page: #070b14;
  --bg-surface: #0f172a;
  --bg-subtle: #141e33;
  --card-bg: #0f172a;
  --border-color: rgba(51, 65, 85, 0.6);
  --border-subtle: rgba(51, 65, 85, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --nav-bg: rgba(10, 15, 29, 0.9);
  --nav-border: rgba(51, 65, 85, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.22);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .fw-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Utilities */
.bg-page { background-color: var(--bg-page) !important; }
.bg-surface { background-color: var(--bg-surface) !important; }
.bg-subtle { background-color: var(--bg-subtle) !important; }
.border-subtle { border-color: var(--border-subtle) !important; }
.text-teal { color: var(--accent) !important; }
.bg-teal-subtle { background-color: rgba(var(--accent-rgb), 0.12) !important; }
.border-teal { border-color: var(--accent) !important; }
.font-monospace { font-family: 'JetBrains Mono', monospace !important; }

/* 1. Global Navigation Bar */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
  z-index: 1020;
}

.navbar.scrolled {
  padding: 0.55rem 0;
  background: var(--nav-bg);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main) !important;
  letter-spacing: -0.03em;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo-img {
  transform: rotate(8deg) scale(1.08);
}

.brand-text-accent {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.9rem !important;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0px;
  height: 2.5px;
  width: 0;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 1.8rem);
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  background: var(--card-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* 2. Enterprise Hero Section */
.hero-section {
  position: relative;
  min-height: clamp(660px, 85vh, 860px);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, #0a0f1d 0%, #0f172a 50%, #071529 100%);
  color: #ffffff;
  padding: 5.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 1.4rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #38bdf8 60%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.2rem;
}

.hero-telemetry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.telemetry-item i {
  color: var(--accent);
}

/* 3. Buttons */
.btn-enterprise-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #0b5ea8 50%, #0f766e 100%);
  border: none;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-enterprise-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(20, 184, 166, 0.4);
  color: #ffffff;
}

.btn-enterprise-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-enterprise-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* 4. Numerical Metrics Banner */
.metrics-banner {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
  position: relative;
  z-index: 2;
}

.metric-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

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

/* 5. Section Titles & Badges */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

.section-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* 6. Enterprise Services Cards */
.service-card-enterprise {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.service-card-enterprise:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.service-img-wrapper {
  position: relative;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #0f172a;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-enterprise:hover .service-img-wrapper img {
  transform: scale(1.08);
}

.service-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.service-capabilities-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-capabilities-list li i {
  color: var(--accent);
  font-size: 0.8rem;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.service-learn-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card-enterprise:hover .service-learn-more {
  color: var(--accent);
  gap: 0.7rem;
}

/* 7. Interactive Solution Configurator Widget */
.configurator-panel {
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.configurator-blueprint {
  background: var(--bg-subtle);
  border: 1px dashed var(--accent);
  border-radius: 18px;
  padding: 1.8rem;
  height: 100%;
}

.custom-form-check {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.9rem 1.1rem 0.9rem 2.8rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-form-check:hover {
  border-color: var(--accent);
  background: var(--card-bg);
}

.custom-form-check input:checked ~ label {
  font-weight: 700;
  color: var(--primary);
}

/* 8. Sectors Tabbed Section */
.nav-pills-enterprise .nav-link {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.25s ease;
}

.nav-pills-enterprise .nav-link::after {
  display: none;
}

.nav-pills-enterprise .nav-link:hover {
  background: var(--card-bg);
  border-color: var(--accent);
  transform: translateX(4px);
}

.nav-pills-enterprise .nav-link.active {
  background: var(--card-bg);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
  color: var(--primary) !important;
}

.sector-content-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

/* 9. Values & Culture (3D Tilt Effect) */
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.8rem;
  height: 100%;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.value-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

/* 10. Client Testimonials */
.testimonial-card-enterprise {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card-enterprise:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.quote-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.client-author-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.author-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* 11. Contact Hub */
.contact-hub-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-quick-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.contact-quick-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* 12. Enterprise Footer */
.enterprise-footer {
  background: #0a0f1d;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 3.5rem;
    min-height: auto;
  }
  .configurator-panel {
    padding: 1.5rem;
  }
  .contact-hub-card {
    padding: 1.5rem;
  }
  .service-card-enterprise {
    padding: 1.4rem;
  }
}
