/* --- FONTS --- */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=JetBrains+Mono:wght@300;500;700&display=swap");

/* --- RESET --- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

:root {
  --bg: #020312;
  --accent: #69f7ff;
  --accent-soft: rgba(105, 247, 255, 0.3);
  --accent-alt: #ff76ff;
  --text-main: #f3f7ff;
  --text-muted: #9aa4c0;
  --panel-bg: rgba(3, 8, 30, 0.92);
  --border-subtle: rgba(185, 213, 255, 0.22);
  --shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.85);
  --radius-lg: 22px;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg);
}

/* --- BACKGROUND LAYERS --- */

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at top, #253272 0, #050318 50%, #000 100%);
  animation: hue-shift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.bg-layer {
  position: absolute;
  inset: -20%;
}

/* subtle noise / grain */
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* animated blobs */
.bg-orb {
  background: radial-gradient(circle at center, rgba(120, 255, 255, 0.22), transparent 70%);
  mix-blend-mode: screen;
  filter: blur(4px);
}
.orb-a {
  animation: orb-a 40s linear infinite;
}
.orb-b {
  animation: orb-b 55s linear infinite;
}

/* grid over everything */
.bg-grid {
  background-image: linear-gradient(
      rgba(120, 220, 255, 0.15) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(120, 220, 255, 0.15) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

/* scanlines */
.bg-scan {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.07) 0,
    rgba(255, 255, 255, 0.07) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.4;
  pointer-events: none;
}

/* background animations */
@keyframes hue-shift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(-32deg);
  }
}

@keyframes orb-a {
  0% {
    transform: translate(-10%, -5%) scale(1.1);
  }
  50% {
    transform: translate(40%, 35%) scale(1.5);
  }
  100% {
    transform: translate(80%, -15%) scale(1.2);
  }
}

@keyframes orb-b {
  0% {
    transform: translate(60%, 60%) scale(1);
  }
  50% {
    transform: translate(-10%, 10%) scale(1.4);
  }
  100% {
    transform: translate(20%, 80%) scale(1.1);
  }
}

/* --- MAIN LAYOUT --- */

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.2rem;
}

.shell--split {
  gap: 1.4rem;
  flex-direction: column;
}

.shell--single {
  max-width: 980px;
  margin: 0 auto;
}

/* desktop split */
@media (min-width: 880px) {
  .shell--split {
    flex-direction: row;
    align-items: stretch;
  }
}

/* --- PANELS --- */

.panel {
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px) saturate(150%);
  position: relative;
  overflow: hidden;
}

/* home panels */
.panel--subject {
  flex: 1.1;
  min-width: 0;
  padding: 1.5rem 1.4rem 1.2rem;
}

.panel--links {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.4rem 1.2rem;
}

/* about panel */
.panel--about {
  width: 100%;
  padding: 1.7rem 1.6rem 1.5rem;
}

/* header strip */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header--subject {
  margin-bottom: 0.7rem;
}

.panel-header--about {
  margin-bottom: 1.2rem;
}

/* badge pill */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: radial-gradient(circle at top left, rgba(105, 247, 255, 0.18), transparent 60%);
}

/* status dot */
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(105, 247, 255, 0.9);
}

/* subtitle in header */
.panel-subtitle {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- SUBJECT PANEL CONTENT --- */

.subject-top {
  display: flex;
  gap: 1.1rem;
}

.subject-avatar {
  position: relative;
  width: 110px;
  height: 140px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--accent-soft);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
}

.subject-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* glitch overlay */
.avatar-glitch {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      120deg,
      rgba(105, 247, 255, 0.25),
      transparent 35%,
      rgba(255, 118, 255, 0.25)
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 2px,
      transparent 3px
    );
  mix-blend-mode: screen;
  opacity: 0.0;
  animation: avatar-glitch 3.5s infinite steps(2, end);
}

@keyframes avatar-glitch {
  0%,
  92% {
    opacity: 0;
    transform: translate(0, 0);
  }
  93% {
    opacity: 0.9;
    transform: translate(-2px, 1px);
  }
  95% {
    opacity: 0.9;
    transform: translate(3px, -2px);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

.subject-meta {
  flex: 1;
  min-width: 0;
}

.subject-name {
  font-size: 1.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.subject-role {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* 2x2 info grid */
.meta-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.9rem;
  list-style: none;
  font-family: "JetBrains Mono", monospace;
}

.meta-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(154, 164, 192, 0.85);
}

.meta-value {
  font-size: 0.86rem;
}

/* subject bottom text */
.subject-body {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(139, 170, 240, 0.4);
}

.subject-description {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.subject-footer {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
}

/* --- LINKS PANEL --- */

.links-intro {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

@media (min-width: 540px) {
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.link-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--accent-soft);
  text-decoration: none;
  background: radial-gradient(circle at top left, rgba(105, 247, 255, 0.25), transparent 55%)
      border-box,
    rgba(2, 7, 26, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    border-color 0.12s ease-out, background 0.12s ease-out;
}

.link-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(105, 247, 255, 0.5),
    transparent 40%,
    rgba(255, 118, 255, 0.5)
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  pointer-events: none;
}

.link-chip:hover,
.link-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(5, 255, 255, 0.25);
  border-color: var(--accent);
}

.link-chip:hover::before,
.link-chip:focus-visible::before {
  opacity: 0.45;
}

.chip-main {
  min-width: 0;
}

.chip-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chip-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.chip-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent);
  padding-left: 0.4rem;
  border-left: 1px solid rgba(105, 247, 255, 0.35);
}

/* footer console line */
.panel-footer {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(139, 170, 240, 0.4);
}

.console-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.console-prefix {
  color: var(--accent);
}

/* --- GHOST LINK BUTTONS --- */

.ghost-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.ghost-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--accent-alt));
  transform-origin: left;
  transform: scaleX(0.16);
  opacity: 0.7;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ghost-link:hover::after,
.ghost-link:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.ghost-link--small {
  font-size: 0.68rem;
}

/* --- ABOUT PAGE LAYOUT --- */

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

@media (min-width: 880px) {
  .about-layout {
    flex-direction: row;
  }
}

.about-side {
  flex: 0 0 230px;
  border-right: 1px dashed rgba(139, 170, 240, 0.5);
  padding-right: 1.1rem;
  margin-right: 1.1rem;
}

@media (max-width: 879px) {
  .about-side {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px dashed rgba(139, 170, 240, 0.5);
    padding-bottom: 1rem;
  }
}

.about-block + .about-block {
  margin-top: 0.85rem;
}

.about-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.about-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-list li + li {
  margin-top: 0.2rem;
}

.about-main {
  flex: 1;
  min-width: 0;
}

.about-title {
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.about-main p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-main p + p {
  margin-top: 0.8rem;
}

.about-terminal {
  margin-top: 1.1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(105, 247, 255, 0.4);
  background: rgba(2, 8, 28, 0.9);
}

/* --- RESPONSIVE TWEAKS --- */

@media (max-width: 540px) {
  .subject-top {
    flex-direction: column;
  }
/* --- READABILITY TWEAKS FOR LINKS PANEL --- */

/* Make the right panel a bit more solid so text stands out */
.panel--links {
  background: rgba(3, 8, 30, 0.98);
}

/* Darker, simpler chip background so the text pops */
.link-chip {
  background: rgba(2, 7, 26, 0.98);
}

/* Main labels + codes: bright and sharp */
.chip-label,
.chip-code {
  color: #f5fbff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  font-size: 0.85rem; /* slightly bigger */
}

/* Small notes + intro + footer line: brighter + glow */
.chip-note,
.links-intro,
.panel-subtitle,
.console-line {
  color: #c5d6ff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  font-size: 0.74rem; /* slightly bigger than before */
}
.profile-image {
  width: 140px;
  height: 175px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}


}
