:root {
  --bg-main: #060607;
  --bg-secondary: #0b0b0d;
  --bg-panel: #0f1012;
  --bg-panel-soft: #131417;
  --line: rgba(226, 233, 246, 0.24);
  --line-soft: rgba(226, 233, 246, 0.12);
  --text-main: #f4f6fb;
  --text-soft: #c8ced8;
  --text-dim: #8e95a3;
  --green-1: #e3e8f2;
  --green-2: #c7d0df;
  --green-3: #aab8cd;
  --green-4: #8f9eb6;
  --mint: #e7eef9;
  --lime: #f0f2f7;
  --teal: #9cc0ff;
  --blue: #8db0ff;
  --violet: #b2a2ff;
  --amber: #d5a17f;
  --font-ui: "Space Grotesk", sans-serif;
  --font-code: "SF Mono", "SFMono-Regular", "JetBrains Mono", "IBM Plex Mono", Menlo, Monaco, Consolas, monospace;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.58);
}

body.light-mode .pane-title {
  color: var(--text-main);
  font-weight: 600;
}

body.light-mode .footer-branchline {
  color: var(--text-soft);
  background: var(--bg-secondary);
  border-color: var(--line);
}

body.light-mode .photo-face-back {
  background: radial-gradient(circle at 20% 10%, rgba(200, 200, 200, 0.5), rgba(240, 242, 247, 0.98));
  color: var(--text-main);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

body.light-mode .terminal-topbar,
body.light-mode .pane-bar {
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}

body.light-mode .pane {
  background: var(--bg-panel);
}

body.light-mode .photo-face-front {
  transform: rotateY(0deg) !important;
  backface-visibility: visible !important;
}

body.light-mode .profile-photo-frame.photo-flipped .photo-face-front {
  transform: rotateY(0deg) !important;
}

body.light-mode .coin-spin {
  animation: none !important;
}

body.light-mode {
  --bg-main: #f0f2f7;
  --bg-secondary: #e3e8f2;
  --bg-panel: #ffffff;
  --bg-panel-soft: #f8fafc;
  --line: rgba(6, 6, 7, 0.12);
  --line-soft: rgba(6, 6, 7, 0.06);
  --text-main: #060607;
  --text-soft: #2d2e30;
  --text-dim: #64748b;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.12);
  background: var(--bg-main);
}

body.light-mode .action-button.secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--line);
}

body.light-mode .action-button.primary {
  background: var(--text-main);
  color: var(--bg-panel);
}

body.light-mode .contact-chip {
  background: var(--bg-panel-soft);
  border-color: var(--line);
  color: var(--text-main);
}

body.light-mode .experience-card,
body.light-mode .info-card {
  background: var(--bg-panel-soft);
  border-color: var(--line);
}

body.light-mode .skill-chip {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--line);
}

body.light-mode .skill-chip i,
body.light-mode .skill-group-title.group-2,
body.light-mode .typing-line {
  color: #1e40af;
}

body.light-mode .terminal-command {
  color: var(--text-main);
}

body.light-mode .terminal-command-cursor {
  background: var(--text-main);
}

body.light-mode::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.02) 0,
      rgba(0, 0, 0, 0.02) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.02) 0,
      rgba(0, 0, 0, 0.02) 1px,
      transparent 1px,
      transparent 20px
    );
}

body.light-mode::after {
  mix-blend-mode: multiply;
  opacity: 0.1;
}

body.light-mode .pane-bar,
body.light-mode .terminal-topbar {
  background: var(--bg-secondary);
}

body.light-mode .pane-body {
  background: var(--bg-panel);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  font-family: var(--font-code);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(200, 138, 104, 0.12), transparent 26%),
    radial-gradient(circle at 78% 82%, rgba(127, 167, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #08090b, var(--bg-main), #050506);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 20px
    );
  opacity: 0.38;
  animation: texture-drift 22s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.016) 0,
      rgba(255, 255, 255, 0.016) 2px,
      transparent 2px,
      transparent 12px
    ),
    radial-gradient(rgba(255, 255, 255, 0.045) 0.65px, transparent 0.65px);
  background-size: 18px 18px, 12px 12px;
  opacity: 0.2;
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

.terminal-shell {
  position: relative;
  z-index: 1;
  max-width: 1460px;
  margin: 0 auto;
  padding: 16px;
  transition: transform 0.28s ease, filter 0.28s ease;
  animation: shell-enter 0.62s cubic-bezier(0.22, 0.8, 0.21, 1) both;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #111215, #090a0c);
  backdrop-filter: blur(4px);
}

.window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 6px;
}
.window-button {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 19, 17, 0.65);
  color: transparent;
  font-size: 10px;
  font-family: var(--font-code);
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-button.theme-toggle {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
}

body.light-mode .window-button.theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  color: var(--text-main);
}

.window-button.theme-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body.light-mode .window-button.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.window-button::before {
  content: attr(data-symbol);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(16, 20, 18, 0.9);
  font-size: 8px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.18s ease;
}

#windowButtonClose {
  background: radial-gradient(circle at 32% 20%, #ff8d80, #f35a56);
}

#windowButtonMinimize {
  background: radial-gradient(circle at 32% 20%, #ffe19b, #f1c04e);
}

#windowButtonMaximize {
  background: radial-gradient(circle at 32% 20%, #9bffae, #4ac57e);
}

.window-controls:hover .window-button::before,
.window-button:focus-visible::before {
  opacity: 1;
}

.window-button:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.window-button:active {
  transform: scale(0.96);
}

.window-button:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 1px;
}

.terminal-command {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.terminal-command-cursor {
  display: inline-block;
  min-width: 8px;
  animation: blink 0.85s step-end infinite;
}

.workspace-root {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background:
    linear-gradient(180deg, rgba(15, 16, 19, 0.98), rgba(9, 10, 12, 0.95));
  box-shadow: var(--shadow);
  padding: 14px;
  overflow: hidden;
}

.workspace-root::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 48%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.36;
  mix-blend-mode: screen;
  animation: scanline-shift 12s linear infinite;
}

.workspace-root::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.52) 100%);
  opacity: 0.52;
}

.workspace-root > * {
  position: relative;
  z-index: 1;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.88fr);
  gap: 12px;
  margin-top: 12px;
}

.workspace-grid > .pane,
.right-stack > .pane {
  animation: reveal-rise 0.56s cubic-bezier(0.22, 0.8, 0.21, 1) both;
}

.workspace-grid > .pane {
  animation-delay: 0.18s;
}

.right-stack > .pane:nth-child(1) {
  animation-delay: 0.24s;
}

.right-stack > .pane:nth-child(2) {
  animation-delay: 0.3s;
}

.right-stack > .pane:nth-child(3) {
  animation-delay: 0.36s;
}

.right-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.pane {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 18, 22, 0.96), rgba(11, 12, 15, 0.94)),
    radial-gradient(circle at 84% 6%, rgba(178, 162, 255, 0.06), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.26s ease, box-shadow 0.26s ease, transform 0.26s ease, background 0.26s ease;
}

.pane::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -80%;
  width: 55%;
  height: 400%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.11), rgba(141, 176, 255, 0.08), transparent);
  transform: translateX(-180%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.72s ease, opacity 0.52s ease;
}

.pane:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.96), rgba(13, 15, 19, 0.95));
}

.pane:hover::before {
  opacity: 1;
  transform: translateX(370%);
}

.pane-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #15171b, #0f1114);
  backdrop-filter: blur(3px);
}

.pane-bar.compact {
  min-height: 32px;
}

.pane-title {
  margin: 0;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pane-body {
  padding: 12px;
}

.pane-body.compact {
  padding: 10px 12px;
}

.hero-pane {
  animation: reveal-rise 0.52s cubic-bezier(0.22, 0.8, 0.21, 1) both;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 12px;
}

.hero-right {
  display: grid;
  gap: 10px;
  align-content: start;
}

.hero-right .nested-pane {
  animation: reveal-rise 0.54s cubic-bezier(0.22, 0.8, 0.21, 1) both;
}

.hero-right .nested-pane:nth-child(1) {
  animation-delay: 0.08s;
}

.hero-right .nested-pane:nth-child(2) {
  animation-delay: 0.14s;
}

.nested-pane {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 15, 19, 0.8), rgba(9, 10, 12, 0.58));
}

.identity-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.profile-photo-frame {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #1a1d22, #101214);
  overflow: hidden;
  display: block;
  position: relative;
  perspective: 800px;
  transform-style: preserve-3d;
}

.profile-photo-frame.coin-spin {
  animation: coin-spin 0.95s cubic-bezier(0.48, 0.06, 0.24, 1);
}

.photo-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  transition: transform 0.55s ease, opacity 0.4s ease;
}

.photo-face-front {
  transform: rotateY(0deg);
  opacity: 1;
}

.photo-face-back {
  transform: rotateY(180deg);
  opacity: 0;
  margin: 0;
  padding: 2px;
  font-size: 3.75px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--green-1);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
  text-align: left;
  white-space: pre;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.09), rgba(10, 11, 13, 0.98));
}

.profile-photo-frame.photo-flipped .photo-face-front {
  transform: rotateY(-180deg);
  opacity: 0;
}

.profile-photo-frame.photo-flipped .photo-face-back {
  transform: rotateY(0deg);
  opacity: 1;
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  filter: grayscale(1) contrast(1.08) brightness(0.97);
}

body.light-mode .profile-photo-frame img {
  filter: none !important;
}

.profile-photo-frame span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-ui);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--green-1);
}

.status-line {
  margin: 0 0 6px;
  color: var(--mint);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.light-mode .status-line {
  color: #1e40af;
  font-weight: 700;
}

body.light-mode .hero-summary,
body.light-mode .hero-role,
body.light-mode .info-card p,
body.light-mode .experience-content ul {
  color: #1e293b;
}

body.light-mode .pane-hint {
  color: #475569;
}

h1 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(29px, 4.8vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-role {
  margin: 10px 0 0;
  color: var(--amber);
  font-size: 15px;
}

.hero-summary {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.76;
  min-height: 88px;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Animated hand pointers flanking the download button.
   Strategy: animate the <span> (translateX only) so Safari has nothing
   complex to composite. Static rotation lives on the <i> separately —
   combining rotate+translate in keyframes breaks Safari. */
.resume-pointer {
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  position: relative;
  -webkit-animation: pointer-nudge-right 0.85s ease-in-out infinite alternate;
          animation: pointer-nudge-right 0.85s ease-in-out infinite alternate;
}

/* Override animation for the right-side pointer — full shorthand wins in Safari */
.resume-pointer-right {
  -webkit-animation: pointer-nudge-left 0.85s ease-in-out infinite alternate;
          animation: pointer-nudge-left 0.85s ease-in-out infinite alternate;
}

/* Static 30° rotation on the icon — separate from the span's translate animation */
.resume-pointer i {
  display: inline-block;
  color: #ffffff !important;
  -webkit-transform: rotate(30deg);
          transform: rotate(30deg);
}

.resume-pointer-right i {
  -webkit-transform: rotate(-30deg);
          transform: rotate(-30deg);
}

@-webkit-keyframes pointer-nudge-right {
  from { -webkit-transform: translateX(0);   transform: translateX(0);   opacity: 0.45; }
  to   { -webkit-transform: translateX(7px); transform: translateX(7px); opacity: 1;    }
}
@keyframes pointer-nudge-right {
  from { transform: translateX(0);   opacity: 0.45; }
  to   { transform: translateX(7px); opacity: 1;    }
}

@-webkit-keyframes pointer-nudge-left {
  from { -webkit-transform: translateX(0);    transform: translateX(0);    opacity: 0.45; }
  to   { -webkit-transform: translateX(-7px); transform: translateX(-7px); opacity: 1;    }
}
@keyframes pointer-nudge-left {
  from { transform: translateX(0);    opacity: 0.45; }
  to   { transform: translateX(-7px); opacity: 1;    }
}

body.light-mode .resume-pointer i {
  color: #000000 !important;
}

.action-button {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 14px;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.action-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-22deg);
  opacity: 0;
  pointer-events: none;
}

.button-icon {
  font-size: 13px;
}

.action-button.is-loading .button-icon {
  animation: spin 0.8s linear infinite;
}

.action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.action-button:hover::before {
  opacity: 1;
  animation: sheen-pass 0.8s ease;
}

.action-button.primary {
  background: linear-gradient(138deg, #0d0e11, #1a1d22 54%, #302721);
  color: var(--text-main);
  font-weight: 600;
}

.action-button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-chip {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(2px);
}

.contact-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-140%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.contact-chip:hover {
  border-color: var(--line);
  color: var(--text-main);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.contact-chip:hover::before {
  transform: translateX(140%);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-row strong {
  color: var(--text-main);
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}

.availability-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.typing-line {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  line-height: 1.65;
  min-height: 44px;
}

.prompt {
  color: var(--text-dim);
}

.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 4px;
  background: var(--text-main);
  vertical-align: middle;
  animation: blink 0.82s step-end infinite;
}

.pane-hint {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 11px;
}

.pane-hint:empty {
  display: none;
}

.experience-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.experience-card:hover {
  border-color: var(--line);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.02);
}

.experience-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.experience-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
}

.experience-title {
  margin: 6px 0 0;
  font-family: var(--font-ui);
  font-size: 19px;
  line-height: 1.2;
}

.experience-toggle {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-code);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.experience-toggle i {
  transition: transform 0.2s ease;
}

.experience-card.open .experience-toggle i {
  transform: rotate(180deg);
}

.experience-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.36s ease, opacity 0.24s ease;
  border-top: 1px solid transparent;
}

.experience-card.open .experience-content {
  opacity: 1;
  border-top-color: var(--line-soft);
}

.experience-content ul {
  margin: 0;
  padding: 10px 12px 12px 28px;
  color: var(--text-soft);
  line-height: 1.7;
}

.skill-group {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 9px;
  margin-top: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.015), rgba(141, 176, 255, 0.04));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-group:hover {
  border-color: var(--line);
  transform: translateY(-1px);
}

.skill-group-title {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-group-title.group-1 {
  color: var(--text-main);
}

.skill-group-title.group-2 {
  color: var(--teal);
}

.skill-group-title.group-3 {
  color: var(--amber);
}

.skill-group-title.group-4 {
  color: var(--green-2);
}

.skill-group-title.group-5 {
  color: var(--blue);
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.skill-chip i {
  color: var(--teal);
}

.info-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 9px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.info-card:hover {
  border-color: var(--line);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.03);
}

.info-card i {
  margin-top: 2px;
  color: var(--amber);
}

.info-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-ui);
  font-size: 16px;
}

.info-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.cert-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.025), rgba(200, 138, 104, 0.1)),
    radial-gradient(circle at 100% 0%, rgba(178, 162, 255, 0.06), transparent 50%);
}

.cert-meta-line {
  margin-top: 2px !important;
}

.cert-skill-row {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cert-skill-tag {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  color: var(--lime);
}

.site-footer {
  margin-top: 10px;
  padding: 8px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
  font-size: 11px;
}

.footer-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-mainline,
.footer-branchline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-mainline {
  color: var(--text-dim);
}

.footer-branchline {
  color: var(--amber);
  letter-spacing: 0.04em;
  font-size: 10px;
}

.footer-mainline span,
.footer-branchline span,
.footer-branchline i {
  margin: 0;
}

.app-launcher {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  background: radial-gradient(circle at 50% 40%, rgba(200, 138, 104, 0.18), rgba(0, 0, 0, 0.74));
  place-items: center;
}

.launcher-card {
  width: min(360px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px 14px;
  text-align: left;
  background: linear-gradient(180deg, rgba(18, 19, 24, 0.98), rgba(11, 12, 15, 0.98));
  cursor: pointer;
  display: grid;
  gap: 10px;
  outline: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: launcher-float 4.2s ease-in-out infinite;
}

.launcher-card:hover,
.launcher-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation-play-state: paused;
}

.launcher-terminal-line {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

#launcherIcon {
  font-size: 28px;
  color: var(--amber);
  justify-self: center;
  filter: drop-shadow(0 0 10px rgba(200, 138, 104, 0.35));
}

#launcherSpeech {
  margin: 0 auto;
  width: min(280px, 100%);
  min-height: 46px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  color: var(--text-main);
  white-space: pre-wrap;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1.35;
  position: relative;
}

#launcherSpeech::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  transform: rotate(-45deg);
}

body.app-collapsed .terminal-shell {
  display: none;
}

body.app-collapsed .app-launcher {
  display: grid;
}

body.app-minimized .workspace-grid {
  display: none;
}

body.app-minimized .hero-right {
  display: none;
}

body.app-minimized .hero-grid {
  grid-template-columns: 1fr;
}

body.app-maximized .terminal-shell {
  max-width: 1760px;
}

body.app-maximized h1 {
  font-size: clamp(34px, 5.4vw, 72px);
}

body.app-maximized .pane-body,
body.app-maximized .pane-body.compact {
  font-size: 1.05em;
}

.print-only {
  display: none;
}

.print-resume.measure-mode {
  display: block !important;
  position: fixed;
  top: 0;
  left: -200vw;
  width: 7.5in;
  max-height: none;
  margin: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.print-resume.measure-mode .print-header {
  text-align: center;
  border-bottom: 1.4px solid #111;
  padding-bottom: 8px;
}

.print-resume.measure-mode .print-header h1 {
  margin: 0 0 5px;
  font-size: 21px;
  font-family: Arial, Helvetica, sans-serif;
}

.print-resume.measure-mode .print-header p {
  margin: 0;
  font-size: 9.2px;
  line-height: 1.4;
}

.print-resume.measure-mode .print-section {
  margin-top: 8px;
}

.print-resume.measure-mode .print-section h2 {
  margin: 0 0 4px;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9.5px;
}

.print-resume.measure-mode .print-section p,
.print-resume.measure-mode .print-section li {
  margin: 0;
  font-size: 8.9px;
  line-height: 1.3;
}

.print-resume.measure-mode .print-item {
  margin-bottom: 5px;
}

.print-resume.measure-mode .print-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.print-resume.measure-mode .print-item-head strong {
  font-size: 9.2px;
}

.print-resume.measure-mode .print-item-head span {
  font-size: 8.3px;
}

.print-resume.measure-mode .print-role-line {
  margin-bottom: 2px !important;
  font-size: 8.8px !important;
  font-weight: 700;
}

.print-resume.measure-mode .print-item ul {
  margin: 2px 0 0 14px;
  padding: 0;
}

.print-resume.measure-mode .split-print {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .terminal-shell {
    padding: 8px;
  }

  .workspace-root {
    padding: 8px;
  }

  .pane-body {
    padding: 10px;
  }

  h1 {
    font-size: 34px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-meta {
    flex-direction: column;
  }

  .footer-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (min-width: 1700px) {
  .terminal-shell {
    max-width: 1720px;
  }

  .workspace-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(420px, 0.95fr);
  }

  h1 {
    font-size: 66px;
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes shell-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes texture-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(22px);
  }
}

@keyframes scanline-shift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(10px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coin-spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

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

@keyframes sheen-pass {
  from {
    left: -150%;
  }
  to {
    left: 165%;
  }
}

@keyframes launcher-float {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.45in 0.5in;
  }

  body {
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
  }

  body::before {
    display: none;
  }

  body::after {
    display: none;
  }

  .ui-only,
  .app-launcher,
  .site-footer {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .print-header {
    text-align: center;
    border-bottom: 1.4px solid #111;
    padding-bottom: 8px;
  }

  .print-header h1 {
    margin: 0 0 5px;
    font-size: 21px;
    font-family: Arial, Helvetica, sans-serif;
  }

  .print-header p {
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
  }

  .print-section {
    margin-top: 11px;
  }

  .print-section h2 {
    margin: 0 0 5px;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10.5px;
  }

  .print-section p,
  .print-section li {
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
  }

  .print-item {
    margin-bottom: 7px;
    page-break-inside: avoid;
  }

  .print-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
  }

  .print-item-head strong {
    font-size: 10px;
  }

  .print-item-head span {
    font-size: 9.5px;
  }

  .print-role-line {
    margin-bottom: 2px !important;
    font-size: 10px !important;
    font-weight: 700;
  }

  .print-item ul {
    margin: 3px 0 0 16px;
    padding: 0;
  }

  .split-print {
    display: block;
  }
}
