/* style.css */
html, body {
  height: 100%;
  overflow-y: auto;
}
body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: #00ff00;
  font-family: monospace;
  position: relative;
}

body, a, h1, h2, p {
  transition: background-color 0.5s ease, color 0.5s ease;
}

.ascii-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  white-space: pre;
  font-size: 10px;
  line-height: 10px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.content {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: #00ff00;
  font-family: monospace;
  text-decoration: none;
  border-bottom: 1px dashed #00ff00;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
  border-bottom: 1px solid #ff00ff;
}

a:visited {
  color: #009900;
}

a:focus, .menu-button:focus {
  outline: 2px dashed #00ff00;
  outline-offset: 2px;
}

.menu-button {
  position: fixed;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #00ff00;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
}

.menu-panel {
  position: fixed;
  top: 50px;
  right: 10px;
  background-color: #111;
  border: 1px solid #0f0;
  padding: 10px;
  font-family: monospace;
  z-index: 999;
}

.menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-panel li {
  margin: 5px 0;
}

.menu-panel a {
  color: #00ff00;
  text-decoration: none;
}

.typing::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

#skills-section {
  border-top: 1px dashed #00ff00;
  margin-top: 3rem;
  padding-top: 2rem;
}
#skills-section h2 {
  margin-bottom: 1rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.skills-list li {
  background-color: black;
  border: 1px solid #00ff00;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#terminal-wrapper {
  position: relative;
  width: 96%;
  margin: 0 auto;
}

#terminal-output p {
  font-size: 0.5rem;
  line-height: 1.2;
  margin: 0.3rem 0;
}

#autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: black;
  border: 1px solid #00ff00;
  color: #00ff00;
  font-family: monospace;
  max-height: 150px;
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.autocomplete-item {
  padding: 0.5rem;
  cursor: pointer;
}

.autocomplete-item:hover {
  background-color: #003300;
}

#autocomplete-list.show {
  opacity: 1;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0px #00ff00; }
  50% { box-shadow: 0 0 10px #00ff00; }
  100% { box-shadow: 0 0 0px #00ff00; }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0px red; }
  50% { box-shadow: 0 0 10px red; }
  100% { box-shadow: 0 0 0px red; }
}

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

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

.section-divider {
  border-top: 1px dashed #00ff00;
  margin-top: 3rem;
  padding-top: 2rem;
}