/* ========== Scroll Animations ========== */
.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-child {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-fade.visible .stagger-child:nth-child(1) { transition-delay: 0.08s; }
.scroll-fade.visible .stagger-child:nth-child(2) { transition-delay: 0.16s; }
.scroll-fade.visible .stagger-child:nth-child(3) { transition-delay: 0.24s; }
.scroll-fade.visible .stagger-child:nth-child(4) { transition-delay: 0.32s; }
.scroll-fade.visible .stagger-child:nth-child(5) { transition-delay: 0.40s; }
.scroll-fade.visible .stagger-child:nth-child(6) { transition-delay: 0.48s; }
.scroll-fade.visible .stagger-child {
  opacity: 1;
  transform: translateY(0);
}

/* Hero floating dashboard */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(-2deg); }
}
.hero-float { animation: heroFloat 5s ease-in-out infinite; }

/* Fade from left / right */
.scroll-fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[dir="rtl"] .scroll-fade-left { transform: translateX(50px); }
[dir="rtl"] .scroll-fade-right { transform: translateX(-50px); }
.scroll-fade-left.visible,
.scroll-fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== Animated gradient background ========== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== Glowing pulse for buttons ========== */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(245,166,35,0.3), 0 0 15px rgba(245,166,35,0.1); }
  50% { box-shadow: 0 0 15px rgba(245,166,35,0.5), 0 0 40px rgba(245,166,35,0.2); }
}

/* ========== Shimmer effect ========== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ========== Floating particles ========== */
@keyframes particleFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(80px, -60px) scale(1.2); opacity: 0.6; }
  50% { transform: translate(40px, -120px) scale(0.8); opacity: 0.4; }
  75% { transform: translate(-30px, -80px) scale(1.1); opacity: 0.5; }
}
@keyframes particleFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  33% { transform: translate(-60px, -90px) scale(1.3); opacity: 0.5; }
  66% { transform: translate(50px, -50px) scale(0.9); opacity: 0.3; }
}
@keyframes particleFloat3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  50% { transform: translate(30px, -100px); opacity: 0.4; }
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-particle:nth-child(1) {
  width: 6px; height: 6px; background: var(--teal);
  top: 20%; left: 10%;
  animation: particleFloat1 8s ease-in-out infinite;
}
.hero-particle:nth-child(2) {
  width: 4px; height: 4px; background: var(--orange);
  top: 60%; left: 20%;
  animation: particleFloat2 10s ease-in-out infinite 1s;
}
.hero-particle:nth-child(3) {
  width: 8px; height: 8px; background: rgba(26,143,160,0.4);
  top: 30%; right: 15%;
  animation: particleFloat3 12s ease-in-out infinite 2s;
}
.hero-particle:nth-child(4) {
  width: 5px; height: 5px; background: rgba(245,166,35,0.4);
  top: 70%; right: 25%;
  animation: particleFloat1 9s ease-in-out infinite 3s;
}
.hero-particle:nth-child(5) {
  width: 3px; height: 3px; background: var(--teal);
  top: 45%; left: 50%;
  animation: particleFloat2 11s ease-in-out infinite 0.5s;
}
.hero-particle:nth-child(6) {
  width: 7px; height: 7px; background: rgba(255,255,255,0.15);
  top: 80%; left: 40%;
  animation: particleFloat3 7s ease-in-out infinite 1.5s;
}

/* ========== Typing cursor blink ========== */
@keyframes cursorBlink {
  0%, 50% { border-right-color: var(--orange); }
  51%, 100% { border-right-color: transparent; }
}

/* ========== Counter roll up ========== */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Card border glow ========== */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(26,143,160,0.15); }
  50% { border-color: rgba(26,143,160,0.4); }
}

/* ========== Orbit rings for Why Us icons ========== */
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Dashboard stat count animation ========== */
@keyframes statReveal {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== Subtle background grid pulse ========== */
@keyframes gridPulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.07; }
}

/* ========== Section divider wave ========== */
@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== Icon bounce on hover ========== */
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  50% { transform: translateY(-4px); }
  70% { transform: translateY(-6px); }
}

/* ========== Navbar link underline slide ========== */
@keyframes underlineSlide {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
