/* InfuzeIT — Futuristic Design System */

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* ===== BACKGROUND ===== */
body { background: #030711; animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 var(--grid-shift, 0px);
}

/* ===== ORBS ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
}
.orb-blue  { background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 70%); }
.orb-purple{ background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%); }
.orb-cyan  { background: radial-gradient(circle, rgba(6, 182, 212, 0.30), transparent 70%); }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(50px, -40px) scale(1.04); }
  50%       { transform: translate(-30px, 30px) scale(0.96); }
  75%       { transform: translate(40px, 50px) scale(1.02); }
}
.orb-anim      { animation: orbFloat 18s ease-in-out infinite; }
.orb-anim-slow { animation: orbFloat 24s ease-in-out infinite reverse; }
.orb-anim-med  { animation: orbFloat 20s ease-in-out infinite 6s; }

/* ===== GLASS CARDS ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.12), 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}
.glass-card-static {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

/* ===== GRADIENT TEXT ===== */
.text-grad {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 40%, #67e8f9 70%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.text-grad-blue {
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-grad-cyan {
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NEON GLOW ===== */
.neon-blue   { box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.15); }
.neon-purple { box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), 0 0 80px rgba(168, 85, 247, 0.15); }
.neon-cyan   { box-shadow: 0 0 25px rgba(6, 182, 212, 0.5), 0 0 80px rgba(6, 182, 212, 0.15); }

/* ===== BUTTONS ===== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.1s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 8px 35px rgba(37, 99, 235, 0.65); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary > span { position: relative; z-index: 1; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 4s infinite 1.2s;
  z-index: 0;
}
@keyframes btnShimmer {
  0%        { left: -100%; }
  35%, 100% { left: 200%; }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.btn-outline:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(96, 165, 250, 0.08);
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.2);
}

/* ===== MAGNETIC BUTTON ===== */
.mag-btn { transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }

/* ===== NAV ===== */
.site-nav {
  background: rgba(3, 7, 17, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(3, 7, 17, 0.97);
  border-bottom-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(59, 130, 246, 0.12);
}

/* ===== SECTION BADGE ===== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== STAT BOX ===== */
.stat-box {
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.stat-box:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.18);
}

/* ===== IMAGE ZOOM CARD ===== */
.img-zoom { overflow: hidden; border-radius: 1.25rem; }
.img-zoom img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.img-zoom:hover img { transform: scale(1.06); }

/* ===== LOGO TICKER ===== */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-track {
  display: flex;
  gap: 5rem;
  animation: ticker 32s linear infinite;
  white-space: nowrap;
  align-items: center;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-wrap { overflow: hidden; }

/* ===== PULSE DOT ===== */
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.pulse-dot {
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  display: inline-block;
}

/* ===== ANIMATED BORDER ===== */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(59, 130, 246, 0.25); }
  50%       { border-color: rgba(168, 85, 247, 0.45); }
}
.border-anim { animation: borderGlow 4s ease-in-out infinite; }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(3, 7, 17, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== HERO TITLE ===== */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030711; }
::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.65); }

/* ===== SELECTION ===== */
::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

/* ===== LINK UNDERLINE ===== */
.link-glow { transition: color 0.2s ease, text-shadow 0.2s ease; }
.link-glow:hover { color: #60a5fa; text-shadow: 0 0 12px rgba(96, 165, 250, 0.5); }

/* ===== SERVICE ICON BOX ===== */
.icon-box {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, rgba(99, 102, 241, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* ===== FLOATING ANIMATION ===== */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.float-anim      { animation: floatY 5s ease-in-out infinite; }
.float-anim-slow { animation: floatY 7s ease-in-out infinite 1.5s; }
.float-anim-med  { animation: floatY 6s ease-in-out infinite 0.75s; }

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #67e8f9);
  z-index: 60;
  will-change: width;
}

/* ===== HERO PARALLAX ===== */
.hero-parallax-layer {
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.hero-scrub {
  will-change: transform, opacity;
}

/* ===== DASHBOARD MOCK (homepage hero visual) ===== */
.dashboard-tilt {
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.dashboard-mock {
  position: relative;
  padding: 1rem 1.25rem 1.5rem;
  overflow: hidden;
  animation: floatY 6.5s ease-in-out infinite, glowPulse 4s ease-in-out infinite;
}
.dashboard-mock::before {
  content: '';
  position: absolute;
  top: -60%; left: -160%;
  width: 55%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: rotate(18deg);
  animation: dashboardSweep 5s ease-in-out infinite 1s;
  pointer-events: none;
}
@keyframes dashboardSweep {
  0%        { left: -160%; }
  55%, 100% { left: 160%; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.15); }
  50%       { box-shadow: 0 0 42px rgba(59, 130, 246, 0.75), 0 0 110px rgba(59, 130, 246, 0.28); }
}
.dashboard-mock .chrome-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dashboard-block {
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(99,102,241,0.10));
  border: 1px solid rgba(255,255,255,0.08);
}
.dashboard-chart-line {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dashboard-mock.in-view .dashboard-chart-line {
  stroke-dashoffset: 0;
}
.chart-dot {
  fill: #93c5fd;
  filter: drop-shadow(0 0 5px rgba(147, 197, 253, 0.9));
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.4s ease 1.5s;
}
.dashboard-mock.in-view .chart-dot {
  opacity: 1;
  animation: chartDotPulse 2s ease-in-out 1.6s infinite;
}
@keyframes chartDotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.8); }
}
.node-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #67e8f9, #3b82f6);
  box-shadow: 0 0 16px rgba(96,165,250,0.6);
}
.node-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(96,165,250,0.5), transparent);
  transform-origin: left center;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-parallax-layer, .hero-scrub, .dashboard-tilt { transform: none !important; }
  .orb-anim, .orb-anim-slow, .orb-anim-med, .float-anim, .float-anim-slow, .float-anim-med, .border-anim, .ticker-track, .text-grad,
  .dashboard-mock, .dashboard-mock::before, .chart-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}
