* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Fira Code", "Courier New", Courier, monospace;
}

:root {
  /* Default theme */
  --bg-color: #141414;
  --text-color: #ff8c00;
  --text-dim: rgba(255, 140, 0, 0.7);
  --text-bright: #ffaa33;
  --text-highlight: #ffcc66;
  --text-error: #ff6b6b;
  --border-color: rgba(255, 140, 0, 0.3);
  --terminal-bg: #1a1a1a;
  --terminal-highlight: rgba(255, 140, 0, 0.1);
  --input-color: #ff8c00;
  --prompt-color: #ff8c00;
  --header-bg: #0f0f0f;
  --success-color: #98fb98;
}

/* Theme classes */
.theme-dracula {
  --bg-color: #282a36;
  --text-color: #bd93f9;
  --text-dim: rgba(189, 147, 249, 0.7);
  --text-bright: #ff79c6;
  --text-highlight: #f1fa8c;
  --text-error: #ff5555;
  --border-color: rgba(189, 147, 249, 0.3);
  --terminal-bg: #2d313f;
  --terminal-highlight: rgba(189, 147, 249, 0.1);
  --input-color: #bd93f9;
  --prompt-color: #ff79c6;
  --header-bg: #1e2029;
  --success-color: #50fa7b;
}

.theme-solarized {
  --bg-color: #002b36;
  --text-color: #2aa198;
  --text-dim: rgba(42, 161, 152, 0.7);
  --text-bright: #268bd2;
  --text-highlight: #b58900;
  --text-error: #cb4b16;
  --border-color: rgba(42, 161, 152, 0.3);
  --terminal-bg: #073642;
  --terminal-highlight: rgba(42, 161, 152, 0.1);
  --input-color: #2aa198;
  --prompt-color: #268bd2;
  --header-bg: #001e26;
  --success-color: #859900;
}

.theme-nord {
  --bg-color: #2e3440;
  --text-color: #88c0d0;
  --text-dim: rgba(136, 192, 208, 0.7);
  --text-bright: #81a1c1;
  --text-highlight: #ebcb8b;
  --text-error: #bf616a;
  --border-color: rgba(136, 192, 208, 0.3);
  --terminal-bg: #3b4252;
  --terminal-highlight: rgba(136, 192, 208, 0.1);
  --input-color: #88c0d0;
  --prompt-color: #81a1c1;
  --header-bg: #242933;
  --success-color: #a3be8c;
}

/* Classic amber terminal (same palette as :root — selectable via theme-default) */
.theme-default {
  --bg-color: #141414;
  --text-color: #ff8c00;
  --text-dim: rgba(255, 140, 0, 0.7);
  --text-bright: #ffaa33;
  --text-highlight: #ffcc66;
  --text-error: #ff6b6b;
  --border-color: rgba(255, 140, 0, 0.3);
  --terminal-bg: #1a1a1a;
  --terminal-highlight: rgba(255, 140, 0, 0.1);
  --input-color: #ff8c00;
  --prompt-color: #ff8c00;
  --header-bg: #0f0f0f;
  --success-color: #98fb98;
}

/* Gruvbox dark — warm browns + yellow-green accent (distinct from other themes) */
.theme-gruvbox {
  --bg-color: #282828;
  --text-color: #ebdbb2;
  --text-dim: rgba(235, 219, 178, 0.65);
  --text-bright: #fabd2f;
  --text-highlight: #fe8019;
  --text-error: #fb4934;
  --border-color: rgba(250, 189, 47, 0.35);
  --terminal-bg: #3c3836;
  --terminal-highlight: rgba(184, 187, 38, 0.12);
  --input-color: #b8bb26;
  --prompt-color: #8ec07c;
  --header-bg: #1d2021;
  --success-color: #b8bb26;
}

html {
  height: 100%;
  background-color: #0e1419;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #0e1419;
  background-image:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(94, 129, 172, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(136, 192, 208, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(94, 129, 172, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #121a22 0%, #0a0e12 55%, #0b0f14 100%);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.terminal {
  width: 96vw;
  height: 92vh;
  max-width: 1100px;
  max-height: 900px;
  background-color: var(--bg-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
  transform-origin: center center;
  transform: rotateX(2deg);
  background-image: radial-gradient(
    circle at center,
    var(--terminal-bg) 0%,
    var(--bg-color) 90%
  );
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Static scanlines instead of animated */
.terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 2;
}

/* Simpler screen edge effect */
.terminal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--header-bg);
  padding: 8px 15px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 3;
}

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

.terminal-buttons > * {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot {
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.terminal-dot--close {
  animation: terminal-close-glow 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(255, 95, 86, 0);
  transform-origin: center center;
}

.terminal-dot__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #2a0505;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 1;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible;
  transform: scale(1);
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.terminal-dot--close:hover .terminal-dot__icon,
.terminal-dot--close:focus-visible .terminal-dot__icon,
.terminal-dot--close:focus .terminal-dot__icon,
.terminal-dot--close:active .terminal-dot__icon {
  opacity: 1 !important;
  visibility: visible;
  transform: scale(1.15);
  -webkit-text-stroke: 0.35px #2a0505;
}

@keyframes terminal-close-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 95, 86, 0), 0 0 8px rgba(255, 95, 86, 0.45);
    filter: brightness(1.02);
  }
  50% {
    transform: scale(1.28);
    box-shadow: 0 0 16px rgba(255, 95, 86, 0.9), 0 0 26px rgba(255, 95, 86, 0.55);
    filter: brightness(1.15);
  }
}

.close {
  background-color: #ff5f56;
}

.minimize {
  background-color: #ffbd2e;
}

.maximize {
  background-color: #27c93f;
}

.terminal-title {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

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

.theme-selector,
.language-selector {
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.theme-selector:hover,
.language-selector:hover {
  color: var(--text-bright);
}

.terminal-content {
  padding: 1.5rem;
  height: 100%;
  text-shadow: none;
  color: var(--text-color);
  overflow-y: auto;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.4;
  flex: 1;
}

/* Terminal output styling */
[id^="output"] {
  margin-bottom: 20px;
  white-space: pre-wrap;
  line-height: 1.4;
  overflow-y: visible;
}

[id^="output"] div {
  margin-bottom: 0.5rem;
}

[id^="output"] .command {
  color: var(--prompt-color);
  opacity: 0.8;
}

[id^="output"] .error {
  color: var(--text-error);
}

[id^="output"] .info {
  color: var(--text-color);
}

.input-line {
  display: block;
  position: relative;
}

.terminal-chat-input {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  backdrop-filter: blur(4px);
}

.chat-row {
  display: flex;
  margin-bottom: 0.75rem;
}

.chat-row--user {
  justify-content: flex-end;
}

.chat-row--assistant {
  justify-content: flex-start;
}

.chat-row--welcome {
  justify-content: center;
}

.chat-row--welcome .chat-bubble {
  max-width: min(96%, 980px);
  text-align: center;
}

.chatbot-logo {
  margin: 0;
  padding: 0.15rem 0;
  font-family: "Fira Code", "Courier New", Courier, monospace;
  font-size: clamp(0.34rem, 1.05vw, 0.82rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--text-bright) 88%, #ffb347);
  white-space: pre;
  text-align: center;
  text-shadow: 0 0 10px color-mix(in srgb, var(--text-bright) 35%, transparent);
}

.chat-bubble {
  max-width: min(90%, 860px);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border-color) 75%, transparent);
  padding: 0.78rem 0.95rem;
  line-height: 1.55;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-bubble:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--text-bright) 35%, var(--border-color));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.chat-bubble--user {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--terminal-highlight) 80%, transparent) 0%,
    color-mix(in srgb, var(--terminal-highlight) 55%, transparent) 100%
  );
  color: var(--text-highlight);
}

.chat-bubble--assistant {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--terminal-bg) 92%, transparent) 0%,
    color-mix(in srgb, var(--terminal-highlight) 35%, transparent) 100%
  );
  color: var(--text-color);
}

.terminal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--header-bg) 88%, transparent);
  position: relative;
  z-index: 3;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
}

.resume-link:hover {
  color: var(--text-bright);
}

.prompt {
  color: var(--prompt-color);
  font-weight: bold;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 3px;
  display: inline-flex;
  width: max-content;
  margin-bottom: 0;
  font-size: 1.1rem;
  font-family: "Fira Code", "Courier New", Courier, monospace;
  line-height: 1.4;
  pointer-events: none;
  user-select: none;
}

/* Command input styling for all terminals */
.command-input,
#command-input {
  background: none !important;
  border: none !important;
  color: var(--input-color) !important;
  font-size: 1.1rem !important;
  outline: none !important;
  width: 100% !important;
  text-shadow: none !important;
  font-family: "Fira Code", "Courier New", Courier, monospace !important;
}

textarea#command-input {
  resize: none !important;
  min-height: 1.55rem;
  max-height: 10.5rem;
  line-height: 1.4;
  overflow-y: hidden;
  white-space: pre-wrap;
  text-indent: var(--prompt-indent, 0px) !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  margin-left: 5px !important;
  position: relative;
  top: -10px;
}

#command-input::placeholder {
  color: color-mix(in srgb, var(--text-dim) 85%, #9fb4c9);
  opacity: 0.92;
}

.success {
  color: var(--success-color);
}

.error {
  color: var(--text-error);
}

.info {
  color: var(--text-color);
}

/* Mehedi Bot (askme) — Markdown-rendered replies */
[id^="output"] .askme-reply,
.askme-reply {
  margin: 0.5rem 0 0.85rem;
  line-height: 1.55;
  max-width: 100%;
}

.askme-bot-label {
  display: block;
  color: var(--prompt-color);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.askme-md {
  color: var(--text-color);
  font-size: 0.98rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.askme-md p {
  margin: 0.45rem 0;
}

.askme-md p:first-child {
  margin-top: 0;
}

.askme-md h2,
.askme-md h3,
.askme-md h4 {
  color: var(--text-bright);
  font-size: 1.05em;
  font-weight: 600;
  margin: 0.65rem 0 0.35rem;
  line-height: 1.35;
}

.askme-md h2:first-child,
.askme-md h3:first-child,
.askme-md h4:first-child {
  margin-top: 0;
}

.askme-md ul,
.askme-md ol {
  margin: 0.35rem 0 0.5rem 0;
  padding-left: 1.35rem;
}

.askme-md li {
  margin: 0.2rem 0;
}

.askme-md ul ul,
.askme-md ol ol,
.askme-md ul ol,
.askme-md ol ul {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.askme-md strong,
.askme-md b {
  color: var(--text-highlight);
  font-weight: 600;
}

.askme-md code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: var(--terminal-highlight);
  color: var(--text-bright);
}

.askme-md pre {
  margin: 0.5rem 0;
  padding: 0.6rem 0.75rem;
  overflow-x: auto;
  border-radius: 4px;
  background: var(--terminal-highlight);
  border: 1px solid var(--border-color);
}

.askme-md pre code {
  padding: 0;
  background: transparent;
}

.askme-md blockquote {
  margin: 0.5rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--border-color);
  color: var(--text-dim);
}

.askme-md a {
  color: var(--prompt-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Typewriter: human-like typing */
.askme-md.askme-typing {
  min-height: 1.2em;
}

.askme-md .askme-typed {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.askme-md .askme-cursor {
  display: inline-block;
  width: 0.55em;
  margin-left: 1px;
  color: var(--prompt-color);
  font-weight: 300;
  animation: askme-cursor-blink 0.95s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes askme-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Hide scrollbar but keep functionality */
.terminal-content::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.terminal-content::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Custom selection color */
::selection {
  background: rgba(255, 140, 0, 0.3);
  color: var(--text-highlight);
}

.terminal-split {
  display: flex;
  height: 100%;
  position: relative;
}

.terminal-left {
  border-right: 2px solid var(--border-color);
  min-width: 200px;
  resize: horizontal;
  overflow: auto;
}

.terminal-right {
  min-width: 200px;
  flex: 1;
}

.terminal-resizer {
  width: 2px;
  cursor: col-resize;
  background-color: var(--border-color);
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
}

.terminal-resizer:hover {
  background-color: var(--text-dim);
}

.terminal-container {
  height: calc(100% - 37px); /* Account for header height */
  position: relative;
}

.terminal-container.split-h {
  display: flex;
  flex-direction: row;
}

.terminal-container.split-v {
  display: flex;
  flex-direction: column;
}

.split-h > .terminal-content {
  width: 50%;
  border-right: 2px solid var(--border-color);
}

.split-h > .terminal-content:last-child {
  border-right: none;
}

.split-v > .terminal-content {
  height: 50%;
  min-height: 100px;
  border-bottom: 2px solid var(--border-color);
  overflow-y: auto;
}

.split-v > .terminal-content:last-child {
  border-bottom: none;
}

/* Nested Splits */
.terminal-container .terminal-container {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.split-h > .terminal-container {
  width: 50%;
  border-right: 2px solid var(--border-color);
}

.split-h > .terminal-container:last-child {
  border-right: none;
}

.split-v > .terminal-container {
  height: 50%;
  min-height: 100px;
  border-bottom: 2px solid var(--border-color);
}

.split-v > .terminal-container:last-child {
  border-bottom: none;
}

/* Context Menu */
.context-menu {
  display: none;
  position: fixed;
  background: var(--terminal-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 5px 0;
  min-width: 180px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.context-menu.active {
  display: block;
}

.menu-item {
  padding: 8px 15px;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item:hover {
  background-color: var(--terminal-highlight);
}

.menu-item[data-action="close-split"] {
  border-top: 1px solid var(--border-color);
}

/* Resize Handles */
.resize-handle {
  position: absolute;
  background-color: var(--border-color);
  z-index: 10;
  transition: background-color 0.2s ease;
}

.resize-handle:hover {
  background-color: var(--text-dim);
}

.resize-handle.horizontal {
  cursor: col-resize;
  width: 4px;
  top: 0;
  bottom: 0;
  right: -2px;
}

.resize-handle.vertical {
  cursor: row-resize;
  height: 4px;
  left: 0;
  right: 0;
  bottom: -2px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--terminal-bg);
  border-radius: 10px;
  padding: 25px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 80%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: var(--text-color);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.projects-modal-content,
.skills-modal-content {
  width: 90%;
  max-width: 1000px;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.close-button:hover {
  color: var(--text-bright);
}

.modal h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

/* Theme selector styles */
.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.theme-option:hover {
  transform: translateY(-5px);
}

.theme-preview {
  width: 100px;
  height: 70px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-option.active .theme-preview {
  border-color: var(--text-bright);
}

.default-theme {
  background-color: #141414;
  position: relative;
}

.default-theme::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, #ff8c00 100%);
  opacity: 0.3;
}

.dracula-theme {
  background-color: #282a36;
  position: relative;
}

.dracula-theme::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, #bd93f9 100%);
  opacity: 0.3;
}

.solarized-theme {
  background-color: #002b36;
  position: relative;
}

.solarized-theme::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, #2aa198 100%);
  opacity: 0.3;
}

.nord-theme {
  background-color: #2e3440;
  position: relative;
}

.nord-theme::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, #88c0d0 100%);
  opacity: 0.3;
}

.gruvbox-theme {
  background-color: #282828;
  position: relative;
}

.gruvbox-theme::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, #fabd2f 45%, #b8bb26 100%);
  opacity: 0.35;
}

/* Language selector styles */
.language-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.language-option {
  padding: 12px 20px;
  background-color: var(--terminal-highlight);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.language-option:hover {
  background-color: var(--border-color);
  transform: translateX(5px);
}

.language-option.active {
  background-color: var(--text-dim);
  color: var(--terminal-bg);
}

/* Projects showcase styles */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.project-details {
  padding: 15px;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-bright);
}

.project-description {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--text-dim);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tech-tag {
  padding: 5px 10px;
  background-color: var(--terminal-highlight);
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--text-color);
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.project-link {
  color: var(--text-bright);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

/* Skills visualization styles */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-category {
  margin-bottom: 20px;
}

.skill-category-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-bright);
}

.skill-bars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.skill-item {
  margin-bottom: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-name {
  color: var(--text-color);
}

.skill-level {
  color: var(--text-dim);
}

.skill-progress {
  height: 8px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background-color: var(--text-bright);
  border-radius: 4px;
  transition: width 1s ease;
}

/* Typing animation */
.typing {
  border-right: 2px solid var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--text-color);
  }
}

/* File explorer styles */
.file-explorer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.file-item:hover {
  background-color: var(--terminal-highlight);
}

.file-item i {
  color: var(--text-bright);
}

.file-name {
  color: var(--text-color);
}

.directory {
  color: var(--text-bright);
  font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .terminal {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    transform: none;
  }

  .terminal-header {
    border-radius: 0;
  }

  .theme-options,
  .projects-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }
}

/* Animation for welcome message */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in-up-delay-1 {
  animation: fadeInUp 0.5s ease forwards 0.2s;
  opacity: 0;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.5s ease forwards 0.4s;
  opacity: 0;
}

/* Easter egg game styles */
.game-container {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-instructions {
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

.game-instructions p {
  margin: 5px 0;
  line-height: 1.2;
}

#snake-game-score {
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-bright);
}

#snake-game-canvas {
  width: 400px;
  height: 300px;
  overflow: hidden;
}

#snake-game-canvas canvas {
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* PDF resume styles */
.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--text-bright);
  color: var(--terminal-bg);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-weight: 500;
  margin-top: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.download-button:hover {
  background-color: var(--text-highlight);
  transform: translateY(-2px);
}

/* Matrix effect styles */
.matrix-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#matrix-canvas {
  width: 100%;
  height: 300px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.matrix-instructions {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

/* Weather display styles */
.weather-container {
  width: 100%;
  max-width: 400px;
  margin: 15px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.weather-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.weather-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-color);
}

/* Calculator styles */
.calculation {
  margin: 10px 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border-left: 3px solid var(--text-bright);
}

.calculation-expression {
  margin-bottom: 5px;
  font-family: "Fira Code", monospace;
}

.calculation-result {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: "Fira Code", monospace;
}
