:root {
  --amber: #FFB300;
  --amber-dim: #CC8800;
  --amber-bright: #FFD54F;
  --amber-glow: rgba(255,179,0,0.15);
  --amber-glow2: rgba(255,179,0,0.06);
  --black: #000;
  --mid: #080808;
  --green: #00FF88;
  --red: #FF2244;
  --blue: #8ab4ff;
  --blue-dim: #5a84cf;
}

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

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--amber-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,179,0,.5) #000; }

/* ── Body & atmosphere ─────────────────────────────────── */
body {
  background: #000;
  color: var(--amber);
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  z-index: 997;
}

/* Noise grain */
body::after {
  content: "";
  position: fixed;
  inset: 0%;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .25;
  pointer-events: none;
  z-index: 996;
}

body::before, body::after, .crt-overlay, .vignette {
  will-change: transform;
  transform: translateZ(0);
}

/* CRT glow overlay */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background:
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.55) 100%);
}

/* Vignette */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 995;
  box-shadow: inset 0 0 120px rgba(255,179,0,0.04);
}

/* ── Header ────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid rgba(255,179,0,0.18);
  background: rgba(0,0,0,0.85);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 6px;
  font-size: 1rem;
  text-shadow: 0 0 20px var(--amber), 0 0 40px rgba(255,179,0,0.3);
  animation: flicker 8s infinite;
}

.logo-bracket {
  color: var(--amber-dim);
  font-weight: 400;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.small {
  width: 5px;
  height: 5px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 110px 48px 90px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,179,0,0.3), transparent);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--amber-dim);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 0 20px var(--amber),
    0 0 60px rgba(255,179,0,0.25);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
  letter-spacing: 2px;
}

.hero-sub {
  margin-top: 28px;
  max-width: 520px;
  color: var(--amber-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.8s forwards;
}

.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease 1s forwards;
}

.meta-tag {
  font-size: 0.7rem;
  color: rgba(255,179,0,0.35);
  letter-spacing: 1px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid rgba(255,179,0,0.5);
  color: var(--amber);
  background: transparent;
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: translateX(-101%);
  transition: transform 0.18s ease;
  z-index: -1;
}

.btn:hover {
  color: #000;
  border-color: var(--amber);
  text-shadow: none;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-icon {
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.2);
}

#email-btn.copied {
  color: #000;
  border-color: var(--green);
  background: var(--green);
}

/* ── Section layout ────────────────────────────────────── */
section {
  padding: 80px 48px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.title-num {
  font-size: 0.7rem;
  color: rgba(255,179,0,0.35);
  letter-spacing: 2px;
}

/* ── Terminal shell ────────────────────────────────────── */
.terminal {
  background: #030303;
  border: 1px solid rgba(255,179,0,0.2);
  max-width: 780px;
  box-shadow:
    0 0 0 1px rgba(255,179,0,0.05),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,179,0,0.08);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: rgba(255,179,0,0.04);
  border-bottom: 1px solid rgba(255,179,0,0.12);
}

.tb-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tb-red    { background: #FF5F57; }
.tb-yellow { background: #FFBD2E; }
.tb-green  { background: #28C840; }

.tb-title {
  font-size: 0.7rem;
  color: rgba(255,179,0,0.3);
  letter-spacing: 1px;
  margin-left: 6px;
}

.terminal-body {
  padding: 24px 24px 18px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
}

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

.prompt {
  color: var(--green);
  margin-right: 2px;
  flex-shrink: 0;
}

.cmd {
  color: rgba(255,179,0,0.7);
  letter-spacing: 0.5px;
}

/* ── Status grid ───────────────────────────────────────── */
.status-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 20px 18px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-name {
  color: rgba(255,179,0,0.6);
  font-size: 1rem;
}

.status-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  padding: 1px 6px;
  border: 1px solid;
  letter-spacing: 1px;
  min-width: 44px;
  text-align: center;
}

.badge-ok     { color: var(--green);  border-color: rgba(0,255,136,0.4);  }
.badge-wip    { color: var(--amber);  border-color: rgba(255,179,0,0.4);  }
.badge-next   { color: var(--blue);   border-color: rgba(138,180,255,0.4); }
.badge-idea   { color: #FFD54F;       border-color: rgba(255,213,79,0.4); }
.badge-cancel { color: var(--red);    border-color: rgba(255,34,68,0.4);  }

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,179,0,0.15), transparent);
  margin: 20px 0;
}

/* ── Project cards ─────────────────────────────────────── */
.project-card {
  margin: 0 0 28px 18px;
  padding: 16px 18px;
  border-left: 2px solid rgba(255,179,0,0.2);
  background: rgba(255,179,0,0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: rgba(255,179,0,0.5);
  background: rgba(255,179,0,0.04);
}

.project-card.cancelled {
  border-color: rgba(255,34,68,0.2);
  opacity: 0.65;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.project-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-bright);
  letter-spacing: 1px;
}

.project-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  padding: 1px 6px;
  border: 1px solid;
  letter-spacing: 1px;
}

.badge-ok-inline     { color: var(--green);  border-color: rgba(0,255,136,0.35); }
.badge-wip-inline    { color: var(--amber);  border-color: rgba(255,179,0,0.4);  }
.badge-next-inline   { color: var(--blue);   border-color: rgba(138,180,255,0.35); }
.badge-idea-inline   { color: #FFD54F;       border-color: rgba(255,213,79,0.35); }
.badge-cancel-inline { color: var(--red);    border-color: rgba(255,34,68,0.35); }

.honor-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  color: #FFD54F;
  letter-spacing: 1px;
}

.project-stack {
  font-size: 0.75rem;
  color: rgba(255,179,0,0.35);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-family: 'Share Tech Mono', monospace;
}

.project-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,179,0,0.55);
  line-height: 1.7;
  margin-bottom: 12px;
}

.project-link {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,179,0,0.45);
  text-decoration: none;
  transition: color 0.15s ease;
  margin-top: 5px;
}

.project-link:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-link.muted {
  color: rgba(255,179,0,0.2);
  cursor: default;
}

.tag-ptbr {
  font-size: 0.58rem;
  padding: 1px 5px;
  border: 1px solid rgba(255,179,0,0.25);
  color: rgba(255,179,0,0.35);
  vertical-align: middle;
}

/* ── Cursor ────────────────────────────────────────────── */
.cursor-line {
  margin-top: 8px;
  margin-bottom: 0;
}

.cursor-block {
  animation: blink 1.1s step-end infinite;
  color: var(--amber);
}

/* ── About ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 0 0 24px 18px;
  padding: 16px 18px;
  border-left: 2px solid rgba(255,179,0,0.2);
  background: rgba(255,179,0,0.02);
}

.bio-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  color: rgba(255,179,0,0.55);
  line-height: 1.9;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,179,0,0.4);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: rgba(255,179,0,0.5);
  padding-left: 10px;
  border-left: 1px solid rgba(255,179,0,0.2);
}

.detail-item::before {
  content: "— ";
  color: rgba(255,179,0,0.25);
}

.focus-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  text-shadow: 0 0 12px rgba(255,179,0,0.4);
  letter-spacing: 3px;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  padding: 28px 48px;
  border-top: 1px solid rgba(255,179,0,0.12);
  background: rgba(0,0,0,0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: rgba(255,179,0,0.25);
  letter-spacing: 4px;
}

.footer-copy {
  font-size: 0.65rem;
  color: rgba(255,179,0,0.25);
  letter-spacing: 1px;
}

.footer-uptime {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  color: rgba(0,255,136,0.4);
  letter-spacing: 1.5px;
}

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

.blink-slow { animation: blink-slow 1.8s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50%       { box-shadow: 0 0 14px var(--green), 0 0 24px rgba(0,255,136,0.3); }
}

@keyframes flicker {
  0%, 95%, 100%  { opacity: 1; }
  96%             { opacity: 0.85; }
  97%             { opacity: 1; }
  98%             { opacity: 0.7; }
  99%             { opacity: 1; }
}

/* ── t-* color helpers ─────────────────────────────────── */
.t-green { color: var(--green); }
.t-red   { color: var(--red); }
.t-dim   { color: rgba(255,179,0,0.55); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 700px) {
  header { padding: 20px 24px; }
  .hero  { padding: 70px 24px 60px; }
  section { padding: 60px 24px; }
  footer { padding: 24px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}