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

:root {
  --bg: #0b0c10;
  --green: #39ff14;
  --green-dim: #1a8a0e;
  --green-glow: rgba(57, 255, 20, 0.15);
  --cyan: #0abdc6;
  --red: #ff003c;
  --amber: #ffb700;
  --grey: #4a4a4a;
  --font: 'Consolas', 'Courier New', 'Liberation Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--green);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--green-dim);
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scanline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(57, 255, 20, 0.02) 2px,
      rgba(57, 255, 20, 0.02) 4px);
  z-index: 9999;
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.12;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.terminal-block {
  border: 1px solid var(--green-dim);
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
  background: rgba(57, 255, 20, 0.02);
}

.terminal-block::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 16px;
  width: 120px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.section-label {
  position: absolute;
  top: -10px;
  left: 28px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: normal;
}

.cmd-line {
  color: var(--cyan);
  margin-bottom: 16px;
  font-size: 13px;
  opacity: 0.9;
}

.cmd-line .path {
  color: var(--amber);
}

.cmd-line .prompt {
  color: var(--green);
}

.blink-cursor::after {
  content: '█';
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.header-ascii {
  color: var(--green);
  font-size: 10px;
  line-height: 1.2;
  white-space: pre;
  overflow-x: auto;
  margin-bottom: 12px;
  text-shadow: 0 0 10px var(--green-glow);
}

.boot-log {
  font-size: 12px;
  color: var(--green-dim);
  margin-bottom: 6px;
}

.boot-log.ok {
  color: var(--green);
}

.boot-log .status {
  color: var(--green);
}

.boot-log .fail {
  color: var(--red);
}

.system-info {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4px 0;
  font-size: 14px;
  margin-top: 16px;
}

.system-info .key {
  color: var(--cyan);
  opacity: 0.85;
}

.system-info .val {
  color: var(--green);
}

.system-info .val a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px dashed var(--amber);
  transition: opacity 0.2s;
}

.system-info .val a:hover {
  opacity: 0.7;
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--green-dim);
  font-size: 13px;
}

.nav-bar a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-bar a:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.nav-bar a::before {
  content: '[';
  color: var(--green-dim);
}

.nav-bar a::after {
  content: ']';
  color: var(--green-dim);
}

.nav-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.language-switch {
  display: inline-flex;
  gap: 8px;
}

.language-switch a.is-active {
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255, 183, 0, 0.45);
}

#about p {
  margin-bottom: 10px;
  font-size: 14px;
}

.highlight {
  color: var(--cyan);
}

.accent {
  color: var(--amber);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--green-dim);
  color: var(--green);
  opacity: 0.8;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-category h3 {
  color: var(--cyan);
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  font-size: 13px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar {
  letter-spacing: -1px;
  font-size: 12px;
  flex-shrink: 0;
  min-width: 100px;
}

.bar .filled {
  color: var(--green);
}

.bar .empty {
  color: var(--grey);
}

.skill-name {
  color: var(--green);
  white-space: nowrap;
}

.timeline {
  list-style: none;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 28px;
  border-left: 1px solid var(--green-dim);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '>';
  position: absolute;
  left: -6px;
  top: 0;
  color: var(--green);
  font-weight: bold;
  background: var(--bg);
  font-size: 13px;
  line-height: 1;
}

.timeline-date {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 15px;
  color: var(--green);
  margin-bottom: 2px;
}

.timeline-company {
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.timeline-project {
  font-size: 12px;
  color: var(--green-dim);
  border-left: 2px solid var(--cyan);
  padding-left: 10px;
  margin-bottom: 10px;
  line-height: 1.6;
  opacity: 0.9;
}

.project-label {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--green-dim);
  line-height: 1.6;
}

.timeline-desc li {
  margin-bottom: 4px;
  list-style: none;
}

.timeline-desc li::before {
  content: '$ ';
  color: var(--green);
}

.timeline-tech {
  margin-top: 8px;
  font-size: 11px;
  color: var(--grey);
}

.timeline-tech span {
  color: var(--amber);
}

.timeline-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
  opacity: 0.8;
}

.timeline-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-card {
  border: 1px solid var(--green-dim);
  padding: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 16px var(--green-glow);
}

.project-card h3 {
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.project-card p {
  font-size: 12px;
  color: var(--green-dim);
  line-height: 1.6;
}

.project-card .project-stack {
  margin-top: 10px;
  font-size: 11px;
  color: var(--amber);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 10px 14px;
  border: 1px solid var(--green-dim);
  transition: border-color 0.3s;
}

.contact-item:hover {
  border-color: var(--cyan);
}

.contact-item .label {
  color: var(--cyan);
  min-width: 70px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item a {
  color: var(--green);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--amber);
}

.footer {
  text-align: center;
  padding: 28px 0 0;
  font-size: 11px;
  color: var(--green-dim);
  border-top: 1px dashed var(--green-dim);
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .wrapper {
    padding: 12px 14px 60px;
  }

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

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

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

  .system-info {
    grid-template-columns: 130px 1fr;
    font-size: 13px;
  }

  .header-ascii {
    font-size: 7px;
  }

  .bar {
    min-width: 80px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .header-ascii {
    font-size: 5.5px;
  }

  .system-info {
    grid-template-columns: 1fr;
  }

  .system-info .key {
    margin-top: 6px;
  }

  .skill-name {
    white-space: normal;
  }
}