/* =========================
   DESIGN SYSTEM
   ========================= */

   body {
    padding-top: 64px;
}


:root {
    --primary: #0b2a4a;
    --primary-dark: #081f36;
    --accent: #1f6feb;
    --light: #ffffff;
    --muted: #6b7280;
    --bg-light: #f5f7fa;
}

/* =========================
   GLOBAL STYLES
   ========================= */

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #111827;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}

/* =========================
   NAVBAR
   ========================= */


.navbar-brand img {
    height: 40px;
}

/* =========================
   HERO
   ========================= */

.hero-section {
  background: linear-gradient(180deg, #081f36, #0b2a4a);
}





.hero-actions .btn {
    margin-right: 12px;
    margin-top: 12px;
}

.hero-disclaimer {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #d1d5db;
}



/* =========================
   TRUST
   ========================= */

.trust-section {
    background: var(--bg-light);
}

.trust-card {
    padding: 24px;
}

/* =========================
   SERVICES
   ========================= */

.service-card {
    background: var(--light);
    padding: 32px;
    margin-top: 24px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   STATEMENT (BACKGROUND IMAGE)
   ========================= */

.statement-section {
    background: url("../images/backgrounds/statement-bg.jpg") center/cover no-repeat;
    position: relative;
    color: var(--light);
}

.statement-overlay {
  position: relative;
  padding: 120px 0;
}


/* =========================
   TEAM
   ========================= */

.team-card {
    text-align: center;
    margin-top: 32px;
}

.team-card img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

/* =========================
   CTA
   ========================= */

.cta-section {
    background: var(--primary-dark);
    color: var(--light);
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  position: relative;
  padding: 40px 0;
  color: #9ca3af;
  background: linear-gradient(
    120deg,
    #020617,
    #041028,
    #020617
  );
  background-size: 300% 300%;
}


.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    display: inline-block;
    margin-right: 16px;
}


/* =========================
   CONTACT PAGE
   ========================= */

.contact-section {
    background: var(--bg-light);
}

/* Card styling for form */
.contact-section .card {
    border: none;
    border-radius: 10px;
    background: #ffffff;
}

/* Form labels */
.contact-section .form-label {
    font-weight: 500;
    color: #111827;
}

/* Inputs & textarea */
.contact-section .form-control,
.contact-section .form-select {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

/* Checkboxes */
.contact-section .form-check-input {
    margin-top: 4px;
}

.contact-section .form-check-label {
    font-size: 0.9rem;
    color: #374151;
}

/* Submit button */
.contact-section button[type="submit"] {
    padding: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Small legal text */
.contact-section .small {
    font-size: 0.85rem;
    line-height: 1.5;
}



/* =========================
   SECURITY NOTICE
   ========================= */

.trust-section h4 {
    font-weight: 600;
    margin-bottom: 12px;
}

.trust-section p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */

@media (max-width: 768px) {
    .contact-section .card {
        padding: 24px !important;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }
}

/* =========================
   LAYOUT FIXES (CRITICAL)
   ========================= */


.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* HERO FIX */
.hero-section {
    position: relative;
}


/* TRUST / SERVICES ALIGNMENT */
.trust-card,
.service-card {
    height: 100%;
}



.team-card {
    padding: 16px;
}

.team-card img {
    max-width: 180px;
    margin: 0 auto 16px;
    display: block;
}

/* CTA CENTERING */
.cta-section {
    text-align: center;
}

/* FOOTER LINKS FIX */
.footer-links li a {
  position: relative;
  color: #60a5fa;
  text-decoration: none;
  padding-bottom: 2px;
}

.footer-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.footer-links li a:hover::after {
  width: 100%;
}


.navbar-brand img {
  height: 36px;
}



/* =========================
   HERO EVIDENCE FLOW VISUAL
   ========================= */

.evidence-flow {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(31,111,235,0.22), transparent 60%),
    radial-gradient(900px 500px at 80% 50%, rgba(255,255,255,0.07), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

/* =========================
   HERO FLOW POLISH
   ========================= */

.evidence-flow svg text {
  letter-spacing: 0.4px;
  font-weight: 500;
}

.evidence-flow svg circle {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}






/* Services title polish */
.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 70px;
}

/* =========================
   SERVICES – NEXT LEVEL
   ========================= */

.services-title {
  font-size: 2.5rem;
  font-weight: 600;
}

.service-card-img {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  transform: translateY(80px) scale(0.96);
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-body {
  padding: 24px;
}

.service-card-img.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}
/* =========================
   CINEMATIC IMAGE REVEAL
   ========================= */

.service-card-img {
  position: relative;
}

.service-card-img img {
  transform: scale(1.15);
  transition: transform 1.2s ease;
}

.service-card-img.active img {
  transform: scale(1);
}

/* Soft overlay fade */
.service-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(11,42,74,0.35),
    rgba(11,42,74,0.15)
  );
  opacity: 1;
  transition: opacity 1s ease;
}

.service-card-img.active::after {
  opacity: 0;
}

/* ===== SERVICES DIVIDER VISUAL ===== */

.divider-visual {
  position: relative;
  height: 340px;
  background: url("../images/services/investigation-room.jpg") center/cover no-repeat;
  margin: 60px 0;
}

.divider-overlay {
  background: rgba(5, 15, 30, 0.75);
  height: 100%;
  display: flex;
  align-items: center;
}

.divider-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px);
}

.divider-sub {
  color: #cbd5e1;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(30px);
}

/* ===== ADVANCED TEAM SECTION ===== */

.team-section-advanced {
  background: #f8fafc;
  padding: 100px 0;
}

.team-title {
  font-size: 2.4rem;
  font-weight: 600;
}

.team-subtitle {
  max-width: 700px;
  margin: 12px auto 0;
  color: #6b7280;
}








/* ===== TEAM MODAL ===== */

.team-modal {
  border-radius: 16px;
}

.team-modal .modal-body {
  color: #334155;
  line-height: 1.7;
}

.team-credentials {
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.team-credentials li {
  margin-bottom: 8px;
  font-weight: 500;
}

/* ===== TEAM BADGES ===== */

.team-badges {
  margin-top: 10px;
}

.team-card-advanced:hover::after {
  opacity: 1;
}

/* =========================
   TEAM – FINAL AUTHORITATIVE
   ========================= */

.team-card-advanced {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card-advanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.14);
}

.team-card-advanced img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: grayscale(80%);
  transition: transform 0.6s ease, filter 0.4s ease;
}


.team-card-advanced:hover img {
  filter: grayscale(0%);
  transform: scale(1.06);
}

.team-info {
  padding: 24px;
}

.team-info h5 {
  margin-bottom: 6px;
  font-weight: 600;
}

.team-info span {
  font-size: 0.9rem;
  color: #6b7280;
}

.team-badges span {
  display: inline-block;
  margin-top: 10px;
  margin-right: 6px;
  padding: 6px 10px;
  font-size: 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e40af;
}

/* ===== TEAM BADGE EMAIL TOOLTIP ===== */



/* Tooltip */



.team-email {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
  word-break: break-word;
}

.team-email:hover {
  text-decoration: underline;
}

.team-section-advanced .col-md-3 {
  display: flex;
}

.team-card-advanced {
  display: flex;
  flex-direction: column;
}


.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== TRUST DIAGRAM SECTION ===== */

.trust-diagram-section {
  background: #f8fafc;
}

.trust-subtitle {
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
}

.trust-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-node {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  width: 280px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.trust-node.active {
  opacity: 1;
  transform: translateY(0);
}

.icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.trust-line {
  width: 120px;
  height: 40px;
}

.trust-line line {
  stroke: #1f6feb;
  stroke-width: 2;
  stroke-dasharray: 6 6;
  animation: dashFlow 2s linear infinite;
  opacity: 0.6;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -24;
  }
}

/* Mobile layout */
@media (max-width: 992px) {
  .trust-diagram {
    flex-direction: column;
  }

  .trust-line {
    transform: rotate(90deg);
    width: 40px;
  }
}

/* =========================
   STATEMENT – INTERACTIVE
   ========================= */

.statement-title,
.statement-sub,
.statement-line {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
}



.statement-line {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f6feb, #60a5fa);
  margin: 30px auto 0;
  border-radius: 4px;
  transition: width 1s ease 0.4s;
}

/* =========================
   STATEMENT – INTERACTIVE (FIXED)
   ========================= */

#statement .statement-title,
#statement .statement-sub,
#statement .statement-line {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
}

#statement.reveal-active .statement-title {
  opacity: 1;
  transform: translateY(0);
}

#statement.reveal-active .statement-sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

#statement .statement-line {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f6feb, #60a5fa);
  margin: 30px auto 0;
  border-radius: 4px;
  transition: width 1s ease 0.4s;
}

#statement.reveal-active .statement-line {
  width: 140px;
}


/* =========================
   STATEMENT PARTICLES
   ========================= */

#statement {
  position: relative;
  overflow: hidden;
}


/* Dark tint behind particles */
.statement-tint {
  position: absolute;
  inset: 0;
  background: rgba(8, 31, 54, 0.85);
  z-index: 1;
}

/* Text above everything */
.statement-content {
  position: relative;
  z-index: 3;
}

#statementParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
}




.statement-section::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    120deg,
    transparent 46%,
    rgba(255,255,255,0.06) 50%,
    transparent 54%
  );
  animation: statementSweep 14s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes statementSweep {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(25%);
  }
}

.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    120deg,
    #081f36,
    #0b2a4a,
    #081f36
  );
  background-size: 300% 300%;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 45%,
    rgba(255,255,255,0.05) 50%,
    transparent 55%
  );
  animation: ctaSweep 16s linear infinite;
  pointer-events: none;
}

@keyframes ctaSweep {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(25%);
  }
}

.cta-section .btn-primary {
  position: relative;
  animation: ctaBreath 4.5s ease-in-out infinite;
}

@keyframes ctaBreath {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(31,111,235,0.0);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(31,111,235,0.25);
  }
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
}

#hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay > *:not(#hero-bg) {
  position: relative;
  z-index: 2;
}

#site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.services-section h2,
.services-section p,
.services-section li {
  color: #0f172a;
}


/* =========================
   FINAL NAVBAR + STACK (SINGLE SOURCE OF TRUTH)
   ========================= */

/* Navbar — crisp, clickable, isolated */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  background-color: rgba(11, 42, 74, 0.98);

  transform: translateZ(0);
  backface-visibility: hidden;
}

.navbar,
.navbar a,
.navbar-brand,
.navbar-nav .nav-link {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  filter: none !important;
  transform: none !important;
}

/* Global background canvases — visual only */
#site-bg,
#hero-bg {
  pointer-events: none;
}

#site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero-section #hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}


/* Body transparent for animated background */
body {
  background: #ffffff;
}



/* =========================
   SERVICE DIAGRAM — ANIMATED
   ========================= */

.diagram-card {
  background: #ffffff;              /* ✅ white card */
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}


/* SVG sizing */
.flow-diagram {
  width: 100%;
  height: auto;
}

/* Wallet nodes */
.flow-diagram circle {
  fill: #1f6feb;
  filter: drop-shadow(0 0 10px rgba(31,111,235,0.6));
  animation: pulse 3s ease-in-out infinite;
}

/* Transaction paths — BLACK MOVING LINES */
.flow-diagram path {
  stroke: #000000;
  stroke-width: 1.4;
  opacity: 0.6;
  fill: none;
  stroke-dasharray: 6 6;
  animation: dash 4s linear infinite;
}


/* Label */
.diagram-label {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  color: #cbd5e1;
  opacity: 0.85;
}

/* Animations */
@keyframes dash {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes pulse {
  0%, 100% {
    r: 16;
    opacity: 0.9;
  }
  50% {
    r: 18;
    opacity: 1;
  }
}

/* =========================
   CLUSTER DIAGRAM
   ========================= */

.cluster-diagram circle {
  fill: #1f6feb;
  filter: drop-shadow(0 0 10px rgba(31,111,235,0.6));
  animation: pulse 3.5s ease-in-out infinite;
}

.cluster-diagram line {
  stroke: rgba(0,0,0,0.55); /* black forensic lines */
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  animation: dash 6s linear infinite;
}


/* =========================
   TIMELINE DIAGRAM
   ========================= */

.timeline-diagram line {
  stroke: rgba(0,0,0,0.6); /* black monitoring line */
  stroke-width: 2;
}


.timeline-diagram circle {
  fill: #1f6feb;
  animation: activity 2.5s ease-in-out infinite;
}

.timeline-diagram circle:nth-child(2) { animation-delay: 0.3s; }
.timeline-diagram circle:nth-child(3) { animation-delay: 0.6s; }
.timeline-diagram circle:nth-child(4) { animation-delay: 0.9s; }

@keyframes activity {
  0%, 100% { r: 6; opacity: 0.4; }
  50% { r: 9; opacity: 1; }
}

.cluster-diagram line,
.timeline-diagram line {
  shape-rendering: geometricPrecision;
}


/* =========================
   CASE STUDY — ABSTRACT DIAGRAM
   ========================= */

.case-abstract-diagram {
  margin: 24px 0;
  padding: 22px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
}

.abstract-diagram {
  width: 100%;
  height: auto;
}

/* Core + nodes */
.abstract-diagram circle {
  fill: #1f6feb;
  opacity: 0.9;
}

/* Central pulse */
.abstract-diagram circle:first-child {
  animation: pulse 2.8s ease-in-out infinite;
}

/* Abstract paths */
.abstract-diagram path {
  stroke: #000;
  stroke-width: 1.3;
  opacity: 0.55;
  fill: none;
  stroke-dasharray: 6 8;
  animation: dash 5s linear infinite;
}

/* Signal rings */
.signal-ring {
  fill: none;
  stroke: #1f6feb;
  stroke-width: 1;
  opacity: 0.35;
  animation: ringPulse 3.5s ease-out infinite;
}

.signal-ring.slow {
  animation-duration: 5.5s;
}

/* Label */
.case-diagram-label {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  color: #475569;
}

/* Ring animation */
@keyframes ringPulse {
  0% {
    opacity: 0.6;
    r: 20;
  }
  100% {
    opacity: 0;
    r: 90;
  }
}

/* =========================
   CASE STUDY — BUSINESS FLOW
   ========================= */

/* Rect (aggregation layer) */
.abstract-diagram rect {
  fill: rgba(31,111,235,0.12);
  stroke: #1f6feb;
  stroke-width: 1.2;
}

/* Business flow lines */
.abstract-diagram path {
  stroke: #000;
  stroke-width: 1.3;
  opacity: 0.6;
  stroke-dasharray: 8 10;
  animation: dash 6s linear infinite;
}

/* Source nodes */
.abstract-diagram circle {
  fill: #1f6feb;
}

/* Output node emphasis */
.abstract-diagram circle:last-of-type {
  r: 12;
  animation: pulse 3.5s ease-in-out infinite;
}

/* =========================
   CASE STUDY — TIMELINE MONITORING
   ========================= */

/* Timeline base */
.timeline-diagram line {
  stroke: #000;
  stroke-width: 2;
  opacity: 0.55;
}

/* Time markers */
.timeline-diagram circle {
  fill: #1f6feb;
  opacity: 0.85;
}

/* Monitoring pulses */
.timeline-diagram .activity-pulse {
  fill: none;
  stroke: #000;
  stroke-width: 1.5;
  opacity: 0.6;
  animation: monitorPulse 3.5s ease-out infinite;
}

.timeline-diagram .activity-pulse.delay {
  animation-delay: 1.6s;
}

/* Pulse animation */
@keyframes monitorPulse {
  0% {
    r: 6;
    opacity: 0.6;
  }
  70% {
    r: 18;
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}


/* =========================
   CASE STUDIES HERO DIAGRAM
   ========================= */

.case-hero {
  position: relative;
  overflow: hidden;
}

#case-hero-diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

/* Keep text above diagram */
.case-hero .container {
  position: relative;
  z-index: 3;
}




/* =========================
   CASE STUDY CARDS
   ========================= */

.case-card {
  border-radius: 16px;
  border: none;
}

/* Diagram container inside cards */
.case-abstract-diagram {
  margin: 24px 0 10px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(11, 42, 74, 0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

/* SVG sizing */
.case-abstract-diagram svg {
  width: 100%;
  height: auto;
}

/* Abstract diagram elements */
.abstract-diagram circle,
.timeline-diagram circle {
  fill: #1f6feb;
}

.abstract-diagram path,
.timeline-diagram line {
  stroke: rgba(0,0,0,0.55);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 6 6;
  animation: dash 5s linear infinite;
}

/* Pulses / rings */
.signal-ring {
  fill: none;
  stroke: rgba(31,111,235,0.25);
  stroke-width: 2;
  animation: ring 3.5s ease-out infinite;
}

.signal-ring.slow {
  animation-delay: 1.2s;
}

/* Timeline activity */
.activity-pulse {
  animation: pulse 2.6s ease-in-out infinite;
}

.activity-pulse.delay {
  animation-delay: 1.2s;
}

/* Labels */
.case-diagram-label {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

/* Animations */
@keyframes ring {
  0% { r: 20; opacity: 0.6; }
  100% { r: 80; opacity: 0; }
}


/* =========================
   HOLOGRAM DIAGRAM (CONTACT / CASE HERO)
   ========================= */

.hologram-diagram {
  filter: drop-shadow(0 0 12px rgba(56,189,248,0.45));
  animation: hologramFloat 6s ease-in-out infinite;
}

/* Nodes */
.hologram-diagram circle {
  fill: #38bdf8;
  filter:
    drop-shadow(0 0 6px rgba(56,189,248,0.9))
    drop-shadow(0 0 14px rgba(56,189,248,0.5));
  animation: holoPulse 3s ease-in-out infinite;
}

/* Connection lines */
.hologram-diagram path {
  stroke: rgba(56,189,248,0.85);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 5 7;
  animation: holoDash 5s linear infinite;
  filter: drop-shadow(0 0 4px rgba(56,189,248,0.6));
}

/* Scanline overlay */
.hologram-diagram::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Animations */
@keyframes holoDash {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes holoPulse {
  0%, 100% {
    opacity: 0.75;
    r: 8;
  }
  50% {
    opacity: 1;
    r: 9.5;
  }
}

@keyframes hologramFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hologram-panel {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(56,189,248,0.35);
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.15),
    0 20px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}

/* =========================
   CONTACT HERO — HOLOGRAM
   ========================= */

#contact-hero-diagram {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Glass hologram panel */
.diagram-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.15),
    0 30px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

/* SVG hologram */
.flow-diagram {
  filter: drop-shadow(0 0 14px rgba(56,189,248,0.45));
  animation: holoFloat 6s ease-in-out infinite;
}

/* Nodes */
.flow-diagram circle {
  fill: #38bdf8;
  filter:
    drop-shadow(0 0 6px rgba(56,189,248,0.9))
    drop-shadow(0 0 14px rgba(56,189,248,0.6));
  animation: holoPulse 3s ease-in-out infinite;
}

/* Secure flow lines */
.flow-diagram path {
  stroke: rgba(56,189,248,0.85);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 5 7;
  animation: holoDash 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.6));
}

/* Scanlines */
.diagram-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Animations */
@keyframes holoDash {
  to { stroke-dashoffset: -24; }
}

@keyframes holoPulse {
  0%, 100% { r: 8; opacity: 0.75; }
  50% { r: 9.5; opacity: 1; }
}

@keyframes holoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* ABOUT HERO TEXT COLOR */
.about-hero h1,
.about-hero p {
  color: #ffffff !important;
}

/* SERVICES HERO TEXT COLOR */
.services-hero h1,
.services-hero p {
  color: #ffffff !important;
}


/* ===== PAGE HERO — STANDARDIZED HEIGHT ===== */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero .hero-overlay {
  display: flex;
  align-items: center;
  padding-top: 140px;   /* navbar + breathing room */
  padding-bottom: 120px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.case-hero h1,
.case-hero p,
.case-hero small {
  color: #ffffff;
}

/* =========================
   HERO — COMPACT STANDARD
   ========================= */

.hero-section {
  padding: 0; /* kill section padding */
}

.hero-overlay {
  padding-top: 120px;   /* navbar clearance */
  padding-bottom: 80px;
}

.hero-section .row {
  min-height: auto !important;
}

/* Optional: tighter on smaller screens */
@media (max-width: 768px) {
  .hero-overlay {
    padding-top: 100px;
    padding-bottom: 60px;
  }
}


/* =========================
   CTA TEXT — FORCE WHITE
   ========================= */

.cta-section h2,
.cta-section p,
.cta-section * {
  color: #ffffff !important;
}


.cta-section h2 {
  color: #ffffff !important;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* =========================
   CONTACT HERO — FORCE WHITE TEXT (FINAL)
   ========================= */

.contact-hero h1,
.contact-hero p,
.contact-hero small {
  color: #ffffff !important;
}

/* HOME HERO TEXT COLOR */
.home-hero h1,
.home-hero p {
  color: #ffffff !important;
}

.home-hero p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ========================================================================== */
/* FILE: assets/css/main.css  (APPEND THIS AT THE VERY BOTTOM)                 */
/* ========================================================================== */

/* Mobile-first layout + spacing */
:root {
  --nav-h: 64px;
}

@media (max-width: 992px) {
  :root { --nav-h: 60px; }
}

@media (max-width: 576px) {
  :root { --nav-h: 56px; }
}

body {
  padding-top: var(--nav-h);
}

/* Ensure global background canvas never blocks content */
#site-bg {
  position: fixed;
  inset: 0;
  z-index: -1 !important;
  pointer-events: none;
}

/* Prevent horizontal scroll on small screens (cards/diagrams) */
html, body {
  overflow-x: hidden;
}

section {
  padding: 72px 0;
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* Navbar tap targets */
.navbar .nav-link {
  padding: 12px 10px;
}

.navbar-brand img {
  height: 34px;
}

/* HERO mobile */
.hero-section { padding: 0; }

.hero-overlay {
  padding-top: calc(var(--nav-h) + 44px);
  padding-bottom: 56px;
}

@media (max-width: 768px) {
  .hero-overlay {
    padding-top: calc(var(--nav-h) + 34px);
    padding-bottom: 44px;
  }
}

.hero-section h1 {
  font-size: clamp(1.65rem, 4.6vw, 2.4rem);
  line-height: 1.15;
}

.hero-section p {
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 576px) {
  .hero-actions .btn {
    width: 100%;
    margin: 0 !important;
  }
}

.hero-disclaimer {
  max-width: 42ch;
}

/* Evidence flow: keep sane height on mobile */
.evidence-flow {
  aspect-ratio: 16 / 11;
}

@media (max-width: 768px) {
  .evidence-flow {
    aspect-ratio: 16 / 12;
    border-radius: 12px;
  }
}

/* Services: remove heavy entrance transform on small screens */
@media (max-width: 768px) {
  .service-card-img {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .service-card-img img {
    height: 190px;
  }

  .services-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2.05rem;
    margin-bottom: 36px;
  }
}

/* Trust diagram: full width cards + hide connector line on mobile */
@media (max-width: 992px) {
  .trust-node {
    width: min(420px, 100%);
    padding: 22px 18px;
  }
  .trust-line {
    display: none;
  }
}

/* Team grid: tighter + smaller image height on mobile */
@media (max-width: 768px) {
  .team-section-advanced {
    padding: 70px 0;
  }

  .team-title {
    font-size: 2rem;
  }

  .team-card-advanced img {
    height: 220px;
  }

  .team-info {
    padding: 18px;
  }
}

/* Case studies cards spacing */
@media (max-width: 768px) {
  .case-card {
    border-radius: 14px;
  }

  .case-abstract-diagram {
    padding: 14px;
    margin: 18px 0 8px;
  }
}

/* Contact: stack + comfortable tap targets */
@media (max-width: 768px) {
  .contact-section .card {
    padding: 18px !important;
  }

  .contact-section h3,
  .contact-section h4 {
    font-size: 1.25rem;
  }

  .contact-section .form-control,
  .contact-section .form-select {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .contact-section button[type="submit"] {
    padding: 14px;
    font-size: 1.05rem;
  }
}

/* Footer: stack links on small screens */
@media (max-width: 576px) {
  .site-footer {
    padding: 34px 0;
  }

  .footer-links li {
    display: block;
    margin: 10px 0;
  }
}

/* Reduce motion (mobile perf + accessibility) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
