/* ===========================================
   CIVIL / INDUSTRIAL THEME — AQUA-TECH+ PREMIUM (D3 refined)
   =========================================== */

.theme-civ {
  /* Premium Aqua-Tech Palette */
  --theme-accent-strong: #4fe4ff;   /* bright aqua */
  --theme-accent-soft:   #ff7fd9;   /* magenta accent */
  --theme-accent-alt:    #9ea7ff;   /* soft lavender-violet */

  --theme-text-hero: #ffffff;
}

/* ===========================================
   LOGO & NAV
   =========================================== */

.theme-civ .vx-logo-mark {
  color: var(--theme-accent-strong);
}

.theme-civ .vx-nav a::after {
  background: linear-gradient(
    90deg,
    var(--theme-accent-strong),
    var(--theme-accent-soft)
  );
}
/* ===========================================
   CIV THEME — FIX NAV TEXT COLORS ON WHITE HEADER
   =========================================== */

.theme-civ .vx-nav a {
  color: rgba(6, 18, 32, 0.85) !important;   /* dark navy text */
}

.theme-civ .vx-nav a:hover {
  color: rgba(6, 18, 32, 1) !important;      /* solid dark navy on hover */
}

.theme-civ .vx-nav a.active {
  color: rgba(6, 18, 32, 1) !important;      /* active page = dark navy */
}





/* ===========================================
   BUTTONS
   =========================================== */

.theme-civ .btn-primary {
  background: var(--theme-accent-strong);
  color: #07121f;
  box-shadow: 0 8px 24px rgba(79, 228, 255, 0.35);
}

.theme-civ .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(79, 228, 255, 0.55);
}

.theme-civ .btn-secondary {
  border: 2px solid var(--theme-accent-soft);
  color: var(--theme-accent-soft);
}

.theme-civ .btn-secondary:hover {
  background: rgba(243, 138, 217, 0.08);
}

/* ===========================================
   HERO — Aqua-Tech+ Fluid Premium (refined)
   =========================================== */

.theme-civ .hero--civ {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
  color: #ffffff;
  z-index: 0;

  background:

    /* MICRO BLOBS — shimmer points (aqua + magenta) */
    radial-gradient(circle at 30% 32%, rgba(255, 92, 210, 0.32) 0%, rgba(255, 92, 210, 0.18) 8%, transparent 20%),
    radial-gradient(circle at 76% 26%, rgba(79, 228, 255, 0.55) 0%, rgba(79, 228, 255, 0.35) 12%, transparent 22%),
    radial-gradient(circle at 58% 52%, rgba(134, 214, 255, 0.45) 0%, rgba(134, 214, 255, 0.28) 12%, transparent 24%),

    /* MID MAGENTA BLOBS — elegant accent ribbons */
    radial-gradient(ellipse 28% 18% at 34% 58%, rgba(255, 92, 210, 0.40) 0%, rgba(255, 92, 210, 0.22) 32%, transparent 48%),
    radial-gradient(ellipse 26% 20% at 58% 70%, rgba(255, 92, 210, 0.26) 0%, rgba(255, 92, 210, 0.14) 30%, transparent 50%),

    /* CYAN HIGHLIGHT BLOBS — reduced size, premium shine */
    radial-gradient(circle at 72% 22%, rgba(79, 228, 255, 0.72) 0%, rgba(79, 228, 255, 0.45) 22%, transparent 38%),
    radial-gradient(circle at 85% 34%, rgba(41, 240, 255, 0.55) 0%, rgba(41, 240, 255, 0.30) 22%, transparent 48%),

    /* LARGE TURQUOISE SOFT BLOBS — refined */
    radial-gradient(ellipse 36% 26% at 74% 48%, rgba(41, 200, 255, 0.42) 0%, rgba(41, 200, 255, 0.22) 40%, transparent 65%),
    radial-gradient(ellipse 34% 28% at 20% 82%, rgba(79, 228, 255, 0.30) 0%, rgba(79, 228, 255, 0.16) 38%, transparent 68%),

    /* NEW: focus vignette behind hero text (improves legibility) */
    radial-gradient(ellipse 42% 40% at 22% 42%,
      rgba(3, 9, 30, 0.90) 0%,
      rgba(3, 9, 30, 0.55) 38%,
      rgba(3, 9, 30, 0.06) 68%,
      transparent 80%
    ),

    /* BASE WASH — premium aqua-navy */
	linear-gradient(
	  145deg,
	  rgba(10, 30, 70, 0.85),
	  rgba(11, 38, 88, 0.85)
	);

}

/* Behind-image organic softness */
.theme-civ .hero--civ::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.45; /* was fully opaque */

  background:
    radial-gradient(circle at 40% 47%, rgba(255, 92, 210, 0.22), transparent 65%),
    radial-gradient(circle at 70% 60%, rgba(79, 228, 255, 0.30), transparent 70%);

  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 75%);
}

/* Irregular fractal mask for fluid shapes */
.theme-civ .hero--civ::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35; /* was fully opaque */

  -webkit-mask-image:
    radial-gradient(circle at 30% 40%, black 60%, transparent 80%),
    radial-gradient(circle at 75% 35%, black 55%, transparent 82%),
    radial-gradient(circle at 50% 75%, black 65%, transparent 85%),
    radial-gradient(circle at 20% 70%, black 58%, transparent 82%),
    radial-gradient(circle at 85% 65%, black 55%, transparent 82%);
  -webkit-mask-composite: source-over, xor, xor, xor, xor;

  mask-image:
    radial-gradient(circle at 30% 40%, black 60%, transparent 80%),
    radial-gradient(circle at 75% 35%, black 55%, transparent 82%),
    radial-gradient(circle at 50% 75%, black 65%, transparent 85%),
    radial-gradient(circle at 20% 70%, black 58%, transparent 82%),
    radial-gradient(circle at 85% 65%, black 55%, transparent 82%);
  mask-composite: source-over, exclude, exclude, exclude, exclude;
}

/* ===========================================
   HERO IMAGE
   =========================================== */

.theme-civ .hero-media-simple {
  position: relative;
  z-index: 10;
  overflow: hidden;
  height: 480px;
  border-radius: 24px;
    box-shadow:
    0 0 40px rgba(255,255,255,0.12),
    0 0 80px rgba(106,223,255,0.14),
    0 0 120px rgba(140,27,255,0.10);
}

.theme-civ .simple-hero-image-civ {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 120%;
  width: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 11;

  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 90%);
}

.theme-civ .hero-media-simple::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;

  background:
    radial-gradient(circle at 65% 45%, rgba(134, 214, 255, 0.16), transparent 60%),
    radial-gradient(circle at 28% 60%, rgba(79, 228, 255, 0.12), transparent 65%);
}

/* Turn off neutral watermark */
.theme-civ .hero-watermark {
  display: none;
}

/* ==========================================================
   BODY — Medium-Strong Premium Tech (refined)
   ========================================================== */

body.theme-civ {
  background:

    /* Aqua fluid blob — defined but soft */
    radial-gradient(ellipse 42% 28% at 22% 26%,
      rgba(79, 228, 255, 0.42),
      rgba(79, 228, 255, 0.24),
      transparent 68%
    ),

    /* Violet structure — depth + connection to hero */
    radial-gradient(ellipse 36% 24% at 75% 22%,
      rgba(140, 120, 255, 0.38),
      rgba(140, 120, 255, 0.22),
      transparent 72%
    ),

    /* Magenta accent — single soft patch */
    radial-gradient(circle at 14% 64%,
      rgba(255, 92, 210, 0.18),
      transparent 60%
    ),

    /* Underlayer for premium depth (slightly bluer now) */
    linear-gradient(
      135deg,
      rgba(58, 92, 132, 0.55),
      rgba(50, 82, 120, 0.55)
    ),

    /* Base gradient — tuned to richer blue-grey */
    linear-gradient(
      135deg,
      rgba(140, 162, 190, 1),
      rgba(155, 180, 208, 1)
    );
}

/* subtle noise */
body.theme-civ::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /*background: url("../images/noise-4k.png");*/
  opacity: 0.022;
  mix-blend-mode: soft-light;
  z-index: 0;
}

/* sections – light structural wash only */
.theme-civ .section {
  background: linear-gradient(
    135deg,
    rgba(79, 228, 255, 0.02),
    rgba(140, 120, 255, 0.02),
    rgba(255, 92, 210, 0.015)
  );
}

/* ===========================================
   CARDS
   =========================================== */
.theme-civ .capability-card {
  background: rgba(5,12,27,0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}

.theme-civ .capability-card p {
  color: rgba(235, 245, 255, 0.90);
}


.theme-civ .industry-card--civ {
  border-top: 3px solid rgba(79, 228, 255, 0.7);
  box-shadow: 0 10px 28px rgba(79, 228, 255, 0.1);
}

/* ==========================================================
   FOOTER — Medium-Strong Premium (refined)
   ========================================================== */

.theme-civ .final-cta {
  background:

    /* Soft glow at top edge to separate from body */
    radial-gradient(ellipse 70% 40% at 50% 0%,
      rgba(79, 228, 255, 0.16),
      transparent 70%
    ),

    radial-gradient(ellipse 32% 22% at 78% 30%,
      rgba(79, 228, 255, 0.22),
      transparent 60%
    ),

    radial-gradient(ellipse 28% 20% at 22% 80%,
      rgba(255, 92, 210, 0.12),
      transparent 62%
    ),

    linear-gradient(
      135deg,
      rgba(110, 140, 175, 0.98),
      rgba(126, 156, 190, 0.98)
    );
}

.theme-civ .final-cta-inner h2,
.theme-civ .final-cta-inner p {
  color: #07141f;
}
/* ===========================================
   CIV THEME – FINAL READABILITY + PREMIUM TYPE (Option B)
   =========================================== */

/* Base text color for CIV pages */
body.theme-civ {
  color: rgba(6, 18, 32, 0.94); /* deep navy */
}

/* Paragraphs in all main sections */
.theme-civ .section p,
.theme-civ .vx-container p,
.theme-civ p {
  color: rgba(6, 18, 32, 0.94) !important;   /* stronger, very readable */
  font-weight: 400;
}

/* Section headings */
/* HEADER TITLES */
.theme-civ .section-header h2 {
  color: var(--theme-accent-strong);
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}

/* BODY TEXT (fix light grey readability) */
.theme-civ .section-header p,
.theme-civ .section p {
  color: rgba(0,0,0,0.72);
}

.theme-civ h2,
.theme-civ h3 {
  color: var(--theme-accent-strong) !important; /* aqua */
  font-weight: 600;
}

/* HERO text – keep bright and cinematic */
.theme-civ .hero--civ h1,
.theme-civ .hero--civ p {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

/* Capability cards – slight lift, very clear text */
.theme-civ .capability-card {
  background: rgba(10, 22, 38, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
}

.theme-civ .capability-card p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* White use-case / how-cards – dark, crisp text */
.theme-civ .how-card h3,
.theme-civ .industry-card--civ h3 {
  color: rgba(6, 18, 32, 1) !important;
  font-weight: 600;
}

.theme-civ .how-card p,
.theme-civ .industry-card--civ p {
  color: rgba(6, 18, 32, 0.9) !important;
}

/* Final CTA body text */
.theme-civ .final-cta p {
  color: rgba(6, 18, 32, 0.94) !important;
}
/* ===========================================
   HERO AMBIENT MOTION – Premium Fluid Drift
   =========================================== */

/* ===========================================
   FLOATING PREMIUM BLOBS — REAL MOVEMENT
   =========================================== */

.hero-blob {
  position: absolute;
  z-index: 6; /* Above background, below image */
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.38;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Blob colors */
.blob1 {
  background: rgba(79, 228, 255, 0.75);
  top: 18%;
  left: 22%;
  animation: blobFloat1 18s ease-in-out infinite alternate;
}

.blob2 {
  background: rgba(255, 92, 210, 0.55);
  top: 42%;
  left: 58%;
  animation: blobFloat2 22s ease-in-out infinite alternate-reverse;
}

.blob3 {
  background: rgba(140, 120, 255, 0.65);
  top: 62%;
  left: 32%;
  animation: blobFloat3 26s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(90px, -60px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-110px, 70px) scale(1.18); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(0.95); }
  50%  { transform: translate(75px, 95px) scale(1.12); }
  100% { transform: translate(0, 0) scale(0.95); }
}

.hero-motion-layer {
  position: absolute;
  inset: 0;
  z-index: 1; /* behind content, above base background */
  overflow: visible !important; /* ensure animation isn't clipped */
  pointer-events: none;
}

.hero--civ {
  position: relative;
  overflow: hidden; /* ok for hero content */
}

.hero-inner-simple {
  position: relative;
  z-index: 5;
}
/* NEW — Floating layer ABOVE masks and backgrounds */
.hero-fluid-top {
  position: absolute;
  inset: 0;
  z-index: 3 !important; /* ABOVE ::before and ::after */
  pointer-events: none;
}

/* Blobs move inside hero-fluid-top */
.hero-fluid-top .blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.38;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ============================================================
   FIX: Make animated blobs visible & properly controlled
   ============================================================ */

/* Ensure hero-fluid-top sits ABOVE all masked layers */
.hero-fluid-top {
  position: absolute;
  inset: 0;
  z-index: 15; /* was too low before */
  pointer-events: none;
}

/* Correct selector - target hero-blob elements */
.hero-fluid-top .hero-blob {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Re-apply the animations */
.hero-blob.blob1 { animation: blobFloat1 18s ease-in-out infinite alternate; }
.hero-blob.blob2 { animation: blobFloat2 22s ease-in-out infinite alternate-reverse; }
.hero-blob.blob3 { animation: blobFloat3 26s ease-in-out infinite alternate; }

/* Make underlying hero gradient partially transparent 
   so blobs can be SEEN through it */
.theme-civ .hero--civ {
  background-blend-mode: lighten;
}

.theme-civ .hero--civ::before,
.theme-civ .hero--civ::after {
  opacity: 0.28 !important; /* was too heavy → hiding blobs */
}
/* ============================================================
   MOTION UPLIFT PATCH — makes movement clearly visible
   ============================================================ */

/* Stronger blobs — more contrast */
.hero-blob {
  opacity: 0.55 !important; /* was 0.38 / 0.42 */
  filter: blur(35px) !important; /* was 60px → makes motion sharper */
  mix-blend-mode: lighten !important; /* more contrast against hero */
}

/* Larger blob size for more noticeable drift */
.hero-blob {
  width: 520px !important;  /* was 380–420px */
  height: 520px !important;
}

/* Faster, smoother movement */
.hero-blob.blob1 {
  animation: blobFloat1 12s cubic-bezier(.68,-0.55,.27,1.55) infinite alternate;
}

.hero-blob.blob2 {
  animation: blobFloat2 16s cubic-bezier(.68,-0.55,.27,1.55) infinite alternate-reverse;
}

.hero-blob.blob3 {
  animation: blobFloat3 20s cubic-bezier(.68,-0.55,.27,1.55) infinite alternate;
}

/* Larger travel distance inside keyframes */
@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(150px, -120px) scale(1.22); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-180px, 140px) scale(1.26); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(0.95); }
  50%  { transform: translate(160px, 160px) scale(1.20); }
  100% { transform: translate(0, 0) scale(0.95); }
}
/* -----------------------------------------*/
/* More visible blobs across entire hero */

.hero-blob {
  opacity: 0.65 !important;     /* significantly stronger */
  filter: blur(28px) !important; /* sharper = more motion */
}

/* Move blobs into brighter zones */

.blob1 { top: 32%; left: 18%; }
.blob2 { top: 38%; left: 58%; }
.blob3 { top: 55%; left: 40%; }

/* Slight movement boost */
@keyframes blobFloat1 {
  0% { transform: translate(0,0) scale(1.0); }
  50% { transform: translate(180px, -120px) scale(1.26); }
  100% { transform: translate(0,0) scale(1.0); }
}

.hero-blob {
  filter: blur(26px);
  opacity: 0.42;
}
.theme-civ .hero--civ::after {
  -webkit-mask-image:
      radial-gradient(circle at 30% 40%, black 60%, transparent 82%),
      radial-gradient(circle at 75% 35%, black 58%, transparent 85%),
      radial-gradient(circle at 50% 75%, black 70%, transparent 88%),
      radial-gradient(circle at 22% 70%, black 60%, transparent 85%),
      radial-gradient(circle at 85% 65%, black 58%, transparent 85%);
}
/* ============================================================
   A. PREMIUM CARD ELEVATION
   ============================================================ */

.theme-civ .capability-card,
.theme-civ .industry-card--civ {
  transition: transform 0.35s cubic-bezier(.16,1,.3,1),
              box-shadow 0.35s cubic-bezier(.16,1,.3,1);
}

.theme-civ .capability-card:hover {
  transform: translateY(-4px);
  box-shadow:
      0 14px 32px rgba(0,0,0,0.28),
      0 0 22px rgba(106,223,255,0.25);
}

.theme-civ .industry-card--civ:hover {
  transform: translateY(-3px);
  box-shadow:
      0 12px 30px rgba(0,0,0,0.18),
      0 0 18px rgba(106,223,255,0.22);
}

/* Smooth card border glow */
.theme-civ .industry-card--civ:hover {
  border-top-color: rgba(106, 223, 255, 0.95);
}


/* ============================================================
   B. NAVIGATION HOVER POLISH (Premium micro-glow)
   ============================================================ */

.theme-civ .vx-nav a {
  position: relative;
  transition: color 0.25s ease-out;
}

.theme-civ .vx-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0%;
  background: linear-gradient(
      90deg,
      rgba(106,223,255,1),
      rgba(243,138,217,1)
  );
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(.16,1,.3,1);
}

.theme-civ .vx-nav a:hover {
  color: var(--theme-accent-strong);
}

.theme-civ .vx-nav a:hover::after {
  width: 100%;
}

/* Active page indicator */
.theme-civ .vx-nav a.active {
  color: var(--theme-accent-strong);
}

.theme-civ .vx-nav a.active::after {
  width: 100%;
}


/* ============================================================
   E. BUTTON MICRO-INTERACTIONS
   ============================================================ */

.theme-civ .btn-primary,
.theme-civ .btn-secondary {
  transition: transform 0.25s cubic-bezier(.16,1,.3,1),
              box-shadow 0.25s cubic-bezier(.16,1,.3,1),
              background 0.25s ease-out;
}

/* Primary button glow + lift */
.theme-civ .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
      0 12px 32px rgba(106,223,255,0.42),
      0 0 18px rgba(106,223,255,0.55);
}

/* Click feedback */
.theme-civ .btn-primary:active {
  transform: translateY(-1px);
  box-shadow:
      0 6px 16px rgba(106,223,255,0.35);
}

/* Secondary button – premium border glow */
.theme-civ .btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(243,138,217,0.18);

  /* SOFTER GLOW */
  box-shadow:
      0 6px 14px rgba(243,138,217,0.28),
      0 0 14px rgba(243,138,217,0.38);

  /* MAKE TEXT READABLE */
  color: #ffffff;
}

.theme-civ .btn-secondary:active {
  transform: translateY(-1px);
}

/* Final CTA area buttons */
.theme-civ .final-cta .btn-primary:hover {
  box-shadow:
      0 12px 26px rgba(106,223,255,0.50),
      0 0 20px rgba(106,223,255,0.55);
}

.theme-civ .final-cta .btn-secondary:hover {
  box-shadow:
      0 12px 26px rgba(243,138,217,0.40),
      0 0 20px rgba(243,138,217,0.50);
}
/* ============================================
   FIX: Unify font rendering between dark & light cards
   ============================================ */

/* Dark capability cards */
.theme-civ .capability-card {
  font-weight: 500; /* slightly thicker for optical match */
  letter-spacing: 0.15px;
  line-height: 1.38;

  /* subtle softening to avoid overly sharp edges on dark bg */
  text-shadow: 0 0 0.6px rgba(255,255,255,0.25);
}

/* Titles inside dark cards */
.theme-civ .capability-card h3 {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Light industry cards – keep consistent spacing */
.theme-civ .industry-card--civ {
  line-height: 1.38;
  letter-spacing: 0.1px;
}
/* No underline for CTA button in CIV theme */
.theme-civ .vx-nav .nav-cta::after {
  display: none !important;
}
