/* ==========================================================================
   SCP HUB - Advanced Animation & Interactive Visual System
   Version: 3.0 (Rich Micro-Animations, Floating Badges & SVG Glows)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. KEYFRAME DEFINITIONS
   -------------------------------------------------------------------------- */

/* Smooth Gentle Floating */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

/* Reverse Floating (Counter-balanced) */
@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-0.5deg);
  }
}

/* Glowing Aura Pulse */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.06);
  }
}

/* Live Status Ripple */
@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulseRingBlue {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Shimmer Gradient Animation */
@keyframes shimmerGrad {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Icon Interactive Pop */
@keyframes iconPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(6deg); }
  100% { transform: scale(1.08) rotate(0deg); }
}

/* Badge Bounce */
@keyframes badgePop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --------------------------------------------------------------------------
   2. SCROLL REVEAL UTILITIES
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   3. FLOATING HERO CHIPS & AURA
   -------------------------------------------------------------------------- */
.hero-image-col {
  position: relative;
}

.hero-image-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(124, 58, 237, 0.2) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-floating-chip {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  padding: 0.65rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  animation: floatSlow 5s ease-in-out infinite;
  z-index: 3;
  transition: all 0.3s ease;
}

.hero-floating-chip:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-floating-chip-top {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  padding: 0.6rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  animation: floatReverse 6s ease-in-out infinite;
  z-index: 3;
  transition: all 0.3s ease;
}

.hero-floating-chip-top:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   4. LIVE STATUS PULSE INDICATORS
   -------------------------------------------------------------------------- */
.pulse-dot-green {
  width: 9px;
  height: 9px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseRing 2s infinite;
}

.pulse-dot-blue {
  width: 9px;
  height: 9px;
  background-color: #3B82F6;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulseRingBlue 2s infinite;
}

/* --------------------------------------------------------------------------
   5. INTERACTIVE CARD & SVG HOVER SYSTEM
   -------------------------------------------------------------------------- */
.card-item {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.svc-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-item:hover .svc-icon-box {
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.card-item:hover .svc-icon-box svg {
  animation: iconPop 0.4s ease forwards;
}

/* Process Card Animation */
.process-step-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.process-step-card:hover {
  transform: translateY(-8px);
}

.process-step-card:hover .process-step-badge {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Industry Card Animation */
.industry-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.15);
  border-color: #93C5FD;
}

/* Metric Counter Box Animation */
.metric-box-interactive {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-box-interactive:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
  box-shadow: 0 15px 30px -8px rgba(37, 99, 235, 0.12);
}

/* --------------------------------------------------------------------------
   6. CATEGORY THEME PALETTES (VISUAL DIFFERENTIATION)
   -------------------------------------------------------------------------- */

/* IT Services & Web Dev Theme (Cyan / Blue) */
.theme-it .badge-theme { background: rgba(59, 130, 246, 0.15); color: #2563EB; border-color: rgba(59, 130, 246, 0.3); }
.theme-it .icon-theme { background: rgba(37, 99, 235, 0.1); color: #2563EB; }
.theme-it .gradient-theme { background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* AI & Automation Theme (Emerald / Mint) */
.theme-ai .badge-theme { background: rgba(16, 185, 129, 0.15); color: #059669; border-color: rgba(16, 185, 129, 0.3); }
.theme-ai .icon-theme { background: rgba(16, 185, 129, 0.1); color: #059669; }
.theme-ai .gradient-theme { background: linear-gradient(135deg, #059669 0%, #10B981 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Software Engineering Theme (Indigo / Violet) */
.theme-software .badge-theme { background: rgba(99, 102, 241, 0.15); color: #4F46E5; border-color: rgba(99, 102, 241, 0.3); }
.theme-software .icon-theme { background: rgba(79, 70, 229, 0.1); color: #4F46E5; }
.theme-software .gradient-theme { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Digital Marketing Theme (Rose / Coral) */
.theme-marketing .badge-theme { background: rgba(244, 63, 94, 0.15); color: #E11D48; border-color: rgba(244, 63, 94, 0.3); }
.theme-marketing .icon-theme { background: rgba(225, 29, 72, 0.1); color: #E11D48; }
.theme-marketing .gradient-theme { background: linear-gradient(135deg, #E11D48 0%, #F43F5E 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Mobile Apps Theme (Amber / Orange) */
.theme-mobile .badge-theme { background: rgba(245, 158, 11, 0.15); color: #D97706; border-color: rgba(245, 158, 11, 0.3); }
.theme-mobile .icon-theme { background: rgba(217, 119, 6, 0.1); color: #D97706; }
.theme-mobile .gradient-theme { background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Business Growth Strategy (Royal Blue / Navy) */
.theme-strategy .badge-theme { background: rgba(30, 64, 175, 0.15); color: #1D4ED8; border-color: rgba(30, 64, 175, 0.3); }
.theme-strategy .icon-theme { background: rgba(29, 78, 216, 0.1); color: #1D4ED8; }
.theme-strategy .gradient-theme { background: linear-gradient(135deg, #1D4ED8 0%, #0284C7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Skill Development Theme (Purple / Fuchsia) */
.theme-skills .badge-theme { background: rgba(168, 85, 247, 0.15); color: #7C3AED; border-color: rgba(168, 85, 247, 0.3); }
.theme-skills .icon-theme { background: rgba(124, 58, 237, 0.1); color: #7C3AED; }
.theme-skills .gradient-theme { background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Education & Career Theme (Teal / Emerald) */
.theme-education .badge-theme { background: rgba(20, 184, 166, 0.15); color: #0D9488; border-color: rgba(20, 184, 166, 0.3); }
.theme-education .icon-theme { background: rgba(13, 148, 136, 0.1); color: #0D9488; }
.theme-education .gradient-theme { background: linear-gradient(135deg, #0D9488 0%, #10B981 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --------------------------------------------------------------------------
   7. ACCESSIBILITY COMPLIANCE
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
