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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #000;
  user-select: none;
  overflow: hidden;
}

.vita-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
}

.vita-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.bubble-container {
  animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble-container:nth-child(2n) {
  animation-delay: -1s;
}

.bubble-container:nth-child(3n) {
  animation-delay: -2s;
}

.bubble-container:nth-child(4n) {
  animation-delay: -3s;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(0.5deg); }
  50% { transform: translateY(-1px) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(-0.5deg); }
}

.bubble {
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 30%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent);
  border-radius: 50%;
  filter: blur(2px);
}

.bubble:hover {
  animation: bubbleHover 0.3s ease-out forwards;
}

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

/* Responsive design */
@media (max-width: 768px) {
  .grid-cols-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .gap-8 {
    gap: 1.5rem;
  }
  
  .bubble-container .bubble {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (max-width: 480px) {
  .grid-cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .gap-8 {
    gap: 1rem;
  }
  
  .bubble-container .bubble {
    width: 3rem;
    height: 3rem;
  }
}

/* Smooth page transitions */
.transition-transform {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Context menu animations */
.context-menu {
  animation: contextMenuSlide 0.2s ease-out forwards;
}

@keyframes contextMenuSlide {
  0% {
    opacity: 0;
    transform: translate(-50%, -90%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}

/* Search overlay animations */
.search-overlay {
  animation: searchFadeIn 0.3s ease-out forwards;
}

@keyframes searchFadeIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

/* Launch overlay animations */
.launch-overlay {
  animation: launchFadeIn 0.5s ease-out forwards;
}

@keyframes launchFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Progress bar glow effect */
.progress-bar {
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}