@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

/* === VARIÁVEIS CSS === */
:root {
  --neon-green: #fff;
  --dark-green: #123d2b;
  --forest-green: #1b492f;
  --poison-green: #22c55e;
  --emerald-glow: #10b981;
  --shadow-black: #0f172a;
  --gold: #ffd700;
  --dark-gold: #b8860b;
}


/* Boxed page styles */
.content-box {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
}

.content-box:hover {
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.1);
}

/* === FONTES === */
.font-medieval {
  font-family: "Cinzel", serif;
}

.font-modern {
  font-family: "Inter", sans-serif;
}

/* === EFEITOS DE TEXTO === */
.glow-text {
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.4),
    0 0 30px rgba(0, 255, 136, 0.2), 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: var(--neon-green);
}

/* === HOVER EFFECTS === */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
}

.scale-on-hover {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.scale-on-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

/* === BACKGROUNDS DE SEÇÕES === */
.hero-bg {
  background-image: url("../img/DarkLord.png"),
    linear-gradient(135deg, rgba(10, 93, 58, 0.8), rgba(15, 23, 42, 0.9));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 37, 22, 0.2);
  pointer-events: none;
}

.magic-portal-bg {
  background-image: url("../images/sections/cenariomagicoportal.jpg"),
    linear-gradient(135deg, rgba(10, 93, 58, 0.8), rgba(15, 23, 42, 0.9));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.character-showcase-bg {
  background-image: url("../images/ilbg.jpg"),
    linear-gradient(135deg, rgba(10, 93, 58, 0.7), rgba(15, 23, 42, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  padding: 2rem 0;
}

.section-green-valley {
  background-image: url("../images/sections/lagomagico.jpg"), linear-gradient(135deg, rgba(10, 93, 58, 0.7), rgba(15, 23, 42, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  padding: 2rem 0;
}

.section-dark-1 {
  background-image: url("../images/sections/lagomagico.jpg"), linear-gradient(135deg, rgba(10, 93, 58, 0.7), rgba(10, 18, 6, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  will-change: transform;
  padding: 2rem 0;
}

.section-dark-2 {
  background-image: url("../images/sections/cenarioposguerra.jpg"), linear-gradient(135deg, rgba(10, 93, 58, 0.7), rgba(10, 18, 6, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  will-change: transform;
  padding: 2rem 0;
}

.section-dark-3 {
  background-image: url("../images/sections/cenarioposguerra.jpg"), linear-gradient(135deg, rgba(10, 93, 58, 0.7), rgba(10, 18, 6, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  padding: 2rem 0;
}

.section-dark-magic-portal {
  background-image: url("../images/sections/cenariomagicoportal.jpg"), linear-gradient(135deg, rgba(10, 93, 58, 0.7), rgba(10, 18, 6, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  will-change: transform;
  padding: 2rem 0;
}


/* === COUNTDOWN TIMER === */
.countdown-timer {
  background: linear-gradient(135deg,
      rgba(10, 93, 58, 0.95),
      rgba(27, 127, 71, 0.85));
  border: 2px solid rgba(0, 255, 136, 0.6);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

@media (max-width: 375px) {
  .countdown-timer {
    padding: 6px !important;
    min-width: 45px !important;
  }

  .countdown-timer .font-medieval {
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  .countdown-timer+div {
    font-size: 9px !important;
    margin-top: 4px !important;
  }
}

@media (min-width: 376px) and (max-width: 480px) {
  .countdown-timer {
    border-width: 1.5px;
  }
}

@media (min-width: 1024px) {
  .countdown-timer:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
  }
}

/* === BOTÕES === */
.btn-primary {
  background: linear-gradient(135deg, var(--dark-green), var(--forest-green));
  border: 2px solid var(--forest-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--forest-green), var(--dark-green));
  border: 2px solid var(--forest-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}


.btn-secondary {
  background: linear-gradient(135deg, var(--gold), var(--dark-gold));
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  color: var(--shadow-black);
  text-shadow: none;
}

/* === SEÇÕES === */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* === PARALLAX === */
/* No seu arquivo style.css */

.parallax-container {
  height: 100vh;
  overflow: hidden;
  position: relative;
  /* Isso é crucial para os pseudo-elementos */
}

.parallax-element {
  transition: transform 0.1s ease-out;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* === ANIMAÇÕES === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === BRILHO ANIMADO === */
.animated-glow {
  position: relative;
  overflow: hidden;
}

.animated-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
      var(--neon-green),
      var(--emerald-glow),
      var(--poison-green),
      var(--neon-green));
  background-size: 400% 400%;
  z-index: -1;
  border-radius: inherit;
  animation: glowMove 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.animated-glow:hover::before {
  opacity: 0.7;
}

@keyframes glowMove {

  0%,
  100% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }
}

/* === CHARACTER SELECTOR === */
#selector-viewport {
  overflow-x: scroll;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#selector-viewport::-webkit-scrollbar {
  display: none;
}

#selector-viewport.active-drag {
  cursor: grabbing;
}

.character-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

/* Responsividade para character-icon */
@media (min-width: 480px) {
  .character-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (min-width: 768px) {
  .character-icon {
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 1024px) {
  .character-icon {
    width: 4.5rem;
    height: 4.5rem;
  }
}

.character-icon:hover {
  border-color: #39ff14;
  transform: scale(1.05);
}

.character-icon.active {
  border-color: #39ff14;
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(57, 255, 20, 0.2),
    0 4px 6px -2px rgba(57, 255, 20, 0.15);
}

/* Estilo responsivo para o container do seletor */
#selector-viewport>div {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

@media (min-width: 480px) {
  #selector-viewport>div {
    gap: 0.75rem !important;
    padding: 1rem !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }
}

@media (min-width: 768px) {
  #selector-viewport>div {
    gap: 1rem !important;
    justify-content: center !important;
  }
}

@media (min-width: 1024px) {
  #selector-viewport>div {
    justify-content: flex-start !important;
  }
}

/* === CAROUSEL === */
#carousel-track.grabbing {
  cursor: grabbing;
}

/* === RANKING STYLES === */
.rank-tab {
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.rank-tab:hover {
  background-color: rgba(22, 95, 10, 0.2);
  border-color: #009b5380;
  color: #00ff8880;
}

.rank-tab.active {
  background-color: #0a5d3a;
  border-color: #009b5380;
  color: #fff;
  box-shadow: 0 3px 10px #00ff8880;
}

#ranking-table-body {
  scrollbar-width: thin;
  scrollbar-color: #0a5d3a rgba(0, 0, 0, 0.3);
}

#ranking-table-body::-webkit-scrollbar {
  width: 8px;
}

#ranking-table-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

#ranking-table-body::-webkit-scrollbar-thumb {
  background-color: #0a5d3a;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.ranking-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: rgba(10, 20, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.ranking-row:hover {
  background-color: rgba(10, 20, 30, 0.7);
  border-color: #0a5d3a;
}

.ranking-row.rank-1 {
  background-image: linear-gradient(to right,
      rgba(255, 215, 0, 0.2),
      rgba(255, 215, 0, 0.05));
  border-color: rgba(255, 215, 0, 0.5);
}

.ranking-row.rank-2 {
  background-image: linear-gradient(to right,
      rgba(192, 192, 192, 0.2),
      rgba(192, 192, 192, 0.05));
  border-color: rgba(192, 192, 192, 0.5);
}

.ranking-row.rank-3 {
  background-image: linear-gradient(to right,
      rgba(205, 127, 50, 0.2),
      rgba(205, 127, 50, 0.05));
  border-color: rgba(205, 127, 50, 0.5);
}

.ranking-cell {
  display: flex;
  align-items: center;
  color: #e5e7eb;
}

.ranking-cell.pos {
  flex-basis: 10%;
  font-size: 1.1rem;
  font-weight: bold;
}

.ranking-cell.name {
  flex-basis: 35%;
  font-weight: 600;
}

.ranking-cell.class {
  flex-basis: 25%;
  color: #9ca3af;
}

.ranking-cell.level {
  flex-basis: 15%;
  color: #18ce82;
}

.ranking-cell.guild {
  flex-basis: 15%;
}

.ranking-cell.leader {
  flex-basis: 25%;
  color: #9ca3af;
}

.ranking-cell.members {
  flex-basis: 30%;
  color: #18ce82;
}

.ranking-cell.points {
  flex-basis: 50%;
  color: #18ce82;
  text-align: right;
  justify-content: flex-end;
}

.ranking-cell.mark {
  flex-basis: 15%;
  justify-content: center;
}

.ranking-cell.name-guild {
  flex-basis: 40%;
  font-weight: 600;
}

.guild-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.rank-1 .ranking-cell.pos {
  color: var(--gold);
}

.rank-2 .ranking-cell.pos {
  color: #c0c0c0;
}

.rank-3 .ranking-cell.pos {
  color: #cd7f32;
}

/* === FAQ STYLES === */
.faq-bg {
  background-image: url("https://www.transparenttextures.com/patterns/dark-stone-wall.png");
  background-color: #111827;
  background-size: auto;
  background-position: center;
}

.faq-item {
  background-color: rgba(10, 20, 25, 0.6);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: white;
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
}

.faq-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #a0aec0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
}

.faq-content p {
  color: #d1d5db;
  line-height: 1.75;
}

.faq-item.is-open {
  border-color: rgba(217, 119, 6, 0.4);
}

.faq-item.is-open .faq-toggle {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #f59e0b;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: #f59e0b;
}

.faq-item.is-open .faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 500px;
}

/* Logo styling */
.logo-text-shadow {
  font-family: "Cinzel", serif;
  text-shadow: 0 0 10px #39ff14;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-bg {
    min-height: 80vh;
  }
}

@media (min-width: 769px) {
  .hero-bg {
    min-height: 100vh;
  }
}

/* === RESPONSIVIDADE PARA SEÇÃO DE CLASSES === */
@media (max-width: 1023px) {
  .character-showcase-bg {
    background-attachment: scroll;
  }

  #character-video {
    max-height: 70vh;
  }
}

@media (min-width: 1024px) {
  #character-video {
    min-height: 500px;
    max-height: 600px;
  }
}

/* === CHARACTER CLASSES SECTION RESPONSIVIDADE === */
.character-showcase-bg {
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .character-showcase-bg {
    padding: 3rem 0;
  }
}

@media (min-width: 768px) {
  .character-showcase-bg {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .character-showcase-bg {
    padding: 5rem 0;
  }
}

/* Responsividade para mobile first no seletor de personagens */
@media (max-width: 479px) {
  #selector-viewport {
    padding: 0.5rem !important;
  }

  #selector-viewport>div {
    gap: 0.25rem !important;
    padding: 0.5rem !important;
  }

  .character-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

/* Melhoria na tipografia responsiva */
@media (max-width: 640px) {
  #character-name {
    line-height: 1.2 !important;
  }

  #character-description {
    line-height: 1.4 !important;
  }
}

/* Espaçamento otimizado para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .character-showcase-bg .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* === SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

/* === SISTEMA DE PARTÍCULAS INTELIGENTE === */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.particle {
  position: absolute;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.6));
  animation: particleFloat 25s linear infinite;
  will-change: transform, opacity;
}

/* Posicionamento por camadas */
.particle-top {
  top: 0%;
  animation-duration: 20s;
}

.particle-middle {
  top: 35%;
  animation-duration: 30s;
}

.particle-bottom {
  top: 70%;
  animation-duration: 25s;
}

.particle-float {
  animation-duration: 35s;
}

.particle-extra {
  top: 15%;
  animation-duration: 40s;
}

/* Camada micro - partículas extremamente pequenas para densidade máxima */
.particle-micro {
  top: 50%;
  animation-duration: 45s;
  width: 15px !important;
  height: 15px !important;
  opacity: 0.4;
  filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.4));
}

/* Tamanhos variados para profundidade */
.particle:nth-child(2n) {
  width: 25px;
  height: 25px;
}

.particle:nth-child(3n) {
  width: 35px;
  height: 35px;
}

.particle:nth-child(4n) {
  width: 20px;
  height: 20px;
}

.particle:nth-child(5n) {
  width: 40px;
  height: 40px;
}

.particle:nth-child(6n) {
  width: 28px;
  height: 28px;
}

.particle:nth-child(7n) {
  width: 33px;
  height: 33px;
}

.particle:nth-child(8n) {
  width: 18px;
  height: 18px;
}

/* Tratamento especial para a imagem stars.png (contém múltiplas estrelas) */
.particle[data-image="stars.png"] {
  width: 50px;
  height: 50px;
  background-size: cover;
  /* Para mostrar a imagem completa das estrelas */
  opacity: 0.8;
  filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.8));
}

/* Posicionamento horizontal dinâmico - distribuição completa para 145+ partículas */
.particle:nth-child(1) {
  left: 1%;
}

.particle:nth-child(2) {
  left: 3%;
}

.particle:nth-child(3) {
  left: 5%;
}

.particle:nth-child(4) {
  left: 7%;
}

.particle:nth-child(5) {
  left: 9%;
}

.particle:nth-child(6) {
  left: 11%;
}

.particle:nth-child(7) {
  left: 13%;
}

.particle:nth-child(8) {
  left: 15%;
}

.particle:nth-child(9) {
  left: 17%;
}

.particle:nth-child(10) {
  left: 19%;
}

.particle:nth-child(11) {
  left: 21%;
}

.particle:nth-child(12) {
  left: 23%;
}

.particle:nth-child(13) {
  left: 25%;
}

.particle:nth-child(14) {
  left: 27%;
}

.particle:nth-child(15) {
  left: 29%;
}

.particle:nth-child(16) {
  left: 31%;
}

.particle:nth-child(17) {
  left: 33%;
}

.particle:nth-child(18) {
  left: 35%;
}

.particle:nth-child(19) {
  left: 37%;
}

.particle:nth-child(20) {
  left: 39%;
}

.particle:nth-child(21) {
  left: 41%;
}

.particle:nth-child(22) {
  left: 43%;
}

.particle:nth-child(23) {
  left: 45%;
}

.particle:nth-child(24) {
  left: 47%;
}

.particle:nth-child(25) {
  left: 49%;
}

.particle:nth-child(26) {
  left: 51%;
}

.particle:nth-child(27) {
  left: 53%;
}

.particle:nth-child(28) {
  left: 55%;
}

.particle:nth-child(29) {
  left: 57%;
}

.particle:nth-child(30) {
  left: 59%;
}

.particle:nth-child(31) {
  left: 61%;
}

.particle:nth-child(32) {
  left: 63%;
}

.particle:nth-child(33) {
  left: 65%;
}

.particle:nth-child(34) {
  left: 67%;
}

.particle:nth-child(35) {
  left: 69%;
}

.particle:nth-child(36) {
  left: 71%;
}

.particle:nth-child(37) {
  left: 73%;
}

.particle:nth-child(38) {
  left: 75%;
}

.particle:nth-child(39) {
  left: 77%;
}

.particle:nth-child(40) {
  left: 79%;
}

.particle:nth-child(41) {
  left: 81%;
}

.particle:nth-child(42) {
  left: 83%;
}

.particle:nth-child(43) {
  left: 85%;
}

.particle:nth-child(44) {
  left: 87%;
}

.particle:nth-child(45) {
  left: 89%;
}

.particle:nth-child(46) {
  left: 91%;
}

.particle:nth-child(47) {
  left: 93%;
}

.particle:nth-child(48) {
  left: 95%;
}

.particle:nth-child(49) {
  left: 97%;
}

.particle:nth-child(50) {
  left: 99%;
}

/* Continuação para mais partículas - ciclo repetitivo */
.particle:nth-child(n + 51):nth-child(-n + 70) {
  left: calc(2% + (var(--index, 0) * 3.2%));
}

.particle:nth-child(n + 71):nth-child(-n + 90) {
  left: calc(1.5% + (var(--index, 0) * 4.5%));
}

.particle:nth-child(n + 91):nth-child(-n + 110) {
  left: calc(3% + (var(--index, 0) * 3.8%));
}

.particle:nth-child(n + 111):nth-child(-n + 130) {
  left: calc(2.5% + (var(--index, 0) * 4.2%));
}

.particle:nth-child(n + 131) {
  left: calc(1% + (var(--index, 0) * 5%));
}

/* Animação principal suave e natural */
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.8);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
    transform: translateY(50vh) translateX(20px) rotate(180deg) scale(1);
  }

  90% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(-20vh) translateX(-15px) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}

/* Variações de movimento para diferentes partículas */
.particle:nth-child(2n) {
  animation-name: particleFloatReverse;
}

.particle:nth-child(3n) {
  animation-name: particleFloatSide;
}

@keyframes particleFloatReverse {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(360deg) scale(0.6);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
    transform: translateY(50vh) translateX(-25px) rotate(180deg) scale(1.1);
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-20vh) translateX(30px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes particleFloatSide {
  0% {
    transform: translateY(100vh) translateX(-30px) rotate(0deg) scale(0.9);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
    transform: translateY(50vh) translateX(40px) rotate(270deg) scale(1.2);
  }

  90% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-20vh) translateX(-10px) rotate(540deg) scale(0.7);
    opacity: 0;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .particle {
    width: 20px;
    height: 20px;
    opacity: 0.6;
  }

  .particle:nth-child(2n) {
    width: 18px;
    height: 18px;
  }

  .particle:nth-child(3n) {
    width: 24px;
    height: 24px;
  }

  .particle:nth-child(4n) {
    width: 16px;
    height: 16px;
  }

  .particle:nth-child(5n) {
    width: 26px;
    height: 26px;
  }

  /* Stars.png mantém tamanho relativamente maior em mobile */
  .particle[data-image="stars.png"] {
    width: 35px;
    height: 35px;
  }

  .particle-top {
    animation-duration: 15s;
  }

  .particle-middle {
    animation-duration: 20s;
  }

  .particle-bottom {
    animation-duration: 18s;
  }

  .particle-float {
    animation-duration: 25s;
  }
}

/* === HEADER RESPONSIVIDADE === */
header {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Otimizações para telas muito pequenas */
@media (max-width: 374px) {
  header .max-w-7xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  header .flex.items-center.justify-between {
    height: 3.25rem;
  }

  header nav a {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
  }

  header .hidden.md\:flex button {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Melhoria para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  header nav {
    display: flex !important;
  }

  header nav a {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
  }

  header .hidden.md\:flex {
    gap: 0.5rem;
  }
}

/* Desktop otimizado */
@media (min-width: 1024px) {
  header .flex.items-center.justify-between {
    height: 4rem;
  }

  header nav a:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }
}

/* Menu mobile melhorado */
@media (max-width: 1023px) {
  .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

/* Animações suaves para o menu mobile */
header .lg\:hidden {
  transition: all 0.3s ease;
}

