:root {
  --neon-green: #00ff88;
  --neon-cyan: #00eeff;
  --neon-pink: #ff00aa;
  --neon-yellow: #ffee00;
  --neon-blue: #004cff;
  --dark-bg: #0a0a0f;
  --dark-surface: #111118;
  --dark-card: #16161f;
  --pixel-border: #2a2a3a;
  --text-dim: #4a4a6a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark-bg);
  color: var(--neon-green);
  font-family: "Share Tech Mono", monospace;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  width: 16px;
  height: 16px;
  background: var(--neon-green);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  image-rendering: pixelated;
  transition: background 0.1s;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 60%, 60% 100%, 0 100%);
}

/* ── SCANLINES + GRID ── */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 100;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── BLINK ── */
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  display: inline-block;
  margin-right: 8px;
  animation: blink 1s step-end infinite;
}

/* ── FLOAT ── */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid var(--pixel-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--neon-green);
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--neon-green);
}

.nav-logo span {
  color: var(--neon-pink);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::before {
  content: "> ";
  color: var(--neon-cyan);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  color: var(--neon-cyan);
}

.nav-links a:hover::before {
  opacity: 1;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 4rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  font-size: 12px;
  color: var(--neon-cyan);
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--neon-cyan);
}

.hero-title {
  font-family: "Press Start 2P", monospace;
  font-size: 28px;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow:
    3px 3px 0 var(--neon-green),
    6px 6px 0 rgba(0, 255, 136, 0.2);
}

.hero-title .accent {
  color: var(--neon-green);
}

.hero-title .accent2 {
  color: var(--neon-pink);
}

.hero-subtitle {
  font-family: "VT323", monospace;
  font-size: 26px;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* terminal inline */
.terminal-inline {
  background: var(--dark-surface);
  border: 1px solid var(--pixel-border);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 13px;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.terminal-line .prompt {
  color: var(--neon-pink);
}

.terminal-line .cmd {
  color: var(--neon-cyan);
}

.terminal-line .arg {
  color: var(--neon-yellow);
}

.terminal-line .out {
  color: #ccc;
  margin-left: 1rem;
}

/* buttons */
.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-pixel {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
  text-decoration: none;
  display: inline-block;
}

.btn-pixel:active {
  transform: translate(3px, 3px) !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--neon-green);
  color: var(--dark-bg);
  box-shadow:
    4px 4px 0 #006633,
    8px 8px 0 rgba(0, 255, 136, 0.15);
}

.btn-primary:hover {
  box-shadow: 2px 2px 0 #006633;
  transform: translate(2px, 2px);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  box-shadow: 4px 4px 0 #006688;
}

.btn-secondary:hover {
  box-shadow: 2px 2px 0 #006688;
  transform: translate(2px, 2px);
}

/* sprite */
.sprite-wrap {
  position: absolute;
  right: 6rem;
  top: 50%;
  transform: translateY(-50%);
  animation: float 3s ease-in-out infinite;
}

/* ── SECTIONS ── */
section {
  padding: 5rem 4rem;
}

.section-header {
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  color: var(--neon-pink);
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-pink), transparent);
}

.section-title {
  font-family: "Press Start 2P", monospace;
  font-size: 20px;
  color: #fff;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 0 rgba(255, 0, 170, 0.3);
}

/* ── STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}

.stat-block {
  background: var(--dark-card);
  border: 1px solid var(--pixel-border);
  padding: 1.25rem;
  text-align: center;
  position: relative;
}

.stat-block::after {
  content: attr(data-corner);
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 9px;
  color: var(--pixel-border);
  font-family: "Press Start 2P", monospace;
}

.stat-num {
  font-family: "Press Start 2P", monospace;
  font-size: 22px;
  color: var(--neon-green);
  display: block;
  text-shadow: 0 0 20px var(--neon-green);
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 0.5rem;
  display: block;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-chip {
  background: var(--dark-card);
  border: 1px solid var(--pixel-border);
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.skill-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent, var(--neon-green));
}

.skill-chip:hover {
  border-color: var(--accent, var(--neon-green));
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.1);
}

.skill-pct {
  margin-left: auto;
  font-size: 13px;
  color: var(--accent, var(--neon-green));
}

.skills-category {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* ── EXPERIENCE TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--neon-green),
    var(--neon-pink),
    transparent
  );
}

.tl-item {
  position: relative;
  margin-bottom: 2rem;
  background: var(--dark-card);
  border: 1px solid var(--pixel-border);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

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

.tl-item::before {
  content: "■";
  position: absolute;
  left: -2.6rem;
  color: var(--neon-green);
  font-size: 14px;
  top: 1.2rem;
}

.tl-date {
  font-size: 11px;
  color: var(--neon-cyan);
  font-family: "Press Start 2P", monospace;
  margin-bottom: 0.5rem;
}

.tl-role {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.tl-company {
  font-size: 13px;
  color: var(--neon-pink);
  margin-bottom: 0.75rem;
}

.tl-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--dark-card);
  border: 1px solid var(--pixel-border);
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
  position: relative;
}

.project-card:hover {
  border-color: var(--neon-cyan);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--neon-cyan);
}

.project-thumb {
  height: 160px;
  background: var(--dark-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(0.85) brightness(0.8);
  transition:
    filter 0.3s,
    transform 0.4s;
}

.project-card:hover .project-img {
  filter: saturate(1) brightness(0.95);
  transform: scale(1.04);
}

.project-thumb.no-img {
  background: linear-gradient(135deg, #0a0a2e, #001a33);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb.no-img::after {
  content: "[ NO PREVIEW ]";
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--text-dim);
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(0, 238, 255, 0.03) 4px,
    rgba(0, 238, 255, 0.03) 8px
  );
}

.project-tag-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 9px;
  font-family: "Press Start 2P", monospace;
  padding: 3px 7px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid var(--tag-color, var(--neon-cyan));
  color: var(--tag-color, var(--neon-cyan));
  letter-spacing: 0.5px;
}

.project-body {
  padding: 1.25rem;
}

.project-name {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.project-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  font-size: 10px;
  font-family: "Press Start 2P", monospace;
  color: var(--neon-green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.unavailable {
  color: rgb(255, 40, 40);
  cursor: not-allowed;
}

.project-link:hover {
  color: var(--neon-cyan);
}

.project-link::before {
  content: "→ ";
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dark-card);
  border: 1px solid var(--pixel-border);
  text-decoration: none;
  font-size: 13px;
  color: var(--neon-cyan);
  transition:
    border-color 0.2s,
    transform 0.1s;
}

.contact-item:hover {
  border-color: var(--neon-cyan);
  transform: translateX(4px);
}

.contact-item .ci-icon {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--neon-pink);
  min-width: 28px;
}

/* terminal form */
.terminal-form {
  background: var(--dark-surface);
  border: 1px solid var(--pixel-border);
  overflow: hidden;
}

.terminal-bar {
  background: var(--pixel-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.t-dot {
  width: 10px;
  height: 10px;
}

.t-dot.r {
  background: #ff5f57;
}

.t-dot.y {
  background: #febc2e;
}

.t-dot.g {
  background: #28c840;
}

.terminal-form-body {
  padding: 1.25rem;
}

.t-field {
  margin-bottom: 1rem;
}

.t-label {
  display: block;
  font-size: 12px;
  color: var(--neon-pink);
  margin-bottom: 4px;
}

.t-label::before {
  content: "$ ";
  color: var(--neon-green);
}

.t-input {
  width: 100%;
  background: var(--dark-bg);
  border: 1px solid var(--pixel-border);
  padding: 10px 12px;
  color: var(--neon-green);
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.t-input:focus {
  border-color: var(--neon-green);
}

.t-input::placeholder {
  color: var(--text-dim);
}

textarea.t-input {
  resize: vertical;
  min-height: 90px;
}

.t-submit {
  width: 100%;
  background: var(--neon-green);
  color: var(--dark-bg);
  border: none;
  padding: 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 #006633;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

.t-submit:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #006633;
}

.t-submit:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--pixel-border);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

footer .heart {
  color: var(--neon-pink);
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .sprite-wrap {
    display: none;
  }

  .hero {
    padding: 80px 1.5rem 3rem;
  }

  .hero-title {
    font-size: 20px;
  }

  section {
    padding: 3rem 1.5rem;
  }

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

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }
}