/* Landing page - Terminal theme */

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

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-terminal: #0d1117;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-green: #3fb950;
  --accent-blue: #58a6ff;
  --accent-purple: #a371f7;
  --accent-orange: #d29922;
  --accent-red: #f85149;
  --accent-cyan: #39c5cf;
}

body {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(63, 185, 80, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(88, 166, 255, 0.03) 0%, transparent 50%);
}

/* Terminal window */
.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  box-shadow:
    0 16px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.terminal-header {
  background: var(--bg-secondary);
  padding: 10px 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

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

.terminal-btn.close {
  background: var(--accent-red);
}
.terminal-btn.minimize {
  background: var(--accent-orange);
}
.terminal-btn.maximize {
  background: var(--accent-green);
}

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

.terminal-body {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Syntax colors */
.prompt {
  color: var(--accent-green);
}

.command {
  color: var(--accent-cyan);
}

.comment {
  color: var(--text-muted);
}

.string {
  color: var(--accent-orange);
}

.variable {
  color: var(--accent-purple);
}

/* Content */
.line {
  margin-bottom: 4px;
  line-height: 1.5;
}

/* Clickable history commands */
.history-cmd {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: -6px;
  transition: background-color 0.15s ease;
}

.history-cmd:hover {
  background-color: var(--bg-secondary);
}

.output {
  margin-left: 0;
  margin-bottom: 10px;
}

.output p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 2px;
}

.role {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.link:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
}

.link i {
  width: 20px;
  min-width: 20px;
  text-align: center;
  font-size: 1rem;
}

.link-linkedin i {
  color: #0a66c2;
}
.link-github i {
  color: var(--text-primary);
}
.link-gitlab i {
  color: #fc6d26;
}
.link-resume i {
  color: var(--accent-green);
}
.link-pdf i {
  color: var(--accent-red);
}

.link-text {
  flex: 1;
}

.link-arrow {
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.link:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Cursor animation */
.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent-green);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

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

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* Interactive input */
.input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: inherit;
  caret-color: var(--accent-green);
}

.command-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Command output */
.command-output {
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Error text */
.error {
  color: var(--accent-red);
}

/* Accent colors for JS */
.accent-blue {
  color: var(--accent-blue);
}

/* Matrix mode easter egg */
.matrix-mode {
  animation: matrix 0.1s infinite;
}

@keyframes matrix {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(90deg) brightness(1.2);
  }
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

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

/* Footer */
.footer {
  text-align: center;
  margin-top: 16px;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Mobile responsive */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .terminal-body {
    padding: 16px;
  }

  .name {
    font-size: 1.25rem;
  }

  .link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
