/* React Bits component layer for resume V3.
 * Components: Prism, Card Nav, Profile Card.
 * Ported from https://github.com/DavidHDev/react-bits for static HTML usage.
 */

/* ---------- Prism hero background ---------- */
#home {
  min-height: 860px;
  padding-top: 72px;
  background: #050817 !important;
  isolation: isolate;
}

#home::before {
  content: '';
  display: block !important;
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  background:
    radial-gradient(circle at 50% 48%, rgba(5, 8, 23, .04) 0%, rgba(5, 8, 23, .18) 38%, rgba(5, 8, 23, .7) 100%),
    linear-gradient(180deg, rgba(5, 8, 23, .24), transparent 38%, rgba(5, 8, 23, .76));
  pointer-events: none;
}

.prism-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 74%, rgba(82, 199, 255, .48), transparent 34%),
    radial-gradient(ellipse at 55% 46%, rgba(119, 94, 255, .32), transparent 42%),
    #050817;
}

.prism-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 100% 5px;
  mix-blend-mode: soft-light;
}

#home > .max-w-\[1200px\] { z-index: 4 !important; }
#home .hero-index { color: #A9B8FF; }
#home .hero-role { background: rgba(7, 12, 31, .38) !important; backdrop-filter: blur(10px); }
#home .hero-summary { max-width: 650px; }
#home .hero-meta > div { backdrop-filter: blur(5px); }
.hero-card-only {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Card Nav ---------- */
.card-nav-container {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 100;
  width: min(92%, 920px);
  transform: translateX(-50%);
  box-sizing: border-box;
}

.card-nav {
  position: relative;
  display: block;
  height: 64px;
  padding: 0;
  overflow: hidden;
  color: #F4F7FF;
  background: rgba(7, 12, 29, .78);
  border: 1px solid rgba(164, 184, 255, .2);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(22px) saturate(1.2);
  will-change: height;
}

.card-nav-top {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 18px;
}

.hamburger-menu {
  width: 38px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #F4F7FF;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hamburger-line {
  width: 29px;
  height: 2px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform .25s ease, opacity .2s ease;
}

.hamburger-menu.open .hamburger-line:first-child { transform: translateY(4.5px) rotate(45deg); }
.hamburger-menu.open .hamburger-line:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translate(-50%, -50%);
}

.card-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #F4F7FF;
  font: 600 12px/1 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-decoration: none;
}

.card-nav-logo::before {
  content: 'LY';
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: white;
  background: linear-gradient(145deg, #526EF7, #263BB9);
  border-radius: 9px;
  letter-spacing: 0;
}

.card-nav-cta-button {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

.card-nav-cta-button:hover { transform: translateY(-1px); background: #405FE8; }

.card-nav-content {
  position: absolute;
  z-index: 1;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px;
  visibility: hidden;
  pointer-events: none;
}

.card-nav.open .card-nav-content { visibility: visible; pointer-events: auto; }

.nav-card {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 11px;
  opacity: 0;
  transform: translateY(50px);
  user-select: none;
}

.nav-card-label { font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.nav-card-links { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.nav-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-card-link:hover { opacity: .72; transform: translateX(3px); }
.nav-card-link svg { width: 14px; height: 14px; }

/* ---------- Profile Card ---------- */
.profile-card-stage {
  display: flex !important;
  justify-content: center;
  width: 100%;
  perspective: 1200px;
}

.hero-card-only {
  width: 100%;
}

.pc-card-wrapper {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: .5;
  --pointer-from-left: .5;
  --card-opacity: 0;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --background-x: 50%;
  --background-y: 50%;
  --card-radius: 28px;
  position: relative;
  width: min(100%, 390px);
  perspective: 500px;
  transform: translate3d(0, 0, .1px);
  touch-action: none;
}

.pc-behind {
  position: absolute;
  z-index: 0;
  inset: -4%;
  pointer-events: none;
  opacity: calc(.82 * var(--card-opacity));
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(102, 143, 255, .88), transparent 52%);
  filter: blur(52px) saturate(1.15);
  transition: opacity .2s ease;
}

.pc-card-wrapper:hover,
.pc-card-wrapper.active { --card-opacity: 1; }
.pc-card-shell { position: relative; z-index: 1; }

.pc-card {
  position: relative;
  height: 540px;
  overflow: hidden;
  color: white;
  background: #070B18;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--card-radius);
  box-shadow: rgba(0, 0, 0, .72) calc((var(--pointer-from-left) * 12px) - 4px) calc((var(--pointer-from-top) * 20px) - 7px) 26px -5px;
  backface-visibility: hidden;
  transform: translateZ(0) rotateX(0deg) rotateY(0deg);
  transition: transform 1s ease;
}

.pc-card:hover,
.pc-card.active {
  transform: translateZ(0) rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
  transition: none;
}
.pc-card-shell.entering .pc-card { transition: transform .18s ease-out; }

.pc-inside { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #070B18; }
.pc-avatar-content { position: absolute; z-index: 1; inset: 0; overflow: hidden; }
.pc-avatar-content .avatar {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: 50% 57%;
  filter: saturate(.92) contrast(1.04);
  transform: translateX(calc((var(--pointer-from-left) - .5) * -8px)) translateY(calc((var(--pointer-from-top) - .5) * -6px)) scale(1.025);
  transition: transform .12s ease-out;
}

.pc-avatar-content::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 18, .55), transparent 24%, transparent 57%, rgba(4, 7, 18, .88) 91%),
    linear-gradient(90deg, rgba(5, 8, 21, .34), transparent 60%);
}

.pc-shine,
.pc-glare {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pc-shine {
  opacity: calc(.12 + var(--card-opacity) * .5);
  background-image:
    repeating-linear-gradient(0deg, #ff7d78 0 5%, #ffe26a 10%, #87ff9c 15%, #80f3ff 20%, #7796ff 25%, #d98aff 30%, #ff7d78 35%),
    repeating-linear-gradient(-45deg, #0e152e 0 4%, #a7c5d0 4.5%, #0e152e 10% 12%);
  background-position: var(--background-x) var(--background-y);
  background-size: 500% 500%, 300% 300%;
  background-blend-mode: color, hard-light;
  mix-blend-mode: color-dodge;
  filter: brightness(.75) contrast(1.35) saturate(.55);
  transition: opacity .25s ease;
}

.pc-glare {
  z-index: 4;
  background: radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, .42) 0%, rgba(80, 110, 190, .16) 26%, transparent 70%);
  mix-blend-mode: overlay;
}

.pc-details {
  position: absolute;
  z-index: 6;
  top: 28px;
  left: 0;
  right: 0;
  padding: 0 24px;
  text-align: center;
  transform: translate3d(calc(var(--pointer-from-left) * -6px + 3px), calc(var(--pointer-from-top) * -6px + 3px), .1px);
}
.pc-details h3 { margin: 0; color: white; line-height: 1.06; letter-spacing: -.055em; text-shadow: 0 3px 18px rgba(0,0,0,.4); }
.shiny-text {
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(120deg, #d7deef 0%, #d7deef 35%, #ffffff 50%, #d7deef 65%, #d7deef 100%);
  background-size: 200% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny-text-sweep 2.6s linear infinite;
}
.shiny-name {
  font-size: clamp(42px, 4vw, 50px);
  font-weight: 700;
  white-space: nowrap;
}
@keyframes shiny-text-sweep {
  from { background-position: 150% center; }
  to { background-position: -50% center; }
}
.pc-details p { margin: 7px 0 0; color: rgba(255,255,255,.76); font: 500 13px/1.4 'Noto Sans SC', sans-serif; letter-spacing: .08em; }

.pc-user-info {
  position: absolute;
  z-index: 7;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: rgba(6, 10, 24, .54);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 15px;
  backdrop-filter: blur(22px) saturate(1.2);
}
.pc-user-details { min-width: 0; display: flex; align-items: center; gap: 10px; }
.pc-mini-avatar { width: 42px; height: 42px; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.pc-mini-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; }
.pc-user-text { min-width: 0; }
.pc-handle { overflow: hidden; color: white; font: 500 12px/1.2 'IBM Plex Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }
.pc-status { margin-top: 4px; color: #7FF2B2; font-size: 11px; }
.pc-contact-btn {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: background .2s ease, transform .2s ease;
}
.pc-contact-btn:hover { background: #405FE8; transform: translateY(-1px); }

/* ---------- Global Prism atmosphere ---------- */
html,
body {
  background: #050817 !important;
}

body {
  position: relative;
  isolation: isolate;
  color: #dbe5f5 !important;
}

.prism-background-global {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 36%, rgba(5, 8, 23, .05), rgba(5, 8, 23, .42) 58%, rgba(5, 8, 23, .72) 100%),
    linear-gradient(180deg, rgba(5, 8, 23, .18), rgba(5, 8, 23, .4));
}

body > section,
body > footer {
  position: relative;
  z-index: 2;
}

#about,
#skills,
#experience,
#education,
#projects,
#contact,
section:nth-of-type(5),
footer {
  background: transparent !important;
}

#home {
  background: transparent !important;
}

section:not(#home) {
  border-top: 1px solid rgba(151, 170, 218, .12);
}

section:not(#home)::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: rgba(5, 8, 23, .54);
  backdrop-filter: blur(2px);
}

section:not(#home) > div {
  position: relative;
  z-index: 1;
}

section:not(#home) h2,
section:not(#home) h3,
section:not(#home) h4,
section:not(#home) h5 {
  color: #f5f7ff !important;
}

section:not(#home) p,
section:not(#home) li,
section:not(#home) .text-foreground,
section:not(#home) .text-text-secondary,
section:not(#home) .text-text-muted,
section:not(#home) .text-text-light {
  color: #b9c5da !important;
}

section:not(#home) .bg-white,
section:not(#home) .bg-background-alt {
  color: #dbe5f5 !important;
  background: rgba(13, 22, 44, .74) !important;
  border: 1px solid rgba(151, 170, 218, .16);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

/* Keep key résumé facts legible on the global dark Prism background. */
#about .about-highlight {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 0 18px rgba(104, 139, 255, .42);
}

/* Skill chips: brighter copy and clearer outlines for dark glass cards. */
#skills .flex.flex-wrap.gap-2 > span {
  color: #b9cbff !important;
  background: rgba(77, 111, 224, .14) !important;
  border: 1px solid rgba(185, 203, 255, .66) !important;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(91, 131, 255, .26);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

#skills .flex.flex-wrap.gap-2 > span:hover {
  color: #ffffff !important;
  background: rgba(86, 123, 245, .28) !important;
  border-color: rgba(218, 227, 255, .96) !important;
  transform: translateY(-1px);
}

/* ---------- Aceternity UI Hover Effect ---------- */
.aceternity-hover-grid {
  position: relative;
  isolation: isolate;
}

.aceternity-hover-highlight {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(150, 174, 255, .34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(103, 137, 255, .25), transparent 60%),
    rgba(28, 43, 78, .76);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .06);
  transition:
    transform .38s cubic-bezier(.22, 1, .36, 1),
    width .38s cubic-bezier(.22, 1, .36, 1),
    height .38s cubic-bezier(.22, 1, .36, 1),
    opacity .18s ease;
}

.aceternity-hover-card,
.aceternity-hover-surface {
  position: relative;
  z-index: 1;
  transition:
    transform .3s cubic-bezier(.22, 1, .36, 1),
    color .25s ease,
    background .25s ease,
    border-color .25s ease !important;
}

section:not(#home) .aceternity-hover-card.aceternity-hover-active.aceternity-hover-surface,
section:not(#home) .aceternity-hover-card.aceternity-hover-active > .aceternity-hover-surface {
  color: #f5f7ff !important;
  background: rgba(13, 22, 44, .28) !important;
  border-color: transparent !important;
  transform: translateY(-3px);
}

.aceternity-hover-card.aceternity-hover-active h3,
.aceternity-hover-card.aceternity-hover-active h4 {
  color: #ffffff !important;
}

/* ---------- Uiverse mamyapro123 stationery card ---------- */
section:not(#home) .funny-gecko-card {
  --gecko-tilt: 0deg;
  position: relative;
  min-width: 0;
  padding: 30px 24px 24px !important;
  overflow: visible !important;
  color: #222332 !important;
  border: 2px solid #343434 !important;
  border-radius: 3% 4% 3% 2% / 2% 3% 4% 3% !important;
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(104, 116, 132, .12) 27px 28px),
    #fffdfa !important;
  box-shadow: 11px 13px 0 #292929, 0 22px 42px rgba(0, 0, 0, .28) !important;
  transform: rotate(var(--gecko-tilt));
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease !important;
}

section:not(#home) .funny-gecko-card:hover {
  transform: rotate(0deg) translateY(-5px) !important;
  box-shadow: 14px 17px 0 #292929, 0 30px 54px rgba(0, 0, 0, .34) !important;
}

.funny-gecko-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 8px -10px -12px 10px;
  border-radius: 4px;
  background: #242424;
  transform: rotate(1.2deg);
}

.funny-gecko-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 8px 18px;
  text-align: center;
}

.funny-gecko-tape {
  position: absolute;
  z-index: 3;
  top: -43px;
  left: 50%;
  width: 84px;
  height: 24px;
  border: 1px solid rgba(184, 137, 53, .24);
  border-radius: 3px;
  background: rgba(255, 218, 149, .82);
  box-shadow: 0 2px 5px rgba(88, 63, 22, .18);
  transform: translateX(-50%) rotate(-1deg);
}

.funny-gecko-spark {
  position: absolute;
  color: #f3d672;
  font-size: 25px;
  line-height: 1;
  text-shadow: 1px 1px 0 #343434, -1px -1px 0 #343434;
}
.funny-gecko-spark-left { top: 58px; left: 7%; color: #d7ef8e; }
.funny-gecko-spark-right { top: 16px; right: 7%; }

.funny-gecko-eyebrow {
  color: #686b7a;
  font: 600 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: .16em;
}

.funny-gecko-avatar {
  position: relative;
  display: block;
  width: 82px;
  height: 82px;
  border: 3px solid #393939;
  border-radius: 50%;
  background: conic-gradient(from 45deg, #b8b3ff 0 46%, #ffd6a1 46% 76%, #b8b3ff 76% 100%);
  box-shadow: 5px 6px 0 #ff8da8;
}

.funny-gecko-eye {
  position: absolute;
  top: 47px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35354a;
}
.funny-gecko-eye-left { left: 27px; }
.funny-gecko-eye-right { right: 27px; }
.funny-gecko-smile {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 22px;
  height: 11px;
  border-bottom: 3px solid #35354a;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
}

section:not(#home) .funny-gecko-header h3 {
  max-width: 94%;
  margin: 2px 0 0;
  color: #29293b !important;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.3;
  text-shadow: 2px 2px 0 rgba(184, 179, 255, .65);
}

.funny-gecko-label {
  display: block;
  width: min(100%, 280px);
  padding: 7px 12px;
  color: #273018;
  border: 1px solid #465229;
  border-radius: 2px;
  background: #c9ed78;
  box-shadow: 1px 3px 0 #3b432a;
  font: 600 12px/1.35 'Noto Sans SC', sans-serif;
  transform: rotate(-.7deg);
}

.funny-gecko-content {
  position: relative;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 2px dashed rgba(52, 52, 52, .42);
}

.funny-gecko-original-title { display: none !important; }

section:not(#home) .funny-gecko-card p,
section:not(#home) .funny-gecko-card li,
section:not(#home) .funny-gecko-card h4,
section:not(#home) .funny-gecko-card span:not(.funny-gecko-label):not(.funny-gecko-eyebrow):not(.funny-gecko-spark) {
  color: #343746 !important;
}

section:not(#home) .funny-gecko-card .bg-white,
section:not(#home) .funny-gecko-card .bg-background-alt,
section:not(#home) .funny-gecko-card [class*="bg-primary/"] {
  background: rgba(184, 179, 255, .2) !important;
  border-color: rgba(63, 66, 84, .32) !important;
  box-shadow: none !important;
}

/* ---------- Aceternity UI Following Pointer ---------- */
@media (hover: hover) and (pointer: fine) {
  .has-following-pointer,
  .has-following-pointer body,
  .has-following-pointer a,
  .has-following-pointer button,
  .has-following-pointer [tabindex] {
    cursor: none !important;
  }
}

.following-pointer {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity .18s ease;
}

.following-pointer.visible { opacity: 1; }

.following-pointer-arrow {
  position: absolute;
  top: -3px;
  left: -4px;
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: #ffffff;
  stroke: #0a1020;
  stroke-width: 1.4;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .48));
  transform-origin: 5px 4px;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}

.following-pointer-title {
  position: absolute;
  top: 18px;
  left: 15px;
  display: block;
  min-width: max-content;
  padding: 6px 10px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: linear-gradient(135deg, #3f5ee8, #6685ff);
  box-shadow: 0 8px 22px rgba(25, 48, 145, .38);
  font: 600 12px/1 'Noto Sans SC', sans-serif;
  letter-spacing: .08em;
  transform-origin: 0 0;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), background .22s ease;
}

.following-pointer.interactive .following-pointer-arrow { transform: scale(1.12) rotate(-7deg); }
.following-pointer.interactive .following-pointer-title {
  background: linear-gradient(135deg, #e9672f, #ff8a47);
  transform: translate(2px, 2px) scale(1.04);
}

section:not(#home) .border-border,
section:not(#home) [class*="border-gray"] {
  border-color: rgba(151, 170, 218, .2) !important;
}

section:not(#home) .bg-primary\/10,
section:not(#home) [class*="bg-primary/"] {
  background: rgba(91, 122, 255, .14) !important;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(151, 170, 218, .15);
  background: rgba(5, 8, 23, .76) !important;
}

@media (max-width: 1023px) {
  #home { min-height: 900px; padding-top: 104px; }
  .profile-card-stage { display: flex !important; }
  .pc-card-wrapper { width: min(88vw, 390px); }
  #home::before { background: radial-gradient(circle at 50% 48%, rgba(5,8,23,.02), rgba(5,8,23,.72) 88%); }
}

@media (max-width: 768px) {
  .card-nav-container { top: 14px; width: 92%; }
  .card-nav-top { padding: 8px 14px; }
  .hamburger-menu { order: 2; }
  .logo-container { position: static; order: 1; transform: none; }
  .card-nav-cta-button { display: none; }
  .card-nav-content { flex-direction: column; gap: 7px; padding: 7px; }
  .nav-card { flex: 1 1 auto; min-height: 64px; padding: 11px 14px; }
  .nav-card-label { font-size: 18px; }
  .nav-card-links { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .nav-card-link { font-size: 13px; }
  #home { min-height: 830px !important; padding-top: 96px !important; }
  .pc-card { height: 480px; }
  .shiny-name { font-size: 40px; }
}

@media (max-width: 480px) {
  .card-nav-logo { font-size: 10px; }
  .card-nav-logo::before { width: 28px; height: 28px; }
  .pc-card { height: 455px; }
  .pc-details h3 { font-size: 29px; }
  .pc-mini-avatar { width: 36px; height: 36px; }
  .pc-contact-btn { padding: 8px 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-card, .pc-avatar-content .avatar { transform: none !important; }
  .shiny-text { animation: none; background-position: 50% center; }
}

@media print {
  .card-nav-container, .prism-background { display: none !important; }
  #home { min-height: auto !important; }
  .profile-card-stage { display: none !important; }
}
