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

body {
  background: #0a0a2e;
  min-height: 100vh;
}

/* Floating Particles */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.6) 0%, rgba(0,229,255,0) 70%);
  animation: float-up linear infinite;
  opacity: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: var(--max-opacity, 0.2);
  }
  90% {
    opacity: var(--max-opacity, 0.2);
  }
  100% {
    transform: translateY(-100vh) translateX(var(--drift, 20px));
    opacity: 0;
  }
}

/* Breathing glow animation */
@keyframes breathe {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0,229,255,0.2), 0 0 30px rgba(0,229,255,0.1), inset 0 0 15px rgba(0,229,255,0.05);
    border-color: rgba(0,229,255,0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(0,229,255,0.4), 0 0 50px rgba(0,229,255,0.2), inset 0 0 25px rgba(0,229,255,0.1);
    border-color: rgba(0,229,255,0.7);
  }
}

.breathing-border {
  animation: breathe 3s ease-in-out infinite;
  border: 2px solid rgba(0,229,255,0.4);
}

/* SVG loading animation */
@keyframes spiral-draw {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

@keyframes spiral-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spiral-loading path {
  stroke-dasharray: 1000;
  animation: spiral-draw 3s ease-in-out infinite;
}

.spiral-loading {
  animation: spiral-rotate 8s linear infinite;
}

/* Logo glow */
@keyframes logo-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(0,229,255,0.3), 0 0 20px rgba(0,229,255,0.1); }
  50% { text-shadow: 0 0 20px rgba(0,229,255,0.5), 0 0 40px rgba(0,229,255,0.2); }
}

.logo-glow {
  animation: logo-glow 4s ease-in-out infinite;
}

/* Collapse animation */
@keyframes collapse-up {
  0% { opacity: 1; max-height: 500px; transform: translateY(0); }
  100% { opacity: 0; max-height: 0; transform: translateY(-40px); padding: 0; margin: 0; }
}

.collapsing {
  animation: collapse-up 0.6s ease-in-out forwards;
  overflow: hidden;
}

/* Fade in */
@keyframes fade-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Step card hover */
.step-card {
  transition: all 0.3s ease;
}
.step-card:hover {
  transform: translateX(4px);
  background: rgba(0,229,255,0.08);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10,10,46,0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(0,229,255,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,229,255,0.5);
}

/* Print styles */
@media print {
  #particles, nav, .no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .print-friendly {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* Responsive panel layout */
@media (max-width: 1024px) {
  .tutorial-panels {
    flex-direction: column !important;
  }
  .tutorial-panels > div {
    width: 100% !important;
    max-height: none !important;
  }
}

/* Cyan ring for active step */
.active-step-ring {
  box-shadow: 0 0 0 2px rgba(0,229,255,0.6), 0 0 15px rgba(0,229,255,0.3);
}

/* Button hover glow */
.btn-glow {
  transition: all 0.3s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 20px rgba(0,229,255,0.4), 0 0 40px rgba(0,229,255,0.2);
  transform: translateY(-1px);
}

/* Chip/tag style */
.chip {
  transition: all 0.2s ease;
}
.chip:hover {
  background: rgba(0,229,255,0.2);
  transform: translateY(-1px);
}

/* Image loading shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, rgba(0,229,255,0.05) 25%, rgba(0,229,255,0.1) 50%, rgba(0,229,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}