/* Copied and adapted from src/styles/index.css (without Tailwind imports) */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #001233;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22d3ee 0%, #3b82f6 100%);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #22d3ee 100%);
}

/* Glassmorphism Enhancement */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Water Ripple Animation */
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
.water-ripple {
  animation: ripple 2s ease-out infinite;
}

/* Glow Pulse */
@keyframes glow-pulse {
  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);
  }
}
.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Liquid Button Effect */
.liquid-button {
  position: relative;
  overflow: hidden;
}
.liquid-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.liquid-button:hover::before {
  width: 300px;
  height: 300px;
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}
.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Selection Color */
::selection {
  background-color: rgba(34, 211, 238, 0.3);
  color: white;
}
::-moz-selection {
  background-color: rgba(34, 211, 238, 0.3);
  color: white;
}

/* Navbar scrolled state (avoid dynamic Tailwind class generation) */
.nav-default {
}
.nav-scrolled {
  background: rgba(0, 26, 51, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.1);
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

/* Hero background pulse (mimics framer-motion opacity/scale) */
@keyframes waterPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}
.bg-pulse {
  animation: waterPulse 8s ease-in-out infinite;
}

/* Particle vertical float */
@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-30px) scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
}
.particle {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.4);
  position: absolute;
  animation: particleFloat var(--p-duration, 4s) ease-in-out var(--p-delay, 0s)
    infinite;
}

/* Floating WhatsApp entrance animation */
@keyframes waEnter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
  }
}
.animate-wa-enter {
  animation: waEnter 600ms ease-out both;
}
