/* Custom Animations */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes water-float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-25px) translateX(10px) rotate(120deg);
    opacity: 0.7;
  }
  66% {
    transform: translateY(-15px) translateX(-8px) rotate(240deg);
    opacity: 0.5;
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes float-geometric {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 0.4;
  }
}

@keyframes water-orb {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30px) translateX(15px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-60px) translateX(-10px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-40px) translateX(20px) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes sparkle-twinkle {
  0%,
  100% {
    transform: scale(0.5) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: scale(1.5) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: scale(1) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    transform: scale(1.3) rotate(270deg);
    opacity: 0.9;
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes gradient-x {
  0%,
  100% {
    background-size: 200% 200%;
    background-position: left center;
  }
  50% {
    background-size: 200% 200%;
    background-position: right center;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations */
.animate-blob {
  animation: blob 7s infinite;
}

.animate-water-float {
  animation: water-float 12s ease-in-out infinite;
}

.animate-gradient-shift {
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

.animate-float-geometric {
  animation: float-geometric 20s ease-in-out infinite;
}

.animate-water-orb {
  animation: water-orb 15s ease-in-out infinite;
}

.animate-sparkle-twinkle {
  animation: sparkle-twinkle 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-gradient-x {
  animation: gradient-x 15s ease infinite;
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.6s ease-out;
}

/* Custom Background Effects */
.bg-radial-gradient {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(59, 130, 246, 0.1),
    transparent 50%
  );
}

.grid-background {
  background-image: linear-gradient(
      rgba(59, 130, 246, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

.mouse-follower {
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
  transition: all 0.3s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #3b82f6, #06b6d4);
  border-radius: 6px;
  border: 2px solid rgba(15, 23, 42, 0.8);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #2563eb, #0891b2);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .animate-float-geometric {
    animation-duration: 25s;
  }

  .animate-water-orb {
    animation-duration: 18s;
  }

  .animate-sparkle-twinkle {
    animation-duration: 5s;
  }
}

/* Enhanced hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Loading animation */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Utility classes */
.transition-all {
  transition: all 0.3s ease;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
}

/* Privacy Policy Page Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 1s ease-out 0.3s both;
}

.animate-fade-in-up-delayed {
  animation: fade-in-up 1s ease-out 0.6s both;
}

.animate-fade-in-down {
  animation: fade-in-down 1s ease-out 0.1s both;
}

.animate-fade-in-up-slow {
  animation: fade-in-up 1s ease-out 1.2s both;
}
