:root {
  --bg:        #0a0c0f;
  --bg2:       #0f1218;
  --bg3:       #141820;
  --border:    #1e2530;
  --dim:       #3d4f63;
  --muted:     #7a9ab5;
  --subtle:    #9db5c8;
  --text:      #c8d4e0;
  --bright:    #e8f0f8;
  --accent:    #00d4aa;
  --accent2:   #0099cc;
  --accent3:   #ff6b35;
  --gold:      #c9a84c;
  --red:       #e05252;
  --glow:      rgba(0, 212, 170, 0.15);
  --glow2:     rgba(0, 153, 204, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inconsolata', monospace;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

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

.nav-logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

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

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

.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: var(--border);
  background: var(--bg3);
}

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 16px;
  border-radius: 2px;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(var(--border) 1px, transparent 1px),
          linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,170,0.06) 0%, transparent 70%);
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-prompt {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease both;
}

.cursor-blink {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

.hero-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--bright);
  animation: slideUp 0.6s ease 0.1s both;
}

.hero-name .accent-line {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0,212,170,0.4);
}

.hero-tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--accent2);
  margin-top: 1.2rem;
  letter-spacing: 0.1em;
  animation: slideUp 0.6s ease 0.2s both;
}

.hero-tagline::before { content: '// '; color: var(--muted); }

.hero-desc {
  max-width: 560px;
  color: var(--subtle);
  margin-top: 1.5rem;
  font-size: 14px;
  line-height: 1.8;
  animation: slideUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  animation: slideUp 0.6s ease 0.4s both;
}

.stat { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: slideUp 0.6s ease 0.5s both;
}

/* ── BUTTONS ── */
.btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.btn-primary:hover {
  background: #00f0c0;
  box-shadow: 0 0 20px rgba(0,212,170,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent2);
  border: 1px solid var(--accent2);
}

.btn-secondary:hover {
  background: rgba(0,153,204,0.1);
  box-shadow: 0 0 16px rgba(0,153,204,0.2);
}

/* ── SECTION BASE ── */
.section-container {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-index {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--bright);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--subtle);
  margin-bottom: 1.2rem;
  font-size: 14px;
  line-height: 1.85;
}

.about-text p strong { color: var(--text); }
.about-text p .hl { color: var(--accent); }

/* Character Sheet */
.char-sheet {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.char-sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.char-sheet-header {
  padding: 1rem 1.2rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: rgba(201,168,76,0.04);
}

.char-sheet-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.char-sheet-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bright);
  margin-top: 0.2rem;
}

.char-sheet-class {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 0.1rem;
}

.char-attrs {
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.attr { display: flex; flex-direction: column; gap: 0.1rem; }

.attr-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.attr-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.attr-bar {
  flex: 1;
  height: 4px;
  background: var(--dim);
  border-radius: 2px;
  overflow: hidden;
}

.attr-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 1s ease;
}

.attr-fill.blue   { background: var(--accent2); }
.attr-fill.gold   { background: var(--gold); }
.attr-fill.orange { background: var(--accent3); }
.attr-fill.green  { background: var(--accent); }

.attr-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text);
  min-width: 28px;
  text-align: right;
}

.char-traits {
  padding: 0.8rem 1.2rem 1rem;
  border-top: 1px solid var(--border);
}

.traits-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.trait-list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }

.trait-list li {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
}

.trait-list li::before { content: '◆ '; color: var(--gold); font-size: 8px; }

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

.skill-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skill-group:hover {
  border-color: var(--dim);
  box-shadow: 0 0 20px var(--glow2);
}

.skill-group::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.skill-group.blue::before   { background: var(--accent2); }
.skill-group.gold::before   { background: var(--gold); }
.skill-group.orange::before { background: var(--accent3); }
.skill-group.green::before  { background: var(--accent); }

.skill-group-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.skill-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  transition: all 0.15s;
}

.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROJECTS ── */
.projects-list { display: flex; flex-direction: column; gap: 1.2rem; }

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 1.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: var(--dim);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.project-card:hover::after { opacity: 1; }

.project-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--bright);
  letter-spacing: 0.03em;
}

.project-ecosystem {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-top: 0.1rem;
}

.project-desc {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.75;
  margin-top: 0.6rem;
}

.project-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.9rem; }

.stack-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--accent2);
  background: rgba(0,153,204,0.08);
  border: 1px solid rgba(0,153,204,0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.project-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  white-space: nowrap;
  align-self: flex-start;
}

.status-active {
  color: var(--accent);
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
}

.status-wip {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
}

/* ── RESUME ── */
.resume-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.resume-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.resume-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.resume-card.tech::before    { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.resume-card.general::before { background: linear-gradient(90deg, var(--gold), var(--accent3)); }

.resume-card:hover {
  border-color: var(--dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.resume-card-icon { font-size: 28px; margin-bottom: 0.8rem; display: block; }

.resume-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--bright);
  letter-spacing: 0.05em;
}

.resume-card-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.6;
}

.resume-card-highlights {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.resume-card-highlights li { font-size: 12px; color: var(--text); }

.resume-card-highlights li::before {
  content: '→ ';
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
}

.resume-download-btn {
  margin-top: 1.5rem;
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  transition: all 0.2s;
}

.resume-card.tech .resume-download-btn    { background: var(--accent); }
.resume-card.general .resume-download-btn { background: var(--gold); }

.resume-card.tech .resume-download-btn:hover {
  background: #00f0c0;
  box-shadow: 0 0 16px rgba(0,212,170,0.4);
}

.resume-card.general .resume-download-btn:hover {
  background: #e0be5c;
  box-shadow: 0 0 16px rgba(201,168,76,0.4);
}

.resume-note {
  margin-top: 1.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 2px;
  line-height: 1.8;
}

.resume-note-comment { color: var(--muted); display: block; margin-bottom: 0.25rem; }

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

.contact-intro {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--subtle);
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg2);
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,170,0.04);
}

.contact-link-icon { font-size: 16px; min-width: 20px; text-align: center; }

/* Contact Form */
.contact-form-wrap { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }

.form-group label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--dim); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,212,170,0.08);
}

.form-submit { align-self: flex-start; margin-top: 0.3rem; }

/* Availability card */
.contact-availability {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.contact-availability::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.avail-header {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.avail-status { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }

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

.avail-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--bright);
}

.avail-detail { font-size: 12px; color: var(--subtle); line-height: 1.7; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
}

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

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  background: var(--bg2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
  z-index: 1000;
}

.toast.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink   { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse   { 0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); } 50% { opacity: 0.5; box-shadow: 0 0 2px var(--accent); } }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid       { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .resume-cards     { grid-template-columns: 1fr; }
  .hero-stats       { flex-wrap: wrap; gap: 1.5rem; }
  .form-row         { grid-template-columns: 1fr; }
  .nav-links        { display: none; }
  .nav-hamburger    { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 52px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
  }
}