/* ============================================================
   JBAC Innovations – Global Stylesheet
   Company: JBAC Innovations Private Limited
   CIN: U62012GJ2026PTC173156
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e2e8f0; background: #030712; line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
code, .mono { font-family: 'JetBrains Mono', monospace; }
a { color: #60a5fa; text-decoration: none; transition: color .2s; }
a:hover { color: #93c5fd; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Ambient BG === */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(59,130,246,0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(6,182,212,0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(99,102,241,0.06), transparent 50%);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 99px; }

/* === Layout === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* === Typography === */
h1 { font-size: clamp(2rem,5vw,3.25rem); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1.25; }
h3 { font-size: 1.1rem; font-weight: 700; color: #fff; }
h4 { font-size: .9rem; font-weight: 600; color: #fff; }
.text-gradient { background: linear-gradient(135deg,#60a5fa,#22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-muted { color: #94a3b8; }
.text-subtle { color: #64748b; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }

/* === Glass Cards === */
.glass {
  background: rgba(15,23,42,0.65); border: 1px solid rgba(99,102,241,0.15);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 1.25rem;
}
.glass-strong {
  background: rgba(15,23,42,0.85); border: 1px solid rgba(99,102,241,0.25);
  backdrop-filter: blur(24px); border-radius: 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* === Buttons === */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem; font-size: .85rem; font-weight: 600;
  color: #fff; border: none; border-radius: 99px; cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 6px 24px rgba(59,130,246,0.3);
  transition: all .3s; text-decoration: none; font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(59,130,246,0.4); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.35rem; font-size: .85rem; font-weight: 500;
  color: #93c5fd; border: 1px solid rgba(59,130,246,0.4); border-radius: 99px;
  background: transparent; cursor: pointer; transition: all .3s; text-decoration: none; font-family: inherit;
}
.btn-outline:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.6); color: #93c5fd; }
.btn-sm { padding: .45rem .9rem; font-size: .75rem; }

/* === Badge === */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 99px; font-size: .7rem; font-weight: 500;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.15));
  border: 1px solid rgba(59,130,246,0.35); color: #93c5fd;
}

/* === Grids === */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media(min-width:768px) {
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media(min-width:1024px) {
  .grid-4 { grid-template-columns: repeat(4,1fr); }
}

/* === Divider === */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent); }

/* === Nav === */
.nav-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(30,41,59,0.5);
  background: rgba(3,7,18,0.75); backdrop-filter: blur(16px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo-icon {
  position: relative; width: 2.75rem; height: 2.75rem; border-radius: 1rem;
  background: linear-gradient(135deg,#3b82f6,#06b6d4);
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-inner {
  width: 1.75rem; height: 1.75rem; border-radius: .7rem; background: #030712;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(147,197,253,0.4);
}
.nav-logo-dot {
  position: absolute; right: -.2rem; bottom: -.2rem; width: .7rem; height: .7rem;
  border-radius: 50%; background: #030712; border: 1px solid rgba(34,211,238,0.6);
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-link {
  color: #94a3b8; font-size: .85rem; text-decoration: none; transition: color .2s;
  cursor: pointer; background: none; border: none; font-family: inherit; padding: 0;
}
.nav-link:hover { color: #e2e8f0; }
.nav-link[aria-current="page"], .nav-link.active { color: #e2e8f0; position: relative; }
.nav-link[aria-current="page"]::after, .nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.6rem;
  height: 2px; border-radius: 99px; background: linear-gradient(90deg, #3b82f6, #06b6d4);
}
.nav-cta { display: none; }
.mobile-toggle {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid rgba(51,65,85,0.6); background: transparent;
  color: #e2e8f0; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
#mobile-nav { display: none; border-top: 1px solid rgba(30,41,59,0.5); background: rgba(3,7,18,0.95); padding: .75rem 1.25rem; }
#mobile-nav.open { display: block; }
#mobile-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
#mobile-nav a {
  display: block; text-align: left; padding: .5rem .75rem; border-radius: .5rem;
  background: rgba(15,23,42,0.6); color: #94a3b8; font-size: .85rem; text-decoration: none;
}
#mobile-nav a:hover, #mobile-nav a[aria-current="page"] { color: #e2e8f0; background: rgba(15,23,42,0.9); }
@media(min-width:768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .mobile-toggle { display: none; }
}

/* === Hero === */
.hero-wrapper {
  position: relative; overflow: hidden; border-radius: 1.75rem;
  border: 1px solid rgba(99,102,241,0.15);
  background:
    radial-gradient(circle at 80% 20%, rgba(59,130,246,0.2), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(6,182,212,0.15), transparent 50%),
    rgba(15,23,42,0.4);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .4;
  background-image:
    linear-gradient(rgba(99,102,241,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 2; padding: 3rem 2rem; }

/* === Product Card === */
.product-card {
  position: relative; overflow: hidden; padding: 2rem; border-radius: 1.25rem;
  background: rgba(15,23,42,0.5); border: 1px solid rgba(99,102,241,0.12);
  transition: all .4s;
}
.product-card:hover {
  border-color: rgba(99,102,241,0.35); transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.product-card .product-glow {
  position: absolute; top: -30%; right: -20%; width: 60%; height: 60%;
  border-radius: 50%; filter: blur(80px); opacity: 0; transition: opacity .4s;
}
.product-card:hover .product-glow { opacity: 1; }
.product-icon {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1rem;
}

/* === Service Card === */
.service-card { padding: 1.25rem; }
.service-icon {
  width: 2rem; height: 2rem; border-radius: .6rem;
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
}

/* === Stat Number === */
.stat-number {
  font-size: 2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* === Scroll Animations === */
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* === Forms === */
.form-input, .form-textarea, .form-select {
  width: 100%; padding: .6rem .85rem; font-size: .8rem;
  background: rgba(2,6,23,0.6); border: 1px solid rgba(51,65,85,0.6);
  border-radius: .6rem; color: #e2e8f0; transition: border-color .2s; font-family: inherit;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: rgba(59,130,246,0.6); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-label { display: block; font-size: .7rem; color: #64748b; margin-bottom: .25rem; font-weight: 500; }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

/* === Footer === */
.site-footer { border-top: 1px solid rgba(30,41,59,0.5); background: rgba(3,7,18,0.8); }
.footer-inner {
  padding: 2.5rem 0 1.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media(min-width:768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom {
  padding: 1rem 0; border-top: 1px solid rgba(30,41,59,0.4);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; font-size: .7rem; color: #475569;
}

/* === Breadcrumb === */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: #64748b; margin-bottom: 1.5rem; }
.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: #93c5fd; }
.breadcrumb .sep { color: #334155; }

/* === Chatbot === */
.chatbot-btn {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 8px 32px rgba(59,130,246,0.4);
  border: none; color: #fff; cursor: pointer; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
.chatbot-btn:hover { transform: scale(1.08); }
.chatbot-panel {
  position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 50;
  width: 20rem; max-width: 90vw; border-radius: 1.25rem;
  background: rgba(7,12,30,0.95); border: 1px solid rgba(99,102,241,0.4);
  backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none; overflow: hidden;
}
.chatbot-panel.open { display: block; }

/* === Pulse === */
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* === Screen Reader === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Content Prose (for inner pages) === */
.prose h2 { margin-top: 2rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: .5rem; font-size: 1rem; }
.prose p { color: #94a3b8; font-size: .88rem; margin-bottom: 1rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose ul li { color: #94a3b8; font-size: .85rem; margin-bottom: .35rem; position: relative; padding-left: .75rem; }
.prose ul li::before { content: '•'; position: absolute; left: 0; color: #3b82f6; }
