/* 
  Joshua Pinkerton Portfolio - 90s Anime Noir CRT
  Late-night broadcast, CRT TV simulation, smoky depth
*/

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

:root {
  --bg-deep: #04050a;
  --bg: #06070c;
  --bg-raised: #0a0b14;
  --border: rgba(180, 120, 255, 0.12);
  --border-hover: rgba(180, 120, 255, 0.35);
  --accent: #b47bff;
  --accent-bright: #d4a5ff;
  --accent-dim: #7c4fa8;
  --magenta: #ff2090;
  --cyan: #40d8ff;
  --text: #ece8f4;
  --text-dim: #9a95b0;
  --text-faint: #504d64;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

/* CRT monitor body */
body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* CRT curved screen vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 10000;
}

/* Heavy scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 4px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.7;
}

/* Tracking lines - occasional horizontal distortion */
.tracking-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 120px,
    rgba(255, 255, 255, 0.015) 120px,
    rgba(255, 255, 255, 0.015) 121px
  );
  animation: tracking-shift 8s linear infinite;
}

@keyframes tracking-shift {
  0% { transform: translateY(0); }
  100% { transform: translateY(121px); }
}

/* Static noise canvas */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9997;
  mix-blend-mode: overlay;
}

/* Fog layers - deeper smoke */
.fog-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.fog {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: drift 24s ease-in-out infinite;
}

.fog-1 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(180, 120, 255, 0.14), transparent 60%);
  top: -25%; left: -15%;
  animation-delay: 0s;
}

.fog-2 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(255, 32, 144, 0.1), transparent 60%);
  bottom: -15%; right: -20%;
  animation-delay: -9s;
}

.fog-3 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(64, 216, 255, 0.06), transparent 60%);
  top: 60%; left: 30%;
  animation-delay: -16s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 4%) scale(1.04); }
  66% { transform: translate(-4%, -3%) scale(0.95); }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.15s ease;
}
a:hover { 
  color: var(--accent-bright);
  text-shadow: 0 0 14px rgba(180, 120, 255, 0.6);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 36px;
  position: relative;
  z-index: 1;
}

/* Header with CRT glass feel */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 14, 0.92);
  backdrop-filter: blur(16px) saturate(160%) contrast(1.1);
  border-bottom: 1px solid rgba(180, 120, 255, 0.2);
  box-shadow: 0 1px 0 rgba(180, 120, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 120, 255, 0.08);
  border: 1px solid rgba(180, 120, 255, 0.35);
  box-shadow: 0 0 24px rgba(180, 120, 255, 0.25), inset 0 0 12px rgba(180, 120, 255, 0.15);
  animation: brand-glow 3s ease-in-out infinite alternate;
}

@keyframes brand-glow {
  0% { box-shadow: 0 0 20px rgba(180, 120, 255, 0.2), inset 0 0 10px rgba(180, 120, 255, 0.1); }
  100% { box-shadow: 0 0 32px rgba(180, 120, 255, 0.4), inset 0 0 16px rgba(180, 120, 255, 0.25); }
}

.icon-ring {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent), 0 0 32px rgba(180, 120, 255, 0.6);
}
.icon-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
}

.brand-text {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  text-shadow: 0 0 18px rgba(180, 120, 255, 0.4);
}

.brand-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.top-nav a {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.top-nav a::before {
  content: "";
  position: absolute;
  bottom: 3px; left: 8px; right: 8px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 8px var(--accent);
}

.top-nav a:hover {
  background: rgba(180, 120, 255, 0.12);
  color: var(--accent-bright);
}
.top-nav a:hover::before { opacity: 0.6; }

/* Sections */
.section {
  padding: 110px 0;
  border-bottom: 1px solid rgba(180, 120, 255, 0.08);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(180, 120, 255, 0.5), 
    rgba(255, 32, 144, 0.3), 
    transparent 70%
  );
  opacity: 0.6;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  filter: drop-shadow(0 0 6px rgba(180, 120, 255, 0.5));
}
.section-label::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--magenta);
  animation: blink 2s step-end infinite;
}

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

.section h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 34px;
  color: #fff;
  line-height: 1.15;
  font-family: var(--mono);
  text-shadow: 0 0 24px rgba(180, 120, 255, 0.3);
}

.section-intro {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 34px;
  max-width: 700px;
  line-height: 1.65;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* Hero */
.hero {
  padding: 180px 0 160px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(180, 120, 255, 0.6) 30%,
    rgba(255, 32, 144, 0.6) 60%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(180, 120, 255, 0.6), 0 0 40px rgba(255, 32, 144, 0.4);
}

.hero-title {
  font-size: clamp(46px, 5.5vw, 74px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
  margin: 0 0 36px;
  color: #fff;
  max-width: 900px;
  position: relative;
  text-wrap: balance;
  font-family: var(--mono);
  text-shadow: 
    0 0 40px rgba(180, 120, 255, 0.5),
    0 0 80px rgba(180, 120, 255, 0.2);
}

/* Glitch effect - intensified */
.glitch {
  position: relative;
  display: inline-block;
}

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

.glitch::before {
  color: #b47bff;
  z-index: -1;
  animation: glitch-skew-intense 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  color: #ff2090;
  z-index: -2;
  animation: glitch-skew-intense 1.8s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-skew-intense {
  0%   { transform: translate(0, 0) skew(0deg); opacity: 0.7; }
  10%  { transform: translate(-4px, 2px) skew(-1deg); opacity: 0.4; }
  20%  { transform: translate(3px, -2px) skew(0.8deg); opacity: 0.7; }
  30%  { transform: translate(-2px, 1px) skew(-0.4deg); opacity: 0.3; }
  40%  { transform: translate(5px, -3px) skew(1.2deg); opacity: 0.6; }
  50%  { transform: translate(0, 3px) skew(0deg); opacity: 0.4; }
  60%  { transform: translate(-3px, -1px) skew(-0.6deg); opacity: 0.7; }
  70%  { transform: translate(4px, 2px) skew(1deg); opacity: 0.3; }
  80%  { transform: translate(-1px, -2px) skew(-0.2deg); opacity: 0.6; }
  90%  { transform: translate(2px, 1px) skew(0.4deg); opacity: 0.5; }
  100% { transform: translate(0, 0) skew(0deg); opacity: 0.7; }
}

.hero-sub {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.75;
  max-width: 700px;
  margin: 0 0 48px;
  position: relative;
  font-weight: 400;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(180, 120, 255, 0.3);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
  letter-spacing: 0.12em;
  font-family: var(--mono);
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, 
    rgba(180, 120, 255, 0.2), 
    rgba(255, 32, 144, 0.15)
  );
  color: #fff;
  border: 1px solid rgba(180, 120, 255, 0.5);
  box-shadow: 
    0 0 30px rgba(180, 120, 255, 0.35),
    inset 0 0 20px rgba(180, 120, 255, 0.15);
  text-shadow: 0 0 12px rgba(180, 120, 255, 0.8);
}
.btn.primary:hover {
  background: linear-gradient(135deg, 
    rgba(180, 120, 255, 0.35), 
    rgba(255, 32, 144, 0.3)
  );
  border-color: var(--accent-bright);
  box-shadow: 
    0 0 50px rgba(180, 120, 255, 0.55),
    inset 0 0 28px rgba(180, 120, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  border: 1px solid rgba(180, 120, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(180, 120, 255, 0.05);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(180, 120, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 24px rgba(180, 120, 255, 0.2);
}

/* About */
.about-grid {
  display: grid;
  gap: 22px;
  max-width: 800px;
  margin-bottom: 32px;
}

.about-grid p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  position: relative;
}

.skill::before {
  content: ">";
  color: var(--accent);
  opacity: 0.7;
  margin-right: 6px;
  font-weight: 700;
  filter: drop-shadow(0 0 4px var(--accent));
}

.skill {
  background: var(--bg-raised);
  color: var(--accent);
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(180, 120, 255, 0.25);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.15s ease;
  box-shadow: 
    inset 0 0 12px rgba(180, 120, 255, 0.08),
    0 0 8px rgba(0, 0, 0, 0.3);
}
.skill:hover {
  background: rgba(180, 120, 255, 0.12);
  border-color: var(--border-hover);
  color: var(--accent-bright);
  box-shadow: 
    0 0 26px rgba(180, 120, 255, 0.4),
    inset 0 0 16px rgba(180, 120, 255, 0.2);
  transform: translateY(-2px);
}

/* Classified dossiers */
.experience-list,
.project-list {
  display: grid;
  gap: 18px;
}

.experience-item,
.project-card,
.edu-item {
  background: var(--bg-raised);
  border: 1px solid rgba(180, 120, 255, 0.15);
  border-radius: 10px;
  padding: 26px 28px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.4),
    0 0 4px rgba(0, 0, 0, 0.3);
}

.experience-item::before,
.project-card::before,
.edu-item::before {
  content: "CLASSIFIED";
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--magenta);
  opacity: 0;
  transition: opacity 0.2s ease;
  text-shadow: 0 0 8px var(--magenta);
  font-weight: 700;
  filter: blur(0.5px);
}

.experience-item::after,
.project-card::after,
.edu-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, 
    var(--accent), 
    var(--magenta), 
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 0 14px var(--accent);
}

.experience-item:hover,
.project-card:hover,
.edu-item:hover {
  border-color: var(--border-hover);
  background: rgba(14, 15, 22, 0.95);
  box-shadow: 
    0 0 40px rgba(180, 120, 255, 0.12),
    inset 0 0 30px rgba(180, 120, 255, 0.06);
  transform: translateY(-2px);
}
.experience-item:hover::before,
.project-card:hover::before,
.edu-item:hover::before {
  opacity: 0.8;
  animation: classified-flicker 0.15s ease-in-out 3;
}
.experience-item:hover::after,
.project-card:hover::after,
.edu-item:hover::after {
  opacity: 1;
}

@keyframes classified-flicker {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.3; }
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.experience-item h3,
.project-card h3,
.edu-item h3,
.cert-item h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
  color: #fff;
  font-family: var(--mono);
  text-shadow: 0 0 10px rgba(180, 120, 255, 0.4);
}

.organization {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  filter: drop-shadow(0 0 6px rgba(180, 120, 255, 0.5));
}

.meta {
  color: var(--text-faint);
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
  padding-top: 2px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  font-family: var(--mono);
  letter-spacing: 0.01em;
}
li + li { margin-top: 10px; }

.project-meta { margin-bottom: 14px; }

.card-sub {
  color: var(--magenta);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
  font-family: var(--mono);
  filter: drop-shadow(0 0 4px var(--magenta));
  opacity: 0.8;
}

.project-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.project-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}
.project-card li + li { margin-top: 8px; }

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cert-item {
  background: var(--bg-raised);
  border: 1px solid rgba(180, 120, 255, 0.15);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.4);
}

.cert-item:hover {
  border-color: var(--border-hover);
  background: rgba(14, 15, 22, 0.95);
  box-shadow: 
    0 0 30px rgba(180, 120, 255, 0.15),
    inset 0 0 22px rgba(180, 120, 255, 0.08);
  transform: translateY(-2px);
}

.cert-status {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 14px currentColor;
}
.cert-status.completed {
  background: #00e676;
  color: #00e676;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.6);
}
.cert-status.active {
  background: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 22px var(--accent);
  animation: pulse 2.2s infinite ease-in-out;
}
.cert-status.planned {
  background: var(--text-faint);
  color: var(--text-faint);
  opacity: 0.5;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 18px var(--accent), 0 0 40px rgba(180, 120, 255, 0.4); 
  }
  50% { 
    box-shadow: 0 0 28px var(--accent-bright), 0 0 55px rgba(180, 120, 255, 0.7); 
  }
}

.cert-meta {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.55;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.contact-card {
  background: var(--bg-raised);
  border: 1px solid rgba(180, 120, 255, 0.15);
  border-radius: 10px;
  padding: 22px 24px;
  display: block;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.4);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    var(--accent) 50%,
    var(--magenta) 70%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 0 18px var(--accent);
}

.contact-card:hover {
  border-color: var(--border-hover);
  background: rgba(14, 15, 22, 0.95);
  transform: translateY(-3px);
  box-shadow: 
    0 0 40px rgba(180, 120, 255, 0.15),
    inset 0 0 24px rgba(180, 120, 255, 0.08);
}
.contact-card:hover::before { opacity: 1; }

.contact-card h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(180, 120, 255, 0.4);
}

.contact-card p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.contact-link {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  filter: drop-shadow(0 0 6px rgba(180, 120, 255, 0.5));
}

/* Footer */
.site-footer {
  padding: 52px 0 44px;
  border-top: 1px solid rgba(180, 120, 255, 0.1);
  background: var(--bg-deep);
  box-shadow: inset 0 1px 0 rgba(180, 120, 255, 0.08);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 6px;
}

.site-footer p {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.social-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(180, 120, 255, 0.2);
  border: 1px solid rgba(180, 120, 255, 0.4);
  box-shadow: 0 0 8px rgba(180, 120, 255, 0.2);
  animation: dot-flicker 4s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: -1s; }
.dot:nth-child(3) { animation-delay: -2s; }

@keyframes dot-flicker {
  0%, 100% { 
    background: rgba(180, 120, 255, 0.2);
    border-color: rgba(180, 120, 255, 0.4);
  }
  50% { 
    background: rgba(180, 120, 255, 0.5);
    border-color: var(--accent);
    box-shadow: 0 0 14px var(--accent);
  }
}

.retro-section {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(180, 120, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.retro-counter {
  font-family: var(--mono);
  background: var(--bg);
  border: 1px solid rgba(180, 120, 255, 0.25);
  padding: 7px 16px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 
    inset 0 0 14px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(180, 120, 255, 0.15);
  text-transform: uppercase;
}

.counter-label {
  color: var(--text-faint);
  font-weight: 600;
}

.counter-number {
  color: var(--accent);
  min-width: 76px;
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  filter: drop-shadow(0 0 8px var(--accent));
}

.ip-location {
  font-size: 11px;
  color: var(--text-faint);
  max-width: 460px;
  line-height: 1.5;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ip-location strong {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(180, 120, 255, 0.6));
}

/* Responsive */
@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 140px 0 130px; }
}

@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .top-nav { gap: 2px; width: 100%; }
  .top-nav a {
    font-size: 10px;
    padding: 7px 10px;
  }
  .section { padding: 70px 0; }
  .hero { padding: 90px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; }
  .experience-item { padding: 18px 20px; }
  .project-card { padding: 18px 20px; }
}

@media (max-width: 560px) {
  .retro-section { flex-direction: column; align-items: flex-start; }
  .ip-location { max-width: 100%; }
}
