/* Animations CSS inspired by Writora.xyz */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animation classes */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 1.2s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Animation with delay */
.delay-100 {
  animation-delay: 100ms;
}
.delay-200 {
  animation-delay: 200ms;
}
.delay-300 {
  animation-delay: 300ms;
}
.delay-400 {
  animation-delay: 400ms;
}
.delay-500 {
  animation-delay: 500ms;
}

/* Glowing logo effect */
.glow-logo {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.glow-logo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.glow-logo:hover::before {
  opacity: 0.8;
}

/* Floating elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Staggered animation for list items */
.stagger-list > * {
  opacity: 0;
}

.stagger-list > *:nth-child(1) {
  animation: fadeInUp 0.5s ease forwards 0.1s;
}
.stagger-list > *:nth-child(2) {
  animation: fadeInUp 0.5s ease forwards 0.2s;
}
.stagger-list > *:nth-child(3) {
  animation: fadeInUp 0.5s ease forwards 0.3s;
}
.stagger-list > *:nth-child(4) {
  animation: fadeInUp 0.5s ease forwards 0.4s;
}
.stagger-list > *:nth-child(5) {
  animation: fadeInUp 0.5s ease forwards 0.5s;
}
.stagger-list > *:nth-child(6) {
  animation: fadeInUp 0.5s ease forwards 0.6s;
}

/* Mouse tracking glow effect for logo */
.mouse-glow {
  position: relative;
  overflow: hidden;
}

.mouse-glow .glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Special glow effect for footer logo */
footer .mouse-glow .glow {
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}
