/* Loading Animation Styles */
.loading-text {
  color: #d1d5db !important;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #9ca3af, transparent);
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { transform: translate(-100%); }
  100% { transform: translate(100%); }
}

/* Terminal Dashboard Styles */
.bg-adaptive {
  background: rgba(0, 0, 0, 0.9);
  color: #d1d5db;
}

.feature-card {
  border-radius: 0.25rem;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(38, 38, 38);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: rgb(82, 82, 82);
  background-color: rgba(0, 0, 0, 0.7);
}

.terminal-container {
  max-width: 100%;
  overflow-x: hidden;
}

.terminal-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: flex-start;
  /* Removed staggered animation - all lines appear immediately */
  opacity: 1;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.terminal-text {
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.animate-cursor {
  animation: cursor 1s infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); }
}

.animate-glow {
  animation: glow 2s infinite;
}

/* Terminal styles - Dark theme only */
.terminal-window {
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid #374151;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.canvas-adaptive {
  opacity: 0.2;
}

.terminal-prompt-user {
  color: #d1d5db !important;
}

.terminal-prompt-symbol {
  color: #9ca3af !important;
}

.terminal-log-bracket {
  color: #9ca3af !important;
}

.terminal-log-text {
  color: #d1d5db !important;
  line-height: 1.5;
}

.feature-title {
  color: #ffffff !important;
}

.feature-description {
  color: #9ca3af !important;
  line-height: 1.6;
}

.status-text {
  color: #9ca3af !important;
}

.window-header {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border-color: #374151 !important;
}

.time-display {
  color: #d1d5db !important;
}

/* Dynamic Background Animations */
@keyframes gradient-shift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.2); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 20px) scale(0.8); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -25px) scale(0.9); }
}

@keyframes float-5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, 25px) scale(1.3); }
}

.animate-gradient-shift {
  animation: gradient-shift 8s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-float-1 {
  animation: float-1 6s ease-in-out infinite;
}

.animate-float-2 {
  animation: float-2 8s ease-in-out infinite;
}

.animate-float-3 {
  animation: float-3 7s ease-in-out infinite;
}

.animate-float-4 {
  animation: float-4 9s ease-in-out infinite;
}

.animate-float-5 {
  animation: float-5 5s ease-in-out infinite;
}

/* Dynamic background visibility */
.dynamic-bg {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

/* Performance optimizations */
.animate-float-1,
.animate-float-2,
.animate-float-3,
.animate-float-4,
.animate-float-5 {
  will-change: transform;
}

.animate-cursor {
  will-change: opacity;
}

.animate-glow {
  will-change: filter;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-cursor {
    animation: none;
    opacity: 1;
  }
}

/* Focus states for better accessibility */
.feature-card:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card {
    border-width: 2px;
  }
  
  .terminal-window {
    border-width: 2px;
  }
}
