/* Solarized Dark colors */
:root {
  --base03: #002b36;
  --base02: #073642;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base1: #93a1a1;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --yellow: #b58900;
  --orange: #cb4b16;
  --red: #dc322f;
  --magenta: #d33682;
  --violet: #6c71c4;
  --blue: #268bd2;
  --cyan: #2aa198;
  --green: #859900;
  --terminal-green: #8efa00;
}

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

html, body {
  height: 100%;
  width: 100%;
  background-color: var(--base03);
  color: var(--base1);
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  overflow: hidden;
}

.terminal {
  width: 90%;
  max-width: 900px;
  height: 85vh;
  margin: 3% auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-header {
  background-color: var(--base02);
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.close {
  background-color: var(--red);
}

.minimize {
  background-color: var(--yellow);
}

.maximize {
  background-color: var(--green);
}

.terminal-title {
  flex-grow: 1;
  text-align: center;
  font-size: 14px;
  color: var(--base0);
}

.terminal-content {
  background-color: var(--base03);
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.terminal-line {
  display: flex;
  margin-bottom: 15px;
}

.prompt {
  color: var(--cyan);
  margin-right: 8px;
}

.command {
  color: var(--terminal-green);
}

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

.cursor {
  color: var(--terminal-green);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

.terminal-output {
  margin-top: 20px;
}

.ascii-art {
  color: var(--terminal-green);
  margin-bottom: 25px;
  line-height: 1.2;
  font-size: 12px;
}

.mobile-ascii, .text-fallback {
  display: none;
}

.text-fallback {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: var(--terminal-green);
  margin: 20px 0;
  letter-spacing: 2px;
}

.terminal-info {
  color: var(--base0);
  line-height: 1.6;
}

.section-title {
  color: var(--orange);
  margin-top: 20px;
  margin-bottom: 5px;
}

.highlight {
  color: var(--blue);
  font-weight: 500;
}

.portfolio-list {
  list-style-type: none;
  margin-left: 10px;
}

.portfolio-list li {
  margin-bottom: 5px;
}

.portfolio-list li::before {
  content: "→ ";
  color: var(--cyan);
}

.terminal-link {
  color: var(--blue);
  text-decoration: none;
  position: relative;
}

.terminal-link:hover {
  text-decoration: underline;
}

.terminal-link:after {
  content: "↗";
  font-size: 0.8em;
  margin-left: 3px;
  position: relative;
  top: -3px;
}

.hidden {
  display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .terminal {
    width: 95%;
    height: 90vh;
    margin: 5% auto;
  }
  
  .ascii-art {
    font-size: 8px;
  }
  
  .terminal-content {
    padding: 10px;
  }
  
  html, body {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .terminal {
    width: 98%;
    height: 95vh;
    margin: 2% auto;
  }
  
  .desktop-ascii {
    display: none;
  }
  
  .mobile-ascii {
    display: block;
    font-size: 6px;
    line-height: 1;
    white-space: pre;
    overflow-x: auto;
  }
}

/* For very small screens */
@media (max-width: 350px) {
  .desktop-ascii, .mobile-ascii, .text-fallback {
    display: none;
  }
}