/* ============================================================
   LECHU @ AWS — Retro Neon / CRT Stylesheet
   100% static, zero external dependencies
   ============================================================ */

:root {
  --neon-green:  #00ff88;
  --neon-cyan:   #00e5ff;
  --neon-orange: #ff6b00;
  --neon-pink:   #ff2d78;
  --aws-orange:  #ff9900;
  --bg:          #050a0e;
  --bg-panel:    #0a1520;
  --bg-card:     #0d1e2e;
  --border:      #1a3a5c;
  --text:        #c8e6f0;
  --text-dim:    #5a8a9f;
  --font-mono:   'Courier New', Courier, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ── Light Mode ──────────────────────────────────────────── */

[data-theme="light"] {
  --bg:       #f5f0e8;
  --bg-panel: #ede8dc;
  --bg-card:  #e8e2d4;
  --border:   #b8a890;
  --text:     #2a1f10;
  --text-dim: #6a5a40;
  --neon-cyan:  #0077aa;
  --neon-green: #007744;
  --aws-orange: #cc6600;
  --neon-pink:  #cc1155;
}



/* ── Theme button ────────────────────────────────────────── */

.theme-btn {
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .8rem;
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.theme-btn:hover {
  background: var(--neon-green);
  color: var(--bg);
  box-shadow: 0 0 14px var(--neon-green), 0 0 30px rgba(0,255,136,.3);
}



.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,.18) 2px,
    rgba(0,0,0,.18) 4px
  );
}

.crt-flicker {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  animation: flicker 8s infinite;
  background: transparent;
}

@keyframes flicker {
  0%,100% { opacity: 1; }
  92%      { opacity: 1; }
  93%      { opacity: .85; }
  94%      { opacity: 1; }
  96%      { opacity: .9; }
  97%      { opacity: 1; }
}

/* ── Layout ──────────────────────────────────────────────── */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.aws-logo-ascii pre {
  display: inline-block;
  color: var(--aws-orange);
  text-shadow: 0 0 8px var(--aws-orange), 0 0 20px rgba(255,153,0,.4);
  font-size: clamp(8px, 1.8vw, 14px);
  line-height: 1.2;
  letter-spacing: .25em;
  margin-bottom: 1.5rem;
}

/* Glitch title */
.glitch {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: bold;
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 30px rgba(0,229,255,.5),
    0 0 60px rgba(0,229,255,.2);
  letter-spacing: .15em;
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
}

.glitch.active::before {
  opacity: .8;
  color: var(--neon-pink);
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  transform: translateX(-3px);
  animation: glitch-clip 0.15s steps(1) forwards;
}

.glitch.active::after {
  opacity: .8;
  color: var(--neon-green);
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  transform: translateX(3px);
  animation: glitch-clip 0.15s steps(1) forwards;
}

@keyframes glitch-clip {
  0%   { clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); }
  50%  { clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%); }
  100% { clip-path: polygon(0 10%, 100% 10%, 100% 25%, 0 25%); }
}

.subtitle {
  color: var(--text-dim);
  font-size: .95rem;
  margin-top: .75rem;
  letter-spacing: .05em;
}

.tenure {
  color: var(--aws-orange);
  font-size: .85rem;
  margin-top: .5rem;
  letter-spacing: .1em;
}

.blink-slow {
  animation: blink 2.5s step-end infinite;
}

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

/* Hero nav */
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.nav-btn {
  display: inline-block;
  padding: .4rem 1.2rem;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .12em;
  transition: background .2s, box-shadow .2s, color .2s;
}

.nav-btn:hover {
  background: var(--neon-cyan);
  color: var(--bg);
  box-shadow: 0 0 14px var(--neon-cyan), 0 0 30px rgba(0,229,255,.3);
}

/* ── Sections ────────────────────────────────────────────── */

.section {
  margin-bottom: 4rem;
}

details { margin-bottom: 0; }

details > *:not(summary) { margin-top: 2rem; }

details[open] > summary { margin-bottom: 0; }

summary.section-title {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

summary.section-title::after {
  content: '▸';
  color: var(--text-dim);
  font-size: .8rem;
  margin-left: auto;
  transition: transform .2s;
}

details[open] > summary.section-title::after,
summary[data-open="true"].section-title::after {
  content: '▾';
}


summary.section-title::-webkit-details-marker { display: none; }

.section-title {
  font-size: 1.1rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green), 0 0 20px rgba(0,255,136,.3);
  letter-spacing: .15em;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.prompt {
  color: var(--aws-orange);
  margin-right: .5rem;
}

/* ── Timeline ────────────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--aws-orange), var(--neon-cyan));
  box-shadow: 0 0 8px var(--aws-orange);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--aws-orange);
  transition: border-color .2s, box-shadow .2s;
}

.timeline-item::before {
  content: '◆';
  position: absolute;
  left: -2.1rem;
  top: 1.2rem;
  color: var(--aws-orange);
  font-size: .7rem;
  text-shadow: 0 0 6px var(--aws-orange);
}

.timeline-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0,229,255,.15);
}

.timeline-item.highlight {
  border-left-color: var(--neon-cyan);
}

.timeline-item.highlight::before {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
}

.timeline-year {
  font-size: .75rem;
  color: var(--aws-orange);
  letter-spacing: .1em;
  margin-bottom: .4rem;
}

.timeline-item.highlight .timeline-year {
  color: var(--neon-cyan);
}

.timeline-content h3 {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .3rem;
  letter-spacing: .04em;
}

.location {
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: .5rem;
}

.timeline-content p {
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Blog Cards ──────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.card:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255,45,120,.2);
  transform: translateY(-2px);
}

.card-tag {
  font-size: .7rem;
  color: var(--aws-orange);
  letter-spacing: .1em;
  margin-bottom: .6rem;
}

.card h3 {
  font-size: .85rem;
  color: var(--neon-cyan);
  margin-bottom: .6rem;
  line-height: 1.5;
}

.card p {
  font-size: .78rem;
  color: var(--text-dim);
  flex: 1;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--neon-pink);
  letter-spacing: .1em;
}

.card-author {
  border-style: dashed;
}

/* ── Certifications ──────────────────────────────────────── */

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem .75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
  gap: .4rem;
}

.cert-badge:hover {
  border-color: var(--aws-orange);
  box-shadow: 0 0 16px rgba(255,153,0,.25);
}

.cert-badge.cert-special {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0,255,136,.1);
}

.cert-icon {
  font-size: 1.6rem;
}

.cert-name {
  font-size: .72rem;
  color: var(--text);
  line-height: 1.4;
}

.cert-level {
  font-size: .68rem;
  color: var(--aws-orange);
  letter-spacing: .08em;
}

.cert-special .cert-level {
  color: var(--neon-green);
}

.certs-note {
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: .5rem;
}

.certs-note a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.certs-note a:hover {
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* ── Links ───────────────────────────────────────────────── */

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}

.link-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 14px rgba(0,255,136,.2);
}

.link-icon {
  font-size: 1.1rem;
  min-width: 2rem;
  text-align: center;
  color: var(--neon-green);
  font-weight: bold;
}

.link-label {
  font-size: .85rem;
  color: var(--text);
  flex: 1;
}

.link-url {
  font-size: .7rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .78rem;
  line-height: 1.8;
}

.footer-sub {
  color: #3a6a7f;
  font-size: .72rem;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .aws-logo-ascii pre { font-size: 5px; }
  .glitch { font-size: 1.8rem; }
  .timeline { padding-left: 1rem; }
  .timeline-item::before { left: -1.6rem; }
  .cards { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: 1fr; }
}

[data-theme="light"] .scanlines,
[data-theme="light"] .crt-flicker { display: none; }
