/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

@keyframes mesh-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 50px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes mesh-drift-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-60px, 80px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1.1); }
}

@keyframes mesh-drift-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(90px, -30px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes flow-grid {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

/* ==========================================
   ANIMATION CLASSES & TRANSITIONS
   ========================================== */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

.pulse-button {
  animation: pulse-glow 2s infinite;
}

/* Shifting gradient mesh elements */
.mesh-1 {
  animation: mesh-drift-1 16s infinite ease-in-out;
}

.mesh-2 {
  animation: mesh-drift-2 20s infinite ease-in-out;
}

.mesh-3 {
  animation: mesh-drift-3 24s infinite linear;
}

/* Page entrance animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   PREMIUM GLASS & GLOW UTILITIES
   ========================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Glow Container & Blobs */
.glowing-orbs-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.orb-indigo {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(60px);
}

.orb-orange {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 64, 0.22) 0%, rgba(255, 126, 64, 0) 70%);
  filter: blur(50px);
}

/* ==========================================
   FINANCIAL DATA GRID LAYOUTS
   ========================================== */
.data-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(124, 58, 237, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
  animation: flow-grid 20s linear infinite;
}

.data-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--white) 80%);
}

/* ==========================================
   CONNECTED DOTS NETWORK LAYER
   ========================================== */
.section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Image Zoom card trigger */
.zoom-img-container {
  overflow: hidden;
  position: relative;
}

.zoom-img-container img {
  transition: var(--transition-slow);
}

.card-hover:hover .zoom-img-container img {
  transform: scale(1.05);
}

/* Page scroll progress indicator */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* ==========================================
   HERO ANIMATION LAYERS & PARTICLES
   ========================================== */
.rotating-glow-ring {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  border-radius: var(--radius-lg);
  background: linear-gradient(0deg, #6D4AFF, #F6A76E, #7DD3FC);
  z-index: 1;
  filter: blur(25px);
  opacity: 0.35;
  animation: rotate-ring 15s linear infinite;
  pointer-events: none;
}

@keyframes rotate-ring {
  100% { transform: rotate(360deg); }
}

.floating-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.05);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.1s ease-out;
}

.shape-1 {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  top: 18%;
  left: 6%;
  animation: float 7s ease-in-out infinite;
}

.shape-2 {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  top: 72%;
  left: 44%;
  animation: float 9s ease-in-out infinite alternate;
  transform: rotate(45deg);
}

.shape-3 {
  width: 90px;
  height: 90px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 25%;
  right: 8%;
  animation: float 11s ease-in-out infinite alternate-reverse;
}

/* Thin SVG glowing path lines (AI Data Flow) */
.data-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow-path-1 {
  animation: dash-flow 32s linear infinite;
}

.flow-path-2 {
  animation: dash-flow 26s linear infinite reverse;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -1000;
  }
}
