/* ============================================================
   NeuralStream AgentiX — Global Stylesheet
   Pure Static | Hostinger Ready
   ============================================================ */
:root {
  --navy:        #0a0e1a;
  --navy-mid:    #0d1528;
  --navy-card:   #111827;
  --navy-border: #1e2d47;
  --accent:      #00c8ff;
  --accent-dim:  rgba(0,200,255,0.10);
  --accent-glow: rgba(0,200,255,0.30);
  --accent-blue: #4fa3e0;
  --white:       #ffffff;
  --off-white:   #e2e8f0;
  --muted:       #7a8fa6;
  --font-head:   'Oxanium', sans-serif;
  --font-ui:     'Rajdhani', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      10px;
  --radius-lg:   18px;
  --tr:          0.3s ease;
  --glow:        0 0 30px rgba(0,200,255,0.15);
  --nav-h:       76px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--off-white);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; color: var(--white); line-height: 1.2; }
p   { color: var(--muted); }
a   { text-decoration: none; transition: color var(--tr); }
img { max-width: 100%; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: rgba(0,200,255,0.22); color: var(--white); }

@media (max-width: 768px) {
  .flex-container {
    flex-direction: column !important;
    align-items: center;
  }
  #footer-placeholder p.footer-tagline {
    width: 100%;
    text-align: center;
    display: block;
    max-width: 100%;
}
}
@media (max-width: 768px) {

  .sec-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .sec-text {
    font-size: 14px;
    text-align: center;
  }

}
@media (max-width: 768px) {

  .btn-glow,
  .btn-outline {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

}
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }
}
.hero-h1 {
  margin: 0;
  line-height: 1;   /* 🔥 KEY FIX */
}

.hero-h1 .line1,
.hero-h1 .line2 {
  display: block;
}

.hero-h1 .line2 {
  height: 1.1em;   /* stable height */
  overflow: hidden;
}

#typedText {
  display: inline-block;
  min-width: 320px;
  white-space: nowrap;
}

/* ── Utilities ── */
.text-accent      { color: var(--accent)      !important; }
.text-accent-blue { color: var(--accent-blue) !important; }
.sec-pad   { padding: 96px 0; }
.sec-pad-s { padding: 56px 0; }

/* ── Section Tag ── */
.sec-tag {
  display: inline-block;
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(0,200,255,0.22); border-radius: 30px;
  padding: 5px 16px; margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.5px; margin-bottom: 1.1rem;
}
.sec-text { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin-bottom: 1rem; }

/* ── Buttons ── */
.btn-glow {
  display: inline-block;
  background: var(--accent); color: var(--navy) !important;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  letter-spacing: 0.4px; border: none; border-radius: var(--radius);
  padding: 12px 28px; cursor: pointer;
  transition: all var(--tr); box-shadow: 0 4px 22px rgba(0,200,255,0.22);
}
.btn-glow:hover { background: #33d4ff; box-shadow: 0 6px 30px rgba(0,200,255,0.40); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--accent) !important;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--accent); border-radius: var(--radius);
  padding: 11px 27px; transition: all var(--tr);
}
.btn-outline:hover { background: var(--accent-dim); box-shadow: 0 4px 18px rgba(0,200,255,0.18); }
.btn-light-outline {
  display: inline-block;
  background: transparent; color: var(--off-white) !important;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.22); border-radius: var(--radius);
  padding: 11px 27px; transition: all var(--tr);
}
.btn-light-outline:hover { border-color: var(--white); color: var(--white) !important; }

/* ── Card ── */
.card-dark {
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg); padding: 26px 22px; height: 100%;
  transition: all var(--tr);
}
.card-dark:hover { border-color: rgba(0,200,255,0.32); box-shadow: var(--glow); transform: translateY(-4px); }
.card-icon { font-size: 1.9rem; color: var(--accent); display: block; margin-bottom: 14px; }

/* ── Video BG sections ── */
/* Default full-width background video section */
@media (max-width: 768px) {
  

.vid-break {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 480px;
  max-height: 860px;
  display: flex;
  align-items: center;
  justify-content: center;
}
}
@media (max-width: 768px) {

  .footer-inner {
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

}

.vid-break video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
img, video {
  max-width: 100%;
  height: auto;
}

.vid-break .vb-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10,14,26,0.82) 0%, rgba(10,14,26,0.72) 100%);
}

.vid-break .vb-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}

.vb-content h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.vb-content p {
  font-size: 16.5px;
  max-width: 580px;
  margin: 0 auto 1.8rem;
}

/* Storyboard split section */
.vid-break-storyboard {
  position: relative;
  overflow: hidden;
  padding: 82px 12px;
}

.vid-break-storyboard.flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1360px, 100%);
  margin: 0 auto;
}

.vid-break-storyboard .left-content,
.vid-break-storyboard .right-content {
  position: relative;
  z-index: 2;
}

.vid-break-storyboard .left-content {
  flex: 0 0 34%;
  max-width: 500px;
}

.vid-break-storyboard .left-content h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.vid-break-storyboard .left-content p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.9rem;
}

.vid-break-storyboard .right-content {
  flex: 1 1 66%;
  min-width: 0;
}

.storyboard-shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: 0;
  background: linear-gradient(180deg, rgba(4, 10, 24, 0.98), rgba(5, 8, 16, 0.98));
  border: 1px solid rgba(60, 140, 255, 0.25);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
}

.storyboard-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(60,140,255,0.18), transparent 30%, transparent 70%, rgba(0,200,255,0.15));
  z-index: 0;
  pointer-events: none;
}

.storyboard-shell::after {
  content: none;
}

.storyboard-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  background: transparent;
}

.storyboard-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.storyboard-title,
.storyboard-scene {
  position: absolute;
  top: 18px;
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
}

.storyboard-title {
  left: 20px;
  letter-spacing: 2px;
  color: rgba(80,160,255,0.7);
}

.storyboard-scene {
  right: 20px;
  letter-spacing: 1px;
  color: rgba(80,160,255,0.45);
}

.storyboard-caption {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  min-width: min(90%, 420px);
  padding: 8px 20px;
  border: 0.5px solid rgba(60,140,255,0.25);
  border-radius: 10px;
  background: rgba(5,8,18,0.85);
  color: rgba(180,210,255,0.85);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: opacity 0.5s;
}

.storyboard-progress-bg,
.storyboard-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
}

.storyboard-progress-bg {
  width: 100%;
  background: rgba(255,255,255,0.05);
}

.footer-bottom {
  display: flex;
  justify-content: center;   /* ✅ CENTER FIX */
  align-items: center;
  text-align: center;
  padding: 18px 0;
  margin-top: 38px;
  border-top: 1px solid var(--navy-border);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
  width: 100%;
  text-align: center;
}

.storyboard-progress {
  width: 0%;
  background: rgba(60,140,255,0.7);
  transition: width 0.15s linear;
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  background: transparent; transition: background 0.4s ease, box-shadow 0.4s ease;
}
#mainNav.scrolled {
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--navy-border);
}
#mainNav .container-xl { width: 100%; }
.navbar-brand img { height: 56px; transition: filter var(--tr); }
.navbar-brand img:hover { filter: drop-shadow(0 0 10px var(--accent)); }

.nav-link {
  font-family: var(--font-ui) !important; font-size: 15.5px !important;
  font-weight: 600 !important; letter-spacing: 0.3px;
  color: var(--off-white) !important; padding: 8px 15px !important;
  border-radius: 6px; transition: all var(--tr); position: relative;
}
.nav-link::after {
  content:''; position: absolute; bottom: 3px; left: 15px; right: 15px;
  height: 2px; background: var(--accent); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--tr);
}
.nav-link:hover::after, .nav-link.active-page::after { transform: scaleX(1); }
.nav-link:hover { color: var(--white) !important; }
.navbar-nav { gap: 2px; align-items: center; }

.nav-demo {
  background: var(--accent) !important; color: var(--navy) !important;
  font-family: var(--font-ui) !important; font-size: 14.5px !important;
  font-weight: 700 !important; border-radius: var(--radius) !important;
  padding: 9px 24px !important; margin-left: 8px;
  box-shadow: 0 3px 14px rgba(0,200,255,0.24);
  transition: all var(--tr) !important;
}
.nav-demo:hover { background: #33d4ff !important; box-shadow: 0 5px 22px rgba(0,200,255,0.40) !important; transform: translateY(-1px); }
.nav-demo::after { display: none !important; }

.dropdown-menu { background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: var(--radius); padding: 8px; margin-top: 6px; }
.dropdown-item { font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--off-white); border-radius: 6px; padding: 9px 14px; transition: all var(--tr); }
.dropdown-item:hover { background: var(--accent-dim); color: var(--accent); }
.navbar-toggler { border: 1px solid var(--navy-border); padding: 7px 10px; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,200,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ══════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════ */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: var(--navy-mid); border-bottom: 1px solid var(--navy-border);
}
.page-hero .vbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero .vbg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.page-hero .vbg::after { content:''; position: absolute; inset: 0; background: rgba(10,14,26,0.88); }
.page-hero .container-xl { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -0.5px; }
.breadcrumb-bar { font-family: var(--font-ui); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb-bar a { color: var(--accent); }
.breadcrumb-bar span { margin: 0 7px; opacity: 0.4; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer { background: var(--navy-mid); border-top: 1px solid var(--navy-border); }
.footer-inner { padding: 58px 0 0; }
.footer-logo img { height: 52px; }
.footer-tagline { color: var(--muted); font-size: 14px; max-width: 270px; margin-top: 12px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a { width: 38px; height: 38px; border: 1px solid var(--navy-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1rem; transition: all var(--tr); }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.footer-head { font-family: var(--font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 0; margin-top: 38px; border-top: 1px solid var(--navy-border); font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════════════
   FORM INPUTS (Contact)
══════════════════════════════════════════════════ */
.f-label { font-family: var(--font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); display: block; margin-bottom: 5px; }
.f-input {
  width: 100%; background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--navy-border) !important; color: var(--white) !important;
  border-radius: var(--radius) !important; padding: 11px 15px !important;
  font-family: var(--font-body) !important; font-size: 14px !important;
  transition: all var(--tr) !important; margin-bottom: 14px;
}
.f-input::placeholder { color: rgba(122,143,166,0.45) !important; }
.f-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(0,200,255,0.10) !important; background: rgba(0,200,255,0.03) !important; outline: none !important; }
.f-input option { background: var(--navy-card); color: var(--white); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

/* ============================================================
   VIDEO BREAK WITH RIGHT SIDE CANVAS ANIMATION
   ============================================================ */
.vid-break-split {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--navy-mid);
}

.vid-break-split .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.vid-break-split .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,0.85) 0%, rgba(10,14,26,0.75) 100%);
  z-index: 1;
}

.vid-break-split .container-xl {
  position: relative;
  z-index: 2;
}

/* Left content */
.vb-left-content {
  padding-right: 2rem;
}

.vb-left-content .sec-tag {
  margin-bottom: 1rem;
}

.vb-left-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.vb-left-content p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
  max-width: 90%;
}

/* Right side canvas wrapper */
.vb-canvas-wrapper {
  background: rgba(5,8,18,0.5);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(60,140,255,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.vb-canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #050810;
}

/* Responsive */
@media (max-width: 991px) {
  .vb-left-content {
    padding-right: 0;
    margin-bottom: 2rem;
    text-align: center;
  }
  .vb-left-content p {
    max-width: 100%;
  }
  .vid-break-split {
    min-height: auto;
    padding: 3rem 0;
  }
}
@media (max-width: 991px) {
  #mainNav { height: auto; padding: 12px 0; }
  .navbar-brand img { height: 48px; }
  .nav-demo { margin-left: 0; margin-top: 8px; }
  .vid-break {
    height: 60vh;
  }
  .vid-break-storyboard {
    padding: 64px 12px;
  }
  .vid-break-storyboard.flex-container {
    flex-direction: column;
    gap: 1.8rem;
  }
  .vid-break-storyboard .left-content,
  .vid-break-storyboard .right-content {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
  .vid-break-storyboard .left-content {
    text-align: center;
  }
  .storyboard-shell {
    max-width: 100%;
  }
  .storyboard-canvas {
    height: auto;
  }
}
@media (max-width: 767px) {
  .sec-pad { padding: 66px 0; }
  .vid-break {
    height: 52vh;
    min-height: 360px;
  }
  .vid-break-storyboard {
    padding: 48px 8px;
  }
  .vid-break-storyboard.flex-container {
    width: 100%;
  }
  .storyboard-caption {
    bottom: 44px;
    min-width: 0;
    width: calc(100% - 24px);
    padding: 8px 14px;
    font-size: 10px;
    white-space: normal;
  }
.storyboard-title,
.storyboard-scene {
  top: 12px;
  font-size: 9px;
  }
}
