/* ══════════════════════════════════════════════════════════════════
   StarPro Vision Technology Corporation — Professional UI
   Primary : Logo Red  #CC0000  |  Secondary : Logo Blue  #1E22BB
   ══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --red-950:  #550000;
  --red-900:  #AA0000;
  --red-800:  #CC0000;
  --red-700:  #EE1111;
  --red-600:  #FF2222;
  --red-100:  #FFE0E0;
  --red-50:   #FFF5F5;

  --blue-950: #0E1080;
  --blue-900: #1E22BB;
  --blue-800: #2228CC;
  --blue-700: #2D33E0;
  --blue-600: #3840EE;
  --blue-100: #DDDEFF;
  --blue-50:  #EDEDFF;

  --gold-700: #B45309;
  --gold-500: #F59E0B;
  --gold-100: #FEF3C7;

  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  /* Semantic */
  --spvt-primary:        #CC0000;
  --spvt-primary-dark:   #AA0000;
  --spvt-primary-light:  #EE1111;
  --spvt-secondary:      #1E22BB;
  --spvt-secondary-dark: #0E1080;
  --spvt-blue:           #3840EE;
  --spvt-gold:           #B45309;
  --spvt-accent:         #F59E0B;

  --spvt-bg:         #FAFBFC;
  --spvt-bg-alt:     #F1F5F9;
  --spvt-text:       #111827;
  --spvt-text-muted: #6B7280;
  --spvt-card-bg:    #FFFFFF;
  --spvt-border:     #E5E7EB;

  /* Gradients */
  --grad-hero:       linear-gradient(145deg, #030712 0%, #0E1080 40%, #1E22BB 65%, #AA0000 100%);
  --grad-page-hero:  linear-gradient(145deg, #0E1080 0%, #1E22BB 50%, #AA0000 100%);
  --grad-primary:    linear-gradient(135deg, #CC0000 0%, #EE1111 100%);
  --grad-secondary:  linear-gradient(135deg, #0E1080 0%, #1E22BB 100%);
  --grad-card-top:   linear-gradient(90deg, #CC0000, #1E22BB);

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-xl:   0 24px 56px rgba(0,0,0,0.13), 0 8px 24px rgba(0,0,0,0.09);
  --shadow-red:  0 6px 20px rgba(204,0,0,0.32);
  --shadow-blue: 0 6px 20px rgba(30,34,187,0.28);

  /* Radii */
  --r-sm:  0.375rem;
  --r-md:  0.75rem;
  --r-lg:  1rem;
  --r-xl:  1.25rem;
  --r-2xl: 1.75rem;

  /* Bootstrap token overrides */
  --bs-primary:        #CC0000;
  --bs-primary-rgb:    204,0,0;
  --bs-link-color:     #CC0000;
  --bs-link-hover-color: #AA0000;
  --bs-body-font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --bs-body-color:     #1F2937;

  /* Legacy compat */
  --spvt-hero-grad:    var(--grad-hero);
  --spvt-card-border:  var(--spvt-border);
}

html[data-theme="dark"] {
  --spvt-bg:         #080D18;
  --spvt-bg-alt:     #0F172A;
  --spvt-text:       #E2E8F0;
  --spvt-text-muted: #94A3B8;
  --spvt-card-bg:    #0F172A;
  --spvt-border:     rgba(255,255,255,0.09);
}

/* ══════════════════════════════════════════════════════════════════
   Page Loader / Splash Screen
   ══════════════════════════════════════════════════════════════════ */

/* ── Base structure (theme-agnostic) ───────────────────────────── */
#spvt-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.58s cubic-bezier(0.4,0,0.2,1),
              transform 0.58s cubic-bezier(0.4,0,0.2,1);
}
.spvt-loader-out {
  opacity: 0 !important;
  transform: translateY(-18px) scale(1.02) !important;
  pointer-events: none;
}

/* Dot-grid texture overlay */
#spvt-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
}
/* Ambient radial accent overlay */
#spvt-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  animation: loaderAmbient 5s ease-in-out infinite alternate;
}
@keyframes loaderAmbient {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* Rotating background rings */
.spvt-loader-bg-ring {
  position: absolute;
  border-radius: 50%;
  animation: loaderSpin linear infinite;
  pointer-events: none;
  z-index: 0;
}
.spvt-loader-bg-ring--outer { width: 600px; height: 600px; animation-duration: 28s; }
.spvt-loader-bg-ring--inner { width: 380px; height: 380px; animation-duration: 18s; animation-direction: reverse; }
@keyframes loaderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Content block */
.spvt-loader-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  animation: loaderIn 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes loaderIn {
  from { opacity: 0; transform: scale(0.80) translateY(28px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Logo card */
.spvt-loader-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  border-radius: var(--r-xl);
  border: 1px solid;
  backdrop-filter: blur(4px);
  animation: loaderGlow 3s ease-in-out infinite;
}
.spvt-loader-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: calc(var(--r-xl) + 18px);
  animation: loaderHalo 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes loaderHalo {
  0%,100% { transform: scale(1);    opacity: 0.6; }
  50%      { transform: scale(1.12); opacity: 1; }
}

.spvt-loader-logo {
  width: 260px;
  height: auto;
  display: block;
  animation: loaderLogoBob 4s ease-in-out 0.55s infinite;
}
@keyframes loaderLogoBob {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-6px); }
}

/* Progress bar */
.spvt-loader-bar {
  width: 200px;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  animation: loaderFadeIn 0.3s ease-out 0.55s forwards;
}
.spvt-loader-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1E22BB 0%, #CC0000 55%, #F59E0B 100%);
  animation: loaderProgress 3.2s cubic-bezier(0.12,0.6,0.86,1) 0.65s forwards;
}
@keyframes loaderProgress {
  0%  { width: 0%; }
  50% { width: 68%; }
  100%{ width: 100%; }
}

/* Tagline */
.spvt-loader-tagline {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: loaderFadeIn 0.4s ease-out 0.85s forwards;
}

/* Bouncing dots */
.spvt-loader-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  opacity: 0;
  animation: loaderFadeIn 0.3s ease-out 1.1s forwards;
}
.spvt-loader-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  animation: loaderDot 1.3s ease-in-out infinite;
}
.spvt-loader-dots span:nth-child(1) { background: #1E22BB; animation-delay: 0s; }
.spvt-loader-dots span:nth-child(2) { background: #CC0000; animation-delay: 0.22s; }
.spvt-loader-dots span:nth-child(3) { background: #F59E0B; animation-delay: 0.44s; }
@keyframes loaderDot {
  0%,80%,100% { transform: scale(0.65); opacity: 0.45; }
  40%          { transform: scale(1.25); opacity: 1; }
}

/* Shared fade-in */
@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────────────────────────
   LIGHT theme  (default — data-theme="light")
   ──────────────────────────────────────────────────────────────── */
html[data-theme="light"] #spvt-loader {
  background: linear-gradient(145deg, #EFF6FF 0%, #F8FAFC 45%, #FFF5F5 100%);
}
html[data-theme="light"] #spvt-loader::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(30,34,187,0.07) 1px, transparent 0);
}
html[data-theme="light"] #spvt-loader::after {
  background:
    radial-gradient(ellipse 520px 420px at 10% 90%, rgba(30,34,187,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 480px 380px at 90% 10%, rgba(204,0,0,0.10) 0%, transparent 70%);
}
html[data-theme="light"] .spvt-loader-bg-ring--outer { border: 1px solid rgba(30,34,187,0.10); }
html[data-theme="light"] .spvt-loader-bg-ring--inner { border: 1px solid rgba(204,0,0,0.08); }
html[data-theme="light"] .spvt-loader-logo-wrap {
  background: rgba(255,255,255,0.85);
  border-color: rgba(30,34,187,0.14);
  box-shadow: 0 0 0 1px rgba(30,34,187,0.08), 0 12px 48px rgba(30,34,187,0.10), 0 4px 16px rgba(0,0,0,0.06);
}
html[data-theme="light"] .spvt-loader-logo-wrap::before {
  background: radial-gradient(ellipse, rgba(30,34,187,0.14) 0%, transparent 70%);
}
@keyframes loaderGlowLight {
  0%,100% { box-shadow: 0 0 0 1px rgba(30,34,187,0.08), 0 12px 48px rgba(30,34,187,0.10), 0 0 32px rgba(30,34,187,0.08); }
  50%      { box-shadow: 0 0 0 1px rgba(204,0,0,0.15), 0 12px 48px rgba(30,34,187,0.18), 0 0 56px rgba(204,0,0,0.10); }
}
html[data-theme="light"] .spvt-loader-logo-wrap { animation: loaderGlowLight 3s ease-in-out infinite; }
html[data-theme="light"] .spvt-loader-logo {
  filter: drop-shadow(0 4px 14px rgba(30,34,187,0.22)) drop-shadow(0 2px 6px rgba(204,0,0,0.15));
}
html[data-theme="light"] .spvt-loader-tagline { color: rgba(30,41,59,0.55); }
html[data-theme="light"] .spvt-loader-bar     { background: rgba(30,34,187,0.10); }

/* ────────────────────────────────────────────────────────────────
   DARK theme  (data-theme="dark")
   ──────────────────────────────────────────────────────────────── */
html[data-theme="dark"] #spvt-loader {
  background: linear-gradient(145deg, #030712 0%, #0B1630 35%, #1A3272 65%, #4A0A0A 100%);
}
html[data-theme="dark"] #spvt-loader::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 0);
}
html[data-theme="dark"] #spvt-loader::after {
  background:
    radial-gradient(ellipse 520px 420px at 10% 90%, rgba(30,34,187,0.30) 0%, transparent 70%),
    radial-gradient(ellipse 480px 380px at 90% 10%, rgba(204,0,0,0.28) 0%, transparent 70%);
}
html[data-theme="dark"] .spvt-loader-bg-ring--outer { border: 1px solid rgba(255,255,255,0.06); }
html[data-theme="dark"] .spvt-loader-bg-ring--inner { border: 1px solid rgba(204,0,0,0.12); }
html[data-theme="dark"] .spvt-loader-logo-wrap {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 1px rgba(204,0,0,0.20), 0 8px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
html[data-theme="dark"] .spvt-loader-logo-wrap::before {
  background: radial-gradient(ellipse, rgba(30,34,187,0.25) 0%, transparent 70%);
}
@keyframes loaderGlowDark {
  0%,100% { box-shadow: 0 0 0 1px rgba(204,0,0,0.20), 0 8px 40px rgba(0,0,0,0.45), 0 0 40px rgba(30,34,187,0.20); }
  50%      { box-shadow: 0 0 0 1px rgba(204,0,0,0.45), 0 8px 40px rgba(0,0,0,0.45), 0 0 70px rgba(30,34,187,0.38); }
}
html[data-theme="dark"] .spvt-loader-logo-wrap { animation: loaderGlowDark 3s ease-in-out infinite; }
html[data-theme="dark"] .spvt-loader-logo {
  filter: drop-shadow(0 0 18px rgba(30,34,187,0.55)) drop-shadow(0 0 8px rgba(204,0,0,0.40));
}
html[data-theme="dark"] .spvt-loader-tagline { color: rgba(255,255,255,0.50); }
html[data-theme="dark"] .spvt-loader-bar     { background: rgba(255,255,255,0.10); }

/* ── Loader Responsive ────────────────────────────────────────── */
.spvt-loader-inner {
  max-width: calc(100vw - 2rem);
  padding: 0 1rem;
  width: 100%;
}
.spvt-loader-logo {
  width: min(260px, 72vw);
}
.spvt-loader-logo-wrap {
  max-width: calc(100vw - 3rem);
  width: auto;
}
.spvt-loader-bar {
  width: min(200px, 60vw);
}
.spvt-loader-tagline {
  font-size: clamp(0.62rem, 2.2vw, 0.74rem);
  text-align: center;
  padding: 0 0.5rem;
}
@media (max-width: 480px) {
  .spvt-loader-bg-ring--outer { width: 340px; height: 340px; }
  .spvt-loader-bg-ring--inner { width: 210px; height: 210px; }
  .spvt-loader-logo-wrap { padding: 1rem 1.25rem; }
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--spvt-text);
  background: var(--spvt-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: 'Plus Jakarta Sans', 'Manrope', 'Segoe UI', sans-serif;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 700; }

a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }

/* ── Typography helpers ─────────────────────────────────────────── */
.section-title {
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-primary);
}
.section-title.text-start::after { left: 0; transform: none; }

html[data-theme="dark"] .section-title { color: #F1F5F9; }

.text-primary   { color: var(--spvt-primary) !important; }
.text-secondary { color: var(--spvt-secondary) !important; }
.text-muted     { color: var(--spvt-text-muted) !important; }

/* ── Navigation ─────────────────────────────────────────────────── */
.site-header { background: transparent; }

.backdrop-blur {
  background: rgba(9, 14, 28, 0.97) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(204,0,0,0.40);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.site-header .navbar-brand {
  color: #FFFFFF !important;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.site-header .navbar-brand img {
  border: 2px solid rgba(204,0,0,0.65);
  transition: border-color 0.2s ease;
}
.site-header .navbar-brand:hover img { border-color: var(--red-700); }

.site-header .nav-link {
  color: rgba(255,255,255,0.80) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.7rem !important;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: #FFFFFF !important;
  background: rgba(204,0,0,0.22);
}
.site-header .nav-link.active {
  color: #FFFFFF !important;
  background: rgba(204,0,0,0.30);
}

/* ── Hero Slide Caption ─────────────────────────────────────────── */
.hero-slide-item {
  position: relative;
  display: block;
}
.hero-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(4,8,20,0.93) 0%, rgba(4,8,20,0.60) 55%, transparent 100%);
  padding: 2rem 1.25rem 1rem;
  color: #fff;
  pointer-events: none;
}
.hero-slide-caption h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-slide-caption p {
  font-size: 0.82rem;
  margin-bottom: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

/* ── Hero Swiper ─────────────────────────────────────────────────── */
.hero-section {
  color: #fff;
  background: var(--grad-hero);
  background-image: linear-gradient(rgba(10,15,30,0.8), rgba(10,15,30,0.8)), url('../../images/star1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 7.5rem 0 5.5rem;
  overflow: hidden;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.50;
  pointer-events: none;
}
.hero-shape.one {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(185,28,28,0.55), transparent 70%);
  right: -180px; top: -140px;
}
.hero-shape.two {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(37,99,235,0.45), transparent 70%);
  left: -200px; bottom: -120px;
}

.hero-swiper {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(204,0,0,0.25);
}
.hero-slide-image {
  width: 100%; height: 320px;
  object-fit: cover; display: block;
}

/* ── Page Hero ──────────────────────────────────────────────────── */
.page-hero {
  background: var(--grad-page-hero);
  color: #fff;
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-700) 0%, var(--blue-600) 50%, var(--red-700) 100%);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0,0,0,0.30);
}

/* ── Glass Card ─────────────────────────────────────────────────── */
.glass-card {
  background: var(--spvt-card-bg);
  border: 1px solid var(--spvt-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.glass-card:hover { box-shadow: var(--shadow-lg); }

a .team-card-link { transition: transform .2s ease, box-shadow .2s ease; }
a:hover .team-card-link { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.hero-section .glass-card {
  color: var(--spvt-text);
}

html[data-theme="dark"] .glass-card {
  background: var(--spvt-card-bg);
  border-color: rgba(255,255,255,0.08);
}

/* ── Card Hover Lifts ───────────────────────────────────────────── */
.stat-card,
.service-card,
.feature-card,
.industry-card,
.portfolio-card,
.product-module {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover,
.service-card:hover,
.feature-card:hover,
.industry-card:hover,
.portfolio-card:hover,
.product-module:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Red left accent on service cards */
.service-card {
  border-left: 3px solid transparent !important;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { border-left-color: var(--red-800) !important; }

/* Stat counter color */
.stat-card .h2,
.stat-card .display-4 {
  font-weight: 800;
  color: var(--red-800);
}

/* ── Icon Circles ───────────────────────────────────────────────── */
.icon-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--red-100) 0%, var(--blue-100) 100%);
  color: var(--red-800);
  border: 1px solid var(--red-100);
}
.icon-circle.blue {
  background: linear-gradient(135deg, var(--blue-100), #EEF2FF);
  color: var(--blue-900);
  border-color: var(--blue-100);
}
.icon-circle.gold {
  background: linear-gradient(135deg, var(--gold-100), #FDE68A);
  color: var(--gold-700);
  border-color: #FDE68A;
}

/* ── Staff Cards ────────────────────────────────────────────────── */
.staff-card {
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.staff-card-banner {
  height: 90px;
  background: linear-gradient(135deg, var(--red-900) 0%, var(--blue-900) 60%, var(--blue-700) 100%);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.staff-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 24px 24px;
}
.staff-card-body {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.staff-avatar-wrap {
  margin-top: -44px;
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 2;
}
.staff-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--spvt-card-bg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.staff-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.staff-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--spvt-text);
}
.staff-role {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--red-700);
  margin-bottom: 0.35rem;
}
.staff-dept {
  display: block;
  font-size: 0.78rem;
  color: var(--spvt-text-muted);
  margin-bottom: 0.75rem;
}
.staff-bio {
  font-size: 0.875rem;
  color: var(--spvt-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.staff-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--spvt-border);
}
.staff-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--spvt-text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
  overflow: hidden;
}
.staff-contact-link i {
  color: var(--red-700);
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}
.staff-contact-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.staff-contact-link:hover {
  color: var(--red-700);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  transition: all 0.22s ease;
}

.btn-primary {
  background: var(--grad-primary);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--red-900), var(--red-800));
  box-shadow: 0 10px 28px rgba(204,0,0,0.42);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary,
.btn-outline-secondary.btn-filled {
  background: var(--grad-secondary);
  border: none;
  color: #fff;
}
.btn-secondary:hover { background: linear-gradient(135deg, var(--blue-950), var(--blue-800)); color: #fff; }

.btn-outline-primary {
  --bs-btn-color:              #CC0000;
  --bs-btn-border-color:       #CC0000;
  --bs-btn-hover-bg:           #CC0000;
  --bs-btn-hover-border-color: #CC0000;
  --bs-btn-hover-color:        #fff;
  --bs-btn-active-bg:          #AA0000;
  --bs-btn-active-border-color:#AA0000;
  --bs-btn-active-color:       #fff;
  --bs-btn-focus-shadow-rgb:   204,0,0;
}
.btn-outline-secondary {
  --bs-btn-color:              #1E22BB;
  --bs-btn-border-color:       #1E22BB;
  --bs-btn-hover-bg:           #1E22BB;
  --bs-btn-hover-border-color: #1E22BB;
  --bs-btn-hover-color:        #fff;
}

.btn-light {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.30);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-light:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.50);
  color: #fff;
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-control, .form-select {
  border: 1px solid var(--spvt-border);
  border-radius: var(--r-md);
  padding: 0.6rem 0.875rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--spvt-card-bg);
  color: var(--spvt-text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--red-700);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.14);
  outline: none;
}
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background: #1E293B;
  border-color: rgba(255,255,255,0.14);
  color: #E2E8F0;
}
html[data-theme="dark"] .form-label { color: #CBD5E1; }

/* ── Tables ─────────────────────────────────────────────────────── */
.table {
  --bs-table-hover-bg: rgba(204,0,0,0.04);
}
.table thead th {
  font-weight: 700;
  font-size: 0.775rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200) !important;
  padding: 0.75rem 0.875rem;
}
.table td { padding: 0.875rem; vertical-align: middle; }
.table-light { --bs-table-bg: var(--gray-50) !important; }

html[data-theme="dark"] .table {
  --bs-table-color: var(--spvt-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .table-light { --bs-table-bg: rgba(255,255,255,0.04) !important; }

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert { border-radius: var(--r-md); border: none; font-weight: 500; }
.alert-success { background: #F0FDF4; color: #166534; border-left: 4px solid #16A34A; }
.alert-danger  { background: #FFF5F5; color: #CC0000; border-left: 4px solid var(--red-700); }
.alert-warning { background: #FFFBEB; color: #92400E; border-left: 4px solid var(--gold-500); }
.alert-info    { background: var(--blue-50); color: var(--blue-900); border-left: 4px solid var(--blue-600); }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border-radius: var(--r-sm);
  padding: 0.32em 0.65em;
}
.text-bg-info, .badge.text-bg-info {
  background-color: var(--blue-100) !important;
  color: var(--blue-900) !important;
}

/* ── Sections ───────────────────────────────────────────────────── */
.section-alt { background: var(--spvt-bg-alt); }
.section-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--red-800) 0%, var(--blue-700) 50%, var(--red-800) 100%);
}

/* ── Portfolio Filter ───────────────────────────────────────────── */
.filter-btn { font-weight: 700; border-radius: 999px; }
.filter-btn.active {
  background: var(--red-800) !important;
  color: #fff !important;
  border-color: var(--red-800) !important;
  box-shadow: var(--shadow-red);
}

/* ── Blog Post Detail Content ───────────────────────────────────── */
.blog-post-content {
  font-size: 1.0125rem;
  line-height: 1.85;
  color: var(--spvt-text);
}
.blog-post-content p  { margin-bottom: 1.25rem; }
.blog-post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--spvt-text); }
.blog-post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.6rem; color: var(--spvt-text); }
.blog-post-content ul,
.blog-post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-post-content li { margin-bottom: 0.4rem; }
.blog-post-content blockquote {
  border-left: 3px solid #CC0000;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--red-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--spvt-text-muted);
}
html[data-theme="dark"] .blog-post-content blockquote {
  background: rgba(204,0,0,0.10);
  color: #94A3B8;
}
html[data-theme="dark"] .blog-post-content h2,
html[data-theme="dark"] .blog-post-content h3 { color: #F1F5F9; }

/* ── Blog Cards ─────────────────────────────────────────────────── */
.blog-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Thumbnail area — fixed height for consistency */
.blog-card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }

/* Placeholder when no image */
.blog-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--red-50) 100%);
  font-size: 2.5rem;
  color: var(--spvt-secondary);
  opacity: 0.55;
}
html[data-theme="dark"] .blog-card-thumb-placeholder {
  background: linear-gradient(135deg, rgba(30,34,187,0.18) 0%, rgba(204,0,0,0.12) 100%);
  color: #A5B4FC;
}

/* Category badge overlay on thumbnail */
.blog-card-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  background: var(--spvt-primary) !important;
  color: #fff !important;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3em 0.65em;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-body .border-top {
  border-color: var(--spvt-border) !important;
}
html[data-theme="dark"] .blog-card-body .border-top {
  border-color: rgba(255,255,255,0.08) !important;
}

/* ── Testimonial Cards ──────────────────────────────────────────── */
.testimonial-card {
  min-height: 220px;
  border-left: 3px solid var(--red-800) !important;
}

/* ── Placeholder Shot ───────────────────────────────────────────── */
.placeholder-shot {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--red-50), var(--blue-50));
  border: 1.5px dashed var(--red-700);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-800);
  font-weight: 700;
}
html[data-theme="dark"] .placeholder-shot {
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border-color: #334155;
  color: var(--blue-100);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer-section {
  background: #060C19;
  color: #94A3B8;
  border-top: 3px solid var(--red-900);
}
.footer-section h5, .footer-section h6 { color: #F8FAFC; font-weight: 700; }
.footer-links a {
  color: #94A3B8;
  transition: color 0.2s;
  line-height: 2;
}
.footer-links a:hover { color: #FFFFFF; text-decoration: none; }

.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: #94A3B8;
  transition: all 0.22s ease;
}
.social-links a:hover {
  background: var(--red-800);
  border-color: var(--red-800);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  text-decoration: none;
}

/* Newsletter form */
.newsletter-form .form-control {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form .form-control:focus { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(204,0,0,0.2); }

/* ── Floating UI Elements ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  right: 1.25rem; bottom: 1.4rem;
  z-index: 1050;
  border-radius: 999px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: #25D366;
  border: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform 0.22s, box-shadow 0.22s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37,211,102,0.55);
  color: #fff;
}

.cookie-banner {
  position: fixed;
  left: 1rem; bottom: 1rem;
  max-width: 390px;
  background: #0F172A;
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--r-lg);
  padding: 1rem 1.15rem;
  display: flex; gap: 0.9rem; align-items: center;
  z-index: 1060;
  box-shadow: var(--shadow-xl);
}

.live-chat-placeholder {
  position: fixed;
  right: 1.25rem; bottom: 5.2rem;
  background: var(--red-800);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-red);
  z-index: 1045;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.live-chat-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(204,0,0,0.42);
}

/* ── Admin panel tweaks ─────────────────────────────────────────── */
.table-responsive { border-radius: var(--r-lg); overflow: hidden; }
code { background: var(--gray-100); color: var(--red-800); padding: 0.15em 0.4em; border-radius: var(--r-sm); font-size: 0.85em; }
html[data-theme="dark"] code { background: rgba(255,255,255,0.08); color: #FCA5A5; }

/* Modal styling */
.modal-content {
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
}
.modal-header {
  border-bottom: 1px solid var(--spvt-border);
  padding: 1.25rem 1.5rem;
}
.modal-footer {
  border-top: 1px solid var(--spvt-border);
  padding: 1rem 1.5rem;
}

/* ── Dark mode extra ────────────────────────────────────────────── */
html[data-theme="dark"] .section-alt { background: #0A1225; }
html[data-theme="dark"] .bg-body-tertiary { background-color: var(--spvt-bg-alt) !important; color: var(--spvt-text); }
html[data-theme="dark"] .accordion-item {
  background-color: var(--spvt-card-bg);
  border-color: rgba(255,255,255,0.08);
  color: var(--spvt-text);
}
html[data-theme="dark"] .accordion-button {
  background-color: var(--spvt-card-bg);
  color: var(--spvt-text);
}
html[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: rgba(204,0,0,0.15);
  color: #FCA5A5;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
html[data-theme="dark"] .accordion-button::after {
  filter: invert(1);
}
html[data-theme="dark"] .accordion-body {
  background-color: var(--spvt-card-bg);
  color: var(--spvt-text-muted);
}
html[data-theme="dark"] .modal-content {
  background: #0F172A;
  color: #E2E8F0;
}
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer { border-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .alert-success { background: rgba(22,163,74,0.15); color: #86EFAC; }
html[data-theme="dark"] .alert-danger  { background: rgba(204,0,0,0.20); color: #FCA5A5; }
html[data-theme="dark"] .alert-info    { background: rgba(30,34,187,0.20) !important; color: #A5B4FC !important; border-left-color: #3840EE !important; }
html[data-theme="dark"] .alert-warning { background: rgba(245,158,11,0.15); color: #FCD34D; }
html[data-theme="dark"] code { background: rgba(255,255,255,0.08); color: #FCA5A5; }

/* Theme-aware empty-state notice */
.alert-empty-posts {
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  font-weight: 500;
  border-left: 4px solid var(--spvt-secondary);
  background: var(--blue-50);
  color: var(--spvt-secondary);
}
html[data-theme="dark"] .alert-empty-posts {
  background: rgba(30,34,187,0.18);
  color: #A5B4FC;
  border-left-color: #3840EE;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section { padding-top: 6rem; }
  .live-chat-placeholder { display: none; }
}
@media (max-width: 575.98px) {
  .page-hero { padding: 3.75rem 0 2.5rem; }
}


html[data-theme="dark"] {
    --spvt-bg: #0b1220;
    --spvt-text: #e2e8f0;
    --spvt-card-bg: rgba(15, 23, 42, 0.8);
    --spvt-border: rgba(226, 232, 240, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: var(--spvt-text);
    background: var(--spvt-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.site-header {
    background: transparent;
}

.backdrop-blur {
    backdrop-filter: blur(12px);
    background: rgba(10, 37, 64, 0.92);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.25);
}

.site-header .navbar-brand,
.site-header .nav-link {
    color: #f8fafc !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
    color: var(--spvt-accent) !important;
}

.hero-section {
    color: #fff;
    background-image: linear-gradient(rgba(10,15,30,0.8), rgba(10,15,30,0.8)), url('../../images/star1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 7rem 0 5rem;
    overflow: hidden;
    position: relative;
}

.hero-swiper {
    border: 1px solid rgba(248, 250, 252, 0.2);
    background: rgba(15, 23, 42, 0.35);
}

.hero-slide-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}

.hero-shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.4;
}

.hero-shape.one {
    background: rgba(220, 38, 38, 0.4);
    right: -120px;
    top: -80px;
}

.hero-shape.two {
    background: rgba(56, 189, 248, 0.3);
    left: -160px;
    bottom: -120px;
}

.glass-card {
    background: var(--spvt-card-bg);
    border: 1px solid var(--spvt-border);
    border-radius: 1rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 35px rgba(2, 6, 23, 0.14);
}

.stat-card,
.service-card,
.feature-card,
.industry-card,
.portfolio-card,
.product-module {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.service-card:hover,
.feature-card:hover,
.industry-card:hover,
.portfolio-card:hover,
.product-module:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(56, 189, 248, 0.25));
    color: var(--spvt-primary);
    font-size: 1.2rem;
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-section {
    background: #091a33;
    color: #d7e4f8;
}

.footer-links a,
.social-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.88;
}

.footer-links a:hover,
.social-links a:hover {
    opacity: 1;
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1.2rem;
    border-radius: 999px;
    z-index: 1050;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    max-width: 360px;
    background: #0a2540;
    color: #fff;
    border-radius: 0.8rem;
    padding: 0.85rem 0.9rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    z-index: 1060;
}

.live-chat-placeholder {
    position: fixed;
    right: 1rem;
    bottom: 4.8rem;
    background: #FF2222;
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
    z-index: 1045;
}

.testimonial-card {
    min-height: 210px;
}

.placeholder-shot {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #fee2e2, #e0f2fe);
    border: 1px dashed #fca5a5;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EE1111;
    font-weight: 600;
}

html[data-theme="dark"] .placeholder-shot {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
    color: #93c5fd;
}

.filter-btn.active {
    background: var(--spvt-primary);
    color: #fff;
}

.page-hero {
    background: linear-gradient(130deg, #0a2540, #FF2222);
    color: #fff;
    padding: 5.2rem 0 3.2rem;
}

.btn-outline-primary {
    --bs-btn-color: #FF2222;
    --bs-btn-border-color: #FF2222;
    --bs-btn-hover-bg: #FF2222;
    --bs-btn-hover-border-color: #FF2222;
    --bs-btn-active-bg: #EE1111;
    --bs-btn-active-border-color: #EE1111;
}

.text-info,
.text-bg-info {
    color: #0a2540 !important;
}

.badge.text-bg-info {
    background-color: #38bdf8 !important;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 5.6rem;
    }

    .live-chat-placeholder {
        display: none;
    }
}
