/* Fonts */
.font-fredoka {
  font-family: 'Fredoka One', cursive;
}

.font-nunito {
  font-family: 'Nunito', sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Floating animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4s ease-in-out infinite 1s;
}

.animate-float-slow {
  animation: float-slow 5s ease-in-out infinite 2s;
}

/* Bouncing animation for main character */
@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0px) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}

/* Title pulse animation */
@keyframes pulse-title {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: scale(1.02);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  }
}

.animate-pulse-title {
  animation: pulse-title 2s ease-in-out infinite;
}

/* Slide animations */
@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-right {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-left {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-up {
  animation: slide-up 1s ease-out 0.5s both;
}

.animate-slide-right {
  animation: slide-right 1s ease-out 0.3s both;
}

.animate-slide-left {
  animation: slide-left 1s ease-out 0.6s both;
}

/* Fade in animation */
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

/* Glow animations */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 69, 0, 0.8);
  }
}

@keyframes glow-yellow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.8);
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-glow-yellow {
  animation: glow-yellow 2s ease-in-out infinite;
}

/* Twinkle animations for stars */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes twinkle-delayed {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@keyframes twinkle-slow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.animate-twinkle {
  animation: twinkle 1.5s ease-in-out infinite;
}

.animate-twinkle-delayed {
  animation: twinkle-delayed 2s ease-in-out infinite 0.5s;
}

.animate-twinkle-slow {
  animation: twinkle-slow 3s ease-in-out infinite 1s;
}

/* Pulse animations for cards and social icons */
@keyframes pulse-gentle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  }
}

@keyframes pulse-social {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
  }
}

.animate-pulse-gentle {
  animation: pulse-gentle 3s ease-in-out infinite;
}

.animate-pulse-social {
  animation: pulse-social 2s ease-in-out infinite;
}

/* Slow spin animation for footer logo */
@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

/* Hover effects for tokenomics cards */
.tokenomics-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

/* Hover effects for roadmap items */
.roadmap-item:hover {
  transform: translateX(10px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #f7931e, #ff6b35);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .animate-bounce-gentle {
    animation-duration: 1.5s;
  }
  
  .floating-element {
    display: none;
  }
  
  .star {
    font-size: 1rem !important;
  }
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[src=""] {
  opacity: 0;
}

/* Interactive elements feedback */
button:active {
  transform: scale(0.98);
}

.social-icon:active {
  transform: scale(0.95);
}

/* Background gradient animations */
#hero {
  background: linear-gradient(-45deg, #ff6b35, #f7931e, #ffcc02, #ff6b35);
  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%;
  }
}