/* Reset básico */
* {
  padding: 0;
  margin: 0;
}

/* Animações do menu mobile */
#mobileMenu {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.opacity-100 {
  opacity: 1;
  transform: translateY(0);
}

/* Transição do header */
header {
  transition: background-color 0.3s ease;
}

/* Efeito de brilho nos ícones */
.w-8.h-8 {
  position: relative;
  overflow: hidden;
}

.w-8.h-8::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

a:hover .w-8.h-8::after {
  opacity: 1;
}

/* Animações gerais */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(70px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

/* Indicadores de slide */
.indicator-item {
  position: relative;
  cursor: pointer;
  padding: 8px 0;
}

.indicator-item:hover div {
  background-color: rgba(255, 255, 255, 0.3);
}

.indicator-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* Animação de borda */
@keyframes borderAnimation {
  0% {
    border-top-color: white;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
  25% {
    border-top-color: white;
    border-right-color: white;
  }
  50% {
    border-bottom-color: white;
  }
  75% {
    border-left-color: white;
  }
  100% {
    border-top-color: white;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
}

/* Animação de quadrados */
#grid .square {
  width: 30px;
  height: 30px;
  background-color: white;
  opacity: 0;
  position: absolute;
  animation: moveAnimation 10s infinite;
}

@keyframes moveAnimation {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  10% {
    opacity: 1;
    transform: translateY(-30px);
  }
  20% {
    opacity: 1;
    transform: translateY(-30px) translateX(30px);
  }
  40% {
    opacity: 1;
    transform: translateY(-30px) translateX(60px);
  }
  60% {
    opacity: 1;
    transform: translateY(-30px) translateX(90px);
  }
  80% {
    opacity: 1;
    transform: translateY(30px) translateX(90px);
  }
  100% {
    opacity: 0;
    transform: translateY(30px) translateX(0);
  }
}

/* Animações de rotação */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* Responsividade da altura do container */
@media (max-height: 1000px) {
  .homecontainer {
    height: 100vh;
  }
}

@media (min-height: 1001px) and (max-height: 1399px) {
  .homecontainer {
    height: 90vh;
  }
}

@media (min-height: 1400px) {
  .homecontainer {
    height: 70vh;
  }
}

/* Responsividade dos cards */
.card-4 {
  display: none;
}

@media screen and (min-width: 1900px) {
  .card-4 {
    display: block;
  }
}

@media screen and (min-width: 2500px) {
  .card-5 {
    display: block;
  }
}

/* Animações de fundo e texto */
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 0.35; }
}

@keyframes revealText {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes progressFill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* ===== ESTILOS COMPARTILHADOS PARA TODOS OS CARDS ===== */
.cards-logs, .cards-games, .cards-team {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s ease;
  will-change: opacity, transform, box-shadow;
  backface-visibility: hidden;
  perspective: 1000px;
}

.cards-logs.show, .cards-games.show, .cards-team.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Delays escalonados para todos os tipos de cards */
.cards-logs:nth-child(1), .cards-games:nth-child(1), .cards-team:nth-child(1) { transition-delay: 0.1s; }
.cards-logs:nth-child(2), .cards-games:nth-child(2), .cards-team:nth-child(2) { transition-delay: 0.2s; }
.cards-logs:nth-child(3), .cards-games:nth-child(3), .cards-team:nth-child(3) { transition-delay: 0.3s; }
.cards-logs:nth-child(4), .cards-games:nth-child(4), .cards-team:nth-child(4) { transition-delay: 0.4s; }
.cards-logs:nth-child(5), .cards-games:nth-child(5), .cards-team:nth-child(5) { transition-delay: 0.5s; }
.cards-logs:nth-child(6), .cards-games:nth-child(6), .cards-team:nth-child(6) { transition-delay: 0.6s; }

.already-animated {
  /* Mantém o estado final da animação */
}

/* ===== ESTILOS ESPECÍFICOS PARA CARDS DE LOGS ===== */
.cards-logs.show:hover {
  transform: translateY(-5px);
}



/* ===== ESTILOS ESPECÍFICOS PARA CARDS DE JOGOS ===== */
.cards-games {
  transform: perspective(1000px) rotateX(5deg) translateY(50px);
  transform-style: preserve-3d;
}

.cards-games.show {
  transform: perspective(1000px) rotateX(0) translateY(0);
}

.cards-games:nth-child(odd).show {
  animation: cardGameEntryOdd 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cards-games:nth-child(even).show {
  animation: cardGameEntryEven 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cards-games.show:hover {
  transform: perspective(1000px) translateY(-10px) rotateY(2deg) scale(1.02);
  box-shadow: 
    0 20px 40px -15px rgba(59, 130, 246, 0.25),
    0 0 20px rgba(59, 130, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cards-games.show:active {
  transform: perspective(1000px) translateY(-5px) rotateY(1deg) scale(0.98);
  box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.2);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes cardGameEntryOdd {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(80px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: perspective(1000px) rotateX(-2deg) translateY(-5px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
  }
}

@keyframes cardGameEntryEven {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(80px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: perspective(1000px) rotateX(-3deg) translateY(-10px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
  }
}

@keyframes borderGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ===== ESTILOS ESPECÍFICOS PARA CARDS DE EQUIPE ===== */
.cards-team {
  transform: perspective(1000px) translateY(40px) scale(0.95);
  transform-style: preserve-3d;
}

.cards-team.show {
  animation: teamCardEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Corrigindo o problema da "bola branca" ao passar o mouse */
.cards-team.show:hover {
  transform: perspective(1000px) translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Removendo o pseudo-elemento que estava causando o efeito indesejado */
.cards-team.show:hover::before {
  display: none; /* Removendo o efeito de brilho circular */
}

/* Efeito de borda sutil em vez da "bola branca" */
.cards-team.show:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

@keyframes teamCardEntry {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(60px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: perspective(1000px) rotateX(-3deg) translateY(-10px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
  }
}

@keyframes teamBorderGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Efeitos para elementos internos dos cards de equipe */
.cards-team.show:hover img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.cards-team.show:hover h3 {
  color: #3b82f6;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Efeito para os ícones sociais nos cards de equipe */
.cards-team.show .w-10.h-10:hover {
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* Efeito de luz mais sutil para os cards de equipe */
.team-light-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
/* Efeito de luz mais sutil para os cards de equipe */
.team-light-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%, rgba(59, 130, 246, 0.05) 100%);
}

.cards-team.show:hover .team-light-effect {
  opacity: 1;
}

/* Melhorias para tags nos cards de equipe */
.cards-team.show .bg-white\\/8:hover {
  background-color: rgba(59, 130, 246, 0.2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px -5px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

/* Transições para elementos de carrossel */
.carousel-item, .carousel-background {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Efeito de foco para cards de equipe quando selecionados */
.cards-team:focus-within {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Melhorias de acessibilidade - indicadores visuais para foco via teclado */
.cards-logs:focus-visible,
.cards-games:focus-visible,
.cards-team:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Otimizações para dispositivos de toque */
@media (hover: none) {
  .cards-logs.show:hover,
  .cards-games.show:hover,
  .cards-team.show:hover {
    transform: none;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
  }
  
  .cards-team.show:hover img,
  .cards-team.show:hover h3 {
    transform: none;
  }
  
  /* Efeito de toque para dispositivos móveis */
  .cards-logs:active,
  .cards-games:active,
  .cards-team:active {
    transform: scale(0.98);
    transition: transform 0.2s ease;
  }
}

/* Melhorias de desempenho para animações */
@media (prefers-reduced-motion: reduce) {
  .cards-logs, 
  .cards-games, 
  .cards-team,
  .cards-logs.show, 
  .cards-games.show, 
  .cards-team.show,
  .cards-logs.show:hover,
  .cards-games.show:hover,
  .cards-team.show:hover {
    transition: opacity 0.5s ease;
    transform: none;
    animation: none;
  }
  
  .cards-team.show:hover img,
  .cards-team.show:hover h3 {
    transition: none;
    transform: none;
  }
  
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  .animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
  }
}

.card.show {
  opacity: 1 !important;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}


