/* ===== DiaOps — custom styles layered on top of Tailwind ===== */

:root {
  --navy: #14305f;
  --brand: #2f6fb0;
  --sky: #4aa3df;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1f2937; }
h1, h2, h3, h4, .font-head { font-family: 'Poppins', sans-serif; }

/* ---- Gradient helpers ---- */
.bg-mesh {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(74,163,223,.28), transparent 60%),
    radial-gradient(800px 600px at 95% 0%, rgba(47,111,176,.25), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 70%);
}
.bg-navy-mesh {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(74,163,223,.30), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(47,111,176,.35), transparent 55%),
    linear-gradient(160deg, #14305f 0%, #0d2247 100%);
}
.text-gradient {
  background: linear-gradient(90deg, #2f6fb0, #4aa3df);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Navbar ---- */
#nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20,48,95,.07);
  transition: box-shadow .3s ease, background .3s ease, backdrop-filter .3s ease;
}
#nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 6px 24px rgba(20,48,95,.10);
}
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #2f6fb0, #4aa3df);
  transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---- Buttons ---- */
.btn { transition: transform .18s ease, box-shadow .18s ease, background .2s ease; }
.btn-primary { box-shadow: 0 10px 24px -8px rgba(47,111,176,.6); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 16px 32px -8px rgba(47,111,176,.7); }

/* ---- Cards ---- */
.card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(20,48,95,.28);
  border-color: rgba(74,163,223,.5);
}

/* ---- Floating cube in hero ---- */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-18px) rotate(3deg); }
}
.spin-slow { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Marquee for tech/clients ---- */
.marquee { overflow: hidden; }
.marquee__track { display: inline-flex; gap: 3rem; animation: scrollx 24s linear infinite; white-space: nowrap; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Misc ---- */
.divider-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--sky); }
@media (prefers-reduced-motion: reduce) {
  .float, .spin-slow, .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
