/* ================================================================
   STYLE.CSS  —  ALL THE LOOKS
   ================================================================
   Aesthetic: deep navy background, slate text, a single teal accent,
   Inter typeface with a JetBrains Mono accent — inspired by
   brittanychiang.com. Layout is a fixed left sidebar + a scrollable
   right column of sections, collapsing to a single column on mobile.

   ORGANIZED AS (search for the banner comments):
     ROOT VARIABLES · RESET/BASE · SPOTLIGHT · LAYOUT · SIDEBAR ·
     NAV · SOCIAL ICONS · SECTIONS · ABOUT · ENTRY LIST (exp/edu) ·
     TRANSCRIPT · PROJECTS · SKILLS · GAMING · ONLINE · FOOTER ·
     REVEAL ANIM · RESPONSIVE
================================================================ */

/* ================================================================
   ROOT VARIABLES — change these to re-theme the whole site
================================================================ */
:root {
  --bg: #0a192f; /* deep navy */
  --bg-soft: #112240; /* lighter navy (cards on hover) */
  --bg-card: #112240;
  --border: rgb(136 165 191 / 12%);
  --border-soft: rgb(136 165 191 / 8%);
  --accent: #64ffda; /* teal — the single accent color */
  --accent-soft: rgb(100 255 218 / 10%);
  --accent-line: rgb(100 255 218 / 55%);
  --heading: #e6f1ff; /* brightest text — headings */
  --text: #ccd6f6; /* primary text */
  --muted: #8892b0; /* secondary text */
  --dim: #5b6688; /* tertiary / labels */
  --font: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.3, 0, 0.2, 1);
}

/* ================================================================
   RESET & BASE
================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

::selection {
  background: rgb(100 255 218 / 22%);
  color: var(--heading);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #1d2d50;
  border-radius: 6px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #25375e;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.skip-link:focus {
  left: 0;
}

/* Visible focus for keyboard users */
a:focus-visible,
summary:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================================
   SPOTLIGHT — cursor-follow glow (set inline by JS), sits behind all
================================================================ */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 0.1s var(--ease);
}

/* ================================================================
   LAYOUT — sidebar + content, centered, generous gutters
================================================================ */
.layout {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 3rem;
}

/* ================================================================
   SIDEBAR — sticky, full-height on desktop
================================================================ */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  flex: 0 0 42%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 0 4rem;
}

.sidebar-top {
  /* groups the identity text + nav */
}

.s-name {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--heading);
}

.s-name a {
  color: inherit;
}

.s-role {
  margin-top: 0.7rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
}

.s-tagline {
  margin-top: 1rem;
  max-width: 21rem;
  font-size: 0.97rem;
  color: var(--muted);
}

.s-tagline strong,
.s-role strong {
  color: var(--text);
  font-weight: 600;
}

/* ================================================================
   NAV — vertical list with a growing-line indicator
================================================================ */
.s-nav {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0; /* indicator has its own width */
  padding: 0.55rem 0;
  color: var(--dim);
  width: max-content;
}

.nav-indicator {
  display: inline-block;
  height: 1px;
  width: 28px;
  margin-right: 16px;
  background: var(--dim);
  transition:
    width 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
  width: 56px;
  background: var(--accent);
}

.nav-link:hover .nav-text,
.nav-link.active .nav-text {
  color: var(--heading);
}

/* ================================================================
   SOCIAL ICONS — compact row pinned to sidebar bottom
================================================================ */
.s-socials {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.s-socials a {
  color: var(--muted);
  font-size: 1.3rem;
  display: inline-flex;
  transition:
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.s-socials a:hover {
  color: var(--brand, var(--accent));
  transform: translateY(-3px);
}

/* ================================================================
   CONTENT COLUMN + SECTIONS
================================================================ */
.content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6rem 0 4rem;
}

.sec {
  margin-bottom: 6rem;
  scroll-margin-top: 2rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.sec:last-of-type {
  margin-bottom: 3rem;
}

/* Mobile-only sticky section label (hidden on desktop where the
   sidebar nav already names sections) */
.sec-mobile-label {
  display: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heading);
}

/* ================================================================
   ABOUT
================================================================ */
.sec-body p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.sec-body p:last-child {
  margin-bottom: 0;
}

.sec-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ================================================================
   ENTRY LIST — shared by EXPERIENCE & EDUCATION
   A two-column row (date | content) that lifts into a card on hover.
================================================================ */
.entry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.entry:hover {
  background: rgb(17 34 64 / 55%);
  border-color: var(--border);
  box-shadow: 0 14px 40px -18px rgb(2 12 27 / 90%);
}

.entry-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.25rem;
}

.entry:hover .entry-date {
  color: var(--muted);
}

.entry-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
}

.entry-at {
  color: var(--muted);
  font-weight: 400;
}

.entry:hover .entry-title {
  color: var(--accent);
}

.entry-arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  transform: rotate(45deg) translate(0, 0);
  transition: transform 0.2s var(--ease);
  display: inline-block;
  opacity: 0.9;
}

.entry:hover .entry-arrow {
  transform: rotate(45deg) translate(3px, -3px);
}

.entry-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.entry-desc {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Education badges */
.edu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.edu-badge {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgb(100 255 218 / 25%);
  border-radius: 20px;
  padding: 2px 10px;
}

/* ================================================================
   PILLS — shared tag styling (skills, project tech, etc.)
================================================================ */
.pill-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.pill {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 4px 12px;
  line-height: 1.4;
  white-space: nowrap;
}

/* ================================================================
   TRANSCRIPT — collapsible course list inside UW education entry
================================================================ */
.transcript {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.transcript summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.transcript summary::-webkit-details-marker {
  display: none;
}

.tr-chevron {
  font-size: 0.66rem;
  transition: transform 0.2s var(--ease);
}

.transcript[open] .tr-chevron {
  transform: rotate(90deg);
}

.tr-gpa {
  margin-left: auto;
  color: var(--dim);
  font-weight: 500;
  letter-spacing: 0;
}

.transcript-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}

.q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.q-name {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.q-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.q-gpa {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--accent);
}

.q-badge {
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 7px;
}

.q-dl {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgb(100 255 218 / 22%);
}

.q-ip {
  color: #ffd479;
  background: rgb(255 212 121 / 8%);
  border: 1px solid rgb(255 212 121 / 22%);
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.course-row {
  display: flex;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.course-code {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  min-width: 76px;
  flex-shrink: 0;
}

/* ================================================================
   PROJECTS
================================================================ */
.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project {
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.project:hover {
  background: rgb(17 34 64 / 55%);
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgb(2 12 27 / 95%);
}

.proj-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.proj-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
}

.project:hover .proj-title {
  color: var(--accent);
}

.proj-period {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  white-space: nowrap;
}

.proj-desc {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.proj-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.9rem;
}

.proj-link {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s var(--ease);
}

.proj-link:hover {
  color: var(--accent);
}

/* ================================================================
   SKILLS — grouped cards
================================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: rgb(17 34 64 / 40%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.skill-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.skill-head i {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ================================================================
   GAMING — the polished competitive section
================================================================ */
.gaming-intro {
  max-width: 52ch;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Peak rank stat cards */
.peak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.peak-card {
  position: relative;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 10%, transparent),
      transparent 55%
    ),
    rgb(17 34 64 / 50%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.35rem;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.peak-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.peak-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 18px 40px -18px
    color-mix(in srgb, var(--accent) 45%, transparent);
}

.peak-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.peak-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 1.05rem;
}

.peak-pct {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 20px;
  padding: 3px 9px;
}

.peak-rank {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.peak-game {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.2rem;
}

.peak-note {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.peak-bar {
  margin-top: 0.95rem;
  height: 4px;
  border-radius: 4px;
  background: rgb(136 165 191 / 14%);
  overflow: hidden;
}

.peak-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 4px;
  animation: growbar 1.1s var(--ease) forwards;
}

@keyframes growbar {
  to {
    width: 92%;
  }
}

/* Competitive highlight cards */
.gm-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.gm-card {
  position: relative;
  background: rgb(17 34 64 / 45%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.3rem;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.gm-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  border-left-color: var(--accent);
  box-shadow: 0 16px 40px -22px
    color-mix(in srgb, var(--accent) 55%, transparent);
}

.gm-period {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.gm-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
}

.gm-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.gm-body {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* Tint pills inside a gaming card to that card's accent */
.gm-card .pill,
.peak-card .pill {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}

/* ================================================================
   ONLINE — content channels (wide) + platforms (compact)
================================================================ */
.channel-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgb(17 34 64 / 45%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  color: var(--text);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 12px 30px -16px var(--brand);
}

.channel-icon {
  font-size: 1.5rem;
  color: var(--brand);
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}

.channel-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.channel-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.channel-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.channel-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--dim);
  transform: rotate(45deg);
  transition:
    transform 0.2s var(--ease),
    color 0.2s var(--ease);
}

.channel-card:hover .channel-arrow {
  transform: rotate(45deg) translate(3px, -3px);
  color: var(--brand);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.platform-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgb(17 34 64 / 40%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 500;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.platform-card i {
  color: var(--brand);
  font-size: 1rem;
}

.platform-card:hover {
  color: var(--heading);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ================================================================
   FOOTER
================================================================ */
.content-footer {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--dim);
  line-height: 1.7;
}

.content-footer a {
  color: var(--muted);
}

.content-footer a:hover {
  color: var(--accent);
}

.footer-sub {
  margin-top: 0.2rem;
}

/* ================================================================
   REVEAL ANIMATION — sections fade/slide in
================================================================ */

.sec.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .sec {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ================================================================
   RESPONSIVE
================================================================ */

/* Tablet & below: sidebar stops being sticky/full-height, stacks on top */
@media (width <= 920px) {
  .layout {
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-basis: auto;
    max-width: none;
    padding: 4rem 0 1rem;
  }

  .s-nav {
    display: none;
  } /* nav lives in the flow via section labels */
  .s-socials {
    margin-top: 1.8rem;
  }

  .content {
    padding: 1rem 0 3rem;
  }

  .sec {
    margin-bottom: 4rem;
  }

  .sec-mobile-label {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -1.5rem 1.4rem;
    padding: 0.9rem 1.5rem;
    background: rgb(10 25 47 / 85%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
  }
}

/* Phone */
@media (width <= 600px) {
  body {
    font-size: 15px;
  }

  .layout {
    padding: 0 1.1rem;
  }

  .sidebar {
    padding: 3rem 0 0.5rem;
  }

  .s-tagline {
    max-width: none;
  }

  /* Entry rows collapse to a single column (date above content) */
  .entry {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1rem 0.25rem;
  }

  .entry:hover {
    transform: none;
  }

  .entry-date {
    padding-top: 0;
  }

  .proj-top {
    flex-direction: column;
    gap: 0.2rem;
  }

  .sec-mobile-label {
    margin-left: -1.1rem;
    margin-right: -1.1rem;
    padding: 0.85rem 1.1rem;
  }

  .peak-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
