/* Custom Styles for IkidPro Landing Page */

/* Custom keyframes for animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-10px) translateX(5px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) translateX(-5px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) translateX(10px);
    opacity: 0.4;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.6);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
.animate-fade-in-up {
  animation: fade-in-up 1s ease-out;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient-shift {
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

/* Floating particles background */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #22d3ee, #a855f7);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.floating-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: -2s;
}

.floating-particles::after {
  top: 60%;
  right: 20%;
  animation-delay: -4s;
  background: linear-gradient(45deg, #a855f7, #3b82f6);
}

/* Feature cards hover effects */
.feature-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 211, 238, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.1);
}

/* Gradient text effects */
.gradient-text {
  background: linear-gradient(45deg, #22d3ee, #a855f7, #3b82f6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

/* Custom button effects */
.btn-primary {
  background: linear-gradient(45deg, #22d3ee, #a855f7);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

/* Navigation effects */
nav {
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-particles::before,
  .floating-particles::after {
    width: 10px;
    height: 10px;
  }

  .feature-card {
    margin-bottom: 1rem;
  }
}

/* Loading animation for elements */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #22d3ee, #a855f7);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #06b6d4, #9333ea);
}

/* Intersection observer fade-in effects */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section particles */
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #22d3ee;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.hero-particle:nth-child(2) {
  top: 40%;
  left: 80%;
  animation-delay: 1s;
}
.hero-particle:nth-child(3) {
  top: 70%;
  left: 30%;
  animation-delay: 2s;
}
.hero-particle:nth-child(4) {
  top: 30%;
  left: 60%;
  animation-delay: 3s;
}

/* Analytics chart animations */
.chart-bar {
  transition: all 0.3s ease;
}

.chart-bar:hover {
  transform: scaleY(1.1);
}

/* Intelligence status indicators */
.status-indicator {
  position: relative;
}

.status-indicator::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.2);
  }
}

/* Mobile menu styles */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gradient-text {
    background: #22d3ee;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-pulse-glow,
  .animate-gradient-shift,
  .floating-particles::before,
  .floating-particles::after {
    animation: none;
  }

  .feature-card:hover {
    transform: none;
  }
}
