/**
 * ICODROID - Advanced Visual Effects
 * Version: 1.0.0
 * Description: Modern visual effects, animations, and glassmorphism
 */

/* ========================================
   PARTICLES BACKGROUND
   ======================================== */

.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at top, #0a0e27 0%, #050816 100%);
}

.particles-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);
  animation: particle-float 20s ease-in-out infinite;
}

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ========================================
   GLASSMORPHISM CARDS
   ======================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.3);
}

/* ========================================
   3D CARD EFFECT
   ======================================== */

.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card-3d-inner {
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
  transform: rotateY(10deg) rotateX(5deg);
}

/* ========================================
   ANIMATED GRADIENT BACKGROUNDS
   ======================================== */

.gradient-bg-animated {
  background: linear-gradient(
    -45deg,
    #050816,
    #0a0e27,
    #0066ff,
    #00d4ff
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================================
   NEON GLOW EFFECTS
   ======================================== */

.neon-text {
  color: #fff;
  text-shadow:
    0 0 5px #00d4ff,
    0 0 10px #00d4ff,
    0 0 20px #00d4ff,
    0 0 40px #0066ff,
    0 0 80px #0066ff;
  animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
  75% { opacity: 1; }
  80% { opacity: 0.9; }
  85% { opacity: 1; }
}

.neon-border {
  border: 2px solid #00d4ff;
  box-shadow:
    0 0 10px #00d4ff,
    inset 0 0 10px rgba(0, 212, 255, 0.3);
  animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% {
    box-shadow:
      0 0 10px #00d4ff,
      inset 0 0 10px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 20px #00d4ff,
      0 0 40px rgba(0, 212, 255, 0.5),
      inset 0 0 20px rgba(0, 212, 255, 0.5);
  }
}

/* ========================================
   FLOATING ANIMATION
   ======================================== */

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float-delayed {
  animation: float 6s ease-in-out 1s infinite;
}

/* ========================================
   WAVE ANIMATION
   ======================================== */

.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 150px;
}

.wave path {
  fill: var(--dark-bg);
}

/* ========================================
   HOLOGRAPHIC EFFECT
   ======================================== */

.holographic {
  position: relative;
  background: linear-gradient(
    45deg,
    #00d4ff 0%,
    #0066ff 25%,
    #ff6b00 50%,
    #0066ff 75%,
    #00d4ff 100%
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographic-shift 5s ease infinite;
}

@keyframes holographic-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================================
   PARALLAX LAYERS
   ======================================== */

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
}

.parallax-layer-1 { z-index: 1; }
.parallax-layer-2 { z-index: 2; }
.parallax-layer-3 { z-index: 3; }

/* ========================================
   SHIMMER EFFECT
   ======================================== */

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ========================================
   HEXAGON GRID BACKGROUND
   ======================================== */

.hex-bg {
  background-image:
    linear-gradient(30deg, rgba(0, 212, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.03) 87.5%, rgba(0, 212, 255, 0.03)),
    linear-gradient(150deg, rgba(0, 212, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.03) 87.5%, rgba(0, 212, 255, 0.03)),
    linear-gradient(30deg, rgba(0, 212, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.03) 87.5%, rgba(0, 212, 255, 0.03)),
    linear-gradient(150deg, rgba(0, 212, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.03) 87.5%, rgba(0, 212, 255, 0.03)),
    linear-gradient(60deg, rgba(0, 212, 255, 0.05) 25%, transparent 25.5%, transparent 75%, rgba(0, 212, 255, 0.05) 75%, rgba(0, 212, 255, 0.05)),
    linear-gradient(60deg, rgba(0, 212, 255, 0.05) 25%, transparent 25.5%, transparent 75%, rgba(0, 212, 255, 0.05) 75%, rgba(0, 212, 255, 0.05));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* ========================================
   CYBER GRID
   ======================================== */

.cyber-grid {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  position: relative;
}

.cyber-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--darker-bg) 100%);
}

/* ========================================
   GLITCH EFFECT
   ======================================== */

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: #00d4ff;
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  color: #ff6b00;
  z-index: -2;
}

@keyframes glitch-1 {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@keyframes glitch-2 {
  0% { transform: translateX(0); }
  20% { transform: translateX(2px); }
  40% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  80% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

/* ========================================
   SCAN LINE EFFECT
   ======================================== */

.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 212, 255, 0.8),
    transparent
  );
  animation: scan 3s linear infinite;
  z-index: 1000;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* ========================================
   ENERGY PULSE
   ======================================== */

.pulse-ring {
  position: relative;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* ========================================
   PERSPECTIVE TILT
   ======================================== */

.tilt-on-hover {
  transition: transform 0.3s ease;
}

.tilt-on-hover:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
}

/* ========================================
   MAGNETIC EFFECT (Mouse Follow)
   ======================================== */

.magnetic {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================
   STATS COUNTER ANIMATION
   ======================================== */

.stat-item {
  position: relative;
  padding: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   PROGRESS BARS
   ======================================== */

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========================================
   TOOLTIP
   ======================================== */

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: rgba(0, 212, 255, 0.95);
  color: var(--light-text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.tooltip:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
  .stat-number { font-size: 2rem; }
  .neon-text { font-size: 1.5rem; }
}

@media (max-width: 640px) {
  .stat-number { font-size: 1.5rem; }
  .glass-card { padding: 1.5rem; }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
