/* ============================================================
   MULTI SKILL HUB — ANIMATIONS & VISUAL EFFECTS CSS
   Particles, morphing blobs, shape decorations, micro-interactions
   ============================================================ */

/* ─── GRID BACKGROUND TEXTURE ─────────────────────────── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,47,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

/* ─── ANIMATED GRADIENT BLOBS ──────────────────────────── */
.blob-1, .blob-2, .blob-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite;
  will-change: transform;
}

.blob-1 {
  width: min(500px, 50vw);
  height: min(500px, 50vw);
  background: radial-gradient(circle, rgba(123,47,255,0.22) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-duration: 14s;
}

.blob-2 {
  width: min(400px, 40vw);
  height: min(400px, 40vw);
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  bottom: 5%;
  left: -5%;
  animation-duration: 18s;
  animation-delay: -6s;
  animation-direction: reverse;
}

.blob-3 {
  width: min(300px, 30vw);
  height: min(300px, 30vw);
  background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(20px, -30px) scale(1.05); }
  50%       { transform: translate(-15px, 20px) scale(0.95); }
  75%       { transform: translate(25px, 10px) scale(1.02); }
}

/* ─── FLOATING PARTICLES ───────────────────────────────── */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
  will-change: transform, opacity;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) translateX(var(--drift, 0px)) scale(0.5); opacity: 0; }
}

/* ─── SECTION DECORATIVE SHAPES ───────────────────────── */
.shape-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(123,47,255,0.15);
  pointer-events: none;
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.05); opacity: 0.8; }
}

.shape-cross {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}
.shape-cross::before, .shape-cross::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg,#7B2FFF,#00D4FF);
  border-radius: 2px;
}
.shape-cross::before { width: 2px; height: 20px; top: 0; left: 50%; transform: translateX(-50%); }
.shape-cross::after  { width: 20px; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }

/* ─── FOOTER ANIMATED WAVEFORM ─────────────────────────── */
.footer-wave {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ─── GLOWING LINE SEPARATOR ───────────────────────────── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,47,255,0.5), rgba(0,212,255,0.5), transparent);
  position: relative;
  overflow: visible;
}
.glow-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: linear-gradient(90deg, #7B2FFF, #00D4FF);
  border-radius: 3px;
  filter: blur(4px);
}

/* ─── CARD HOVER GLOW ──────────────────────────────────── */
.card-glow {
  position: relative;
}
.card-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  filter: blur(8px);
}
.card-glow:hover::after { opacity: 0.15; }

/* ─── ICON FLOAT ANIMATION ─────────────────────────────── */
.icon-float {
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* ─── SHINE EFFECT ON HERO HEADING ─────────────────────── */
.hero-heading .gradient-text {
  position: relative;
  display: inline-block;
}
.hero-heading .gradient-text::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: textShine 4s ease-in-out infinite;
}
@keyframes textShine {
  0%, 100% { left: -100%; }
  50%       { left: 100%; }
}

/* ─── STAGGERED CARD ENTRY ───────────────────────────────── */
.animate-fade-up:nth-child(1) { transition-delay: 0s; }
.animate-fade-up:nth-child(2) { transition-delay: 0.1s; }
.animate-fade-up:nth-child(3) { transition-delay: 0.2s; }
.animate-fade-up:nth-child(4) { transition-delay: 0.3s; }
.animate-fade-up:nth-child(5) { transition-delay: 0.4s; }
.animate-fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ─── BORDER GRADIENT ANIMATION ────────────────────────── */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(123,47,255,0.3); }
  50%       { border-color: rgba(0,212,255,0.5); }
}
.border-animate {
  animation: borderGlow 3s ease-in-out infinite;
}

/* ─── DECORATIVE DOTS GRID ─────────────────────────────── */
.dot-pattern {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(123,47,255,0.4) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── NEON TEXT PULSE ───────────────────────────────────── */
@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(123,47,255,0.3), 0 0 30px rgba(123,47,255,0.1); }
  50%       { text-shadow: 0 0 20px rgba(123,47,255,0.6), 0 0 60px rgba(0,212,255,0.2); }
}

/* ─── SCROLL INDICATOR ─────────────────────────────────── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-purple), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── HERO STATS COUNTER HIGHLIGHT ─────────────────────── */
.counter-highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ─── TOOLTIP ───────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
[data-tooltip]:hover::before { opacity: 1; }

/* ─── DISABLE COMPLEX ANIMATIONS ON MOBILE ─────────────── */
@media (max-width:768px) {
  .blob-1, .blob-2, .blob-3 {
    filter: blur(40px);
    width: min(250px, 70vw) !important;
    height: min(250px, 70vw) !important;
  }
  .particles-container { display: none; }
  .scroll-indicator { display: none; }
  .hero::before { background-size: 30px 30px; }

  /* Keep text animations but simplify */
  .hero-heading .gradient-text::after { display: none; }
}

/* ─── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .blob-1, .blob-2, .blob-3,
  .particle, .shape-ring,
  .icon-float, .scroll-indicator { animation: none; }
  .animate-fade-up { opacity: 1; transform: none; transition: none; }
}
