@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=JetBrains+Mono:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ── Custom Properties ── */
:root {
  --bg:        #040608;
  --bg2:       #0a0f14;
  --bg3:       #060a0e;
  --text:      #c8eeff;
  --text-dim:  #4a7a99;
  --accent:    #00d4ff;
  --accent2:   #0066ff;
  --border:    rgba(0,170,255,0.2);
  --border-hi: #00d4ff;
  --glow:      0 0 8px rgba(0,212,255,0.3), 0 0 24px rgba(0,212,255,0.1);
  --glow-hi:   0 0 14px rgba(0,212,255,0.6), 0 0 40px rgba(0,212,255,0.2), 0 0 80px rgba(0,212,255,0.08);
  --text-glow: 0 0 20px rgba(0,212,255,0.6);
}

html.light {
  --bg:        #e8f4ff;
  --bg2:       #d0e8f8;
  --bg3:       #c0daf0;
  --text:      #001428;
  --text-dim:  #2a5580;
  --accent:    #0055aa;
  --accent2:   #003388;
  --border:    rgba(0,85,170,0.25);
  --border-hi: #0055aa;
  --glow:      0 0 8px rgba(0,85,170,0.2), 0 0 24px rgba(0,85,170,0.08);
  --glow-hi:   0 0 14px rgba(0,85,170,0.4), 0 0 40px rgba(0,85,170,0.15);
  --text-glow: 0 0 10px rgba(0,85,170,0.3);
}

html.light .nav-links a { color: #7dd4f0; }
html.light .nav-links a:hover { color: #00d4ff; }
html.light .nav-logo { color: #00d4ff; }
html.light .role-item:hover { background: #b8d8f0; box-shadow: inset 0 0 60px rgba(0,85,170,0.1); }

/* Light mode: grid same prominence as dark mode */
html.light body {
  background-image:
    linear-gradient(rgba(0,85,170,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,85,170,0.1) 1px, transparent 1px),
    linear-gradient(rgba(0,85,170,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,85,170,0.22) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}

/* Light mode: scanlines adapt */
html.light body::before {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,85,170,0.03) 3px,
    rgba(0,85,170,0.03) 4px
  );
}

/* Light mode: section-line */
html.light .section-line {
  background: linear-gradient(to right, var(--border-hi), transparent);
  box-shadow: 0 0 6px rgba(0,85,170,0.2);
}

/* Light mode: hero-prompt line */
html.light .hero-prompt::after {
  background: linear-gradient(to right, var(--border-hi), transparent);
  box-shadow: 0 0 6px rgba(0,85,170,0.2);
}

/* Light mode: tagline-chip + photo-chip glow */
html.light .tagline-chip {
  box-shadow: 0 -2px 16px rgba(0,85,170,0.15), inset 0 0 40px rgba(0,85,170,0.04);
}
html.light .photo-chip {
  background: #000d1a;
  border-color: var(--border-hi);
  box-shadow: 0 0 14px rgba(0,85,170,0.4), 0 0 40px rgba(0,85,170,0.15);
}

/* Light mode: skill-fill glow */
html.light .skill-fill {
  box-shadow: 0 0 8px rgba(0,85,170,0.4);
}

/* Light mode: boxes have no grid bleed — opaque bg */
html.light .chip,
html.light .role-item,
html.light .cert-item,
html.light .interest-tag,
html.light .contact-link,
html.light .tagline-chip,
html.light .photo-chip,
html.light .company-header,
html.light .roles-list {
  background-image: none;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Tron grid background ── */
body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
  min-height: 100vh;
  /* Fine grid + major grid = Tron arena floor */
  background-image:
    linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(rgba(0,200,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.11) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  transition: background-color 0.35s, color 0.35s;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,20,0.04) 3px,
    rgba(0,0,20,0.04) 4px
  );
  pointer-events: none;
  z-index: 9000;
}

/* ── Layout ── */
.container { max-width: 920px; margin: 0 auto; padding: 0 28px; }

/* ── Chip / Card ── */
.chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  padding: 24px 28px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chip-corner {
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.8;
}
.chip-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.chip-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.chip-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.chip-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.chip:hover { border-color: var(--border-hi); box-shadow: var(--glow-hi); }
.chip-sm { padding: 18px 20px; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,13,26,0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(0,212,255,0.1);
  padding: 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: var(--text-glow);
}
.nav-logo span { color: #fff; opacity: 0.5; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover { color: var(--accent); text-shadow: var(--text-glow); }

#theme-toggle {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 5px 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  text-shadow: var(--text-glow);
  box-shadow: var(--glow);
}
#theme-toggle:hover {
  background: var(--accent);
  color: var(--bg);
  text-shadow: none;
  box-shadow: var(--glow-hi);
}

/* ── Hero ── */
#hero { padding: 130px 0 80px; }

.hero-prompt {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 1.6vw, 13px);
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-shadow: var(--text-glow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-prompt::before { content: '$ '; color: var(--accent2); }
.hero-prompt::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(to right, var(--border-hi), transparent);
  box-shadow: 0 0 6px rgba(0,212,255,0.3);
}

h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 4vw, 34px);
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 10px;
  text-shadow: var(--text-glow), 0 0 60px rgba(0,212,255,0.3);
}

.hero-title-line2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 1.6vw, 13px);
  color: var(--accent2);
  margin-bottom: 32px;
  line-height: 1.7;
  text-shadow: 0 0 16px rgba(0,102,255,0.5);
}

.cursor {
  display: inline-block;
  width: 10px; height: 22px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
  box-shadow: var(--glow);
}
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0 } }

.tagline-chip {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 24px 28px;
  margin-bottom: 44px;
  box-shadow: 0 -2px 16px rgba(0,212,255,0.15), inset 0 0 40px rgba(0,212,255,0.03);
}
.tagline {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
}
.tagline strong { color: var(--accent); }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 12px 24px;
  text-decoration: none;
  letter-spacing: 1.5px;
  border: 1px solid;
  transition: all 0.2s;
  display: inline-block;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.btn-primary:hover { background: transparent; color: var(--accent); box-shadow: var(--glow-hi); }
.btn-secondary {
  background: transparent;
  color: var(--accent2);
  border-color: var(--accent2);
}
.btn-secondary:hover { background: var(--accent2); color: var(--bg); }

/* ── Sections ── */
section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}
h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 1.6vw, 13px);
  color: var(--accent);
  white-space: nowrap;
  text-shadow: var(--text-glow);
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-hi), transparent);
  box-shadow: 0 0 6px rgba(0,212,255,0.3);
}
.section-tag {
  font-size: 9px;
  color: var(--accent2);
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 220px 2fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .about-grid { grid-template-columns: 1fr; } }

.photo-chip {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -2px 16px rgba(0,212,255,0.15), inset 0 0 40px rgba(0,212,255,0.03);
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.photo-chip:hover {
  border-color: var(--border-hi);
  box-shadow: var(--glow-hi);
}
.tron-photo {
  display: block;
  width: 100%;
  height: auto;
}

.about-text { font-size: 13px; color: var(--text); line-height: 1.9; }
.about-text strong { color: var(--accent); }

.about-meta { display: flex; flex-direction: column; gap: 16px; }
.meta-item { font-size: 11px; color: var(--text-dim); }
.meta-item span { color: var(--accent); display: block; font-size: 9px; letter-spacing: 1px; margin-bottom: 4px; }

/* ── Experience ── */
.company-block { margin-bottom: 28px; }

.company-header {
  background: var(--bg3);
  border: 1px solid var(--border-hi);
  border-bottom: none;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--glow);
}
.company-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 1px;
  text-shadow: var(--text-glow);
}
.company-period {
  font-size: 10px;
  color: var(--accent2);
  white-space: nowrap;
}

.roles-list { border: 1px solid var(--border-hi); border-top: none; }

.role-item {
  padding: 16px 20px 16px 44px;
  border-bottom: 1px solid var(--border-hi);
  background: var(--bg2);
  position: relative;
  transition: background 0.2s;
}
.role-item:last-child { border-bottom: none; }
.role-item:hover { background: #0f1d28; box-shadow: inset 0 0 60px rgba(0,212,255,0.12); }
.role-item::before {
  content: '◈';
  position: absolute;
  left: 18px; top: 18px;
  color: var(--accent);
  font-size: 11px;
  text-shadow: var(--text-glow);
}

.role-title { font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.role-period { font-size: 10px; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 0.5px; }
.role-desc { font-size: 12px; color: var(--text-dim); line-height: 1.75; }
.role-desc strong { color: var(--accent); }
.role-desc em { color: var(--text-dim); font-style: italic; }

/* acquisition note */
.acq-note {
  font-size: 10px;
  color: var(--accent2);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* ── Skills ── */
.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) { .skills-wrapper { grid-template-columns: 1fr; } }

.skill-group-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--accent2);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0,102,255,0.4);
}

.skill-item { margin-bottom: 16px; }
.skill-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 6px;
}
.skill-name { color: var(--text); }
.skill-keywords { color: var(--text-dim); font-size: 10px; }

.skill-bar {
  height: 5px;
  background: var(--bg3);
  border: 1px solid var(--border);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  width: 0;
  transition: width 1.2s ease;
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
}

/* ── Certifications ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.cert-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 16px 18px;
  transition: all 0.2s;
}
.cert-item:hover { border-color: var(--border-hi); box-shadow: var(--glow); }
.cert-title { font-size: 11px; color: var(--text); margin-bottom: 5px; }
.cert-issuer { font-size: 10px; color: var(--accent2); }

/* ── Interests ── */
.interests-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.interest-tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-dim);
  transition: all 0.2s;
}
.interest-tag:hover { border-color: var(--border-hi); color: var(--accent); box-shadow: var(--glow); }
.interest-tag span { color: var(--accent); margin-right: 6px; }

/* ── Contact ── */
.contact-grid { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 580px) { .contact-grid { flex-direction: column; } .contact-link { min-width: unset; width: 100%; } }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  transition: all 0.2s;
  min-width: 210px;
}
.contact-link:hover { border-color: var(--border-hi); color: var(--accent); box-shadow: var(--glow-hi); }
.contact-icon { font-size: 18px; color: var(--accent); text-shadow: var(--text-glow); min-width: 20px; text-align: center; }
.contact-label { font-size: 9px; color: var(--text-dim); display: block; margin-bottom: 2px; letter-spacing: 1px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}
footer span { color: var(--accent); text-shadow: var(--text-glow); }
footer a { color: var(--text-dim); text-decoration: none; letter-spacing: 1px; }
footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 580px) {
  .nav-links { display: none; }
  h1 { font-size: 18px; }
  .hero-title-line2 { font-size: 9px; }
}
