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

* {
  font-family: 'Rajdhani', sans-serif;
}

.starfield-bg {
  background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
              #000000;
  background-attachment: fixed;
  position: relative;
}

.starfield-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, white 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, white 0.5px, transparent 1px),
    radial-gradient(circle at 50% 10%, white 0.5px, transparent 1px),
    radial-gradient(circle at 10% 80%, white 1px, transparent 1px),
    radial-gradient(circle at 90% 40%, white 0.5px, transparent 1px);
  background-size: 400px 400px, 600px 600px, 800px 800px, 500px 500px, 700px 700px;
  background-repeat: repeat;
  animation: twinkle 20s infinite;
  z-index: -1;
  opacity: 0.6;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

.metallic-border {
  border: 2px solid;
  border-image: linear-gradient(45deg, #4a5568, #718096, #a0aec0, #718096, #4a5568) 1;
  background: linear-gradient(135deg, rgba(26, 32, 44, 0.8) 0%, rgba(45, 55, 72, 0.6) 50%, rgba(26, 32, 44, 0.8) 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.5);
  position: relative;
}

.metallic-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #4a5568, #718096, #a0aec0, #718096, #4a5568);
  z-index: -1;
  border-radius: inherit;
}

.metallic-text {
  font-family: 'Orbitron', monospace;
  background: linear-gradient(45deg, #e2e8f0, #cbd5e0, #a0aec0, #cbd5e0, #e2e8f0);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  animation: metallic-shine 3s ease-in-out infinite;
}

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

.glow-text {
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

/* Enhanced hover effects */
.border:hover {
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a202c;
  border: 1px solid #4a5568;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #4a5568, #718096);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #718096, #a0aec0);
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[src=""] {
  opacity: 0.5;
}

/* Retro button styles */
.retro-button {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
  border: 2px solid #718096;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.retro-button:hover {
  background: linear-gradient(135deg, #718096 0%, #4a5568 50%, #2d3748 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.retro-button:active {
  transform: translateY(0);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Modal animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: scale(0.8) translateY(-50px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.fixed {
  animation: fadeIn 0.3s ease-out;
}

.fixed > div {
  animation: slideIn 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .metallic-text {
    font-size: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .metallic-border {
    margin: 0.5rem;
    padding: 1rem;
  }
}