html,
body {
  font-family: 'Fira Code', monospace;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

#typing-text {
  font-family: monospace;
  white-space: nowrap;
  padding-right: 5px;
}

#typing-text:after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    color: black;
  }
  50% {
    color: transparent;
  }
}

.social-link {
  transition: transform 0.2s;
}

.social-link:hover {
  transform: translateY(-3px);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.dark ::-webkit-scrollbar-track {
  background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.copy-btn {
  position: relative;
  padding: 12px 24px;
  border: 2px solid #00d8a7;
  border-radius: 999px;
  background: transparent;
  color: #00d8a7;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.copy-btn:hover {
  background: rgba(0, 216, 167, 0.1);
  transform: scale(1.03);
}

.copy-btn:active {
  transform: scale(0.98);
}

.copy-btn .check {
  position: absolute;
  inset: 0;
  background: #00d8a7;
  color: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 999px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.copy-btn.copied .check {
  transform: translateY(0%);
}

.copy-btn.copied span {
  opacity: 0;
}
