:root {
  --bg: #020805;
  --card-bg: rgba(4, 20, 10, 0.92);
  --neon: #27ff9f;
  --text-main: #f5fff7;
  --text-muted: #9ebfa7;
  --radius-xl: 28px;
}

/* general page look */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #04110a 0, #020805 40%, #000 100%);
  color: var(--text-main);
  overflow-x: hidden;
  background: #000; /* or your dark bg */
}

/* matrix canvas stays behind everything */
#matrixCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* main content fades in after matrix */
#mainContent {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  opacity: 0;          /* matrix script will fade this to 1 */
  transition: opacity 0.8s ease;
}

/* ---------- TOP NAV ---------- */

.top-nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: auto;
}

.nav-logo {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(39, 255, 159, 0.35);
  background: radial-gradient(circle at top, rgba(39, 255, 159, 0.18), transparent);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--neon);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- HERO CARD ---------- */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.hero-card {
  max-width: 900px;
  width: 100%;
  padding: 40px 56px 44px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid rgba(39, 255, 159, 0.38);
  box-shadow:
    0 0 60px rgba(39, 255, 159, 0.15),
    0 0 120px rgba(39, 255, 159, 0.28);
  backdrop-filter: blur(18px);
}

.hero-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.hero-name {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--neon);
}

.hero-subtitle {
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* socials row */
.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.hero-socials a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(39, 255, 159, 0.25);
  background: radial-gradient(circle at top, rgba(39, 255, 159, 0.12), transparent);
  transition: all 0.2s ease;
}

.hero-socials a:hover {
  color: var(--text-main);
  border-color: var(--neon);
}

/* CTA buttons */

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
}

.btn-primary {
  background: var(--neon);
  color: #021206;
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(39, 255, 159, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(39, 255, 159, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(39, 255, 159, 0.5);
}

.btn-ghost:hover {
  border-color: var(--neon);
}

/* ---------- SKILLS SECTION ---------- */

.skills-section {
  padding: 40px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* base pill look */
.skill-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(39, 255, 159, 0.4);
  background: rgba(3, 25, 14, 0.95);
  color: var(--text-main);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* initial off-screen positions */
.slide-in-left {
  transform: translateX(-60px);
}

.slide-in-right {
  transform: translateX(60px);
}

/* when in view */
.skill-pill.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- STUB SECTIONS (for now) ---------- */

.stub-section {
  padding: 60px 24px 90px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(39, 255, 159, 0.15);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .top-nav {
    padding: 8px 18px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.7rem;
  }

  .hero-card {
    padding: 28px 22px 30px;
  }

  .hero-name {
    letter-spacing: 0.28em;
  }

  .skills-grid {
    gap: 10px;
  }
}

/* ---------- SKILLS SECTION ---------- */

.skills-section {
  padding: 5rem 8vw 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e0ffee;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #8bd6b7;
  margin-bottom: 1.8rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* pill base style */
.skill-pill {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #0f8f5c;
  margin: 0.35rem 0.6rem;
  color: #d5ffe9;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(5, 40, 25, 0.85);

  opacity: 0;
  transform: translateX(var(--slide-offset, 0)) translateY(12px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out,
    box-shadow 0.25s ease-out,
    background 0.25s ease-out;
}

.slide-in-left  { --slide-offset: -40px; }
.slide-in-right { --slide-offset:  40px; }

/* when scrolled into view */
.skill-pill.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.22);
}

.skill-pill:hover {
  background: rgba(7, 60, 37, 0.95);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.38);
}


/* ==== CUSTOM SCROLLBAR (desktop) ==== */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #12f09b #020b09; /* thumb / track */
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020b09;
}

::-webkit-scrollbar-thumb {
    background: #0f7a4b;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(18, 240, 155, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: #12f09b;
}

/* ==== SKILLS SECTION ==== */

.skills-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

.section-title {
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e9fff4;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6ce1a8;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 1.8rem;
}

/* pill base */
.skill-pill {
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 240, 155, 0.5);
    color: #e9fff4;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0% 0%, rgba(18, 240, 155, 0.12), transparent);
    box-shadow: 0 0 0 rgba(18, 240, 155, 0);
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out,
        box-shadow 0.4s ease-out,
        border-color 0.4s ease-out;
}

/* slide directions before in-view */
.slide-in-left {
    transform: translateX(-20px);
}

.slide-in-right {
    transform: translateX(20px);
}

/* once observer fires */
.skill-pill.in-view {
    opacity: 1;
    transform: translateX(0) translateY(0);
    box-shadow: 0 0 18px rgba(18, 240, 155, 0.45);
    border-color: rgba(18, 240, 155, 0.9);
}

/* ===== SKILLS BLOCKS (HEADINGS + LINES + MONITOR) ===== */

.skills-section {
  padding: 6rem 8vw 5rem;
}

.skills-category {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 4rem;
  align-items: center;
  margin-top: 3.5rem;
}

.skills-category[data-direction="right"] {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.skills-text {
  max-width: 38rem;
}

.skills-heading {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #caffd9;
  margin-bottom: 1.1rem;

  opacity: 0;
  filter: blur(6px);
  transform: translateX(-40px);
  transition: opacity 0.5s ease-out,
              transform 0.6s ease-out,
              filter 0.6s ease-out;
}

.skills-category[data-direction="right"] .skills-heading {
  transform: translateX(40px);
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-line {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8bf1b4;
  margin: 0.35rem 0;

  opacity: 0;
  filter: blur(6px);
  transform: translateX(-40px);
  transition: opacity 0.45s ease-out,
              transform 0.55s ease-out,
              filter 0.55s ease-out;
}

.skills-category[data-direction="right"] .skill-line {
  transform: translateX(40px);
}

/* visible state toggled from JS */
.skills-heading.visible,
.skill-line.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

/* ===== RETRO CRT MONITOR ===== */

.skills-monitor {
  justify-self: center;
}

.crt-monitor {
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 0 18px rgba(0, 255, 128, 0.4));
}

.crt-screen {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  padding: 1.1rem 1rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(0,255,128,0.25), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(0,255,200,0.16), transparent 60%),
    #020e07;
  border: 2px solid rgba(0, 255, 140, 0.5);
  box-shadow:
    0 0 0 1px rgba(0,255,128,0.25),
    0 0 24px rgba(0,255,128,0.5);
  position: relative;
  overflow: hidden;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: #96ffc4;
}

.crt-label {
  opacity: 0.75;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.crt-prompt {
  display: block;
  margin-top: 0.5rem;
}

.crt-caret {
  display: inline-block;
  width: 0.55rem;
  margin-left: 0.2rem;
  height: 0.95em;
  background: rgba(150, 255, 196, 0.95);
  box-shadow: 0 0 10px rgba(0, 255, 160, 0.8);
  animation: crtCaretBlink 0.9s steps(1, end) infinite;
}

@keyframes crtCaretBlink {
  0%, 50% { opacity: 1; }
  60%, 100% { opacity: 0; }
}

.crt-stand {
  width: 70%;
  height: 0.8rem;
  margin-top: 0.7rem;
  border-radius: 0.8rem;
  background: #021409;
  box-shadow:
    0 -6px 10px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0,255,128,0.5);
}

/* responsive tweak */
@media (max-width: 900px) {
  .skills-category,
  .skills-category[data-direction="right"] {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .skills-monitor {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

/* ===== SKILLS LAYOUT ================================================= */

.skills-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: flex-start;
}

/* Left column: categories */

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.skill-category {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.skill-category:nth-of-type(2),
.skill-category:nth-of-type(4) {
  transform: translateX(30px);
}

.skill-category.active {
  opacity: 1;
  transform: translateX(0);
}

.skills-heading {
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ccffcc;
  margin-bottom: 0.9rem;
}

.skills-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-lines li {
  font-size: 0.95rem;
  color: #a9f5cf;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: var(--line-delay, 0ms);
}

.skill-category.active .skills-lines li {
  opacity: 1;
  transform: translateY(0);
}

/* Right column: CRT monitor */

.skills-monitor {
  position: sticky;
  top: 18vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-inner {
  width: 320px;
  max-width: 100%;
  padding: 1.2rem 1.4rem;
  background: radial-gradient(circle at 20% 0%, #082218 0%, #020b07 60%);
  border-radius: 22px;
  border: 1px solid rgba(0, 255, 153, 0.6);
  box-shadow:
    0 0 8px rgba(0, 255, 153, 0.6),
    0 0 32px rgba(0, 255, 153, 0.45),
    0 0 90px rgba(0, 255, 153, 0.3);
  position: relative;
  overflow: hidden;
}

/* scanlines / CRT feel */
.monitor-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 255, 153, 0.08) 0px,
      rgba(0, 255, 153, 0.08) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: screen;
  opacity: 0.4;
}

.monitor-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), transparent 40%);
  pointer-events: none;
}

.monitor-header {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #7fffd4;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

#monitorText {
  position: relative;
  z-index: 1;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #a8ffd8;
  white-space: pre-wrap;
}

/* typing cursor */
#monitorText::after {
  content: "█";
  display: inline-block;
  margin-left: 4px;
  animation: crt-cursor 0.9s steps(1) infinite;
  color: #7fffd4;
}

@keyframes crt-cursor {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}

/* stand */
.monitor-stand {
  width: 160px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, #0a3b28 0%, #01130c 55%);
  margin-top: 0.8rem;
  box-shadow: 0 0 24px rgba(0, 255, 153, 0.3);
}

/* small "glitch" jiggle when text changes */
.monitor-glitch {
  animation: crt-glitch 0.18s ease;
}

@keyframes crt-glitch {
  0%   { transform: translate(0,0); }
  30%  { transform: translate(-1px, 0.5px); }
  60%  { transform: translate(1px, -0.5px); }
  100% { transform: translate(0,0); }
}

/* ===== CUSTOM PC SCROLLBAR ========================================= */

body {
  scrollbar-width: thin;
  scrollbar-color: #00ff99 #020b07;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #020b07;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(#00ff99, #05f2c2);
  border-radius: 4px;
}

/* ===== RESPONSIVE: MOBILE =========================================== */

@media (max-width: 900px) {
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .skills-monitor {
    position: static;
    order: -1;        /* monitor on top on mobile */
  }

  .skills-section {
    padding-top: 4rem;
  }
}

/* footer base */
.site-footer {
    border-top: 1px solid rgba(0, 255, 140, 0.15);
    padding: 1.5rem 5vw 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    color: #a3ffd9;
    background: #020a06;
}

/* starts as a normal letter */
#footer-disc {
    display: inline-block;
    cursor: pointer;
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

/* after first click -> vinyl disc */
#footer-disc.disc-active {
    position: relative;
    color: #bffff0;
    text-shadow: 0 0 6px #00ff9a;
}

/* outer glowing ring (vinyl) */
#footer-disc.disc-active::before {
    content: "";
    position: absolute;
    inset: -0.18em;
    border-radius: 50%;
    border: 2px solid #00ff9a;
    box-shadow:
        0 0 5px #00ff9a,
        0 0 14px rgba(0, 255, 154, 0.6),
        0 0 26px rgba(0, 255, 154, 0.4);
}

/* centre hole */
#footer-disc.disc-active::after {
    content: "";
    position: absolute;
    width: 0.22em;
    height: 0.22em;
    border-radius: 50%;
    border: 1px solid #00ff9a;
    background: radial-gradient(circle, #00ff9a 0, #00140e 45%, #000 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* spinning while playing */
#footer-disc.disc-spin {
    animation: footerDiscSpin 2.4s linear infinite;
}

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

/* ---- skills section base ---- */
.skills-section {
    padding: 7rem 8vw 9rem;
}

/* main heading for all skills */
.skills-main-title {
    margin-bottom: 0.2rem;
}

.skills-main-subtitle {
    margin-bottom: 3.5rem;
    max-width: 36rem;
}

/* two-column layout: text left, big monitor right */
.skills-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 5rem;
    align-items: flex-start;
}

/* column of categories */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;    /* space between the three factions */
}

/* each block */
.skill-category {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-category.active {
    opacity: 1;
    transform: translateY(0);
}

.skills-heading {
    font-size: 1.4rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

/* the individual lines */
.skills-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.skills-lines li {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a9ffe5;
    margin: 0.18rem 0;
    opacity: 0;
    transform: translateX(-18px);
    animation: skillLineIn 0.4s ease forwards;
    animation-delay: var(--line-delay, 0ms);
}

@keyframes skillLineIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---- big CRT monitor ---- */
.skills-monitor {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.monitor-inner {
    position: relative;
    width: min(520px, 80vw);
    height: 260px;
    border-radius: 22px;
    padding: 18px 22px;
    background:
        radial-gradient(circle at 20% 0%, rgba(0,255,194,0.25), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(0,255,154,0.18), transparent 60%),
        #02130c;
    box-shadow:
        0 0 8px rgba(0,255,154,0.6),
        0 0 26px rgba(0,255,154,0.4),
        0 0 70px rgba(0,255,154,0.2);
    overflow: hidden;
    border: 1px solid rgba(0,255,154,0.6);
}

/* scanlines + slight CRT vignette */
.monitor-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0,255,154,0.07) 0,
            rgba(0,255,154,0.07) 1px,
            rgba(0,0,0,0.7) 3px
        );
    mix-blend-mode: screen;
    opacity: 0.3;
    pointer-events: none;
}

.monitor-inner::after {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 50% 0%, rgba(0,0,0,0.7) 0, transparent 55%),
        radial-gradient(circle at 0% 50%, rgba(0,0,0,0.8) 0, transparent 50%),
        radial-gradient(circle at 100% 50%, rgba(0,0,0,0.8) 0, transparent 50%);
    opacity: 0.25;
    pointer-events: none;
}

.monitor-header {
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    color: #8fffd6;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.6rem;
}

/* the typed text */
#monitorText {
    position: relative;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 0.9rem;
    color: #c7ffe6;
    white-space: pre-wrap;
    line-height: 1.6;
    text-shadow:
        0 0 3px #00ff9a,
        0 0 10px rgba(0,255,154,0.7);
    z-index: 1;
}

/* small flickery glitch when a new script starts */
#monitorText.monitor-glitch {
    animation: monitorGlitch 0.28s steps(2, end);
}

@keyframes monitorGlitch {
    0%   { transform: translate(0,0);   opacity: 0.9; }
    25%  { transform: translate(-1px,0); opacity: 1; }
    50%  { transform: translate(1px,-1px); opacity: 0.92; }
    75%  { transform: translate(0,1px); opacity: 1; }
    100% { transform: translate(0,0);   opacity: 1; }
}

/* stand under the monitor */
.monitor-stand {
    width: 140px;
    height: 18px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: radial-gradient(circle, #00ff9a 0, #02170e 60%);
    box-shadow:
        0 0 12px rgba(0,255,154,0.6),
        0 0 26px rgba(0,255,154,0.4);
}

/* ---- mobile: stack text & CRT vertically ---- */
@media (max-width: 900px) {
    .skills-layout {
        grid-template-columns: 1fr;
        row-gap: 3rem;
    }

    .skills-monitor {
        order: -1;
        margin-bottom: 2.5rem;
    }

    .skills-list {
        gap: 3rem;
    }

    .monitor-inner {
        height: 230px;
    }
}

/* SKILLS SECTION LAYOUT */

.skills-section {
  padding: 7rem 8vw 6rem;
}

.skills-main-title {
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.skills-main-subtitle {
  margin-bottom: 3.5rem;
}

.skills-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6rem;
}

.skills-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.skill-category {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-category.active {
  opacity: 1;
  transform: translateY(0);
}

.skills-heading {
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.skills-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-lines li {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  opacity: 0;
  transform: translateX(-12px);
  animation: skillLineIn 0.4s forwards;
  animation-delay: var(--line-delay, 0ms);
  animation-play-state: paused;
}

.skill-category.active .skills-lines li {
  animation-play-state: running;
}

@keyframes skillLineIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* BIG CRT MONITOR */

.skills-monitor {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.monitor-inner {
  width: min(720px, 90vw);
  height: 320px;
  border-radius: 26px;
  padding: 1.6rem 2rem;
  background:
    radial-gradient(circle at top left, rgba(0,255,190,0.35), transparent 45%),
    radial-gradient(circle at bottom, rgba(0,255,170,0.18), rgba(0,0,0,0.95) 70%);
  border: 1px solid rgba(0, 255, 160, 0.8);
  box-shadow:
    0 0 32px rgba(0, 255, 160, 0.3),
    0 0 80px rgba(0, 255, 160, 0.35);
  position: relative;
  overflow: hidden;
}

.monitor-header {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a9ffe2;
  margin-bottom: 0.8rem;
}

#monitorText {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  color: #c7ffe8;
  white-space: pre-wrap;
}

/* tiny scanline / glitch shimmer */
.monitor-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0.22) 50%
  );
  background-size: 100% 2px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.monitor-glitch {
  animation: monitorGlitch 0.3s;
}

@keyframes monitorGlitch {
  0%   { transform: translateX(0);    }
  25%  { transform: translateX(-1px); }
  50%  { transform: translateX(1px);  }
  75%  { transform: translateX(-0.5px);}
  100% { transform: translateX(0);    }
}

.monitor-stand {
  width: 170px;
  height: 22px;
  margin-top: 1rem;
  border-radius: 999px;
  background: radial-gradient(circle, #2cffaf, #01150d 60%);
  box-shadow:
    0 0 24px rgba(0, 255, 160, 0.5),
    0 0 60px rgba(0, 255, 160, 0.4);
}

/* RESPONSIVE: STACK ON MOBILE */

@media (max-width: 900px) {
  .skills-section {
    padding: 5rem 1.75rem 4rem;
  }

  .skills-layout {
    flex-direction: column;
    gap: 3rem;
  }

  .skills-monitor {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

.site-footer {
  padding: 1.8rem 0 2.3rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9ffe4;
}

.footer-text {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

/* footer base */
.site-footer {
    border-top: 1px solid rgba(0, 255, 140, 0.15);
    padding: 1.5rem 5vw 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    color: #a3ffd9;
    background: #020a06;
}

/* starts as a normal letter */
#footer-disc {
    display: inline-block;
    cursor: pointer;
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

/* after first click -> vinyl */
#footer-disc.disc-active {
    position: relative;
    color: #bffff0;
    text-shadow: 0 0 6px #00ff9a;
}
#footer-disc.disc-active::before {
    content: "";
    position: absolute;
    inset: -0.18em;
    border-radius: 50%;
    border: 2px solid #00ff9a;
    box-shadow:
        0 0 5px #00ff9a,
        0 0 14px rgba(0, 255, 154, 0.6),
        0 0 26px rgba(0, 255, 154, 0.4);
}
#footer-disc.disc-active::after {
    content: "";
    position: absolute;
    width: 0.22em;
    height: 0.22em;
    border-radius: 50%;
    border: 1px solid #00ff9a;
    background: radial-gradient(circle, #00ff9a 0, #00140e 45%, #000 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#footer-disc.disc-spin {
    animation: footerDiscSpin 2.4s linear infinite;
}
@keyframes footerDiscSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* make skill headings visible when the block is active */
.skill-category.active .skills-heading {
  opacity: 1;
  filter: none;
  transform: translateX(0);
}

#footer-disc {
    display: inline-block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

#footer-disc.disc-active {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-image: url("assets/disc.png");
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0 0 6px #00ff99);
}

#footer-disc.disc-spin {
    animation: spinDisc 2s linear infinite;
}

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

.skills-monitor {
    transform: scale(0.85);
}

@media(max-width: 900px) {
    .skills-monitor {
        transform: scale(0.65);
        margin-left: -20px;
    }
}

@media(max-width: 600px) {
    .skills-monitor {
        transform: scale(0.55);
        margin: 0 auto;
    }
}

/* O → logo styling */
#footer-logo {
    width: 26px;
    height: 26px;
    transform-origin: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* When morphs into disc image */
#footer-disc.disc-active #footer-logo {
    opacity: 0;
}

/* Replace background with disc */
#footer-disc.disc-active {
    display: inline-flex;
    width: 26px;
    height: 26px;
    background-image: url("assets/disc.png");
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

/* Spin animation */
.disc-spin {
    animation: spinDisc 2.5s linear infinite;
}

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

/* Fix white border issue on mobile */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media (max-width: 600px) {
    .skills-monitor {
        transform: scale(0.75);
        transform-origin: top right;
        margin-right: -20px;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-name {
        font-size: 1.9rem;
    }
}

/* === FOOTER DISC CLEAN VERSION ================================== */

/* footer base */
.site-footer {
    border-top: 1px solid rgba(0, 255, 140, 0.15);
    padding: 1.5rem 5vw 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #a3ffd9;
    background: #020a06;
}

.footer-text {
    display: inline-block;
}

/* 1) default: it is just the letter "O" */
#footer-disc {
    display: inline-block;
    cursor: pointer;
    min-width: 0.6em;          /* stops layout from jumping */
    color: inherit;
    text-shadow: none;
    transform: none;
}

/* 2) after first click: morph to disc image and stay that way */
#footer-disc.disc-active {
    text-indent: -9999px;      /* hide the "O" text */
    overflow: hidden;
    width: 26px;
    height: 26px;
    vertical-align: middle;
    margin: 0 4px;
    border-radius: 50%;
    background-image: url("assets/disc.png");
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0 0 6px #00ff99);
}

/* 3) spin only when music is playing */
#footer-disc.disc-spin {
    animation: footerDiscSpin 2.3s linear infinite;
}

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

/* === SKILLS MONITOR RESPONSIVE FIX ========================= */

/* desktop / tablet grid */
.skills-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: flex-start;
}

/* monitor column */
.skills-monitor {
    position: sticky;
    top: 18vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: none;    /* kill old scale() stuff */
    margin: 0;
}

/* keep CRT inside the column width */
.monitor-inner {
    width: min(420px, 100%);
    height: auto;
}

/* mobile: stack vertically, no overflow */
@media (max-width: 900px) {
    .skills-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .skills-monitor {
        position: static;
        order: -1;          /* monitor above lists */
        margin: 0 auto 2rem;
    }

    .monitor-inner {
        width: min(360px, 100%);
    }
}

/* while matrix intro is running, lock scroll */
body.loading {
    overflow: hidden;
}

/* once main content is live, scroll normally */
body {
    margin: 0;
    padding: 0;
}

/* ===== NAV ACTIVE STATE (for subpages) =================== */

.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  width: 100%;
}

/* ===== EDUCATION PAGE – DEGREE CARD ====================== */

.edu-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.edu-card {
  max-width: 900px;
  width: 100%;
  padding: 40px 56px 44px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid rgba(39, 255, 159, 0.38);
  box-shadow:
    0 0 60px rgba(39, 255, 159, 0.15),
    0 0 120px rgba(39, 255, 159, 0.28);
  backdrop-filter: blur(18px);
}

.edu-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.edu-title {
  font-size: clamp(2.1rem, 3.4vw, 2.6rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--neon);
}

.edu-subtitle {
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0.9;
  margin: 0 0 18px;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.edu-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(39, 255, 159, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.edu-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.edu-links {
  display: flex;
  gap: 12px;
}

/* ===== CERTIFICATIONS SECTION ============================ */

.cert-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

/* vertical-ish timeline feel */
.cert-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(3, 25, 14, 0.95);
  border: 1px solid rgba(39, 255, 159, 0.26);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 153, 0.16);
}

.cert-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* tiny circle for provider */
.cert-logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #27ff9f, #02170d 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00140b;
  box-shadow:
    0 0 12px rgba(39, 255, 159, 0.6),
    0 0 26px rgba(39, 255, 159, 0.4);
}

/* vertical connector */
.cert-timeline-dot {
  width: 8px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(39, 255, 159, 0.9),
    rgba(39, 255, 159, 0.1)
  );
}

/* main content */
.cert-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: #e0ffe8;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert-skills {
  font-size: 0.85rem;
  color: var(--text-main);
  opacity: 0.85;
}

.cert-link {
  margin-top: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--neon);
  text-decoration: none;
}

.cert-link:hover {
  text-decoration: underline;
}

/* tiny tag at right */
.cert-tag {
  align-self: center;
  justify-self: flex-end;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #02150b;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(39, 255, 159, 0.7);
}

/* responsive cert layout */
@media (max-width: 768px) {
  .edu-card {
    padding: 28px 22px 30px;
  }

  .cert-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 16px 18px;
  }

  .cert-left {
    flex-direction: row;
    justify-content: flex-start;
  }

  .cert-timeline-dot {
    height: 8px;
    width: 40px;
  }

  .cert-tag {
    justify-self: flex-start;
    margin-top: 4px;
  }
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}

#contact-laser {
  position: fixed;
  top: 50%;
  left: 0;
  width: 140%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #00ff9a 40%,
    #ffffff 50%,
    #00ff9a 60%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(0,255,154,0.9);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

#contact-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(0,255,154,0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0,255,154,0.05) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  opacity: 0.25;
  transform: scaleY(0);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
}

.contact-center {
  position: relative;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  margin-top: 4vh;
  margin-bottom: 4vh;
}

#card-frame {
  position: absolute;
  width: 420px;
  filter: drop-shadow(0 0 18px rgba(0,255,154,0.8));
  stroke: #00ffb0;
  stroke-width: 2;
  fill: transparent;
  z-index: 3;
}

#contact-card {
  position: relative;
  width: 380px;
  padding: 36px 40px 32px;
  background: radial-gradient(circle at top left, #05140b 0, #020804 55%);
  border-radius: 16px;
  border: 1px solid rgba(0,255,154,0.4);
  box-shadow: 0 0 30px rgba(0,255,154,0.45);
  color: #f5fff7;
  font-family: "Cormorant Garamond", serif; /* or similar */
  opacity: 0;
  transform: scale(0.9);
  z-index: 2;
  pointer-events: auto;
  aspect-ratio: 3.5 / 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===================== CONTACT CARD ===================== */

.contact-section {
  position: relative;
  min-height: 100vh;
  padding: 120px 8vw 90px; /* room for fixed nav at top */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* overlay that sits over the waves */
.contact-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* laser line that sweeps across the screen */
#contact-laser {
  position: absolute;
  left: -20%;
  top: 50%;
  width: 140%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 154, 0) 20%,
    #00ff9a 45%,
    #ffffff 50%,
    #00ff9a 55%,
    rgba(0, 255, 154, 0) 80%,
    transparent 100%
  );
  box-shadow: 0 0 22px rgba(0, 255, 154, 0.9);
  opacity: 0;
}

/* wireframe grid that appears after the sweep */
#contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 154, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 154, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0;
  transform-origin: center;
  transform: scaleY(0.7);
}

/* card wrapper in the center */
.contact-center {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SVG outline drawn by laser */
#card-outline {
  position: absolute;
  width: min(480px, 82vw);
  pointer-events: none;
}

#card-outline rect {
  fill: transparent;
  stroke: rgba(0, 255, 154, 0.9);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* main business card */
#contact-card {
  width: min(420px, 78vw);
  padding: 32px 40px 30px;
  background: radial-gradient(circle at top left, #07160d 0, #020805 55%);
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 154, 0.35);
  box-shadow:
    0 0 25px rgba(0, 255, 154, 0.42),
    0 0 80px rgba(0, 255, 154, 0.35);
  color: #f7fff9;
  font-family: "Georgia", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
}

/* top + bottom rows (like Paul Allen card) */
.card-row-top,
.card-row-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  line-height: 1.4;
}

.card-row-top {
  opacity: 0.85;
}

.card-row-bottom {
  margin-top: 1.2rem;
}

.card-row-links {
  margin-top: 0.4rem;
}

/* name + role */
#contact-card h2 {
  margin: 0.9rem 0 0.15rem;
  font-size: 1.35rem;
  letter-spacing: 0.24em;
}

.card-role {
  margin: 0 0 1.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  opacity: 0.85;
}

/* links on the card */
#contact-card a {
  color: #d9fff2;
  text-decoration: none;
}

#contact-card a:hover {
  text-decoration: underline;
}

/* responsive tweaks */
@media (max-width: 700px) {
  .contact-section {
    padding: 110px 4vw 60px;
  }

  #contact-card {
    padding: 26px 24px 24px;
    border-radius: 16px;
  }

  #contact-card h2 {
    font-size: 1.15rem;
  }

  .card-row-top,
  .card-row-bottom {
    font-size: 0.5rem;
  }
}

/* ===== CONTACT SECTION ========================================= */

.contact-section {
  position: relative;
  min-height: 100vh;
  padding: 7rem 6vw 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* overlay that sits over the canvas waves */
.contact-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* green laser that sweeps across */
#contact-laser {
  position: absolute;
  top: 50%;
  left: -20%;
  height: 2px;
  width: 140%;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 255, 153, 0.2) 20%,
    #00ff99 50%,
    rgba(0, 255, 153, 0.2) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(0, 255, 153, 0.8),
    0 0 32px rgba(0, 255, 153, 0.6);
  mix-blend-mode: screen;
  opacity: 0;
}

/* wireframe grid that appears after the laser */
#contact-grid {
  position: absolute;
  inset: 10% 8%;
  border-radius: 26px;
  background-image:
    linear-gradient(
      to right,
      rgba(0, 255, 153, 0.13) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(0, 255, 153, 0.13) 1px,
      transparent 1px
    );
  background-size: 70px 70px;
  opacity: 0;
  transform-origin: center;
  transform: scaleY(0.4);
  filter: drop-shadow(0 0 24px rgba(0, 255, 153, 0.35));
}

/* center stack for svg outline + card */
.contact-center {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  aspect-ratio: 7 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG outline sits exactly on top of card */
#card-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: #00ff9a;
}

#card-outline rect {
  stroke-width: 1.6;
  stroke-linejoin: round;
}

/* actual contact card */
#contact-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  padding: 2.4rem 2.8rem 2.2rem;
  background:
    radial-gradient(circle at top, rgba(0, 255, 153, 0.20), transparent 55%),
    radial-gradient(circle at bottom, rgba(0, 0, 0, 0.95), #020806 70%);
  box-shadow:
    0 0 40px rgba(0, 255, 153, 0.35),
    0 0 120px rgba(0, 255, 153, 0.18);
  color: #e8fff6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

/* top + bottom rows inside card */
.card-row-top,
.card-row-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #9defd0;
  margin-bottom: 0.7rem;
}

.card-row-top span:first-child {
  font-weight: 500;
}

#contact-card h2 {
  font-size: 1.4rem;
  margin: 0.8rem 0 0.4rem;
  letter-spacing: 0.15em;
}

.card-role {
  margin: 0 0 1.4rem;
  font-size: 0.75rem;
  color: #c1ffe6;
}

.card-row-links {
  margin-top: 1.1rem;
}

.card-row-links a {
  text-decoration: none;
  color: #b7ffe4;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  position: relative;
}

.card-row-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 1px;
  background: #00ff9a;
  transition: width 0.2s ease;
}

.card-row-links a:hover::after {
  width: 100%;
}

/* make mail link not bright blue */
#contact-card a {
  color: #b7ffe4;
}

/* mobile tweaks */
@media (max-width: 768px) {
  .contact-section {
    padding: 5rem 1.5rem 3.5rem;
  }

  #contact-card {
    padding: 1.8rem 1.7rem 1.6rem;
  }

  #contact-card h2 {
    font-size: 1.1rem;
    letter-spacing: 0.14em;
  }

  .card-role {
    font-size: 0.7rem;
  }

  .card-row-top,
  .card-row-bottom {
    font-size: 0.65rem;
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ===== CONTACT PAGE – PAUL ALLEN TRIBUTE =================== */

body.contact-page {
  background: #000;
  color: #f7fff9;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;          /* no scroll bar on contact page only */
}

/* whole viewport */
.contact-section {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* overlay behind card, over bg */
.contact-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* full-screen wireframe */
#contact-grid {
  position: absolute;
  inset: 0;                             /* fully extended */
  background-image:
    linear-gradient(
      rgba(0, 255, 153, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0, 255, 153, 0.08) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  opacity: 0;
  transform-origin: center;
  transform: scaleY(0.3);
  filter: drop-shadow(0 0 24px rgba(0, 255, 153, 0.35));
}

/* multiple parallel “plane” lasers */
.laser-line {
  position: absolute;
  left: -25%;
  top: 50%;
  width: 150%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 255, 153, 0.15) 15%,
    #00ff99 45%,
    #ffffff 50%,
    #00ff99 55%,
    rgba(0, 255, 153, 0.15) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(0, 255, 153, 0.9),
    0 0 30px rgba(0, 255, 153, 0.6);
  mix-blend-mode: screen;
  opacity: 0;
}

.laser-line:nth-child(1) { margin-top: -8px; }
.laser-line:nth-child(2) { margin-top:   0; }
.laser-line:nth-child(3) { margin-top:   8px; }

/* card + outline stack in the middle */
.contact-center {
  position: relative;
  z-index: 1;
  width: min(900px, 80vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG outline that gets drawn */
#card-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  color: #00ff9a;
}

#card-outline rect {
  fill: transparent;
  stroke: rgba(0, 255, 154, 0.9);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

/* business card itself – shorter so less empty space */
#contact-card {
  width: 100%;
  aspect-ratio: 3.5 / 1.6;   /* ~= credit-card shape, not too tall */
  padding: 2rem 2.7rem 1.9rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(0, 255, 153, 0.21), transparent 55%),
    radial-gradient(circle at bottom, rgba(0, 0, 0, 0.96), #020806 70%);
  border: 1px solid rgba(0, 255, 154, 0.4);
  box-shadow:
    0 0 35px rgba(0, 255, 154, 0.4),
    0 0 120px rgba(0, 255, 154, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;        /* name in the middle */
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  backdrop-filter: blur(16px);
}

/* top / bottom rows (phone, site, city, email, links) */
.card-row-top,
.card-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #9defd0;
}

.card-row-top {
  margin-bottom: 1.1rem;
}

.card-row-bottom {
  margin-top: 0.3rem;
}

/* main name + role */
#contact-card h2 {
  margin: 0.3rem 0 0.25rem;
  font-size: 1.45rem;
  letter-spacing: 0.2em;
}

.card-role {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  color: #c1ffe6;
}

/* tagline */
.card-tagline {
  margin-top: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #70f0c1;
}

/* CV button row */
.card-cta-row {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

/* neon CV button */
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 154, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #021208;
  background: #00ff99;
  box-shadow: 0 0 16px rgba(0, 255, 154, 0.65);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.card-btn:hover {
  background: #57ffd0;
  box-shadow: 0 0 24px rgba(0, 255, 154, 0.9);
  transform: translateY(-1px);
}

/* links look like the rest of the card */
#contact-card a {
  color: #b7ffe4;
  text-decoration: none;
}

#contact-card a:hover {
  text-decoration: underline;
}

/* small-screen tweaks */
@media (max-width: 768px) {
  .contact-section {
    padding: 0 1.5rem;
  }

  #contact-card {
    padding: 1.6rem 1.7rem 1.5rem;
  }

  #contact-card h2 {
    font-size: 1.15rem;
    letter-spacing: 0.18em;
  }

  .card-row-top,
  .card-row-bottom {
    font-size: 0.6rem;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
  }

  .card-tagline {
    margin-top: 0.8rem;
    font-size: 0.6rem;
  }

  .card-cta-row {
    justify-content: flex-start;
  }
}

/* ===== CONTACT PAGE FOOTER (made by Manas) ================= */

.contact-page .site-footer.contact-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  border-top: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #57f7c6;
  z-index: 5;
}

/* === FINAL CONTACT CARD TWEAKS (OVERRIDES) ===================== */

body.contact-page .contact-section {
  padding: 0;
}

/* Main card layout */
body.contact-page #contact-card {
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 3.5 / 1.55;  /* a bit taller than before */
  padding: 2.1rem 3.2rem 2.0rem;
  border-radius: 24px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;

  /* text + tilt base */
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-align: center;

  transform-origin: center;
  transform: rotateZ(0deg);
  transition: transform 0.16s ease-out;
}

/* top + bottom rows hug the top / bottom of the card */
body.contact-page .card-row-top,
body.contact-page .card-row-bottom {
  font-size: 0.72rem;
  color: #9defd0;
  margin: 0;
}

/* name & role */
body.contact-page #contact-card h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.85rem;
  letter-spacing: 0.24em;
}

body.contact-page .card-role {
  margin: 0 0 1rem;
  font-size: 0.8rem;
}

/* tagline */
body.contact-page .card-tagline {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #70f0c1;
}

/* CV button – softer glow */
body.contact-page .card-cta-row {
  margin-top: 0.7rem;
}

body.contact-page .card-btn {
  background: #0d231a;
  border-color: rgba(0, 255, 154, 0.6);
  box-shadow: 0 0 12px rgba(0, 255, 154, 0.45);
}

body.contact-page .card-btn:hover {
  background: rgb(29, 124, 84);
  box-shadow: 0 0 18px rgba(0, 255, 154, 0.75);
}

/* mobile tweak so everything still fits nicely */
@media (max-width: 768px) {
  body.contact-page #contact-card {
    padding: 1.8rem 1.7rem 1.6rem;
    aspect-ratio: auto;
  }

  body.contact-page #contact-card h2 {
    font-size: 1.35rem;
  }
}


.card-bottom-info {
  display: flex;
  justify-content: space-between;
  margin-top: 2.8rem;
  font-size: 0.74rem;
  color: #b7ffe4;
}

.card-bottom-info a {
  color: #b7ffe4;
  text-decoration: none;
}

.card-bottom-info a:hover {
  text-decoration: underline;
}

.left-info, .right-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* STRUCTURE: top | center | tagline | bottom */
#contact-card {
    width: 75%;
    max-width: 900px;

    background: radial-gradient(circle at top, #0b2f1e 0%, #020805 75%);
    border-radius: 18px;
    border: 1px solid rgba(0,255,154,0.35);
    padding: 40px 42px;
    box-shadow:
        0 0 25px rgba(0,255,154,0.35),
        0 0 120px rgba(0,255,154,0.20);

    display: grid;

    /* 4 rows: top | center | tagline | bottom */
    grid-template-rows: auto 1fr auto auto;

    height: 420px;

    text-transform: uppercase;
    letter-spacing: 0.12em;

    position: relative;
}

/* Top corners */
.card-row-top {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    opacity: 0.85;
}

/* Perfect vertical centering */
.card-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-center-block h2 {
    font-size: 22px;
    letter-spacing: 0.32em;
    margin: 0;
}

.card-role {
    font-size: 10px;
    letter-spacing: 0.28em;
    opacity: 0.85;
    margin-top: 6px;
}

/* tagline placed slightly lower */
.card-tagline {
    text-align: center;
    font-size: 9px;
    opacity: 0.65;
    margin-top: 4px;
}

/* Bottom row 3-column layout */
.card-bottom-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    margin-top: 6px;
}

/* bottom left/right text blocks */
.left-info, .right-info {
    font-size: 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* center download button */
.card-btn {
    padding: 6px 22px;
    border-radius: 999px;
    background: #00ff9a;
    color: #021208;
    font-size: 10px;
    text-decoration: none;
    border: 1px solid rgba(0,255,154,0.5);
    box-shadow: 0 0 20px rgba(0,255,154,0.45);
    justify-self: center;
}

.card-btn:hover {
    box-shadow: 0 0 28px rgba(0,255,154,0.75);
}


/* ===================== */
/* CONTACT CARD OVERRIDES */
/* ===================== */

body.contact-page #contact-card {
  position: relative;
  width: 86%;                /* FIX 1: keep within the glow */
  max-width: 900px;           /* PERFECT card width */
  padding: 60px 80px;
  margin: 0 auto;
  border-radius: 22px;
  background: radial-gradient(circle at top, #061c11 0%, #020805 70%);
  border: 1px solid rgba(0,255,154,0.35);
  box-shadow:
    0 0 40px rgba(0,255,154,0.35),
    0 0 120px rgba(0,255,154,0.25);
  color: #e6fff4;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  user-select: none;
}

/* remove underline */
body.contact-page #contact-card a {
  text-decoration: none;
  color: #cffff0;
}
body.contact-page #contact-card a:hover {
  opacity: 0.85;
}

/* TOP LEFT / TOP RIGHT */
body.contact-page #contact-card .card-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 80px;
  opacity: 0.9;
}

/* ---- CENTER BLOCK ---- */
body.contact-page #contact-card .card-center-block {
  text-align: center;
}

body.contact-page #contact-card .card-center-block h2 {
  margin: 0 auto;
  font-size: 32px;
  letter-spacing: 0.42em;
  padding-top: 1.1em;
  width: fit-content; /* FIX 2: true visual centering */
}

body.contact-page #contact-card .card-role {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.32em;
  opacity: 0.9;
}

/* ---- TAGLINE ---- */
body.contact-page #contact-card .card-tagline {
  margin: 70px auto 20px auto;
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.18em;
  opacity: 0.75;

  width: fit-content;            /* FIX 3 */
}

/* ---- BOTTOM ROW ---- */
/* We put button in the middle SLOTTED properly */
body.contact-page #contact-card .card-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  margin-top: 12px;
}

/* LEFT and RIGHT info blocks */
body.contact-page #contact-card .left-info,
body.contact-page #contact-card .right-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
}

/* left aligns left, right aligns right */
body.contact-page #contact-card .left-info {
  text-align: left;
}
body.contact-page #contact-card .right-info {
  text-align: right;
}

/* ---- BUTTON in middle ---- */
body.contact-page #contact-card .card-btn {
  justify-self: center;          /* FIX 4: CENTER IT CLEANLY */
  padding: 9px 30px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,154,0.7);
  background: transparent;
  color: #e6fff4;
  font-size: 10px;
  letter-spacing: 0.22em;
  box-shadow: 0 0 18px rgba(0,255,154,0.45);
  transition: 0.2s ease;
}

body.contact-page #contact-card .card-btn:hover {
  background: rgba(0,255,154,0.12);
  box-shadow: 0 0 26px rgba(0,255,154,0.7);
  transform: translateY(-1px);
}


body.contact-page #contact-grid::before,
body.contact-page #contact-grid::after {
  opacity: 0.25 !important;                 /* from ~0.05 to 0.25 */
  filter: drop-shadow(0 0 18px #00ff9a) 
          drop-shadow(0 0 40px #00ff9a);
}

body.contact-page #contact-grid {
  background-size: 120px 120px;
  background-image:
    linear-gradient(to right, rgba(0,255,154,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,255,154,0.18) 1px, transparent 1px);
}

#contact-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* strong matrix grid + glow */
  background-image:
    radial-gradient(circle at 50% -10%, rgba(0,255,153,0.25) 0, transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(0,255,120,0.20) 0, transparent 60%),
    linear-gradient(rgba(0,255,153,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,153,0.12) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    80px 80px,
    80px 80px;

  opacity: 0.7; /* crank up visibility */
  filter: drop-shadow(0 0 28px rgba(0,255,153,0.55));
}


/* ===========================
   EXPERIENCE PAGE – WAVE TIMELINE
   =========================== */

body.experience-page {
  background: radial-gradient(circle at top, #04110a 0, #020805 40%, #000 100%);
  color: #e9fff5;
}

/* keep your global header/footer look, only add page layout: */
.experience-main {
  min-height: 100vh;
  padding: 120px 6vw 80px;
}

/* --- hero text --- */

.exp-hero {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.exp-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #7cf7c1;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.exp-title {
  font-size: clamp(2.2rem, 3.1vw, 2.8rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.exp-subtitle {
  max-width: 34rem;
  font-size: 0.95rem;
  color: #9be7c7;
  opacity: 0.85;
}

/* --- wave strip container --- */

.exp-wave-section {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}

.exp-wave-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top, #041d12 0, #010805 65%);
  border: 1px solid rgba(0, 255, 154, 0.35);
  box-shadow:
    0 0 40px rgba(0, 255, 154, 0.35),
    0 0 120px rgba(0, 255, 154, 0.18);
}

/* the canvas fills the wrapper */
#expWave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* node layer sits above lines */
.exp-node-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}


/* small label floating above node (optional later) */
.exp-node::after {
  content: "";
}

/* --- timeline cards --- */

.exp-timeline {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.exp-item {
  position: relative;
  padding: 1.6rem 1.8rem 1.7rem;
  border-radius: 16px;
  background: rgba(3, 22, 15, 0.96);
  border: 1px solid rgba(0, 255, 154, 0.25);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(0, 255, 154, 0.18);
}

/* subtle vertical connector from wave to card */
.exp-item::before {
  content: "";
  position: absolute;
  top: -22px;
  /* left will be set from JS via CSS var: --node-x */
  left: var(--node-x, 15%);
  width: 1px;
  height: 22px;
  background: linear-gradient(
    to top,
    rgba(0, 255, 154, 0.9),
    rgba(0, 255, 154, 0.1)
  );
  transform: translateX(-0.5px);
}

/* header line inside card */
.exp-item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.7rem;
}

.exp-item-label {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.exp-item-dates {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fffd4;
}

.exp-item-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c8ffe6;
}

/* hover glow */
.exp-item:hover {
  border-color: rgba(0, 255, 154, 0.7);
  box-shadow:
    0 0 28px rgba(0, 255, 154, 0.45),
    0 0 70px rgba(0, 255, 154, 0.28);
}

/* responsive tweaks */
@media (max-width: 800px) {
  .experience-main {
    padding: 100px 4vw 70px;
  }

  .exp-wave-wrap {
    height: 190px;
  }

  .exp-item {
    padding: 1.4rem 1.3rem 1.5rem;
  }
}

/* pulsing event nodes */
.exp-node {
    position: absolute;
    top: 63%;
    width: 13px;
    height: 13px;
    background: #00ff9a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 18px rgba(0,255,154,0.75);
    animation: expPulse 2.4s infinite ease-in-out;
}

@keyframes expPulse {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: .45; }
  50%  { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: .45; }
}

/* timeline vertical tick marks */
.exp-tick {
    position: absolute;
    top: calc(60% + 10px);
    width: 2px;
    height: 24px;
    background: rgba(0,255,154,0.45);
    transform: translateX(-50%);
}

/* vertical connector line from timeline → event card */
.exp-connector {
    position: absolute;
    top: 63%;
    transform: translateX(-50%);
    width: 2px;
    height: 70px;   /* adjust to match spacing to cards */
    background: linear-gradient(
        to bottom,
        rgba(0,255,153,0.8),
        rgba(0,255,153,0)
    );
    pointer-events: none;
}

/* horizontal sacred-timeline energy streak */
.exp-energy {
    position: absolute;
    top: 62%;
    width: 80px;
    height: 3px;
    background: linear-gradient(
        to right,
        rgba(0,255,154,0),
        rgba(0,255,154,1),
        rgba(0,255,154,0)
    );
    transform: translate(-100%, -50%);
    opacity: .85;
    filter: blur(2px);
    animation: energyPulse 1.6s infinite ease-in-out;
}

@keyframes energyPulse {
    0% { transform: translate(-120%, -50%); opacity: 0.5; }
    50% { transform: translate(-100%, -50%); opacity: 1; }
    100% { transform: translate(-120%, -50%); opacity: 0.5; }
}
