/* Terminal-style CSS */

:root {
  --terminal-green: #00ff00;
  --terminal-bg: #000000;
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --yellow: #ffff00;
  --terminal-gray: #808080;
  --neon-lilac: #bb86fc;
}

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

body {
  background-color: var(--terminal-bg);
  color: var(--terminal-green);
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

a:visited {
  color: var(--terminal-gray);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--terminal-green);
  margin-top: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

h1 {
  font-size: 2em;
  border-bottom: 2px solid var(--terminal-green);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.5em;
  color: var(--cyan);
}

h3 {
  font-size: 1.2em;
  color: var(--yellow);
}

nav {
  margin-bottom: 40px;
  padding: 20px 0;
  border-bottom: 2px solid var(--terminal-green);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

nav a {
  color: var(--terminal-green);
  border: none;
  padding: 5px 10px;
  display: inline-block;
}

nav a:hover {
  background-color: var(--terminal-green);
  color: var(--terminal-bg);
}

nav a.active {
  color: var(--magenta);
}

.prompt {
  color: var(--yellow);
  margin-right: 10px;
}

.prompt::before {
  content: '> ';
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

p {
  margin-bottom: 15px;
}

ul, ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 5px;
}

.card {
  border: 1px solid var(--terminal-green);
  padding: 20px;
  margin-bottom: 30px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--cyan);
  background-color: rgba(0, 255, 255, 0.05);
}

.card h3 {
  margin-top: 0;
}

.tag {
  color: var(--magenta);
  background-color: rgba(255, 0, 255, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  margin-right: 5px;
  display: inline-block;
}

code {
  background-color: rgba(187, 134, 252, 0.2);
  color: var(--terminal-green);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
}

pre {
  background-color: rgba(187, 134, 252, 0.1);
  border: 1px solid var(--neon-lilac);
  padding: 15px;
  overflow-x: auto;
  margin-bottom: 20px;
  color: var(--terminal-green);
}

pre code {
  background: none;
  padding: 0;
  color: var(--terminal-green);
}

img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--terminal-green);
  margin: 20px 0;
}

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 2px solid var(--terminal-green);
  color: var(--terminal-gray);
  text-align: center;
}

.ascii-art {
  font-size: 0.7em;
  line-height: 1.2;
  color: var(--terminal-green);
  white-space: pre;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  h1 {
    font-size: 1.5em;
  }
}

/* Link hover effects for portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.portfolio-item {
  border: 1px solid var(--terminal-green);
  padding: 20px;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-item:hover {
  border-color: var(--magenta);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.portfolio-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--yellow);
}

.portfolio-item p {
  color: var(--terminal-gray);
  margin-bottom: 10px;
}

/* Blog list */
.blog-list .card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--terminal-green);
  padding: 20px;
  margin-bottom: 30px;
}

.blog-list .card:hover {
  border-color: var(--magenta);
  background-color: rgba(255, 0, 255, 0.05);
}

.blog-list .card h3 {
  color: var(--yellow);
  margin-top: 10px;
  margin-bottom: 10px;
}

.blog-list .card p {
  color: var(--terminal-gray);
}

.blog-list .date {
  color: var(--terminal-gray);
  font-size: 0.9em;
  display: block;
  margin-bottom: 5px;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--yellow);
}

.back-link:hover {
  color: var(--magenta);
}
