/* ============================================
   TERMINAL PORTFOLIO — STYLE
   Pixel-perfect clone of vladburca.com design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #1a1b2e;
  --bg-terminal: #1c2030;
  --bg-titlebar: #161725;
  --accent: #c8956c;
  --accent-dim: #a07050;
  --text-primary: #c5c8d4;
  --text-secondary: #7a7e8f;
  --text-muted: #4a4e5f;
  --border-color: #2d3048;
  --border-dashed: #3a3d55;
  --dot-red: #ff5f56;
  --dot-yellow: #ffbd2e;
  --dot-green: #27c93f;
  --font-mono: 'Courier New', 'Courier', 'Lucida Console', monospace;
  --font-pixel: 'Press Start 2P', monospace;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

/* --- Background Atmosphere --- */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(120, 50, 100, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(50, 70, 140, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(90, 40, 80, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 10%, rgba(40, 50, 120, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* --- Terminal Window --- */
.terminal-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 90vh;
  box-shadow:
    0 0 100px rgba(80, 40, 120, 0.10),
    0 25px 70px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              min-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-radius 0.3s ease;
}

/* Maximized State */
.terminal-window.maximized {
  max-width: 100%;
  min-height: 100vh;
  border-radius: 0;
  border: none;
}

/* Minimized State */
.terminal-window.minimized {
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
}

.terminal-window.minimized .main-content,
.terminal-window.minimized .pixel-name,
.terminal-window.minimized .system-message,
.terminal-window.minimized .input-bar {
  display: none;
}

/* --- Title Bar --- */
.title-bar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: var(--bg-titlebar);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dot:hover {
  opacity: 0.8;
  transform: scale(1.15);
}

.dot:active {
  transform: scale(0.9);
}

.dot-red { background: var(--dot-red); }
.dot-yellow { background: var(--dot-yellow); }
.dot-green { background: var(--dot-green); }

.title-text {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.title-spacer {
  width: 55px;
}

/* --- Pixel Name Header --- */
.pixel-name {
  font-family: var(--font-pixel);
  color: var(--accent);
  font-size: 32px;
  padding: 32px 30px 28px;
  line-height: 1.3;
  letter-spacing: 3px;
  word-spacing: 10px;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* --- Dashboard --- */
.dashboard {
  padding: 20px 24px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px dashed var(--border-dashed);
  min-height: 100%;
}

/* --- Left Panel --- */
.left-panel {
  padding: 24px 22px;
  border-right: 1px dashed var(--border-dashed);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.greeting {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  font-weight: bold;
}

.ascii-portrait {
  width: 100%;
  max-width: 280px;
  margin-bottom: 18px;
}

.ascii-portrait img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

.profile-info {
  margin-top: 4px;
}

.profile-name {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: normal;
}

.profile-title {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.5;
}

.profile-location {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.profile-email {
  font-size: 11px;
  color: var(--text-secondary);
}

/* --- Right Panel --- */
.right-panel {
  display: flex;
  flex-direction: column;
}

.section-block {
  padding: 20px 22px 18px;
}

.section-block + .section-block {
  border-top: 1px dashed var(--border-dashed);
}

.section-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* --- Capabilities --- */
.capabilities-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cap-row {
  display: flex;
  gap: 20px;
  font-size: 13px;
  line-height: 1.7;
}

.cap-label {
  color: var(--text-primary);
  min-width: 70px;
  flex-shrink: 0;
}

.cap-value {
  color: var(--text-secondary);
}

/* --- Navigation --- */
.nav-commands {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-cmd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.15s ease;
  cursor: pointer;
  display: inline-block;
}

.nav-cmd:hover {
  color: var(--accent);
}

.nav-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.8;
}

/* --- Rotating Hints --- */
.rotating-hints {
  padding: 14px 22px;
  border-top: 1px dashed var(--border-dashed);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.hint-text {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  transition: opacity 0.4s ease;
}

/* --- Terminal Output --- */
.terminal-output {
  padding: 24px 28px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
  min-height: 300px;
}

.terminal-output .output-block {
  margin-bottom: 20px;
}

.terminal-output .cmd-echo {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 12px;
  opacity: 0.5;
}

.terminal-output .section-heading {
  color: var(--accent);
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 12px;
  margin-top: 20px;
}

.terminal-output .section-heading:first-of-type {
  margin-top: 0;
}

.terminal-output p {
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.7;
}

.terminal-output .text-muted {
  color: var(--text-secondary);
}

.terminal-output .text-accent {
  color: var(--accent);
}

.terminal-output ul {
  list-style: none;
  padding-left: 0;
}

.terminal-output ul li {
  padding: 3px 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.terminal-output ul li::before {
  content: '→ ';
  color: var(--accent);
  margin-right: 4px;
}

.terminal-output a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 149, 108, 0.3);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.terminal-output a:hover {
  border-color: var(--accent);
  opacity: 0.85;
}

.terminal-output .project-item {
  margin-bottom: 16px;
  padding-left: 0;
}

.terminal-output .project-name {
  color: var(--accent);
  font-weight: bold;
  font-size: 13px;
}

.terminal-output .project-desc {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.6;
}

.terminal-output .project-tech {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 3px;
}

.terminal-output table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.terminal-output table th {
  text-align: left;
  color: var(--accent);
  font-weight: bold;
  font-size: 12px;
  padding: 8px 16px 8px 0;
  border-bottom: 1px dashed var(--border-dashed);
}

.terminal-output table td {
  padding: 8px 16px 8px 0;
  font-size: 12px;
  color: var(--text-primary);
  border-bottom: 1px dashed rgba(58, 61, 85, 0.4);
}

.terminal-output .experience-item {
  margin-bottom: 18px;
}

.terminal-output .exp-role {
  color: var(--accent);
  font-weight: bold;
  font-size: 13px;
}

.terminal-output .exp-company {
  color: var(--text-primary);
  font-size: 12px;
  margin-top: 2px;
}

.terminal-output .exp-period {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.terminal-output .skill-category {
  margin-bottom: 14px;
}

.terminal-output .skill-label {
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 4px;
  font-weight: bold;
}

.terminal-output .skill-items {
  color: var(--text-secondary);
  font-size: 12px;
  padding-left: 18px;
}

.terminal-output .social-link {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.terminal-output .help-cmd {
  display: flex;
  gap: 16px;
  margin-bottom: 5px;
  font-size: 13px;
}

.terminal-output .help-cmd-name {
  color: var(--accent);
  min-width: 150px;
}

.terminal-output .help-cmd-desc {
  color: var(--text-secondary);
}

/* Back button hint */
.terminal-output .back-hint {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* Scanning animation */
.scanning-text {
  color: var(--accent);
  font-size: 13px;
  padding: 24px 28px;
  animation: scanPulse 0.6s ease infinite;
}

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

/* --- System Message (cookie-like bar) --- */
.system-message {
  padding: 14px 24px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.system-message .sys-label {
  color: var(--accent);
}

.system-message .sys-tagline {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* --- Input Bar --- */
.input-bar {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-titlebar);
  flex-shrink: 0;
  gap: 10px;
  min-height: 48px;
}

.prompt {
  color: var(--accent);
  font-size: 15px;
  font-weight: bold;
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  caret-color: transparent;
}

.terminal-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.cursor-blink {
  color: var(--text-primary);
  font-size: 14px;
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}

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

/* --- Scrollbar --- */
.main-content::-webkit-scrollbar {
  width: 6px;
}

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

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

.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-dashed);
}

/* --- Selection --- */
::selection {
  background: var(--accent);
  color: var(--bg-dark);
}

/* --- Responsive --- */
@media (max-width: 700px) {
  body {
    padding: 0;
    align-items: flex-start;
  }

  .terminal-window {
    border-radius: 0;
    min-height: 100vh;
    border: none;
  }

  .pixel-name {
    font-size: 16px;
    padding: 20px 16px 18px;
    letter-spacing: 1px;
    word-spacing: 4px;
  }

  .dashboard {
    padding: 12px 12px 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .left-panel {
    border-right: none;
    border-bottom: 1px dashed var(--border-dashed);
    padding: 18px 16px;
  }

  .ascii-portrait {
    max-width: 200px;
  }

  .section-block {
    padding: 16px 14px 14px;
  }

  .terminal-output {
    padding: 16px 14px;
  }

  .cap-row {
    flex-direction: column;
    gap: 2px;
  }
}

/* --- Easter egg glow --- */
.easter-egg-glow {
  text-shadow: 0 0 12px var(--accent), 0 0 40px rgba(200, 149, 108, 0.25);
}
