/* Variables Globales para un look neón futurista */
:root {
  --neon-pink: #ff007a;
  --neon-purple: #6b00ff;
  --neon-blue: #00c9ff;
  --neon-green: #00ff6a;
  --bg-color: #000;
}

/* Estilos Generales */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #fff;
  background-color: var(--bg-color);
  background-image: url('https://fakefunnycoin.com/assets/images/about-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow-x: hidden;
}

/* Overlay animado futurista */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple), var(--neon-blue), var(--neon-green));
  opacity: 0.15;
  z-index: -1;
  animation: gradientShift 20s linear infinite;
}

@keyframes gradientShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  animation: slideDownFuturistic 1s ease-out;
}

@keyframes slideDownFuturistic {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.logo {
  height: 60px;
}

/* Enlaces de navegación */
.links a {
  color: #fff;
  text-decoration: none;
  margin: 0 20px;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s, transform 0.3s;
}
.links a:hover {
  color: var(--neon-blue);
  transform: scale(1.05);
}

/* Título del Roadmap */
.roadmap-title {
  text-align: center;
  margin-top: 120px;
  padding-top: 80px;
  position: relative;
  animation: fadeInFuturistic 1.5s ease-out;
}

.roadmap-title img {
  width: 500px;
  max-width: 100%;
  display: inline-block;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(2px 2px 2px var(--neon-purple));
  animation: glitch 3s infinite;
}

/* Efecto glitch mejorado y dinámico para el título */
@keyframes glitch {
  0% {
    clip: rect(20px, 9999px, 30px, 0);
    transform: translate(0);
  }
  10% {
    clip: rect(10px, 9999px, 40px, 0);
    transform: translate(-5px, 5px);
  }
  20% {
    clip: rect(30px, 9999px, 20px, 0);
    transform: translate(5px, -5px);
  }
  30% {
    clip: rect(15px, 9999px, 35px, 0);
    transform: translate(-5px, 0);
  }
  40% {
    clip: rect(25px, 9999px, 45px, 0);
    transform: translate(0, -5px);
  }
  50% {
    clip: rect(10px, 9999px, 30px, 0);
    transform: translate(5px, 5px);
  }
  60% {
    clip: rect(20px, 9999px, 40px, 0);
    transform: translate(-5px, -5px);
  }
  70% {
    clip: rect(15px, 9999px, 35px, 0);
    transform: translate(5px, 0);
  }
  80% {
    clip: rect(25px, 9999px, 45px, 0);
    transform: translate(0, 5px);
  }
  90% {
    clip: rect(10px, 9999px, 30px, 0);
    transform: translate(-5px, 5px);
  }
  100% {
    clip: rect(20px, 9999px, 30px, 0);
    transform: translate(0);
  }
}

/* Contenedor de Burbujas */
.roadmap-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px;
  margin-top: 40px;
  animation: fadeInFuturistic 1s ease-out;
}

/* Burbujas */
.bubble {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
  border: 5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: neonPulse 4s infinite;
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 20px var(--neon-pink); transform: scale(1) rotate(0deg); }
  25% { box-shadow: 0 0 30px var(--neon-blue); transform: scale(1.1) rotate(5deg); }
  50% { box-shadow: 0 0 40px var(--neon-green); transform: scale(1.05) rotate(-5deg); }
  75% { box-shadow: 0 0 30px var(--neon-blue); transform: scale(1.1) rotate(5deg); }
  100% { box-shadow: 0 0 20px var(--neon-pink); transform: scale(1) rotate(0deg); }
}

.bubble:hover {
  transform: scale(1.3) rotate(10deg);
  box-shadow: 0 0 60px var(--neon-green);
}

.bubble-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 600px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.7);
  display: none;
  z-index: 1001;
  overflow: hidden;
  border: 6px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image: linear-gradient(#000, #000),
                    linear-gradient(45deg, var(--neon-pink), var(--neon-purple), var(--neon-blue), var(--neon-green));
}

.popup.active {
  display: block;
  animation: popupBounce 0.6s ease forwards;
}

@keyframes popupBounce {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(0.95); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Contenido del Popup */
.popup-content {
  text-align: center;
}

.popup-logo {
  width: 100px;
  margin-bottom: 20px;
  display: block;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.popup-text {
  font-size: 22px;
  line-height: 1.8;
  font-family: 'Poppins', sans-serif;
}

/* Botón de Cierre */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: var(--neon-pink);
  font-weight: bold;
  transition: transform 0.3s, color 0.3s;
}

.close:hover {
  color: var(--neon-green);
  transform: rotate(90deg) scale(1.1);
}

/* Efecto de Fade In futurista */
@keyframes fadeInFuturistic {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
  .bubble {
    width: 150px;
    height: 150px;
  }
  .popup {
    max-width: 350px;
    padding: 20px;
  }
  .roadmap-title img {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .bubble {
    width: 120px;
    height: 120px;
  }
  .popup {
    max-width: 300px;
    padding: 15px;
  }
  .popup-text {
    font-size: 14px;
  }
  .roadmap-title img {
    width: 250px;
  }
}
