/* ============================================================
   BUSINESS INFINITY — Corporate Animated Stylesheet
   Tailwind via CDN provides utilities; this file adds brand
   animations, components and design-system polish.
   ============================================================ */

:root {
  --ink: #0a2540;
  --ink-2: #102a4c;
  --brand-600: #0b82d8;
  --brand-700: #0a68ad;
  --brand-900: #0f4a75;
  --accent: #f59e0b;
  --mist: #f4f8fb;
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #334155;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: "Sora", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--brand-600);
  color: #fff;
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #eef4f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-900));
  border-radius: 20px;
  border: 2px solid #eef4f9;
}

/* ---------- Anchor offset under sticky header ---------- */
section[id] { scroll-margin-top: 110px; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  transition: opacity .55s ease, visibility .55s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ring {
  width: 74px; height: 74px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--brand-600);
  border-right-color: var(--accent);
  animation: spin .9s linear infinite;
  position: relative;
}
.preloader-ring::after {
  content: "";
  position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: rgba(255,255,255,.35);
  animation: spin 1.4s linear infinite reverse;
}
.preloader-logo {
  position: absolute; color: #fff; font-weight: 800; font-size: 1.05rem;
  font-family: "Sora", sans-serif; letter-spacing: .08em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Wordmark ---------- */
.brand-mark { transition: transform .35s ease; }
.brand-mark:hover { transform: rotate(-6deg) scale(1.06); }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; height: 100svh; min-height: 660px; overflow: hidden; }
@media (max-width:768px){ .hero-slider { min-height: 640px; } }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), visibility 1.1s;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.hero-slide-bg {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center;
  transform: scale(1.02);
}
.hero-slide.active .hero-slide-bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0,0); }
  100% { transform: scale(1.16) translate(-1.2%, 1.1%); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7,20,39,.94) 0%, rgba(8,32,60,.80) 42%, rgba(10,47,84,.35) 72%, rgba(10,47,84,.15) 100%);
}
.hero-overlay::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 480px at 82% 18%, rgba(11,130,216,.35), transparent 62%),
    radial-gradient(900px 520px at 8% 96%, rgba(245,158,11,.18), transparent 60%);
  mix-blend-mode: screen;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 75% at 40% 45%, #000 30%, transparent 100%);
          mask-image: radial-gradient(75% 75% at 40% 45%, #000 30%, transparent 100%);
}

.hero-content { position: relative; z-index: 5; width: 100%; }

.hero-kicker,
.hero-title-line,
.hero-sub,
.hero-ctas,
.hero-trust {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.19,1,.22,1);
}
.hero-slide.active .hero-kicker      { transition-delay: .25s; opacity: 1; transform: none; }
.hero-slide.active .hero-title-line  { transition-delay: .40s; opacity: 1; transform: none; }
.hero-slide.active .hero-sub         { transition-delay: .60s; opacity: 1; transform: none; }
.hero-slide.active .hero-ctas        { transition-delay: .80s; opacity: 1; transform: none; }
.hero-slide.active .hero-trust       { transition-delay: 1.00s; opacity: 1; transform: none; }

.hero-title-line { overflow: hidden; }
.hero-title-line span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .95s cubic-bezier(.19,1,.22,1);
}
.hero-slide.active .hero-title-line span { transform: translateY(0); transition-delay: .35s; }

.hero-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  padding: .5rem 1.05rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #dbeafe;
}

.hero-slider-progress {
  position: absolute; bottom: 0; left: 0; height: 4px; width: 100%;
  background: rgba(255,255,255,.14); z-index: 8;
}
.hero-slider-progress .bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand-600), var(--accent));
}

.hero-scroll-hint {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 26px; z-index: 7; color: rgba(255,255,255,.8);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
}
.hero-scroll-hint .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6);
  border-radius: 14px; position: relative;
}
.hero-scroll-hint .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--accent);
  animation: wheel 1.6s ease infinite;
}
@keyframes wheel { 0%{opacity:1; transform:translate(-50%,0);} 100%{opacity:0; transform:translate(-50%,12px);} }

@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-18px) rotate(4deg); }
}
.float-soft { animation: floaty 7s ease-in-out infinite; }

/* ---------- Marquee strip ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.19,1,.22,1);
  will-change: opacity, transform;
}
.reveal.reveal-left  { transform: translateX(-44px); }
.reveal.reveal-right { transform: translateX(44px); }
.reveal.reveal-zoom  { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }

[data-d="1"] { transition-delay: .10s; }
[data-d="2"] { transition-delay: .20s; }
[data-d="3"] { transition-delay: .30s; }
[data-d="4"] { transition-delay: .40s; }
[data-d="5"] { transition-delay: .50s; }
[data-d="6"] { transition-delay: .60s; }

/* ---------- Gradient text ---------- */
.text-gradient {
  background: linear-gradient(92deg, #4cc2ff 0%, #0b82d8 45%, #f59e0b 110%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-shimmer {
  background: linear-gradient(110deg, #5cc8ff 20%, #ffffff 40%, #5cc8ff 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 700; border-radius: 999px; transition: all .3s ease;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(92deg, var(--brand-600), var(--brand-900));
  box-shadow: 0 12px 28px -8px rgba(11,130,216,.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(11,130,216,.65); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: shine .9s ease; }
@keyframes shine { to { left: 130%; } }

.btn-accent {
  color: #16233b;
  background: linear-gradient(92deg, #fbbf24, #f59e0b);
  box-shadow: 0 12px 26px -10px rgba(245,158,11,.6);
}
.btn-accent:hover { transform: translateY(-3px); }
.btn-ghost {
  color: #fff; border: 1.5px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.06); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-dark {
  color: #fff; background: var(--ink);
  box-shadow: 0 12px 26px -10px rgba(10,37,64,.6);
}
.btn-dark:hover { transform: translateY(-3px); background: var(--brand-900); }

/* ---------- Cards / tiles ---------- */
.card-hover {
  transition: transform .4s cubic-bezier(.19,1,.22,1), box-shadow .4s ease, border-color .4s ease;
}
.card-hover:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -18px rgba(10,37,64,.28); }

.tile { position: relative; overflow: hidden; }
.tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 90% -10%, rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .5s ease;
}
.tile:hover::before { opacity: 1; }

/* Service card icon gradient variants */
.cg-0 { background: linear-gradient(135deg, #0b82d8, #0f4a75); }
.cg-1 { background: linear-gradient(135deg, #0a68ad, #0a2540); }
.cg-2 { background: linear-gradient(135deg, #0284c7, #155e75); }
.cg-3 { background: linear-gradient(135deg, #2563eb, #0f4a75); }
.cg-4 { background: linear-gradient(135deg, #0891b2, #164e63); }
.cg-5 { background: linear-gradient(135deg, #0369a1, #0b3d5c); }

.icon-float { transition: transform .5s cubic-bezier(.19,1,.22,1); }
.card-hover:hover .icon-float { transform: translateY(-6px) rotate(-6deg) scale(1.1); }

/* ---------- Feature/check list ---------- */
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .65rem; display: flex; align-items: flex-start; }
.check-list li::before {
  content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: .05rem; color: var(--brand-600);
  font-size: 1rem;
}

/* ---------- Section eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--brand-600); font-weight: 800; font-size: .8rem;
  letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--brand-600), var(--accent)); border-radius: 2px; }

.section-title { letter-spacing: -0.03em; }

/* ---------- Floating blobs ---------- */
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: .35; pointer-events: none;
}

/* ---------- Testimonial slider ---------- */
.t-slide { transition: opacity .8s ease, transform .8s ease; }
.t-slide:not(.active) { opacity: 0; transform: translateY(20px) scale(.98); visibility: hidden; position: absolute; inset: 0; pointer-events: none; }
.t-slide.active { opacity: 1; transform: none; position: relative; }

/* ---------- FAQ accordion ---------- */
.faq-item .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .35s ease; }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brand-600), var(--accent));
  border-radius: 2px;
}
@media (min-width:768px){ .timeline::before { left: 50%; transform: translateX(-50%); } }
.t-dot {
  position: absolute; left: 6px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--brand-600);
  box-shadow: 0 0 0 5px rgba(11,130,216,.15);
}
@media (min-width:768px){ .t-dot { left: 50%; transform: translateX(-50%); } }

/* ---------- Value pillars ---------- */
.pillar { position: relative; }
.pillar::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand-600), var(--accent));
  transition: width .6s cubic-bezier(.19,1,.22,1);
}
.pillar:hover::after { width: 100%; }

/* ---------- Partner logo grid ---------- */
.partner-logo {
  filter: grayscale(1) opacity(.72);
  transition: filter .4s ease, transform .4s ease;
}
.partner-logo:hover { filter: none; transform: translateY(-4px); }

/* ---------- Counter ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- Back to top + floating ---------- */
#to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -10px rgba(11,130,216,.6);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .35s ease;
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { transform: translateY(-4px); }

/* ---------- Header ---------- */
#site-header { transition: all .35s ease; }
#site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px -18px rgba(10,37,64,.35);
}
.nav-link { position: relative; font-weight: 600; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent));
  border-radius: 2px; transition: width .35s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---------- Sideline decorative ---------- */
.ring-decoration {
  position: absolute; border: 1.5px dashed rgba(11,130,216,.35);
  border-radius: 50%; animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pulse ring (CTA / badge) ---------- */
.pulse-ring { animation: pulsering 2.4s ease-in-out infinite; }
@keyframes pulsering {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ---------- Gradient border card ---------- */
.g-border {
  position: relative; background: #fff;
  border-radius: var(--radius);
}
.g-border::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: linear-gradient(135deg, var(--brand-600), rgba(11,130,216,.1), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(11,130,216,.45), transparent 62%),
    radial-gradient(760px 400px at 0% 100%, rgba(245,158,11,.22), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--brand-900) 60%, #0b5d8a 100%);
  overflow: hidden;
}
.page-hero .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 80% at 30% 40%, #000 20%, transparent 100%);
          mask-image: radial-gradient(70% 80% at 30% 40%, #000 20%, transparent 100%);
}
.breadcrumb a { transition: color .3s ease; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Misc ---------- */
.shadow-soft { box-shadow: 0 22px 48px -22px rgba(10,37,64,.22); }
.bg-mist { background: var(--mist); }
.text-ink { color: var(--ink); }
.divider-fade { mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.stripes {
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 10px, transparent 10px 20px);
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .15s !important; }
  html { scroll-behavior: auto; }
}