/*
Theme Name: WhoseThere Resume
Theme URI: https://whosethere.io/
Author: Codex
Description: A futuristic cyber-security portfolio theme with editable WordPress content.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: whosethere-resume
*/

:root {
  --bg: #020807;
  --bg-soft: #071312;
  --panel: rgba(6, 20, 18, 0.72);
  --panel-strong: rgba(8, 25, 22, 0.92);
  --line: rgba(113, 255, 196, 0.16);
  --line-strong: rgba(113, 255, 196, 0.32);
  --text: #d7ffe8;
  --muted: #8ab7a4;
  --accent: #7bffb0;
  --accent-deep: #36f29b;
  --accent-glow: rgba(79, 255, 176, 0.35);
  --cyan: #6ef2ff;
  --danger: #ff4d7a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Courier New", "Lucida Console", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(54, 242, 155, 0.08), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(110, 242, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #010504 0%, #020908 40%, #020605 100%);
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.scene-shell {
  position: relative;
  isolation: isolate;
}

.matrix-rain,
.webgl-layer,
.noise-layer,
.grid-layer,
.float-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.matrix-rain,
.webgl-layer,
.float-layer {
  z-index: 0;
}

.noise-layer,
.grid-layer {
  z-index: 1;
}

.noise-layer {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 6px 6px;
  mix-blend-mode: screen;
}

.grid-layer {
  background:
    linear-gradient(rgba(113, 255, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 255, 196, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 88%);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem 0 1.6rem;
}

.content-shell {
  padding: 2rem 0 4rem;
}

.globe-hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
}

.radar-ring {
  position: absolute;
  width: min(72vw, 780px);
  height: min(72vw, 780px);
  border-radius: 50%;
  border: 1px solid rgba(123, 255, 176, 0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  z-index: 1;
  pointer-events: none;
}

.radar-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-top: 2px solid rgba(110, 242, 255, 0.22);
  animation: spin 12s linear infinite;
}

.radar-ring-two {
  width: min(52vw, 560px);
  height: min(52vw, 560px);
}

.cursor-core {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(123, 255, 176, 0.9);
  background: radial-gradient(circle, rgba(123, 255, 176, 0.32), transparent 65%);
  box-shadow: 0 0 24px rgba(123, 255, 176, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
}

.cursor-core::before,
.cursor-core::after {
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-core::before {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(123, 255, 176, 0.18);
}

.cursor-core::after {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.hero-panel,
.holo-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 30, 24, 0.88), rgba(5, 18, 16, 0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(179, 255, 219, 0.08);
  backdrop-filter: blur(18px);
}

.hero-panel::before,
.holo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(123, 255, 176, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(110, 242, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.hero-panel {
  border-radius: 34px;
  padding: 1.4rem;
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(123, 255, 176, 0.08), transparent);
  animation: scan 8s linear infinite;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.2rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
}

.brand-mark {
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(110, 242, 255, 0.18);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.nav-link {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(113, 255, 196, 0.1);
  color: var(--muted);
  background: rgba(5, 20, 17, 0.48);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--accent);
  border-color: rgba(123, 255, 176, 0.34);
  transform: translateY(-2px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.2rem;
}

.terminal-panel,
.status-card,
.metric-card,
.command-card,
.terminal-section,
.contact-section,
.hud-panel {
  border-radius: 28px;
}

.terminal-panel {
  padding: 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(110, 242, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(4, 20, 18, 0.9), rgba(4, 15, 14, 0.75));
  border: 1px solid rgba(113, 255, 196, 0.18);
}

.eyebrow,
.mini-label,
.project-tag,
.terminal-path,
.stat-label,
.contact-prefix,
.hud-stats span,
.hud-list {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.eyebrow,
.mini-label,
.project-tag,
.terminal-path,
.stat-label {
  color: var(--cyan);
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(123, 255, 176, 0.18);
}

.terminal-bar span:first-child {
  background: rgba(255, 77, 122, 0.75);
}

.terminal-bar span:nth-child(2) {
  background: rgba(255, 198, 87, 0.8);
}

.terminal-bar span:last-child {
  background: rgba(123, 255, 176, 0.8);
}

.terminal-path {
  margin: 0 0 0.8rem;
}

.hero-copy h1,
.section-heading h2,
.status-card h2,
.metric-card h3,
.project-card h3,
.timeline-item h3 {
  margin: 0;
  font-family: "Courier New", "Lucida Console", monospace;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 7vw, 6rem);
  color: var(--accent);
  text-shadow: 0 0 24px rgba(123, 255, 176, 0.22);
}

.role-line {
  margin: 0.9rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro,
.status-card p,
.metric-card p,
.timeline-item p,
.project-card p,
.detail-list,
.contact-copy,
.site-footer,
.hud-list {
  color: var(--muted);
  line-height: 1.75;
}

.intro {
  max-width: 58ch;
  margin: 1rem 0 1.7rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, rgba(27, 133, 84, 0.92), rgba(65, 255, 153, 0.92));
  color: #02110d;
  box-shadow: 0 0 26px rgba(123, 255, 176, 0.25);
}

.button.secondary {
  border-color: rgba(110, 242, 255, 0.2);
  background: rgba(6, 19, 18, 0.76);
  color: var(--cyan);
}

.terminal-tags,
.chip-grid,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.terminal-tags span,
.chip-grid span {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 255, 176, 0.18);
  background: rgba(7, 19, 17, 0.82);
  color: var(--text);
  box-shadow: inset 0 0 18px rgba(123, 255, 176, 0.04);
}

.hero-aside {
  display: grid;
  gap: 1rem;
}

.status-card,
.metric-card,
.command-card,
.terminal-section,
.contact-section,
.hud-panel {
  padding: 1.35rem;
}

.status-grid,
.hud-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.status-grid div,
.hud-stats article {
  padding: 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(123, 255, 176, 0.12);
  background: rgba(5, 16, 14, 0.6);
}

.status-grid strong,
.hud-stats strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 1.35rem;
}

.metric-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.metric-number {
  font-size: clamp(3.4rem, 8vw, 5rem);
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px rgba(123, 255, 176, 0.22);
}

.command-list,
.detail-list,
.hud-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-list {
  display: grid;
  gap: 0.9rem;
}

.command-list li,
.hud-list li {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(4, 14, 12, 0.75);
  border: 1px solid rgba(113, 255, 196, 0.1);
  color: var(--text);
}

.command-list span {
  color: var(--accent);
  margin-right: 0.35rem;
}

.globe-hud {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.hud-panel {
  width: min(320px, 100%);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.wide {
  grid-column: 1 / -1;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(113, 255, 196, 0.14);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

.timeline-year {
  color: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(113, 255, 196, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 23, 20, 0.92), rgba(3, 12, 11, 0.78));
  min-height: 240px;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 242, 255, 0.14), transparent 65%);
}

.project-tag {
  margin: 0 0 0.7rem;
}

.detail-list {
  display: grid;
  gap: 0.85rem;
}

.detail-list li {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(113, 255, 196, 0.12);
  background: rgba(5, 17, 15, 0.7);
}

.contact-list a {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(110, 242, 255, 0.14);
  background: rgba(5, 17, 15, 0.74);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 255, 176, 0.3);
}

.contact-prefix {
  color: var(--accent);
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.2rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.tilt-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.floating-card {
  animation: float-card 7s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.float-node {
  position: fixed;
  top: 0;
  left: 0;
  font-size: 0.95rem;
  color: rgba(123, 255, 176, 0.6);
  text-shadow: 0 0 14px rgba(123, 255, 176, 0.25);
  user-select: none;
  will-change: transform;
}

.glitch-text {
  position: relative;
  animation: glitch 3.8s infinite;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glitch {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 77, 122, 0), 0 0 0 rgba(110, 242, 255, 0);
  }
  20% {
    text-shadow: 2px 0 0 rgba(255, 77, 122, 0.5), -2px 0 0 rgba(110, 242, 255, 0.5);
  }
  21% {
    text-shadow: -2px 0 0 rgba(255, 77, 122, 0.35), 2px 0 0 rgba(110, 242, 255, 0.35);
  }
  22% {
    text-shadow: 0 0 0 rgba(255, 77, 122, 0), 0 0 0 rgba(110, 242, 255, 0);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .hero-grid,
  .command-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .globe-hud {
    flex-direction: column;
    align-items: stretch;
  }

  .hud-panel {
    width: 100%;
  }
}

@media (max-width: 820px) {
  body {
    cursor: auto;
  }

  .cursor-core {
    display: none;
  }

  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .hero-shell {
    min-height: auto;
    padding-top: 0.75rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-card,
  .timeline-item,
  .status-grid,
  .hud-stats {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .globe-hero {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .radar-ring {
    width: 92vw;
    height: 92vw;
    top: 32%;
  }
}

@media (max-width: 560px) {
  .hero-panel,
  .terminal-section,
  .contact-section,
  .hud-panel,
  .status-card,
  .metric-card,
  .command-card {
    padding: 1rem;
    border-radius: 24px;
  }

  .nav-links,
  .hero-actions,
  .terminal-tags,
  .chip-grid,
  .contact-list {
    flex-direction: column;
  }

  .nav-link,
  .terminal-tags span,
  .chip-grid span,
  .contact-list a {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scan-line,
  .floating-card,
  .glitch-text,
  .tilt-card,
  .radar-ring::after {
    animation: none;
    transition: none;
  }

  .cursor-core,
  .float-layer,
  .matrix-rain,
  .webgl-layer {
    display: none;
  }
}
