/**
* Hunter Technologies - Modern Animations
* Moderate animation style - Professional & Subtle
*/

/*--------------------------------------------------------------
# Gradient Text Effect
--------------------------------------------------------------*/
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/*--------------------------------------------------------------
# Scroll Reveal Animations
--------------------------------------------------------------*/
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/*--------------------------------------------------------------
# Staggered Animation Delays
--------------------------------------------------------------*/
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/*--------------------------------------------------------------
# Glow Effect on Hover
--------------------------------------------------------------*/
.glow-hover {
  transition: all var(--transition-normal);
}

.glow-hover:hover {
  box-shadow: 0 0 20px rgba(104, 164, 196, 0.5),
              0 0 40px rgba(0, 212, 255, 0.3);
}

/*--------------------------------------------------------------
# Subtle Pulse Animation
--------------------------------------------------------------*/
@keyframes subtlePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.pulse-subtle {
  animation: subtlePulse 3s ease-in-out infinite;
}

/*--------------------------------------------------------------
# Float Animation
--------------------------------------------------------------*/
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/*--------------------------------------------------------------
# Shimmer Effect for Loading
--------------------------------------------------------------*/
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--surface-color-light) 0%,
    rgba(104, 164, 196, 0.1) 50%,
    var(--surface-color-light) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/*--------------------------------------------------------------
# Button Hover Effects - Simple
--------------------------------------------------------------*/
.btn-modern {
  color: var(--contrast-color);
  transition: all 0.3s ease;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: var(--accent-color);
  color: var(--contrast-color);
}

.btn-glow {
  position: relative;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/*--------------------------------------------------------------
# Icon Animation
--------------------------------------------------------------*/
.icon-animate {
  transition: all var(--transition-normal);
}

.icon-animate:hover {
  transform: rotate(10deg) scale(1.1);
}

/*--------------------------------------------------------------
# Link Underline Animation
--------------------------------------------------------------*/
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.link-underline:hover::after {
  width: 100%;
}

/*--------------------------------------------------------------
# Card Border Animation
--------------------------------------------------------------*/
.card-border-animate {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.card-border-animate::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card-border-animate:hover::before {
  opacity: 1;
}

/*--------------------------------------------------------------
# Stats Counter Animation
--------------------------------------------------------------*/
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: countUp 0.6s ease forwards;
}

.stat-number {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*--------------------------------------------------------------
# Hero Mesh Gradient Background - Creative
--------------------------------------------------------------*/
.hero-mesh-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.6;
  z-index: 0;
}

/* Animated Network Background for Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(104, 164, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 164, 196, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(104, 164, 196, 0.1) 0%, transparent 60%);
  animation: heroPulse 15s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(5%, 5%) scale(1.1);
  }
  50% {
    transform: translate(-5%, 10%) scale(1);
  }
  75% {
    transform: translate(10%, -5%) scale(1.05);
  }
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 164, 196, 0.3) 0%, transparent 70%);
}

.hero-particles::before {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 20%;
  animation: float 20s ease-in-out infinite;
}

.hero-particles::after {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 10%;
  animation: float 15s ease-in-out infinite reverse;
}

/*--------------------------------------------------------------
# Glassmorphism Card Utility
--------------------------------------------------------------*/
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

/*--------------------------------------------------------------
# Focus Ring for Accessibility
--------------------------------------------------------------*/
.focus-ring:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/*--------------------------------------------------------------
# Reduced Motion Support
--------------------------------------------------------------*/
@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;
  }

  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale {
    opacity: 1;
    transform: none;
  }

  .pulse-subtle,
  .float-animation {
    animation: none;
  }
}

/*--------------------------------------------------------------
# Custom Scrollbar
--------------------------------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Selection Color
--------------------------------------------------------------*/
::selection {
  background: var(--accent-color);
  color: var(--contrast-color);
}

::-moz-selection {
  background: var(--accent-color);
  color: var(--contrast-color);
}
