/* ============================
   Terminal Inspired Portfolio
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600;700&display=swap');

/* === Base === */
body {
  margin: 0;
  font-family: 'Fira Code', monospace;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  color: #40e0d0;
  text-decoration: none;
}
a:hover {
  color: #00ff80;
  text-shadow: 0 0 8px #00ff80;
}

/* === Header / Terminal === */
.terminal-header {
  max-width: 900px;
  margin: 2rem auto;
}

.code-block {
  background: #000;
  color: #00ff80;
  padding: 1rem;
  font-family: 'Fira Code', monospace;
  border: 1px solid #008f5a;
  border-radius: 6px;
  font-size: 1rem;
}

.cursor {
  display: inline-block;
  animation: blink 0.8s infinite;
}

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

/* === Navigation === */
nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  border-bottom: 1px dashed #008f5a;
}
nav a {
  color: #00ff80;
}
.theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #e0e0e0;
  transition: transform 0.2s ease-in-out;
}
.theme-toggle:hover {
  transform: rotate(25deg);
}

/* === Sections === */
.terminal-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #111;
  border: 1px solid #008f5a;
  border-radius: 8px;
}
.terminal-section h2 {
  color: #00ff80;
  border-bottom: 1px solid #008f5a;
  padding-bottom: 0.3rem;
}
.terminal-list {
  list-style: none;
  padding: 0;
}
.terminal-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed #222;
}
.terminal-list li strong {
  color: #00ff80;
}

/* === Buttons === */
.btn {
  background: #000;
  color: #00ff80;
  border: 1px solid #00ff80;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 0.6rem;
  font-size: 0.85rem;
}
.btn:hover {
  background: #00ff80;
  color: #000;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  border-top: 1px solid #008f5a;
  opacity: 0.7;
}

/* === Light mode toggle (optional) === */
body.light-mode {
  background: #f5f5f5;
  color: #111;
}
body.light-mode .code-block {
  background: #e0e0e0;
  color: #008f5a;
  border: 1px solid #008f5a;
}
body.light-mode nav a {
  color: #008f5a;
}
body.light-mode .terminal-section {
  background: #f0f0f0;
  border: 1px solid #008f5a;
}
body.light-mode .terminal-section h2 {
  color: #008f5a;
  border-bottom: 1px solid #008f5a;
}
body.light-mode .terminal-list li strong {
  color: #008f5a;
}
body.light-mode .btn {
  color: #008f5a;
  border: 1px solid #008f5a;
}
body.light-mode .btn:hover {
  background: #008f5a;
  color: #fff;
}
