:root {
  /* Theme Colors - Enhanced with more vibrant palette */
  --minecraft-green: #54a02c;
  --minecraft-dirt: #6b4515;
  --roblox-red: #de3630;
  --roblox-blue: #00a2ff;
  --neon-green: #39ff14;
  --neon-blue: #00ffff;
  --neon-pink: #ff006e;
  --neon-purple: #b537f2;
  --neon-orange: #ff9e00;
  --electric-blue: #0066ff;

  /* Background & Surface */
  --dark-bg: #0a0a12;
  --dark-bg-gradient: linear-gradient(135deg, #0a0a12 0%, #1a0a2e 50%, #0a0a12 100%);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-glow: #00ffff;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark-bg);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(57, 255, 20, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(222, 54, 48, 0.03) 0%, transparent 50%);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
}

#app {
  position: relative;
  z-index: 1;
}

/* Navbar - Enhanced with glassmorphism */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink)) 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: navSlideDown 0.6s ease-out;
}

@keyframes navSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo {
  font-family: 'Press Start 2P', cursive;
  color: var(--neon-blue);
  font-size: 1.2rem;
  text-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
  animation: logoGlow 2s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

@keyframes logoGlow {
  from {
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
  }

  to {
    text-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue), 0 0 60px var(--neon-blue);
  }
}

.links a {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  position: relative;
  padding: 0.5rem 0;
}

.links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  transition: width 0.3s ease;
}

.links a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
  transform: translateY(-2px);
}

.links a:hover::after {
  width: 100%;
}

/* Hero Section - Dramatic entrance */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated particles in hero */
.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, var(--neon-blue), transparent),
    radial-gradient(2px 2px at 60% 70%, var(--neon-green), transparent),
    radial-gradient(1px 1px at 50% 50%, var(--neon-pink), transparent),
    radial-gradient(1px 1px at 80% 10%, var(--neon-purple), transparent);
  background-size: 200% 200%;
  animation: particleFloat 20s linear infinite;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00ffff 0%, #ff006e 50%, #39ff14 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float 3s ease-in-out infinite, gradientShift 5s ease infinite;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
  position: relative;
}

@keyframes gradientShift {

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

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

/* Glitch effect for title */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00ffff 0%, #ff006e 50%, #39ff14 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
}

.glitch:hover::before {
  animation: glitch1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  color: var(--neon-blue);
  z-index: -1;
}

.glitch:hover::after {
  animation: glitch2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse infinite;
  color: var(--neon-pink);
  z-index: -2;
}

@keyframes glitch1 {

  0%,
  100% {
    transform: translate(0);
    opacity: 0;
  }

  33% {
    transform: translate(-2px, 2px);
    opacity: 1;
  }

  66% {
    transform: translate(2px, -2px);
    opacity: 1;
  }
}

@keyframes glitch2 {

  0%,
  100% {
    transform: translate(0);
    opacity: 0;
  }

  33% {
    transform: translate(2px, -2px);
    opacity: 1;
  }

  66% {
    transform: translate(-2px, 2px);
    opacity: 1;
  }
}

.badge-container {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
  animation: badgeSlideIn 0.8s ease-out 0.3s both;
}

@keyframes badgeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.9rem;
  border: 2px solid;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.badge:hover::before {
  left: 100%;
}

.badge:hover {
  transform: translateY(-3px) scale(1.05);
}

.badge.level {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4), inset 0 0 10px rgba(57, 255, 20, 0.1);
}

.badge.level:hover {
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6), inset 0 0 20px rgba(57, 255, 20, 0.2);
}

.badge.class {
  border-color: var(--roblox-red);
  color: var(--roblox-red);
  box-shadow: 0 0 20px rgba(222, 54, 48, 0.4), inset 0 0 10px rgba(222, 54, 48, 0.1);
}

.badge.class:hover {
  box-shadow: 0 0 30px rgba(222, 54, 48, 0.6), inset 0 0 20px rgba(222, 54, 48, 0.2);
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  letter-spacing: 3px;
  animation: subtitleFadeIn 1s ease-out 0.5s both;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section-container {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: sectionFadeIn 0.8s ease-out;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pixel-font {
  font-family: 'Press Start 2P', cursive;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
  animation: titlePulse 3s ease-in-out infinite;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  border-radius: 2px;
}

@keyframes titlePulse {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.6));
  }
}

/* Glass Panel - Premium glassmorphism */
.glass-panel {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
      var(--neon-green) 0%,
      var(--neon-blue) 33%,
      var(--neon-purple) 66%,
      var(--neon-pink) 100%);
  background-size: 200% 100%;
  animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 0%;
  }

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

.glass-panel::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
  animation: rotateGlow 10s linear infinite;
  pointer-events: none;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  transition: all 0.3s ease;
  padding-left: 0.5rem;
}

.stat-row:hover {
  border-bottom-color: var(--neon-blue);
  padding-left: 1rem;
  background: rgba(0, 255, 255, 0.05);
}

.stat-label {
  font-family: 'Press Start 2P', cursive;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.stat-value {
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.bio {
  margin-top: 2rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* Cards - Enhanced 3D effect */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  perspective: 1000px;
}

.card {
  background: rgba(30, 30, 40, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transform-style: preserve-3d;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-15px) scale(1.03) rotateX(2deg);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(0, 255, 255, 0.2);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 4px solid;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.8);
}

.card:hover .card-img {
  transform: scale(1.1);
  filter: brightness(1) saturate(1.2);
}

.card.minecraft-theme {
  border-color: rgba(84, 160, 44, 0.3);
}

.card.minecraft-theme .card-img {
  border-color: var(--minecraft-green);
  box-shadow: 0 0 20px rgba(84, 160, 44, 0.3);
}

.card.minecraft-theme:hover {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(84, 160, 44, 0.4);
}

.card.roblox-theme {
  border-color: rgba(222, 54, 48, 0.3);
}

.card.roblox-theme .card-img {
  border-color: var(--roblox-red);
  box-shadow: 0 0 20px rgba(222, 54, 48, 0.3);
}

.card.roblox-theme:hover {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(222, 54, 48, 0.4);
}

.card.transport-theme {
  border-color: rgba(0, 255, 255, 0.3);
}

.card.transport-theme .card-img {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.card.transport-theme:hover {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(0, 255, 255, 0.4);
}

.card-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.card h3 {
  font-family: 'Press Start 2P', cursive;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.card:hover h3 {
  transform: translateX(5px);
}

.card.minecraft-theme h3 {
  color: var(--minecraft-green);
  text-shadow: 0 0 10px rgba(84, 160, 44, 0.5);
}

.card.roblox-theme h3 {
  color: var(--roblox-red);
  text-shadow: 0 0 10px rgba(222, 54, 48, 0.5);
}

.card.transport-theme h3 {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Footer - Sleek minimal */
footer {
  text-align: center;
  padding: 3rem 2rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulseArcade {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 18, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-green), var(--neon-blue));
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .links a {
    margin: 0 0.5rem;
    font-size: 0.7rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .glass-panel {
    padding: 2rem;
  }
}