/* ============================================
   RETRO TERMINAL PERSONAL SITE
   CRT phosphor green / amber aesthetic
   ============================================ */

/* ---------- CSS custom properties ---------- */
:root {
  --bg:        #0a0a0a;
  --panel:     #0f1610;
  --border:    #1a3a1a;
  --green:     #33ff33;
  --green-dim: #1a9a1a;
  --amber:     #ffb000;
  --amber-dim: #996a00;
  --cyan:      #00e5ff;
  --white:     #c8c8c8;
  --comment:   #5a7a5a;
  --glow:      0 0 8px rgba(51, 255, 51, .45);
  --glow-amber:0 0 8px rgba(255, 176, 0, .45);
  --font-mono: 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
  --font-display: 'Courier New', 'Monaco', 'Lucida Console', monospace;
  --scanline-opacity: 0.04;
}

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

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

/* ---------- Body & CRT overlay ---------- */
body {
  background: var(--bg);
  color: var(--green);
  font-family: var(--font-mono);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, var(--scanline-opacity)) 0px,
    rgba(0, 0, 0, var(--scanline-opacity)) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 9999;
}

/* Subtle vignette */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, .55) 100%
  );
  z-index: 9998;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar       { width: 8px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---------- Header / hero ---------- */
.hero {
  border: 1px solid var(--border);
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  background: var(--panel);
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero::before {
  content: '[ SYSTEM READY ]';
  position: absolute;
  top: -0.7em;
  left: 1.2em;
  background: var(--bg);
  padding: 0 .5em;
  font-size: .75rem;
  color: var(--comment);
  letter-spacing: 2px;
}

.hero .headshot {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  border: 2px solid var(--green);
  box-shadow: var(--glow), inset 0 0 20px rgba(0, 0, 0, .3);
  object-fit: cover;
  filter: contrast(1.1) brightness(0.95);
  flex-shrink: 0;
}

.hero .hero-content {
  flex: 1;
  min-width: 300px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: var(--glow);
  margin-bottom: .5rem;
  line-height: 1.4;
}

.hero .tagline {
  color: var(--amber);
  font-size: 1.05rem;
  text-shadow: var(--glow-amber);
}

.contact-bar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .85rem;
  color: var(--green-dim);
}

.contact-bar a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .2s, text-shadow .2s;
}

.contact-bar a:hover {
  color: var(--green);
  text-shadow: var(--glow);
}

.contact-bar span::before {
  content: '> ';
  color: var(--comment);
}

/* ---------- Nav ---------- */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

nav a {
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--green-dim);
  text-decoration: none;
  padding: .4rem .75rem;
  border: 1px solid transparent;
  letter-spacing: 1px;
  transition: all .2s;
}

nav a:hover,
nav a.active {
  color: var(--green);
  border-color: var(--green-dim);
  text-shadow: var(--glow);
}

/* ---------- Section ---------- */
section {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

section h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--amber);
  text-shadow: var(--glow-amber);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px dashed var(--border);
}

section h2::before {
  content: '# ';
  color: var(--comment);
}

/* ---------- Sub-entries ---------- */
.entry {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.entry:last-child { margin-bottom: 0; }

.entry-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .25rem .75rem;
  margin-bottom: .25rem;
}

.entry-header h3 {
  font-size: 1rem;
  color: var(--green);
  text-shadow: var(--glow);
  font-weight: 600;
}

.entry-header .date {
  font-size: .8rem;
  color: var(--amber-dim);
  white-space: nowrap;
}

.entry-header .location {
  font-size: .8rem;
  color: var(--comment);
  width: 100%;
}

.entry .role {
  font-size: .9rem;
  color: var(--cyan);
  margin-bottom: .5rem;
  font-style: italic;
}

.entry ul {
  list-style: none;
  padding: 0;
}

.entry ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: .4rem;
  font-size: .88rem;
  color: var(--white);
  line-height: 1.6;
}

.entry ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green-dim);
}

/* ---------- Skills ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.skill-category h4 {
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--cyan);
  margin-bottom: .5rem;
  letter-spacing: 1px;
  line-height: 1.6;
}

.skill-category h4::before {
  content: '$ ';
  color: var(--comment);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tag {
  display: inline-block;
  background: rgba(51, 255, 51, .07);
  border: 1px solid var(--border);
  color: var(--green);
  padding: .15rem .6rem;
  font-size: .8rem;
  letter-spacing: .5px;
  transition: all .2s;
}

.tag:hover {
  background: rgba(51, 255, 51, .15);
  border-color: var(--green-dim);
  text-shadow: var(--glow);
}

/* ---------- Awards ---------- */
.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: 1px dotted var(--border);
  font-size: .88rem;
}

.award-item:last-child { border-bottom: none; }

.award-item .name {
  color: var(--green);
}

.award-item .date {
  color: var(--amber-dim);
  font-size: .8rem;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: .75rem;
  color: var(--comment);
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

footer .cursor {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .container { padding: 1rem; }
  .hero { padding: 1.2rem; }
  .hero h1 { font-size: 2rem; }
  section { padding: 1rem 1.2rem; }
  .skill-grid { grid-template-columns: 1fr; }
  .entry-header { flex-direction: column; }
  .award-item { flex-direction: column; gap: .15rem; }
  nav a { font-size: 1rem; padding: .2rem .5rem; }
}

