/* ==========================================================================
   TechOrbit Live Demo: NexusCorp Enterprise & Corporate Business Template
   ========================================================================== */

:root {
  /* Theme: Default Indigo Tech */
  --demo-primary: #4F46E5;
  --demo-primary-dark: #3730A3;
  --demo-primary-light: #EEF2FF;
  --demo-accent: #06B6D4;
  --demo-accent-light: #ECFEFF;
  --demo-text-main: #0F172A;
  --demo-text-body: #334155;
  --demo-text-muted: #64748B;
  --demo-bg: #FFFFFF;
  --demo-bg-subtle: #F8FAFC;
  --demo-border: #E2E8F0;
  --demo-radius: 12px;
  --demo-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --demo-shadow-lg: 0 20px 35px -10px rgba(79, 70, 229, 0.12);
  --demo-font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --demo-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Theme: Deep Navy Enterprise */
[data-theme="navy"] {
  --demo-primary: #0284C7;
  --demo-primary-dark: #0369A1;
  --demo-primary-light: #F0F9FF;
  --demo-accent: #38BDF8;
  --demo-accent-light: #E0F2FE;
}

/* Theme: Emerald Luxury */
[data-theme="emerald"] {
  --demo-primary: #059669;
  --demo-primary-dark: #047857;
  --demo-primary-light: #ECFDF5;
  --demo-accent: #10B981;
  --demo-accent-light: #D1FAE5;
}

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

body {
  font-family: var(--demo-font-body);
  color: var(--demo-text-body);
  background-color: var(--demo-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--demo-font-head);
  color: var(--demo-text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------- TOP DEMO TOOLBAR ---------------- */
.demo-top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0F172A;
  color: #F8FAFC;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--demo-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.demo-top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-badge-live {
  background: #10B981;
  color: #FFFFFF;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.demo-badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.demo-top-bar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-pill-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.775rem;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-pill-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-return-techorbit {
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-return-techorbit:hover {
  transform: translateY(-1px);
}

/* ---------------- HEADER & NAVBAR ---------------- */
.demo-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--demo-border);
  position: sticky;
  top: 45px;
  z-index: 990;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.demo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.demo-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--demo-text-main);
  letter-spacing: -0.5px;
}

.demo-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--demo-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.1rem;
}

.demo-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.demo-nav-links a {
  font-weight: 600;
  color: var(--demo-text-body);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.demo-nav-links a:hover {
  color: var(--demo-primary);
}

.demo-btn-cta {
  background: var(--demo-primary);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: var(--demo-shadow-lg);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-btn-cta:hover {
  background: var(--demo-primary-dark);
  transform: translateY(-2px);
}

/* ---------------- HERO SECTION ---------------- */
.demo-hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 80% 20%, var(--demo-primary-light) 0%, #FFFFFF 70%);
  position: relative;
  overflow: hidden;
}

.demo-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.demo-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--demo-primary-light);
  color: var(--demo-primary);
  font-size: 0.825rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.demo-hero h1 {
  font-size: 3.25rem;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  color: var(--demo-text-main);
}

.demo-hero h1 span {
  color: var(--demo-primary);
}

.demo-hero p {
  font-size: 1.15rem;
  color: var(--demo-text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.demo-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.demo-btn-outline {
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  border: 1.5px solid var(--demo-border);
  background: #FFFFFF;
  color: var(--demo-text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.demo-btn-outline:hover {
  border-color: var(--demo-primary);
  color: var(--demo-primary);
  background: var(--demo-primary-light);
}

.demo-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--demo-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
  position: relative;
}

.demo-metric-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #10B981;
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* ---------------- KPI METRICS STRIP ---------------- */
.demo-kpi-section {
  padding: 2.5rem 0;
  background: var(--demo-bg-subtle);
  border-top: 1px solid var(--demo-border);
  border-bottom: 1px solid var(--demo-border);
}

.demo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.demo-kpi-item h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--demo-primary);
  margin-bottom: 0.2rem;
}

.demo-kpi-item p {
  font-size: 0.875rem;
  color: var(--demo-text-muted);
  font-weight: 600;
}

/* ---------------- SERVICES & SOLUTIONS TABS ---------------- */
.demo-section {
  padding: 5rem 0;
}

.demo-section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.demo-section-head h2 {
  font-size: 2.35rem;
  margin-bottom: 0.75rem;
}

.demo-section-head p {
  color: var(--demo-text-muted);
  font-size: 1.05rem;
}

.demo-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.demo-service-card {
  background: #FFFFFF;
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  padding: 2rem;
  transition: all 0.3s;
  box-shadow: var(--demo-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-service-card:hover {
  transform: translateY(-6px);
  border-color: var(--demo-primary);
  box-shadow: var(--demo-shadow-lg);
}

.demo-service-icon {
  width: 52px;
  height: 52px;
  background: var(--demo-primary-light);
  color: var(--demo-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.demo-service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.demo-service-card p {
  font-size: 0.925rem;
  color: var(--demo-text-muted);
  margin-bottom: 1.25rem;
}

.demo-feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.demo-feature-list li {
  font-size: 0.85rem;
  color: var(--demo-text-body);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-feature-list li::before {
  content: "✓";
  color: var(--demo-primary);
  font-weight: 900;
}

/* ---------------- INTERACTIVE ROI & QUOTE CALCULATOR ---------------- */
.demo-calc-box {
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  margin-top: 2rem;
}

.demo-calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.demo-calc-left h3 {
  color: #FFFFFF;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.demo-calc-form-group {
  margin-bottom: 1.25rem;
}

.demo-calc-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #CBD5E1;
}

.demo-calc-select, .demo-calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.demo-calc-result-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.demo-calc-val {
  font-size: 2.75rem;
  font-weight: 800;
  color: #38BDF8;
  margin: 0.5rem 0;
}

/* ---------------- FILTERABLE CASE STUDIES ---------------- */
.demo-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.demo-tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid var(--demo-border);
  background: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-tab-btn.active, .demo-tab-btn:hover {
  background: var(--demo-primary);
  color: #FFFFFF;
  border-color: var(--demo-primary);
}

.demo-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.demo-project-card {
  background: #FFFFFF;
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  overflow: hidden;
  box-shadow: var(--demo-shadow);
  transition: transform 0.3s;
}

.demo-project-card:hover {
  transform: translateY(-5px);
}

.demo-project-img {
  height: 200px;
  background: var(--demo-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.demo-project-body {
  padding: 1.5rem;
}

.demo-project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--demo-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-project-body h4 {
  font-size: 1.2rem;
  margin: 0.35rem 0 0.5rem;
}

.demo-project-body p {
  font-size: 0.875rem;
  color: var(--demo-text-muted);
}

/* ---------------- FAQ ACCORDION ---------------- */
.demo-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.demo-faq-item {
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  margin-bottom: 1rem;
  background: #FFFFFF;
  overflow: hidden;
}

.demo-faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.demo-faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--demo-primary);
  transition: transform 0.2s;
}

.demo-faq-item.active .demo-faq-question::after {
  content: "−";
}

.demo-faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--demo-text-muted);
  font-size: 0.95rem;
  display: none;
}

.demo-faq-item.active .demo-faq-answer {
  display: block;
}

/* ---------------- CONSULTATION MODAL ---------------- */
.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.demo-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.demo-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

/* ---------------- RESPONSIVENESS ---------------- */
@media (max-width: 992px) {
  .demo-hero-grid, .demo-calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .demo-services-grid, .demo-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .demo-nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .demo-hero h1 {
    font-size: 2.25rem;
  }
  .demo-services-grid, .demo-projects-grid {
    grid-template-columns: 1fr;
  }
  .demo-kpi-grid {
    grid-template-columns: 1fr;
  }
  .demo-top-bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
