.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Terminal Block Cursor */
#terminal-input {
  caret-color: transparent;
}

.terminal-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.custom-cursor {
  position: absolute;
  width: 10px;
  height: 1.2rem;
  background-color: #06b6d4;
  animation: blink 1s step-end infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* Gradient Border for Terminal Window */
.gradient-border {
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: linear-gradient(#f9fafb, #f9fafb), linear-gradient(135deg, #06b6d4, #056ca1);
}

@media (prefers-color-scheme: dark) {
  .gradient-border {
    background-image: linear-gradient(#18181b, #18181b), linear-gradient(135deg, #06b6d4, #056ca1);
  }
}

.text-gradient {
  background: linear-gradient(135deg, #06b6d4, #056ca1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-pulse {
  animation: logo-pulse 1s ease-out;
}

@keyframes logo-pulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Terminal History Markdown Styling */
#terminal-history h1, #terminal-history h2, #terminal-history h3, 
#terminal-history h4, #terminal-history h5, #terminal-history h6 {
  font-weight: bold;
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #06b6d4; /* cyan accent for titles */
}

#terminal-history h1 { font-size: 1.5rem; text-transform: uppercase; border-bottom: 1px solid rgba(6, 182, 212, 0.3); padding-bottom: 0.25rem; }
#terminal-history h2 { font-size: 1.25rem; }
#terminal-history h3 { font-size: 1.15rem; }
#terminal-history h4 { font-size: 1.05rem; }
#terminal-history h5, #terminal-history h6 { font-size: 1rem; }

#terminal-history p {
  margin-bottom: 0.5rem;
}

#terminal-history ul {
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 0.5rem;
}

#terminal-history ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

#terminal-history li {
  margin-bottom: 0.25rem;
}

#terminal-history code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0 0.2rem;
  border-radius: 0.2rem;
}

#terminal-history blockquote {
  border-left: 4px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  opacity: 0.8;
}

#terminal-history pre {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
}

#terminal-history pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-body {
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 0, 0.1);
}

/* README Modal Typography Styling */
#readme-content h1, #readme-content h2, #readme-content h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#readme-content p, #readme-content li {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  margin-bottom: 1rem;
}

#readme-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

#readme-content code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

.dark #readme-content code {
  background-color: rgba(255, 255, 255, 0.1);
}

#readme-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark #readme-content hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-in {
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: forwards;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoom-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fade-in { animation-name: fade-in; }
.zoom-in { animation-name: zoom-in; }