@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Orbitron", monospace;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Fundo animado */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(45deg, #000, #1a0000, #000, #330000);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Partículas flutuantes */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particles::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ff0000;
  box-shadow:
    100px 200px #ff0000,
    300px 100px #00ff00,
    500px 300px #0000ff,
    700px 150px #ff0000,
    900px 250px #00ff00,
    200px 400px #0000ff,
    600px 50px #ff0000,
    800px 350px #00ff00,
    400px 500px #0000ff,
    150px 600px #ff0000;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
  }
}

/* Espadas flutuantes */
.floating-swords {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-swords::before,
.floating-swords::after {
  content: "⚔️";
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 0, 0, 0.3);
  animation: swordFloat 15s linear infinite;
}

.floating-swords::before {
  left: 10%;
  animation-delay: -5s;
}

.floating-swords::after {
  left: 80%;
  animation-delay: -10s;
  font-size: 1.5rem;
}

@keyframes swordFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Luzes RGB */
.rgb-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 255, 0.1) 0%, transparent 50%);
  animation: rgbPulse 4s ease-in-out infinite;
}

@keyframes rgbPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Header Hero */
.hero-section {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.asta-emblem {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.main-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Efeito Glitch */
.glitch {
  position: relative;
  color: #ff0000;
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: #00ff00;
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: #0000ff;
  z-index: -2;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-1 {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(2px, -2px);
  }
  40% {
    transform: translate(-2px, 2px);
  }
  60% {
    transform: translate(-2px, -2px);
  }
  80% {
    transform: translate(2px, 2px);
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, -2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(-2px, 2px);
  }
}

/* Texto holográfico */
.holographic {
  background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographicShift 3s ease infinite;
}

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

.subtitle {
  font-size: 1.2rem;
  color: #ccc;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Seção de Upload */
.upload-section {
  margin-bottom: 4rem;
}

.upload-area {
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed #ff0000;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.upload-area:hover {
  border-color: #00ff00;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.upload-btn {
  display: inline-block;
  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: white;
  padding: 1.5rem 3rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.upload-btn:hover {
  background: linear-gradient(45deg, #00ff00, #00cc00);
  transform: scale(1.05);
}

.upload-btn input {
  display: none;
}

.btn-text {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.btn-subtext {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

.submit-btn {
  background: linear-gradient(45deg, #000, #ff0000, #000);
  background-size: 200% 200%;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  animation: buttonGlow 1s ease infinite;
  transform: scale(1.05);
}

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

/* Seção de arquivos */
.files-section {
  margin-top: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-icon {
  font-size: 2.5rem;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.file-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.file-item:hover {
  transform: translateY(-5px);
  border-color: #00ff00;
  background: rgba(255, 255, 255, 0.15);
}

.file-preview {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.file-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.file-size {
  color: #ccc;
  font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .upload-area {
    padding: 2rem 1rem;
  }

  .files-grid {
    grid-template-columns: 1fr;
  }
}

/* Efeitos de cursor */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff0000, transparent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > * {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-section {
  animation-delay: 0.2s;
}

.upload-section {
  animation-delay: 0.4s;
}

.files-section {
  animation-delay: 0.6s;
}

/* Seção de código */
.code-section {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.code-container {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #ff0000;
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.code-container:hover {
  border-color: #00ff00;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.code-header {
  background: linear-gradient(45deg, #ff0000, #cc0000);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.code-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

.copy-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.copy-btn:hover {
  background: rgba(0, 255, 0, 0.2);
  border-color: #00ff00;
  transform: scale(1.05);
}

.copy-btn.copied {
  background: rgba(0, 255, 0, 0.3);
  border-color: #00ff00;
}

.copy-icon {
  font-size: 1rem;
}

.code-block {
  background: #111;
  color: #fff;
  padding: 1.5rem;
  margin: 0;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  border: none;
}

.code-block code {
  color: #fff;
}

/* Syntax highlighting */
.code-block {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.code-footer {
  background: rgba(255, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 0, 0, 0.3);
}

.code-description {
  margin: 0;
  color: #ccc;
  line-height: 1.6;
}

.code-description code {
  background: rgba(255, 0, 0, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: #ff6666;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
}

/* Responsividade para código */
@media (max-width: 768px) {
  .code-header {
    flex-direction: column;
    text-align: center;
  }

  .code-block {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animação de sucesso na cópia */
@keyframes copySuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.copy-btn.copied {
  animation: copySuccess 0.3s ease;
}
