:root {
  --primary: #AF04E8;
  --secondary: #FB5304;
  --tertiary: #04E8D4;
  --quaternary: #04B2E8;
  --dark: #111111;
  --light: #ECEFF3;
  --gradient: linear-gradient(90deg, var(--primary), var(--secondary));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(175, 4, 232, 0.3);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  background: var(--gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
  animation: gradient-shift 4s ease infinite;
  text-decoration: none;
  cursor: pointer;
}

.menu {
  display: flex;
  gap: 2rem;
}

.menu a {
  color: var(--light);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #000000;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Tournament dropdown specific styles */
.tournament-dropdown {
  max-height: calc(4 * 45px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #AF04E8 #000000;
  white-space: nowrap;
}

.tournament-dropdown::-webkit-scrollbar {
  width: 8px;
}

.tournament-dropdown::-webkit-scrollbar-track {
  background: #000000;
}

.tournament-dropdown::-webkit-scrollbar-thumb {
  background-color: #AF04E8;
  border-radius: 4px;
}

.tournament-dropdown::-webkit-scrollbar-thumb:hover {
  background-color: #8a03c0;
}

.dropdown-content a {
  color: var(--light);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid rgba(175, 4, 232, 0.1);
  height: 45px;
  line-height: 21px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: var(--primary);
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover > .dropbtn {
  color: var(--primary);
}


.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../assets/images/home/home_image1.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: pulse 2s infinite alternate;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  overflow: hidden;
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  margin: 0 auto 2rem 0;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
  animation-fill-mode: forwards;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient);
  background-size: 200% 100%;
  color: var(--light);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(175, 4, 232, 0.4);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: gradient-shift 4s ease infinite;
}

.btn::before {
  display: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(175, 4, 232, 0.6);
  background-position: 100% 50%;
}

.stats {
  padding: 6rem 0;
  background-image: url('../assets/images/home/home_image2.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats .container {
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  text-transform: uppercase;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--gradient);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title.rgb-effect {
  background: var(--gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 4s ease infinite;
  text-shadow: none;
}

.section-title.rgb-effect::after {
  background: var(--gradient);
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
}

.stats .section-title.rgb-effect {
  font-size: 2.7rem;
  letter-spacing: 1px;
}

.pillars {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.pillar {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s;
  border: 1px solid rgba(175, 4, 232, 0.2);
}

.pillar:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.pillar h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--primary);
}

.pillar p {
  font-size: 1rem;
  line-height: 1.6;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s;
  border: 1px solid rgba(175, 4, 232, 0.2);
}

.service:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(175, 4, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: pulse-icon 2s infinite alternate;
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.service h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--primary);
}

.service p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s;
  border: 1px solid rgba(175, 4, 232, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.stat:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: rgba(175, 4, 232, 0.15);
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.stat-text {
  font-size: 1rem;
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 600;
  color: var(--light);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-item {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s;
  border: 1px solid rgba(175, 4, 232, 0.2);
}

.news-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(175, 4, 232, 0.3);
  background: rgba(255,255,255,0.07);
}

.news-item:hover::before {
  display: none;
}

.news-content {
  transition: none;
}

.news-date {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.news-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  text-shadow: none;
}

.news-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--light);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

footer {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(175, 4, 232, 0.3);
}

@keyframes pulse {
  0% {
    text-shadow: 0 0 10px rgba(175, 4, 232, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(175, 4, 232, 0.8);
  }
}

@media screen and (max-width: 1024px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .pillars {
    flex-direction: column;
  }
  
  .menu {
    display: none;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
}

/* Estilos específicos para a página de torneios */
.tournaments-hero {
  background-image: url('../images/tournaments/banner.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

.tournaments-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tournament-card {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  border: 1px solid rgba(175, 4, 232, 0.2);
}

.tournament-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.tournament-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.tournament-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tournament-card:hover .tournament-image img {
  transform: scale(1.1);
}

.tournament-info {
  padding: 2rem;
}

.tournament-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  text-align: center;
}

.tournament-info ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.tournament-info li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tournament-info li i {
  margin-right: 5px;
  color: var(--primary);
}

.coming-soon {
  text-align: center;
  padding: 4rem 0;
}

.coming-soon-image {
  max-width: 300px;
  margin: 2rem auto;
}

.coming-soon-image img {
  width: 100%;
  height: auto;
}

.tournament-icon {
  width: 70px;
  height: 70px;
  background: rgba(175, 4, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--primary);
  animation: pulse-icon 2s infinite alternate;
}

.tournament-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.coming-soon-icon {
  width: 100px;
  height: 100px;
  background: rgba(175, 4, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  border: 2px solid var(--primary);
  animation: pulse-icon 2s infinite alternate;
}

.coming-soon-icon i {
  font-size: 3rem;
  color: var(--primary);
}

.tournament-card.hover-effect {
  transform: translateY(-15px);
  box-shadow: 0 10px 25px rgba(175, 4, 232, 0.5);
  transition: all 0.3s ease-out;
}

@media screen and (max-width: 768px) {
  .tournaments-hero {
    height: 50vh;
  }
  
  .tournament-card {
    margin: 0 1rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.2s;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: 5rem 0;
  position: relative;
}

#courses {
  padding-bottom: 10rem; /* Aumentando ainda mais o espaçamento inferior */
  margin-bottom: 3rem;
}

.section-divider {
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

/* Estilos para a seção de vídeos AFK Series */
.videos-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.video-item {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  border: 1px solid rgba(175, 4, 232, 0.2);
  padding: 1rem;
}

.video-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(175, 4, 232, 0.3);
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(175, 4, 232, 0.3);
}

.video-wrapper iframe {
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  height: 300px;
}

.video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 40% 40%, rgba(175, 4, 232, 0.2) 0%, transparent 10%),
    radial-gradient(circle at 60% 30%, rgba(251, 83, 4, 0.2) 0%, transparent 10%),
    radial-gradient(circle at 30% 70%, rgba(4, 232, 212, 0.2) 0%, transparent 10%),
    radial-gradient(circle at 70% 60%, rgba(4, 178, 232, 0.2) 0%, transparent 10%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-item:hover .video-wrapper::after {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .videos-container {
    grid-template-columns: 1fr;
  }
  
  .video-item {
    margin: 0 1rem 2rem 1rem;
  }
}

/* Adicionando efeito RGB para títulos de seção especiais */
.section-title.rgb-effect {
  background: var(--gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 4s ease infinite;
}

.section-title.rgb-effect::after {
  background: var(--gradient);
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
}

/* Adicionando efeito de borda RGB para cards em hover */
.service:hover, .pillar:hover, .news-item:hover, .video-item:hover, .stat:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(175, 4, 232, 0.3);
  transform: translateY(-10px);
}

/* Removendo efeito de borda RGB */
.service:hover::before, .pillar:hover::before, .news-item:hover::before, .video-item:hover::before, .stat:hover::before {
  display: none;
}

/* Animações */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse-icon {
  0% {
    box-shadow: 0 0 0 0 rgba(175, 4, 232, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(175, 4, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(175, 4, 232, 0);
  }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary) }
}

/* Estilos para canvas de partículas */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Efeito de ripple para botões */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  width: 100px;
  height: 100px;
  transform-origin: center;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Efeito de brilho ao passar o mouse */
.service:hover .service-icon,
.video-item:hover .video-wrapper,
.news-item:hover .news-title,
.stat:hover .stat-number {
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(175, 4, 232, 0.5);
  }
  to {
    box-shadow: 0 0 15px rgba(175, 4, 232, 0.8), 0 0 25px rgba(251, 83, 4, 0.6);
  }
}

/* Efeito de texto iluminado */
.section-title.rgb-effect {
  text-shadow: 0 0 8px rgba(175, 4, 232, 0.5);
}

/* Efeito revelador para seções */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section:hover::before {
  opacity: 1;
}

/* Efeito de cursor personalizado nos cards */
.service, .pillar, .news-item, .video-item, .stat {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-content {
  position: relative;
  z-index: 2; /* Aumenta o z-index para ficar acima do canvas de partículas */
  max-width: 800px;
  padding: 0 2rem;
}

/* Efeito de destaque para ícones sociais */
.social-links a {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: var(--gradient);
  background-size: 200% 100%;
  opacity: 0;
  transform: rotate(45deg);
  transition: all 0.3s ease;
  z-index: -1;
}

.social-links a:hover::before {
  opacity: 0.2;
  top: -50%;
  left: -50%;
}

.social-links a:hover {
  transform: translateY(-5px);
  color: #fff;
  text-shadow: 0 0 10px rgba(175, 4, 232, 0.7);
}

/* Ajustes específicos para a seção de estatísticas */
.stats .stat:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(175, 4, 232, 0.3);
  transform: translateY(-10px);
  background: rgba(255,255,255,0.05);
}

.stats .stat:hover::before {
  display: none;
}

.stats .stat:hover .stat-number {
  text-shadow: none;
  color: var(--primary);
}

.stats .stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.stats .service-icon, 
.stats .tournament-icon, 
.stats .coming-soon-icon {
  animation: none;
}

/* Remover efeito de brilho especificamente para estatísticas */
.stat:hover .stat-number {
  animation: none;
}

/* Ajustes específicos para a seção de notícias */
.news-item:hover .news-title {
  animation: none;
  color: var(--primary);
  text-shadow: none;
}

/* Remover efeito de brilho para títulos de notícias */
.news-item:hover .news-content {
  box-shadow: none;
}

/* Evitando qualquer animação indesejada nos elementos de notícias */
#news .news-title,
#news .news-content,
#news .news-date {
  animation: none !important;
  text-shadow: none !important;
  transition: transform 0.3s !important;
}

#news .btn {
  animation: none !important;
  text-shadow: none !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}

#news .news-title {
  color: var(--primary) !important;
}

/* Ajustes para o botão Read More nas notícias */
#news .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(175, 4, 232, 0.6);
  background-position: 100% 50%;
}

