/* Base Styles and Variables */
:root {
  --black: #050505;
  --dark-purple: #1a0033;
  --medium-purple: #2b0b4f;
  --neon-purple: #8a1155;
  --white: #ffffff;
  --light-gray: #999999;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --glow: 0 0 15px rgba(138, 17, 85, 0.7);
  --glass-bg: rgba(42, 11, 79, 0.25);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-primary: "Montserrat", sans-serif;
  --font-display: "Orbitron", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

/* Loader */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container.hidden {
  opacity: 0;
  visibility: hidden;
}

.rocket-loader {
  position: relative;
  width: 100px;
  height: 200px;
  margin-bottom: 30px;
}

.rocket {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: var(--neon-purple);
  animation: rocketLaunch 2s infinite;
}

@keyframes rocketLaunch {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

.smoke {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
}

.smoke span {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: smoke 1.5s infinite;
}

.smoke span:nth-child(1) {
  animation-delay: 0s;
  left: 40%;
}

.smoke span:nth-child(2) {
  animation-delay: 0.2s;
  left: 45%;
}

.smoke span:nth-child(3) {
  animation-delay: 0.4s;
  left: 50%;
}

.smoke span:nth-child(4) {
  animation-delay: 0.6s;
  left: 55%;
}

.smoke span:nth-child(5) {
  animation-delay: 0.8s;
  left: 60%;
}

.smoke span:nth-child(6) {
  animation-delay: 1s;
  left: 65%;
}

@keyframes smoke {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-20px) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(2);
  }
}

.loader-text {
  display: flex;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 20px;
}

.loader-text span {
  animation: textPulse 1.5s infinite;
  margin: 0 2px;
}

.loader-text span:nth-child(1) {
  animation-delay: 0.1s;
}
.loader-text span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-text span:nth-child(3) {
  animation-delay: 0.3s;
}
.loader-text span:nth-child(4) {
  animation-delay: 0.4s;
}
.loader-text span:nth-child(5) {
  animation-delay: 0.5s;
}
.loader-text span:nth-child(6) {
  animation-delay: 0.6s;
}
.loader-text span:nth-child(7) {
  animation-delay: 0.7s;
}
.loader-text span:nth-child(8) {
  animation-delay: 0.8s;
}
.loader-text span:nth-child(9) {
  animation-delay: 0.9s;
}
.loader-text span:nth-child(10) {
  animation-delay: 1s;
}

@keyframes textPulse {
  0%,
  100% {
    color: var(--white);
    transform: scale(1);
  }
  50% {
    color: var(--neon-purple);
    transform: scale(1.2);
  }
}

.loader-progress {
  width: 200px;
  margin-top: 20px;
}

.loader-progress .progress-bar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.loader-progress .progress {
  height: 100%;
  background: linear-gradient(to right, var(--neon-purple), var(--medium-purple));
  width: 0%;
  transition: width 0.5s ease;
}

.loader-progress .progress-text {
  text-align: center;
  font-size: 12px;
  color: var(--light-gray);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.glass-card:hover {
  box-shadow: 0 8px 32px 0 rgba(138, 17, 85, 0.2);
  transform: translateY(-5px);
}

/* Space Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

@keyframes move-twink-back {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -10000px 5000px;
  }
}

@keyframes move-clouds-back {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 10000px 0;
  }
}

.stars,
.twinkling,
.nebula,
.stars-footer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -2;
}

.stars {
  background: #000 url("https://placeholder.svg?height=1000&width=1000") repeat top center;
  z-index: -3;
}

.twinkling {
  background: transparent url("https://placeholder.svg?height=1000&width=1000") repeat top center;
  z-index: -2;
  animation: move-twink-back 200s linear infinite;
}

.nebula {
  background: transparent url("https://placeholder.svg?height=1000&width=1000") repeat top center;
  z-index: -1;
  opacity: 0.3;
  animation: move-clouds-back 300s linear infinite;
  background-size: 3000px 2000px;
}

.stars-footer {
  height: 100%;
  background: linear-gradient(to top, var(--black) 0%, transparent 100%);
  z-index: 0;
}

/* Shooting Stars */
.shooting-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.shooting-stars span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
  animation: animate 3s linear infinite;
}

.shooting-stars span::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animate {
  0% {
    transform: rotate(315deg) translateX(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(315deg) translateX(-1000px);
    opacity: 0;
  }
}

.shooting-stars span:nth-child(1) {
  top: 0;
  right: 0;
  left: initial;
  animation-delay: 0s;
  animation-duration: 1s;
}

.shooting-stars span:nth-child(2) {
  top: 0;
  right: 80px;
  left: initial;
  animation-delay: 0.2s;
  animation-duration: 3s;
}

.shooting-stars span:nth-child(3) {
  top: 80px;
  right: 0px;
  left: initial;
  animation-delay: 0.4s;
  animation-duration: 2s;
}

.shooting-stars span:nth-child(4) {
  top: 0;
  right: 180px;
  left: initial;
  animation-delay: 0.6s;
  animation-duration: 1.5s;
}

.shooting-stars span:nth-child(5) {
  top: 0;
  right: 400px;
  left: initial;
  animation-delay: 0.8s;
  animation-duration: 2.5s;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(138, 17, 85, 0.3);
  transition: var(--transition);
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header.scrolled {
  padding: 10px 0;
  background: rgba(5, 5, 5, 0.95);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--white);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  position: relative;
  animation: fadeIn 1s ease-out;
}

.glow {
  text-shadow: var(--glow);
  position: relative;
}

.glow::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 10px;
  z-index: -1;
  background: linear-gradient(45deg, var(--neon-purple), var(--medium-purple));
  filter: blur(15px);
  opacity: 0.5;
}

.logo-orbit {
  position: relative;
  width: 20px;
  height: 20px;
  margin-left: 10px;
}

.logo-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--neon-purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-purple);
  animation: orbit 3s linear infinite;
}

@keyframes orbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(6px) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(6px) rotate(-360deg);
  }
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--white);
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
  overflow: hidden;
}

.nav-link span {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--neon-purple), transparent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav-link:hover::before {
  transform: translateX(0);
}

.nav-link:hover span {
  transform: translateY(-3px);
}

.nav-link:hover {
  color: var(--neon-purple);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Theme Toggle */
.theme-toggle {
  margin-right: 15px;
}

.theme-switch {
  opacity: 0;
  position: absolute;
}

.theme-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background-color: var(--medium-purple);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.theme-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.theme-switch:checked + .theme-label .theme-ball {
  transform: translateX(24px);
}

.theme-label .fa-moon {
  position: absolute;
  left: 8px;
  top: 6px;
  color: var(--white);
  font-size: 12px;
}

.theme-label .fa-sun {
  position: absolute;
  right: 8px;
  top: 6px;
  color: var(--white);
  font-size: 12px;
}

.btn-entrar {
  background-color: var(--neon-purple);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(138, 17, 85, 0.5);
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

.btn-entrar span {
  position: relative;
  z-index: 1;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-entrar:hover .btn-glow {
  left: 100%;
}

.btn-entrar:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(138, 17, 85, 0.7);
}

/* Hero Section */
.hero-section {
  padding: 150px 0 100px;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9), rgba(26, 0, 51, 0.7));
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  position: relative;
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.glitch-title {
  font-size: 4rem;
  margin-bottom: 10px;
  line-height: 1.2;
  font-family: var(--font-display);
  position: relative;
  color: var(--white);
  text-shadow: 0 0 10px var(--neon-purple);
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-title::before {
  left: 2px;
  text-shadow: -2px 0 var(--neon-purple);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-title::after {
  left: -2px;
  text-shadow: 2px 0 var(--medium-purple);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-anim-1 {
  0% {
    transform: translateX(0);
  }
  80% {
    transform: translateX(0);
  }
  85% {
    transform: translateX(2px);
  }
  90% {
    transform: translateX(-2px);
  }
  95% {
    transform: translateX(1px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    transform: translateX(0);
  }
  80% {
    transform: translateX(0);
  }
  85% {
    transform: translateX(-2px);
  }
  90% {
    transform: translateX(2px);
  }
  95% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(0);
  }
}

.typing-container {
  height: 40px;
  margin-bottom: 20px;
  overflow: hidden;
}

.typing-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--neon-purple);
  border-right: 3px solid var(--neon-purple);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--neon-purple);
  }
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-gray);
}

.highlight {
  color: var(--neon-purple);
  font-weight: bold;
}

.cta-container {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--neon-purple);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(138, 17, 85, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(138, 17, 85, 0.8);
}

.btn-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 17, 85, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(138, 17, 85, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138, 17, 85, 0);
  }
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--neon-purple);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background-color: rgba(138, 17, 85, 0.2);
  color: var(--neon-purple);
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: rgba(26, 0, 51, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(138, 17, 85, 0.3);
  transition: var(--transition);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  animation-delay: calc(var(--delay, 0) * 0.2s);
}

.stat-card:nth-child(1) {
  --delay: 1;
}

.stat-card:nth-child(2) {
  --delay: 2;
}

.stat-card:nth-child(3) {
  --delay: 3;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(26, 0, 51, 0.5);
  border-color: var(--neon-purple);
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--neon-purple);
  margin-bottom: 10px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 5px;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--light-gray);
}

.hero-visual {
  position: relative;
  width: 400px;
  height: 400px;
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.planet-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(138, 17, 85, 0.5);
  animation: planetRotate 30s linear infinite;
}

.planet-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, var(--neon-purple), var(--dark-purple));
}

.planet-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(138, 17, 85, 0.5), transparent);
  animation: planetGlow 5s ease-in-out infinite alternate;
}

.planet-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg);
  width: 200px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(138, 17, 85, 0.3);
  opacity: 0.7;
}

.planet-craters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.crater {
  position: absolute;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.crater-1 {
  width: 30px;
  height: 30px;
  top: 30%;
  left: 20%;
}

.crater-2 {
  width: 20px;
  height: 20px;
  top: 60%;
  left: 60%;
}

.crater-3 {
  width: 15px;
  height: 15px;
  top: 40%;
  left: 70%;
}

@keyframes planetRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes planetGlow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.orbit-1 {
  width: 250px;
  height: 250px;
  animation: orbitRotate 15s linear infinite;
}

.orbit-2 {
  width: 350px;
  height: 350px;
  animation: orbitRotate 25s linear infinite reverse;
}

.orbit-3 {
  width: 450px;
  height: 450px;
  animation: orbitRotate 35s linear infinite;
}

@keyframes orbitRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.satellite {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.satellite-1 {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
}

.satellite-2 {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}

.satellite-3 {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(to right, var(--neon-purple), var(--medium-purple));
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(26, 0, 51, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 0 15px rgba(138, 17, 85, 0.3);
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.element-2 {
  top: 70%;
  left: 20%;
  animation-delay: 1s;
}

.element-3 {
  top: 30%;
  right: 15%;
  animation-delay: 2s;
}

.element-4 {
  top: 80%;
  right: 25%;
  animation-delay: 3s;
}

.element-5 {
  top: 15%;
  right: 10%;
  animation-delay: 1.5s;
}

.element-6 {
  top: 60%;
  left: 5%;
  animation-delay: 2.5s;
}

.cosmic-dust {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cosmic-dust::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  animation: fadeInUp 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 20px;
  position: relative;
  margin-bottom: 10px;
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: var(--white);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

.scroll-text {
  font-size: 0.8rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
}

/* Section Styles */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section:nth-child(odd) {
  background: linear-gradient(to bottom, rgba(26, 0, 51, 0.7), rgba(43, 11, 79, 0.7));
}

.section:nth-child(even) {
  background: linear-gradient(to bottom, rgba(43, 11, 79, 0.7), rgba(26, 0, 51, 0.7));
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  color: var(--white);
  font-family: var(--font-display);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--neon-purple), transparent);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--light-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Banco de Questões */
.search-container {
  padding: 20px;
  margin-bottom: 40px;
}

.search-input-container {
  position: relative;
  margin-bottom: 20px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--light-gray);
}

.search-input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border: 1px solid var(--medium-purple);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(138, 17, 85, 0.3);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(26, 0, 51, 0.9);
  border: 1px solid var(--medium-purple);
  border-top: none;
  border-radius: 0 0 5px 5px;
  z-index: 10;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.search-input:focus + .search-suggestions {
  max-height: 200px;
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition);
}

.suggestion-item:hover {
  background: rgba(138, 17, 85, 0.2);
}

.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 150px;
  transform: translateX(-20px);
  opacity: 0;
  animation: slideInRight 0.5s forwards;
}

.filter-group:nth-child(1) {
  animation-delay: 0.1s;
}

.filter-group:nth-child(2) {
  animation-delay: 0.2s;
}

.filter-group:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--light-gray);
  font-size: 0.9rem;
}

.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--medium-purple);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: var(--transition);
}

.filter-group select:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(138, 17, 85, 0.3);
}

.btn-search {
  width: 100%;
  background-color: var(--neon-purple);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(138, 17, 85, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-search:hover {
  box-shadow: 0 0 15px rgba(138, 17, 85, 0.5);
  transform: translateY(-2px);
}

.btn-search i {
  transition: transform 0.3s ease;
}

.btn-search:hover i {
  transform: translateX(5px);
}

.question-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.flip-card {
  perspective: 1000px;
  height: 250px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.flip-card-front {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.flip-card-back {
  background: var(--medium-purple);
  color: var(--white);
  transform: rotateY(180deg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-icon {
  font-size: 2rem;
  color: var(--neon-purple);
  margin-bottom: 15px;
}

.card-header {
  color: var(--white);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card-body {
  flex: 1;
}

.card-body p {
  margin-bottom: 5px;
}

.counter {
  font-weight: bold;
  color: var(--neon-purple);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, var(--neon-purple), var(--medium-purple));
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

.card-footer {
  margin-top: 10px;
  text-align: center;
}

.flip-hint {
  font-size: 0.8rem;
  color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-hint::before,
.flip-hint::after {
  content: "";
  height: 1px;
  background: var(--light-gray);
  flex: 1;
  margin: 0 10px;
}

.topic-list {
  margin: 15px 0;
  text-align: left;
}

.topic-list li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}

.topic-list li::before {
  content: "•";
  color: var(--neon-purple);
  position: absolute;
  left: 0;
}

.question-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.question-preview.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--neon-purple);
  color: var(--white);
  border-radius: 15px 15px 0 0;
}

.preview-header h3 {
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close:hover {
  transform: scale(1.1);
}

.preview-content {
  padding: 20px;
}

.question-info {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.question-subject,
.question-difficulty,
.question-exam {
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  background: rgba(138, 17, 85, 0.2);
}

.question-text {
  margin-bottom: 20px;
}

.question-options {
  margin-bottom: 20px;
}

.option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  transition: var(--transition);
}

.option:hover {
  background: rgba(138, 17, 85, 0.1);
}

.option input {
  margin-right: 10px;
}

.question-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.question-explanation {
  background: rgba(26, 0, 51, 0.3);
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  border-left: 3px solid var(--neon-purple);
}

.question-explanation h4 {
  margin-bottom: 10px;
  color: var(--neon-purple);
}

.formula {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 10px;
  border-radius: 3px;
  margin: 10px 0;
  text-align: center;
}

.hidden {
  display: none;
}

/* Agenda de Estudos */
.agenda-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calendar-card {
  padding: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.month-display {
  font-family: var(--font-display);
  color: var(--neon-purple);
}

.btn-calendar {
  background-color: transparent;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-calendar:hover {
  color: var(--neon-purple);
  background: rgba(138, 17, 85, 0.1);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.weekday {
  text-align: center;
  font-weight: bold;
  color: var(--light-gray);
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.day {
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.day:hover {
  background-color: rgba(138, 17, 85, 0.2);
  transform: scale(1.05);
}

.day.inactive {
  opacity: 0.5;
  pointer-events: none;
}

.day.event {
  background-color: rgba(138, 17, 85, 0.3);
  position: relative;
}

.day.event::after {
  content: attr(data-events);
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--neon-purple);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day.selected {
  background-color: var(--neon-purple);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(138, 17, 85, 0.5);
}

.calendar-legend {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.schedule-card {
  padding: 20px;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.schedule-header h3 {
  color: var(--neon-purple);
  font-size: 1.2rem;
}

.selected-date {
  color: var(--white);
  font-weight: normal;
}

.schedule-actions {
  display: flex;
  gap: 10px;
}

.btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  background-color: var(--neon-purple);
}

.event-list {
  margin-bottom: 20px;
}

.event-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.event-summary {
  display: flex;
  padding: 15px;
  align-items: center;
  cursor: pointer;
}

.event-time {
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light-gray);
  font-size: 0.9rem;
}

.event-info {
  display: flex;
  align-items: center;
  flex: 1;
  margin: 0 15px;
}

.event-subject {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.event-subject.math {
  background-color: rgba(138, 17, 85, 0.3);
}

.event-subject.physics {
  background-color: rgba(43, 11, 79, 0.3);
}

.event-subject.chemistry {
  background-color: rgba(26, 0, 51, 0.3);
}

.event-details h4 {
  margin-bottom: 5px;
}

.event-details p {
  font-size: 0.9rem;
  color: var(--light-gray);
}

.event-expand {
  margin-left: auto;
}

.event-expand i {
  transition: transform 0.3s ease;
}

.event-item.active .event-expand i {
  transform: rotate(180deg);
}

.event-expanded {
  padding: 0 15px 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.event-item.active .event-expanded {
  max-height: 200px;
}

.event-description {
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.event-resources {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--light-gray);
  font-size: 0.9rem;
  transition: var(--transition);
}

.resource-link:hover {
  color: var(--neon-purple);
}

.event-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-add-event {
  width: 100%;
  padding: 10px;
  background-color: rgba(138, 17, 85, 0.2);
  color: var(--white);
  border-radius: 5px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-add-event:hover {
  background-color: var(--neon-purple);
}

/* Ranking */
.ranking-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  background-color: transparent;
  border: 1px solid var(--medium-purple);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--neon-purple);
  border-color: var(--neon-purple);
}

.ranking-card {
  padding: 20px;
}

.top-users {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.top-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.top-user:hover {
  transform: translateY(-10px);
}

.top-user.first {
  transform: scale(1.1);
  z-index: 2;
}

.top-user.first:hover {
  transform: scale(1.1) translateY(-10px);
}

.medal {
  position: absolute;
  top: -10px;
  font-size: 1.5rem;
  color: var(--neon-purple);
}

.medal.gold {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.medal.silver {
  color: #c0c0c0;
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.7);
}

.medal.bronze {
  color: #cd7f32;
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.7);
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 3px solid var(--medium-purple);
  position: relative;
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--neon-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.top-user:hover .avatar-glow {
  opacity: 0.5;
}

.top-user.first .avatar {
  border-color: var(--neon-purple);
}

.user-info h3 {
  margin-bottom: 5px;
  text-align: center;
}

.user-info p {
  color: var(--neon-purple);
  font-weight: bold;
  text-align: center;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: rgba(138, 17, 85, 0.2);
  border-radius: 15px;
  font-size: 0.8rem;
}

.user-achievements {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.achievement {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(138, 17, 85, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.achievement:hover {
  background: var(--neon-purple);
  transform: scale(1.2);
}

.winner-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ranking-table-container {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table thead {
  background-color: rgba(43, 11, 79, 0.5);
}

.ranking-table th,
.ranking-table td {
  padding: 15px;
  text-align: left;
}

.ranking-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-table tbody tr:hover {
  background-color: rgba(138, 17, 85, 0.1);
}

.ranking-table tr.current-user {
  background-color: rgba(138, 17, 85, 0.2);
}

.position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(43, 11, 79, 0.5);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
}

.level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: rgba(43, 11, 79, 0.5);
  font-size: 0.8rem;
}

.points {
  font-weight: bold;
  color: var(--neon-purple);
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.trend.up {
  color: #4caf50;
}

.trend.down {
  color: #f44336;
}

.trend.same {
  color: var(--light-gray);
}

.ranking-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.ranking-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-page {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-page:hover {
  background-color: var(--neon-purple);
}

.page-info {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* Notícias */
.news-carousel {
  position: relative;
  margin-bottom: 40px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(26, 0, 51, 0.7);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.carousel-control:hover {
  background-color: var(--neon-purple);
}

.carousel-control.prev {
  left: -20px;
}

.carousel-control.next {
  right: -20px;
}

.carousel-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex: 1;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.indicator.active,
.indicator:hover {
  background-color: var(--neon-purple);
}

.news-card {
  overflow: hidden;
  position: relative;
}

.news-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.news-small-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.news-image {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 0, 51, 0.7), transparent);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
}

.news-tag {
  display: inline-block;
  background-color: var(--neon-purple);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.news-card.featured h3 {
  font-size: 1.5rem;
}

.news-card p {
  margin-bottom: 15px;
  color: var(--light-gray);
}

.news-meta {
  display: flex;
  gap: 15px;
  color: var(--light-gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.news-likes {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-like {
  background: none;
  border: none;
  color: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.btn-like:hover,
.btn-like.active {
  color: #f44336;
}

.like-count {
  font-size: 0.8rem;
}

.btn-text {
  color: var(--neon-purple);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-text:hover {
  gap: 8px;
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* Olimpíadas */
.olimpiadas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.olimpiada-card {
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 350px;
}

.olimpiada-icon {
  font-size: 2.5rem;
  color: var(--neon-purple);
  margin-bottom: 15px;
}

.olimpiada-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.olimpiada-info {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.olimpiada-info span {
  font-size: 0.9rem;
  color: var(--light-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.olimpiada-countdown {
  margin-top: 15px;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 5px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--neon-purple);
  font-family: var(--font-display);
}

.countdown-unit {
  font-size: 0.7rem;
  color: var(--light-gray);
}

.olimpiada-progress {
  margin-top: 15px;
}

.progress-value {
  color: var(--neon-purple);
  font-weight: bold;
  margin-top: 5px;
  font-size: 0.9rem;
}

.olimpiada-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 0, 51, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
  border-radius: 15px;
}

.olimpiada-card:hover .olimpiada-hover {
  opacity: 1;
}

/* Footer */
footer {
  background: linear-gradient(to bottom, rgba(26, 0, 51, 0.7), rgba(5, 5, 5, 0.9));
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--neon-purple);
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--neon-purple);
}

.footer-col p {
  margin-bottom: 20px;
  color: var(--light-gray);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
  animation: bounce 2s infinite;
}

.social-icon:nth-child(1) {
  animation-delay: 0s;
}

.social-icon:nth-child(2) {
  animation-delay: 0.2s;
}

.social-icon:nth-child(3) {
  animation-delay: 0.4s;
}

.social-icon:nth-child(4) {
  animation-delay: 0.6s;
}

.social-icon:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.social-icon:hover {
  background-color: var(--neon-purple);
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 0 15px rgba(138, 17, 85, 0.5);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: var(--light-gray);
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links li a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--neon-purple);
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-links li a:hover::before {
  width: 100%;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-gray);
  margin-bottom: 15px;
}

.newsletter {
  margin-top: 20px;
}

.newsletter h4 {
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--medium-purple);
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--white);
}

.newsletter-form button {
  padding: 10px 15px;
  background-color: var(--neon-purple);
  color: var(--white);
  border: none;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--medium-purple);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--neon-purple);
  color: var(--white);
  border-radius: 15px 15px 0 0;
}

.modal-body {
  padding: 20px;
}

.login-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  color: var(--light-gray);
  transition: var(--transition);
  position: relative;
}

.login-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--neon-purple);
  transition: var(--transition);
}

.login-tab.active,
.login-tab:hover {
  color: var(--white);
}

.login-tab.active::after {
  width: 100%;
}

.login-form-container {
  margin-bottom: 20px;
}

.login-form {
  display: none;
}

.login-form.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--light-gray);
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--medium-purple);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(138, 17, 85, 0.3);
}

.password-input {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--light-gray);
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.remember-me,
.terms-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--light-gray);
}

.forgot-password {
  font-size: 0.9rem;
  color: var(--neon-purple);
}

.social-login {
  text-align: center;
}

.social-login p {
  margin-bottom: 15px;
  color: var(--light-gray);
  position: relative;
}

.social-login p::before,
.social-login p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-login p::before {
  left: 0;
}

.social-login p::after {
  right: 0;
}

.social-login-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-social {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-social.google {
  background-color: #db4437;
  color: var(--white);
}

.btn-social.facebook {
  background-color: #4267b2;
  color: var(--white);
}

.btn-social.apple {
  background-color: #000;
  color: var(--white);
}

.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
}

.notification {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 15px;
  color: var(--white);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transform: translateX(120%);
  animation: slideInLeft 0.3s forwards;
}

.notification.closing {
  animation: slideOutRight 0.3s forwards;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  to {
    transform: translateX(120%);
  }
}

.notification-icon {
  font-size: 1.2rem;
  color: var(--neon-purple);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.notification-message {
  font-size: 0.9rem;
  color: var(--light-gray);
}

.notification-close {
  background: none;
  border: none;
  color: var(--light-gray);
  cursor: pointer;
  font-size: 0.9rem;
}

/* Achievement Popup */
.achievement-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 15px;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateY(120%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.achievement-popup.active {
  transform: translateY(0);
}

.achievement-icon {
  width: 50px;
  height: 50px;
  background: var(--neon-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  animation: pulse 2s infinite;
}

.achievement-info {
  flex: 1;
}

.achievement-info h4 {
  margin-bottom: 5px;
  color: var(--neon-purple);
}

.achievement-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.achievement-desc {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section .container {
    flex-direction: column;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 50px;
  }

  .glitch-title {
    font-size: 3rem;
  }

  .typing-text {
    font-size: 1.5rem;
  }

  .cta-container {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    height: 300px;
  }

  .agenda-container {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    padding: 20px;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(138, 17, 85, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .section-title {
    font-size: 2rem;
  }

  .news-small-grid {
    grid-template-columns: 1fr;
  }

  .top-users {
    flex-direction: column;
    gap: 20px;
  }

  .top-user.first {
    order: -1;
  }

  .ranking-table th:nth-child(3),
  .ranking-table td:nth-child(3),
  .ranking-table th:nth-child(4),
  .ranking-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 576px) {
  .glitch-title {
    font-size: 2.5rem;
  }

  .typing-text {
    font-size: 1.2rem;
  }

  .filters {
    flex-direction: column;
  }

  .event-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-time {
    margin-bottom: 10px;
  }

  .event-info {
    margin: 10px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* Dark Mode Styles */
body.dark-mode {
  --black: #f5f5f5;
  --dark-purple: #e6d8ff;
  --medium-purple: #d4bfff;
  --white: #050505;
  --light-gray: #555555;
}

body.dark-mode .stars,
body.dark-mode .twinkling,
body.dark-mode .nebula {
  opacity: 0.3;
}

body.dark-mode .glass-card {
  background: rgba(212, 191, 255, 0.25);
  border-color: rgba(5, 5, 5, 0.1);
}

body.dark-mode .btn-primary {
  background-color: var(--neon-purple);
  color: var(--black);
}

body.dark-mode .btn-secondary {
  border-color: var(--neon-purple);
  color: var(--black);
}

body.dark-mode .nav-link {
  color: var(--black);
}

body.dark-mode .nav-link:hover {
  color: var(--neon-purple);
}

body.dark-mode .hamburger span {
  background-color: var(--black);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--neon-purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(138, 17, 85, 0.5);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(138, 17, 85, 0.7);
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-purple);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  margin-bottom: 5px;
  z-index: 10;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark-purple) transparent transparent transparent;
}

*[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Enhanced Animations */
@keyframes float-reverse {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 5px rgba(138, 17, 85, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(138, 17, 85, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(138, 17, 85, 0.5);
  }
}

.glow-effect {
  animation: glow-pulse 2s infinite;
}

/* Particle Effects */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
}

/* Enhanced Planet Styles */
.planet-rings::before,
.planet-rings::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.planet-rings::before {
  width: 180px;
  height: 30px;
}

.planet-rings::after {
  width: 220px;
  height: 50px;
}

/* Cosmic Dust Animation */
@keyframes dust-float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

.cosmic-dust::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
  background-size: 30px 30px, 20px 20px;
  animation: dust-float 30s linear infinite;
}

/* Enhanced Flip Card Effects */
.flip-card-inner {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg) scale(1.05);
}

.flip-card-front::before,
.flip-card-back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  z-index: -1;
  border-radius: 15px;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Button Styles */
.btn-primary::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--neon-purple), var(--medium-purple), var(--neon-purple));
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 32px;
  animation: gradient-animation 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Calendar Styles */
.day.event {
  overflow: hidden;
}

.day.event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(138, 17, 85, 0.2), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  20%,
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Enhanced Countdown Styles */
.countdown-value {
  position: relative;
  overflow: hidden;
}

.countdown-value::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-purple);
  animation: countdown-progress 60s linear infinite;
  transform-origin: left;
}

@keyframes countdown-progress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

/* Enhanced Achievement Styles */
.achievement {
  position: relative;
  overflow: hidden;
}

.achievement::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(138, 17, 85, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.achievement:hover::after {
  opacity: 1;
}

/* Accessibility Styles */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--neon-purple);
  outline-offset: 2px;
}

/* Skip to Content Link for Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--neon-purple);
  color: var(--white);
  padding: 8px;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}
