/* ============================================================
   NEXUSDATUM — ANIMATIONS & ENHANCEMENTS (animations.css)
   Add <link rel="stylesheet" href="animations.css"> to all pages
   ============================================================ */

/* ── FADE-IN ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── COUNTER ANIMATION ── */
.count-up { display: inline-block; }

/* ── NAV SCROLL SHRINK ── */
.nav.scrolled {
  height: 58px;
  border-bottom-color: rgba(0,174,239,0.22);
  background: rgba(4,15,45,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav .nav-logo img {
  transition: height 0.3s ease;
}
.nav.scrolled .nav-logo img { height: 40px; }

/* ── HERO ENTRANCE ── */
@keyframes heroFadeUp {
  from { opacity:0; transform:translateY(32px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-badge   { animation: heroFadeUp 0.6s ease 0.1s both; }
.hero h1      { animation: heroFadeUp 0.7s ease 0.25s both; }
.hero p       { animation: heroFadeUp 0.7s ease 0.4s both; }
.hero-btns    { animation: heroFadeUp 0.7s ease 0.55s both; }
.hero-stats   { animation: heroFadeUp 0.7s ease 0.7s both; }

/* ── CARD HOVER LIFT (enhanced) ── */
.card, .work-card, .card-dark, .blog-card {
  will-change: transform;
}

/* ── BUTTON RIPPLE ── */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:active::after { opacity: 1; }

/* ── TRUST LOGO SCROLL ── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-logos-scroll {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.trust-logos-inner {
  display: flex;
  gap: 48px;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.trust-logos-inner:hover { animation-play-state: paused; }

/* ── STAT NUMBER GLOW (on homepage) ── */
.stat-val {
  text-shadow: 0 0 40px rgba(0,174,239,0.2);
}

/* ── PAGE TRANSITION ── */
body {
  animation: pageFade 0.4s ease;
}
@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── STICKY CTA BAR (mobile) ── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(0,174,239,0.2);
  padding: 12px 20px;
  z-index: 198;
  gap: 12px;
}
@media(max-width:768px) {
  .sticky-cta { display: flex; }
  .sticky-cta a { flex: 1; text-align: center; justify-content: center; }
  /* Push footer up so sticky bar doesn't overlap */
  footer.footer { padding-bottom: 80px; }
  .wa-float { bottom: 88px; }
}

/* ── ACTIVE NAV UNDERLINE ANIMATION ── */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: right 0.25s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-links a.active::after { right: 0; }

/* ── SECTION DIVIDER GRADIENT ── */
.divider-grad {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0 48px;
}

/* ── TOOLTIP ── */
[data-tip] { position: relative; cursor: help; }
[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 50;
}
[data-tip]:hover::before { opacity: 1; }

/* ── COOKIE CONSENT BAR ── */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(0,174,239,0.18);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar p { font-size: 13px; color: rgba(255,255,255,0.65); flex: 1; min-width: 240px; }
.cookie-bar p a { color: var(--cyan); }
.cookie-accept {
  background: var(--cyan); color: var(--white); border: none;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
}
.cookie-decline { background:transparent; color:rgba(255,255,255,0.45); border:none; font-size:13px; cursor:pointer; font-family:var(--font-body); }
