@charset "UTF-8";

/* ==========================================================================
   PDA — portfolio, cyan & steel holographic theme
   ========================================================================== */

:root {
  --bg-0: #070b10;
  --bg-1: #0c141d;
  --steel-1: #16202c;
  --steel-2: #24374b;
  --steel-3: #3d566e;
  --steel-4: #7d93a8;
  --text: #d9e4ee;
  --text-dim: #8ea4b8;
  --cyan: #38dfff;
  --cyan-bright: #a9f3ff;
  --cyan-dim: rgba(56, 223, 255, 0.35);
  --cyan-faint: rgba(56, 223, 255, 0.12);
  --card-bg: rgba(22, 32, 44, 0.55);
  --card-border: rgba(125, 147, 168, 0.35);
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 70% -10%, rgba(56, 223, 255, 0.08), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(61, 86, 110, 0.25), transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--cyan-dim); color: #fff; }

/* --------------------------------------------------------------------------
   Holographic backdrop
   -------------------------------------------------------------------------- */

#holo-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

#holo-bg canvas { display: block; width: 100%; height: 100%; }

/* Scanlines + slow sweep band, sits above the canvas but behind content */
.holo-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.holo-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(169, 243, 255, 0.028) 0px,
    rgba(169, 243, 255, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
}

.holo-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 34vh;
  top: -40vh;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(56, 223, 255, 0.045) 50%,
    transparent 100%
  );
  animation: holo-sweep 11s linear infinite;
}

@keyframes holo-sweep {
  0%   { transform: translateY(0); }
  100% { transform: translateY(180vh); }
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--steel-1);
  color: var(--cyan-bright);
  border: 1px solid var(--cyan-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(12, 20, 29, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125, 147, 168, 0.18);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(10, 16, 24, 0.85);
  border-bottom-color: var(--cyan-faint);
}

.nav-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  color: var(--cyan-bright);
  text-decoration: none;
  text-shadow: 0 0 18px var(--cyan-dim);
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.5vw, 34px);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cyan-bright);
  text-shadow: 0 0 12px var(--cyan-dim);
}

.nav-links a.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--card-border);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 16, 24, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cyan-faint);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links.open { max-height: 320px; }

  .nav-links a {
    padding: 15px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid rgba(125, 147, 168, 0.1);
  }
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "▰ ";
  color: var(--steel-4);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: clamp(28px, 5vh, 48px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--nav-h) 20px 40px;
}

.hero-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 16vw, 10rem);
  letter-spacing: 0.28em;
  margin-left: 0.28em; /* optical centering against letter-spacing */
  line-height: 1.05;
  color: var(--cyan-bright);
  text-shadow:
    0 0 12px rgba(56, 223, 255, 0.55),
    0 0 48px rgba(56, 223, 255, 0.30),
    0 0 120px rgba(56, 223, 255, 0.18);
  animation: hero-flicker 9s linear infinite;
}

@keyframes hero-flicker {
  0%, 100%  { opacity: 1; }
  97.4%     { opacity: 1; }
  97.6%     { opacity: 0.72; }
  97.8%     { opacity: 1; }
  98.4%     { opacity: 0.85; }
  98.6%     { opacity: 1; }
}

.hero-tagline {
  margin-top: 18px;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 520px;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: cue-pulse 2.2s ease-in-out infinite;
}

@keyframes cue-pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(70px, 14vh, 130px) clamp(18px, 5vw, 60px);
}

.section-inner {
  max-width: 1060px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Holo info cards
   -------------------------------------------------------------------------- */

.holo-grid {
  --grid-gap: clamp(22px, 3.5vw, 38px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}

.holo { will-change: transform; height: 100%; }

/* Alternating offsets so cards hover at staggered heights on wide screens */
@media (min-width: 761px) {
  .holo-grid { grid-template-columns: repeat(2, 1fr); }
  .holo-grid .holo:nth-child(2) { margin-top: 34px; }
  .holo-grid .holo:nth-child(3) { margin-top: 12px; }
  .holo-grid .holo:nth-child(4) { margin-top: 42px; }
  /* lone card on the last row: center it at single-column width */
  .holo-grid .holo:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--grid-gap) / 2);
    margin-top: 10px;
  }
  .holo-wide { max-width: 780px; }
  #about .holo-wide { margin-left: 6%; }
  #contact .holo-wide { margin-left: 14%; }
}

.holo-card {
  position: relative;
  height: 100%;
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(56, 223, 255, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 60px rgba(56, 223, 255, 0.03);
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.holo-card.visible {
  opacity: 1;
  transform: none;
}

.holo-card:hover {
  border-color: var(--cyan-dim);
  box-shadow:
    0 0 0 1px rgba(56, 223, 255, 0.12),
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(56, 223, 255, 0.10),
    inset 0 0 60px rgba(56, 223, 255, 0.05);
}

/* HUD corner brackets */
.holo-card::before,
.holo-card::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease;
}

.holo-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.holo-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.holo-card:hover::before,
.holo-card:hover::after {
  width: 34px;
  height: 34px;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-faint);
  background: rgba(56, 223, 255, 0.05);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--cyan-bright);
  margin-bottom: 10px;
}

.card-body {
  color: var(--text-dim);
  font-size: 0.97rem;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-faint);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--cyan-bright);
  border-bottom-color: var(--cyan);
}

/* Contact */

.contact-list { list-style: none; }

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(125, 147, 168, 0.15);
}

.contact-list li:last-child { border-bottom: none; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-4);
  min-width: 90px;
}

.contact-value {
  font-size: 1.02rem;
  color: var(--cyan-bright);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, text-shadow 0.25s ease;
}

.contact-value:hover,
.contact-value:focus-visible {
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan-dim);
}

/* --------------------------------------------------------------------------
   Doc pages (Game Info, Policies)
   -------------------------------------------------------------------------- */

.doc-main {
  max-width: 880px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 80px)) clamp(18px, 5vw, 40px) clamp(60px, 10vh, 100px);
}

.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.doc-toc a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  background: rgba(22, 32, 44, 0.45);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.doc-toc a:hover,
.doc-toc a:focus-visible {
  color: var(--cyan-bright);
  border-color: var(--cyan-dim);
  background: rgba(56, 223, 255, 0.07);
}

.doc-panel + .doc-panel {
  margin-top: clamp(48px, 8vh, 84px);
}

.doc-panel {
  position: relative;
  margin-top: 18px;
  padding: clamp(28px, 5vw, 52px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(56, 223, 255, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 80px rgba(56, 223, 255, 0.03);
}

.doc-panel::before,
.doc-panel::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.doc-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.doc-panel::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.doc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.03em;
  color: var(--cyan-bright);
  text-shadow: 0 0 24px var(--cyan-dim);
  margin-bottom: 6px;
}

.doc-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel-4);
  margin-bottom: 26px;
}

.doc-intro {
  color: var(--text-dim);
  font-size: 1.02rem;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(125, 147, 168, 0.18);
}

.holo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  text-decoration: none;
  background: rgba(56, 223, 255, 0.07);
  border: 1px solid var(--cyan-dim);
  box-shadow: 0 0 18px rgba(56, 223, 255, 0.08), inset 0 0 18px rgba(56, 223, 255, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, text-shadow 0.25s ease;
}

.holo-btn:hover,
.holo-btn:focus-visible {
  background: rgba(56, 223, 255, 0.13);
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(56, 223, 255, 0.18), inset 0 0 24px rgba(56, 223, 255, 0.08);
  text-shadow: 0 0 12px var(--cyan-dim);
}

.holo-btn-icon {
  font-size: 0.7rem;
  color: var(--cyan);
}

.doc-section { margin-top: 38px; }

.doc-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--text);
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
  margin-bottom: 16px;
}

.doc-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--cyan);
  margin: 22px 0 8px;
}

.doc-body {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 12px;
}

.doc-list {
  list-style: none;
  margin: 6px 0 12px;
}

.doc-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--text-dim);
  font-size: 0.97rem;
}

.doc-list li::before {
  content: "⬡";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--cyan);
  font-size: 0.85rem;
}

.doc-steps {
  list-style: none;
  counter-reset: step;
  margin: 6px 0 12px;
}

.doc-steps li {
  position: relative;
  counter-increment: step;
  padding: 6px 0 6px 36px;
  color: var(--text-dim);
  font-size: 0.97rem;
}

.doc-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
}

.doc-kv-list { list-style: none; }

.doc-kv-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(125, 147, 168, 0.12);
}

.doc-kv-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-4);
  min-width: 130px;
  padding-top: 2px;
}

.doc-kv-value { color: var(--text); font-size: 0.95rem; }

.doc-pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-dim);
  background: rgba(7, 11, 16, 0.7);
  border: 1px solid rgba(125, 147, 168, 0.2);
  border-left: 3px solid var(--cyan-dim);
  padding: 18px;
  overflow-x: auto;
}

.doc-main a:not(.contact-value):not(.card-link) {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-faint);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.doc-main a:not(.contact-value):not(.card-link):hover {
  color: var(--cyan-bright);
  border-bottom-color: var(--cyan);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--cyan-bright);
  background: rgba(56, 223, 255, 0.07);
  border: 1px solid var(--cyan-faint);
  padding: 1px 6px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 60px);
  border-top: 1px solid rgba(125, 147, 168, 0.15);
  background: rgba(10, 16, 24, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan-faint);
}

.footer-dim { opacity: 0.55; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

  .holo-overlay::after,
  .hero-mark,
  .scroll-cue i {
    animation: none;
  }

  .holo-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
