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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f1f5f9 100%);
  line-height: 1.6;
}

.App {
  min-height: 100vh;
}

/* Tech Grid Pattern */
.tech-grid {
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}

/* Rocket Card Effect */
.rocket-card {
  position: relative;
  overflow: hidden;
}

.rocket-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(59, 130, 246, 0.03),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.rocket-card:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Stars Animation for Hero Section */
.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stars::before,
.stars::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

.stars::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
  box-shadow: 
    20px 30px 0 rgba(255, 255, 255, 0.6),
    40px 70px 0 rgba(255, 255, 255, 0.4),
    90px 40px 0 rgba(255, 255, 255, 0.8),
    130px 80px 0 rgba(255, 255, 255, 0.5),
    160px 30px 0 rgba(255, 255, 255, 0.7);
}

.stars::after {
  top: 60%;
  right: 15%;
  animation-delay: 1.5s;
  box-shadow: 
    -20px -30px 0 rgba(255, 255, 255, 0.5),
    -60px -10px 0 rgba(255, 255, 255, 0.8),
    -90px -50px 0 rgba(255, 255, 255, 0.4),
    -120px -20px 0 rgba(255, 255, 255, 0.6),
    -150px -60px 0 rgba(255, 255, 255, 0.7);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

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

::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #3b82f6, #1e40af);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #2563eb, #1d4ed8);
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Advanced button hover effects */
button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s;
  transform: translate(-50%, -50%);
}

button:hover::before {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
}

/* Focus states with blue theme */
input:focus,
textarea:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced card animations */
.group {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover {
  transform: translateY(-4px);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading animation enhancements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Enhanced shadow utilities */
.shadow-3xl {
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Backdrop blur support */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Tech-themed checkbox styles */
input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-color: #3b82f6;
  transform: scale(1.05);
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 14px;
  font-weight: bold;
}

input[type="checkbox"]:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced badge styles */
.badge-tech {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  color: #0369a1;
  border: 1px solid rgba(3, 105, 161, 0.2);
  font-weight: 600;
}

/* Responsive enhancements */
@media (max-width: 1024px) {
  .tech-grid {
    background-size: 15px 15px;
  }
  
  .stars::before,
  .stars::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .tech-grid {
    background-size: 10px 10px;
  }
  
  .rocket-card {
    margin: 0 -1rem;
  }
  
  button::before {
    display: none;
  }
}

/* Rocket Launch Animation */
@keyframes rocket-launch {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-60px) scale(0.8);
    opacity: 0;
  }
}

.animate-rocket-launch {
  animation: rocket-launch 2s ease-out forwards;
}

/* Sparkle Animation */
@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3) rotate(180deg);
    opacity: 1;
  }
}

.animate-sparkle {
  animation: sparkle 1.5s ease-in-out infinite;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

/* Trophy Bounce Animation */
@keyframes trophy-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-trophy-bounce {
  animation: trophy-bounce 1s ease-in-out;
}

/* Gold Shimmer Effect */
@keyframes gold-shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.gold-shimmer {
  background: linear-gradient(
    90deg,
    #f59e0b 25%,
    #fbbf24 50%,
    #f59e0b 75%
  );
  background-size: 200% 100%;
  animation: gold-shimmer 2s ease-in-out infinite;
}

/* Progress Circle Animation */
@keyframes progress-fill {
  from {
    stroke-dashoffset: 314;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.animate-progress-fill {
  animation: progress-fill 2s ease-out forwards;
}

/* Confetti Alternative - Floating Particles */
@keyframes float-particle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.floating-particle {
  position: absolute;
  animation: float-particle 3s ease-out forwards;
}

/* Success Pulse Animation */
@keyframes success-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.animate-success-pulse {
  animation: success-pulse 2s infinite;
}

/* Enhanced Glow Effects */
.glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow-gold {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

/* Profile Completion Celebration */
@keyframes celebration {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.animate-celebration {
  animation: celebration 0.6s ease-in-out;
}

/* Micro-interactions for buttons */
.btn-hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Input Focus States */
.input-focus {
  transition: all 0.3s ease;
}

.input-focus:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Loading Spinner Enhancement */
@keyframes enhanced-spin {
  0% {
    transform: rotate(0deg);
    border-color: #3b82f6 transparent transparent transparent;
  }
  25% {
    border-color: transparent #3b82f6 transparent transparent;
  }
  50% {
    border-color: transparent transparent #3b82f6 transparent;
  }
  75% {
    border-color: transparent transparent transparent #3b82f6;
  }
  100% {
    transform: rotate(360deg);
    border-color: #3b82f6 transparent transparent transparent;
  }
}

.enhanced-spinner {
  animation: enhanced-spin 1s linear infinite;
}

/* Card Entrance Animations */
@keyframes slide-in-from-bottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slide-in-from-bottom 0.6s ease-out;
}

/* Achievement Badge Animations */
@keyframes badge-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-badge-pop {
  animation: badge-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Gamification Point Counter */
@keyframes count-up {
  from {
    transform: scale(0.8);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-count-up {
  animation: count-up 0.3s ease-out;
}

/* Trophy Gradient Text */
.trophy-text-gradient {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}