/* Animações gerais */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glowBorder {
  0% {
    box-shadow: 0 0 5px rgba(255, 70, 85, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.6);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 70, 85, 0.3);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Aplicando animações */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.slide-in {
  opacity: 0;
  animation: slideUp 1s ease-out forwards;
}

.slide-in:nth-child(1) {
  animation-delay: 0.1s;
}

.slide-in:nth-child(2) {
  animation-delay: 0.3s;
}

.slide-in:nth-child(3) {
  animation-delay: 0.5s;
}

.hero-image img {
  animation: fadeIn 1.5s ease-out 0.5s forwards, bounce 6s ease-in-out 2s infinite;
  opacity: 0;
}

.loading-screen.hidden {
  animation: fadeOut 0.5s ease-out forwards;
}

.buy-button {
  animation: pulse 3s infinite;
}

.feature-card {
  opacity: 0;
}

.feature-card.animated {
  animation: slideUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1).animated {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2).animated {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3).animated {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4).animated {
  animation-delay: 0.4s;
}

.account-card {
  opacity: 0;
}

.account-card.animated {
  animation: fadeIn 0.8s ease-out forwards;
}

.section-title {
  opacity: 0;
}

.section-title.animated {
  animation: slideDown 0.8s ease-out forwards;
}

.faq-item {
  opacity: 0;
}

.faq-item.animated {
  animation: slideLeft 0.8s ease-out forwards;
}

.contact-method {
  opacity: 0;
}

.contact-method.animated {
  animation: slideRight 0.8s ease-out forwards;
}

.contact-method:nth-child(1).animated {
  animation-delay: 0.1s;
}

.contact-method:nth-child(2).animated {
  animation-delay: 0.2s;
}

.contact-method:nth-child(3).animated {
  animation-delay: 0.3s;
}

.contact-form {
  opacity: 0;
}

.contact-form.animated {
  animation: slideUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animações para a página de detalhes da conta */
.account-banner {
  opacity: 0;
}

.account-banner.animated {
  animation: fadeIn 1s ease-out forwards;
}

.info-card {
  opacity: 0;
}

.info-card.animated {
  animation: slideDown 0.8s ease-out forwards;
}

.info-card:nth-child(1).animated {
  animation-delay: 0.1s;
}

.info-card:nth-child(2).animated {
  animation-delay: 0.2s;
}

.info-card:nth-child(3).animated {
  animation-delay: 0.3s;
}

.account-details-card {
  opacity: 0;
}

.account-details-card.animated {
  animation: slideUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.purchase-section {
  opacity: 0;
}

.purchase-section.animated {
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

.skins-gallery h2 {
  opacity: 0;
}

.skins-gallery h2.animated {
  animation: slideDown 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

.weapon-category {
  opacity: 0;
}

.weapon-category.animated {
  animation: slideLeft 0.8s ease-out forwards;
}

.skin-card {
  opacity: 0;
}

.skin-card.animated {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Efeitos de hover */
.skin-card:hover {
  animation: glowBorder 2s infinite;
}

/* Loader animation */
.loader {
  animation: rotate 1s linear infinite;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}