/* Pink cyber / retro-computer direction from the supplied visual reference. */
:root {
  color-scheme: dark;
  --bg: #140c15;
  --bg-soft: #21121f;
  --surface: #281625;
  --surface-solid: #241422;
  --surface-raised: #321b2b;
  --text: #f9e8f1;
  --muted: #bd91aa;
  --muted-strong: #dcbbce;
  --line: #eb86b334;
  --line-strong: #f09bc164;
  --blue: #f3a2ca;
  --purple: #d68ad8;
  --pink: #f496c3;
  --gradient: linear-gradient(110deg, #f5b3d5, #dd77af, #e9a3d1);
  --gradient-soft: linear-gradient(140deg, #ef8fba10, #b865a00b);
  --font-display: 'Chakra Petch', 'Manrope', sans-serif;
  --radius: 7px;
  --radius-lg: 11px;
}
body { background: #140c15; isolation: isolate; }
::selection { background: #f096be52; color: #fff0f7; }
.cyber-backdrop { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 48% 10%, #51253c60, transparent 65%), linear-gradient(#190f1a, #100b13); }
.cyber-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.19' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  opacity: .17;
}
.cyber-stars { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(circle, #efb3d0 1px, transparent 1.2px), radial-gradient(circle, #fbd2e8 .6px, transparent 1px); background-size: 197px 173px, 311px 257px; background-position: 17px 33px, 83px 120px; }
.cyber-landscape { position: absolute; left: -10%; right: -10%; bottom: -100px; height: 58vh; min-height: 330px; background: url('images/neon-landscape.svg') center bottom / cover no-repeat; opacity: .24; mask-image: linear-gradient(transparent, #000 25%); }
.reading-progress { background: linear-gradient(90deg, #a84c82, #f5a5ca, #ffd8ec); box-shadow: 0 0 10px #f095bf77; }
.site-header .nav-shell { border-color: #e695be40; background: #1b101beF; border-radius: 8px; box-shadow: 0 0 0 3px #f099c005, 0 12px 35px #0004, inset 0 1px #f6bad31a; }
.brand { color: #f5d2e4; }
.brand::before { content: '♡'; background: #cc639e15; border-color: #df86b35c; color: #f2a4cc; border-radius: 4px; font-size: 21px; box-shadow: 0 0 18px #d172a21b; }
.brand-dot { color: #eb92be; }
.desktop-nav a { color: #c5a0b9; }
.desktop-nav a.active, .desktop-nav a:hover { color: #ffd8ee; background: #f195be10; }
.desktop-nav a.active::after { background: #f29bc5; box-shadow: 0 0 9px #f29bc5; }
.language-select select { color: #f5cbe1; background: #2b1726; border-color: #ec91bc3b; border-radius: 4px; }
.language-select option { background: #241420; }
.language-select { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
.language-select > .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.language-select select { appearance: none; min-width: 65px; max-width: none; height: 38px; padding: 7px 25px 7px 12px; line-height: 1.3; font-family: var(--font-mono); font-size: .65rem; text-align: start; }
.language-select::after { content: '⌄'; position: absolute; inset-inline-end: 9px; top: 50%; transform: translateY(-60%); color: #c994b0; pointer-events: none; font-size: 13px; }
html[dir=rtl] .language-select select { padding-inline: 12px 25px; font-family: var(--font-body); }
@media (max-width: 400px) { .language-select select { min-width: 57px; height: 34px; padding-inline-start: 8px; font-size: .59rem; } }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 9px; border: 1px solid #ec91bc3b; border-radius: 4px; background: #2b1726; color: #f5cbe1; cursor: pointer; font-size: .65rem; white-space: nowrap; }
.theme-toggle:hover { border-color: #efacd0; }.theme-icon { font-size: 17px; line-height: 1; }
@media (max-width: 1050px) { .theme-name { display: none; }.theme-toggle { min-width: 34px; padding-inline: 6px; } }
@media (max-width: 400px) { .theme-toggle { min-height: 32px; min-width: 29px; padding-inline: 4px; }.nav-actions { gap: 5px; } }
.button { border-radius: 3px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .025em; }
.button-primary { background: linear-gradient(#b76791, #8c456f); border: 1px solid #f5afcf; color: #ffedf6; box-shadow: inset 0 0 0 3px #e0a4c125, 0 0 19px #d471a528; text-shadow: 0 0 7px #fff4; }
.button-primary:hover { background: linear-gradient(#d27aa7, #a15082); border-color: #ffd7eb; box-shadow: inset 0 0 0 3px #f4c5df22, 0 0 25px #eb8cb645; }
.button-secondary { color: #efc0d8; background: #21131f9c; border-color: #c57ba84d; box-shadow: inset 0 0 0 3px #f4c5df05; }
.button-secondary:hover { background: #50243b66; border-color: #e994bf; }
.hero { position: relative; background: radial-gradient(ellipse at 50% 38%, #6e2b4e21, transparent 70%); padding-top: 150px; }
.hero::after { content: ''; position: absolute; inset: auto -15% 0; height: 285px; background: url('images/neon-landscape.svg') center 27% / cover no-repeat; opacity: .42; z-index: -1; mask-image: linear-gradient(transparent, #000 40%, transparent); pointer-events: none; }
.hero .eyebrow { color: #bd87a5; font-size: .55rem; margin-bottom: 23px; }
.hero .eyebrow::before { background: #e694bd; box-shadow: 0 0 9px #df83ad; }
.cyber-welcome { display: flex; align-items: center; gap: 12px; color: #f0a3cb; font-size: .59rem; letter-spacing: .075em; margin-bottom: 19px; text-shadow: 0 0 12px #ed84b65a; }
.cyber-welcome > span { color: #f6b4d2; font-size: 16px; }
.hero h1 { font-weight: 700; font-size: clamp(3.2rem, 4.9vw, 4.6rem); letter-spacing: -.045em; line-height: 1.08; color: #f4d7e7; text-shadow: 0 0 35px #d578a315; }
.hero h1 .gradient-text { font-family: var(--font-display); font-weight: 700; font-style: normal; font-size: .91em; line-height: 1.14; letter-spacing: -.035em; background: linear-gradient(#ffd2e9 0%, #f2a5c9 40%, #bd6599 75%, #efb1d0 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #612441) drop-shadow(0 0 15px #ea82b326); }
.hero-lede { color: #c7a7bd; }
.hero-art .gradient-orb { background: radial-gradient(circle, #e377aa60, #a6427830 55%, transparent 75%); opacity: .55; box-shadow: 0 0 100px #ea86bb16; }
.hero-art .orbital-ring { border-color: #e793c44d; border-style: solid; opacity: .3; }
.hero-art .ring-two { border-color: #df91c42e; }
.hero-art .code-card { border-color: #e28fb760; border-radius: 7px; background: #160d19f5; box-shadow: 0 0 0 5px #c978a00b, 0 25px 70px #0006, 0 0 35px #ef84b817, inset 0 0 0 1px #f5c3dd0b; transform: rotate(-2deg); }
.hero-art:hover .code-card { transform: rotate(0deg) translateY(-3px); }
.hero-art .code-card-top { background: linear-gradient(90deg, #4c243e, #2c1729); border-color: #e48fb63d; }
.code-card-top .window-dot { background: #e18cb6; box-shadow: 0 0 6px #df82b54d; border-radius: 1px; }
.code-card-top .code-file { color: #d0a3be; }
.code-editor-path { color: #79516f; }.code-editor-path span { color: #c18cae; }
.hero-art .code-card-body { color: #dfc4d9; }
.syntax-keyword { color: #ef97d0; }.syntax-string { color: #e5aecb; }
.code-editor-footer { background: #4a22351f; border-color: #e28fb72b; color: #a16f91; border-radius: 0 0 7px 7px; }
.code-editor-footer span:last-child { color: #d59dbf; }
.hero-sparkle { position: absolute; color: #ed9ec4; text-shadow: 0 0 20px #f195be77; pointer-events: none; animation: sparkle-pulse 4s ease-in-out infinite; }
.sparkle-one { top: 24%; right: 8%; font-size: 45px; }.sparkle-two { bottom: 22%; left: 47%; font-size: 28px; animation-delay: -2s; }
.current-note { color: #a67d97; border-color: #db88af25; }.current-dot { background: #f09abe; box-shadow: 0 0 10px #ed9abc66; }
.hero-rail { border-color: #d889b132; }.hero-rail a { color: #d3a4c0; }.hero-rail a span:last-child { color: #f2adce; }.hero-rail .hero-stack { color: #a57894; }
.section-index { color: #cf86ad; }.section-heading-row h2, .profile-copy h2 { color: #f3cfdf; }
.text-link { color: #ecabd0; }.text-link:hover { color: #ffd8ed; }
.featured-grid > .collection-card, .featured-grid > .collection-card:first-child { background: #20121fe8; border-color: #c579a348; border-radius: 9px; box-shadow: 0 0 0 3px #df8db50a; }
.featured-grid .collection-card:hover { border-color: #ed9fc994; box-shadow: 0 0 28px #c971a21a; }
.featured-grid .collection-card .project-meta { color: #c17f9e; }
.collection-card h3, .collection-card h3 a { color: #f3ccdf; }.collection-card h3 a:hover { color: #ffaed8; }
.collection-card .collection-content > p { color: #c9a6bc; }.collection-card .project-highlights { color: #af8ca3; }.project-highlights li::marker { color: #df8fb8; }
.collection-card .project-actions { border-color: #d889b125; }.collection-card .tag-list span { color: #c89ab7; background: #cf7da90c; border: 1px solid #e195bd16; border-radius: 3px; }
.collection-card .project-preview, .featured-grid > .collection-card:first-child .project-preview { border-radius: 0; }
.collection-grid:not(.featured-grid) .collection-card .project-preview { border-color: #d58bb43b; border-radius: 7px; }
.project-preview::before { display: block; background-image: linear-gradient(#ed9ac608 1px, transparent 1px), linear-gradient(90deg, #ed9ac608 1px, transparent 1px); background-size: 24px 24px; }
.launch-mini { border: 1px solid #de8db850; color: #f0bdd8; background: #2e1828bb; border-radius: 3px; box-shadow: inset 0 0 0 2px #e4a3c40a; font-family: var(--font-mono); font-size: .65rem; }
.launch-mini:hover { background: #71334d66; border-color: #f4acd0; box-shadow: 0 0 18px #d577a825; }
.demo-caption { color: #ba8da5; }
/* Keep each project recognisable inside the pink portfolio shell. */
.preview-vyro { background: radial-gradient(ellipse at 40% 20%, #9454b42b, transparent 70%), #261727; }
.preview-nexora { background: radial-gradient(ellipse at 50% 10%, #7e598f2b, transparent 70%), #231c30; }
.preview-mochi-garden { background: radial-gradient(ellipse at 50% 10%, #b67f9f26, transparent 70%), #28222b; }
.preview-bloomly { background: radial-gradient(ellipse at 50% 10%, #ba8ba529, transparent 70%), #26202a; }
.preview-assistant { background: radial-gradient(ellipse at 50% 10%, #aa67ba29, transparent 70%), #1d1427; }
.profile-section { background: linear-gradient(#40233630, transparent); border-color: #e098bf22; }
.skills-panel { background: linear-gradient(135deg, #2e1b2d, #1d111f); border-color: #dd90bc3d; border-radius: 8px; }
.panel-title { color: #e4a0c4; }.skill-group h3 { color: #e5bad3; }.skills-panel .tag-list span { background: #e8a0cb07; color: #d6a9c5; border-color: #e8a0cb18; }
.timeline-content { background: linear-gradient(110deg, #291828, #1a101e); border-color: #d185ad2a; border-radius: 7px; }.timeline-content p { color: #b88fa9; }.timeline-heading span { color: #de9ac0; }
.timeline::before { background: linear-gradient(#f3a3ca, #a4548b, #e09ec7); }.timeline-marker { box-shadow: 0 0 0 5px var(--bg), 0 0 16px #e695bd55; }
.archive-panel { background: radial-gradient(ellipse at 90% 0, #bc5c9c24, transparent 60%), #251626; border-color: #e19bc142; border-radius: 8px; }.archive-panel h2 { color: #f3d1e3; }
.site-footer { background: #140c17a8; border-color: #d889b126; }.footer-nav a { color: #b98ba7; }.copyright { color: #97728b; border-color: #d889b126; }
.page-hero { background: radial-gradient(ellipse at 100% 0, #ac5e9620, transparent 55%); }.page-hero .gradient-text { background: none; color: #eb9fc9; -webkit-text-fill-color: #eb9fc9; }
.page-summary { background: linear-gradient(135deg, #311c2f, #1b1120); border-color: #e094bc37; border-radius: 8px; }
.project-search input { background: #241423; border-color: #e898bf32; color: #f2d2e5; border-radius: 4px; }.project-search button { background: #361b2b; border-color: #d58ab344; color: #ecc1d9; border-radius: 4px; }
.filter-list button { border-color: #d58ab32d; border-radius: 3px; color: #c093af; }.filter-list button[aria-pressed=true] { background: #a3537f; color: #fff0f7; border-color: #ef9fc5; box-shadow: inset 0 0 0 2px #e7aec52a; }
.case-study-card { background: #211522; border-color: #d98eb337; border-radius: 8px; }.case-content h2 { color: #f1cfdf; }.case-number { color: #dc92ba; }.case-lede { color: #c7a4b9; }
.detail-hero { background: radial-gradient(ellipse at 90% 0, #b8699d20, transparent 65%), #211421b8; border-color: #dd90b82b; }.detail-hero h1 { color: #f4d0e3; }.detail-preview .project-preview { border-color: #de93bb3b; border-radius: 8px; }.detail-index, .detail-body > section { border-color: #dc92b82b; }
.detail-index a:hover { color: #f3b4d4; border-color: #f3b4d4; }.feature-list li::marker { color: #dc92b8; }
.profile-card, .detail-panel, .principle, .lab-card, .small-project, .learning-steps li { background: #251626; border-color: #d78db52b; border-radius: 7px; }.profile-monogram { background: linear-gradient(140deg, #b55e92, #e4a0c4); }.lab-terminal { background: #190f1d; border-color: #d78db54a; }
.mobile-nav { background: #211321; border-color: #dc93bb40; }.mobile-nav a { color: #d4a6c1; }.mobile-nav a.active { background: #cb7da717; color: #ffd2ec; }
.mini-dialog { border-color: #db94bf70; box-shadow: 0 0 0 4px #e195bd0d, 0 35px 100px #0009; border-radius: 10px; }.mini-dialog::backdrop { background: #170b18cb; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline-color: #f6afd2; }
html[dir=rtl] { --font-display: 'Noto Sans Arabic', sans-serif; }
@keyframes sparkle-pulse { 50% { opacity: .45; transform: scale(.85); } }
@media (max-width: 1050px) {
  .hero h1 { font-size: 3.3rem; }.cyber-welcome { font-size: .5rem; gap: 8px; }
  .sparkle-one { right: 3%; font-size: 30px; }
}
@media (max-width: 780px) {
  .hero { padding-top: 125px; }.hero h1 { font-size: clamp(2.9rem, 10vw, 4.2rem); }
  .hero::after { height: 230px; opacity: .32; }
  .hero .eyebrow { font-size: .5rem; }.cyber-welcome { font-size: .53rem; }
  .sparkle-one { top: 43%; right: 8%; font-size: 28px; }.sparkle-two { display: none; }
  .cyber-landscape { opacity: .18; bottom: -55px; background-size: auto 100%; }
  .hero-art .code-card { transform: none; }
}
@media (max-width: 400px) { .hero h1 { font-size: 2.8rem; }.cyber-welcome { font-size: .46rem; gap: 7px; } }
@media (prefers-reduced-motion: reduce) { .hero-sparkle { animation: none; }.hero-art .code-card, .hero-art:hover .code-card { transform: none; } }

/* Small details that complete the retro desktop. */
.project-window-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #d990b338; background: linear-gradient(90deg, #49213a, #2a1729); color: #d9a4c3; font: 9px var(--font-mono); letter-spacing: .035em; border-radius: 7px 7px 0 0; }
.window-heart { color: #f4aacb; text-shadow: 0 0 9px #f2a3c989; font-size: 13px; }
.window-controls { margin-inline-start: auto; color: #aa6f96; white-space: pre; }
.featured-grid .project-window-bar { grid-column: 1 / -1; grid-row: 1; }
.featured-grid .collection-card .project-preview { grid-column: 1; grid-row: 2; }
.featured-grid .collection-card .collection-content { grid-column: 2; grid-row: 2; }
.featured-grid .collection-card:nth-child(even) .project-preview { grid-column: 2; }
.featured-grid .collection-card:nth-child(even) .collection-content { grid-column: 1; }
.collection-grid:not(.featured-grid) .project-window-bar { border: 1px solid #d990b338; border-bottom: 0; }
.collection-grid:not(.featured-grid) .collection-card .project-preview { border-top-left-radius: 0; border-top-right-radius: 0; }
.pixel-divider { display: flex; justify-content: center; align-items: center; gap: 25px; margin: 32px 0 -15px; color: #d889b3; font-size: 20px; text-shadow: 0 0 14px #da8cb344; }
.pixel-divider::before, .pixel-divider::after { content: ''; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, #d889b355); }
.pixel-divider::after { transform: rotate(180deg); }
.pixel-divider span:nth-child(2) { font-size: 26px; }
.copy-project { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 0; background: transparent; color: #c792af; padding: 7px 0; font-size: .65rem; }
.copy-project:hover { color: #ffd3eb; }
.copy-project span { color: #e9a2c6; }
.back-to-top { position: fixed; z-index: 80; inset-inline-end: 24px; bottom: 25px; width: 42px; height: 42px; background: #341c2eeF; border: 1px solid #dc8fb8; border-radius: 5px; box-shadow: inset 0 0 0 3px #e8a6c611, 0 0 20px #d078a528; color: #ffd5eb; cursor: pointer; font-size: 21px; }
.back-to-top:hover { background: #6b3151; }
.copy-feedback { position: fixed; z-index: 150; inset-inline: 20px; bottom: 30px; width: max-content; max-width: calc(100% - 100px); margin-inline: auto; padding: 13px 20px; border: 1px solid #e69cc5; background: #321c2df5; color: #f6cde3; box-shadow: 0 0 25px #d375a328; border-radius: 5px; font-size: .78rem; }
.copy-dialog { padding: 28px; margin: auto; width: min(490px, calc(100% - 35px)); background: #251626; color: #f4d1e3; border: 1px solid #e69cc5; border-radius: 7px; box-shadow: 0 0 45px #d375a325; }
.copy-dialog::backdrop { background: #170b18c9; backdrop-filter: blur(10px); }
.copy-dialog label { display: grid; gap: 15px; font-size: .9rem; }
.copy-dialog input { width: 100%; min-width: 0; border: 1px solid #d88eb545; border-radius: 4px; background: #160e1a; color: #efbdd7; padding: 12px; font-size: .75rem; }
.copy-dialog p { color: #bc90aa; font-size: .73rem; margin: 16px 0; }
.copy-dialog button { padding: 9px 20px; border: 1px solid #d88eb5; background: #67304f; color: #ffe3f1; border-radius: 3px; cursor: pointer; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .spotlight { display: block; z-index: 2; background: radial-gradient(340px circle at var(--spot-x, 50%) var(--spot-y, 0%), #ec91bb08, transparent 75%); }
}
@media (max-width: 780px) {
  .featured-grid .project-window-bar { order: -1; }
  .back-to-top { inset-inline-end: 15px; bottom: 17px; width: 38px; height: 38px; }
  .project-window-bar { padding: 10px 14px; font-size: 8px; }
  .pixel-divider { margin-top: 20px; }
}

/* A small, usable retro desktop for the project collection. */
.desktop-section { padding: 35px 0 15px; }
.retro-desktop { border: 1px solid #edacd16e; border-radius: 9px; background: #d9b1ce; box-shadow: 0 0 0 4px #f2b7d20a, 0 25px 70px #0004; overflow: hidden; color: #533a55; }
.desktop-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 17px; color: #f7d9ec; background: linear-gradient(90deg, #694068, #9b5c81 70%, #ad7098); border-bottom: 1px solid #734460; font: 10px var(--font-mono); }
.desktop-titlebar > div { display: flex; align-items: center; gap: 10px; }
.desktop-titlebar > div > span:first-child { font-size: 17px; color: #ffd2e6; line-height: 1; }
.desktop-title-controls { white-space: pre; color: #eed1e2; }
.desktop-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 22px; border-bottom: 1px solid #77446625; background: #e8c4d7; }
.desktop-toolbar > span { font-size: .52rem; letter-spacing: .07em; color: #845e7e; }
.ambience-toggle { background: #f4dce766; border: 1px solid #9b6d8e55; border-radius: 3px; color: #75516e; padding: 6px 9px; font-size: .58rem; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.ambience-toggle::before { content: ''; width: 5px; height: 5px; background: #b795a5; border-radius: 50%; }
.ambience-toggle[aria-pressed=true]::before { background: #5c7b6d; box-shadow: 0 0 6px #699a7d55; }
.desktop-intro { display: flex; align-items: center; justify-content: space-between; padding: 27px 35px 0; background: radial-gradient(ellipse at 90% 0%, #eecfde70, transparent 65%); }
.desktop-intro .section-index { color: #8d6188; font-size: .55rem; margin-bottom: 9px; }
.desktop-intro h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; letter-spacing: -.04em; color: #654565; }
.desktop-intro p:not(.section-index) { font-size: .76rem; color: #8a6580; margin-top: 10px; }
.desktop-heart { position: relative; flex-shrink: 0; margin-inline-start: 25px; padding: 15px 30px; }
.desktop-heart > span { display: block; font-size: 63px; line-height: 1; color: #bd6a99; text-shadow: 3px 3px #f5d9e7, -1px -1px #8c4b77; animation: desktop-heartbeat 4s ease-in-out infinite; }
.desktop-heart > i { position: absolute; top: 0; right: 5px; color: #f9e3ef; font-size: 27px; font-style: normal; text-shadow: 1px 1px #a56b94; }
.desktop-shortcuts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 25px 26px 35px; background-image: radial-gradient(#a3759b1a .6px, transparent .6px); background-size: 5px 5px; }
.desktop-shortcut { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; padding: 13px 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; color: #634361; transition: background .2s, border-color .2s, transform .2s; }
.desktop-shortcut:hover, .desktop-shortcut:focus-visible { background: #f9e4ec66; border-color: #a8719a5c; outline-color: #845075; }
.desktop-shortcut:active { transform: translateY(2px); }
.shortcut-image { position: relative; width: 62px; height: 64px; display: grid; place-items: center; margin-bottom: 12px; }
.shortcut-image > img { width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(2px 4px 0 #98648730); transition: transform .2s; }
.desktop-shortcut:hover .shortcut-image > img { transform: translateY(-4px); }
.shortcut-arrow { position: absolute; bottom: 4px; left: 2px; background: #ecd9e7; color: #7d5480; border: 1px solid #a57a9d; border-radius: 1px; width: 13px; height: 13px; font-size: 11px; line-height: 11px; }
.desktop-shortcut > strong { font-size: .69rem; font-weight: 600; text-align: center; line-height: 1.6; }
.desktop-shortcut > span:not(.shortcut-image):not(.shortcut-seen) { color: #96778e; font-size: .5rem; text-align: center; margin-top: 4px; max-width: 16ch; line-height: 1.65; }
.shortcut-seen { position: absolute; top: 8px; inset-inline-end: 9px; background: #e3e8d9; color: #617d66; width: 17px; height: 17px; border: 1px solid #8ca48b; border-radius: 50%; display: none; place-content: center; font-size: 10px; }
.desktop-shortcut.has-explored .shortcut-seen { display: grid; }
.desktop-taskbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: #c6a3c4; border-top: 1px solid #99779c60; box-shadow: inset 0 1px #f6ddec66; padding: 11px 17px; font: 9px var(--font-mono); color: #745473; }
.desktop-start { display: flex; align-items: center; gap: 7px; border: 1px solid #88608760; border-radius: 3px; padding: 7px 12px; background: #dfbed7; box-shadow: inset 1px 1px #fae4f0bb, 1px 1px #98739955; }
.desktop-start > span:first-child { color: #a36191; }
.exploration-status { font-size: 9px; color: #7c5b7d; }
.desktop-clock { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; border: 1px solid #95709650; padding: 7px 10px; background: #ba94ba55; box-shadow: inset 1px 1px #986f9a22; }
.desktop-clock time { font-size: 10px; color: #674969; font-variant-numeric: tabular-nums; }
.clock-light { display: inline-block; width: 5px; height: 5px; background: #64836d; border-radius: 50%; }
.ambient-paused .hero-sparkle, .ambient-paused .garden-preview-cat, .ambient-paused .voice-wave i, .ambient-paused .desktop-heart > span { animation-play-state: paused; }
.ambient-paused .spotlight { display: none; }
.ambient-paused .cyber-stars { opacity: .15; }
@keyframes desktop-heartbeat { 50% { transform: translateY(-4px) rotate(-5deg); } }
@media (max-width: 1050px) {
  .desktop-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 25px; }
  .desktop-shortcut { padding: 15px 10px; }
}
@media (max-width: 780px) {
  .desktop-section { padding-top: 20px; }
  .desktop-intro { padding: 25px 24px 0; }
  .desktop-intro h2 { font-size: 1.8rem; max-width: 18ch; }
  .desktop-heart { padding: 12px 8px; margin-inline-start: 10px; }
  .desktop-heart > span { font-size: 42px; }
  .desktop-heart > i { right: -5px; font-size: 20px; }
  .desktop-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 4px; padding: 20px 14px; }
  .desktop-shortcut { padding: 10px 4px; }
  .desktop-shortcut > strong { font-size: .63rem; }
  .desktop-shortcut > span:not(.shortcut-image):not(.shortcut-seen) { font-size: .47rem; }
  .desktop-toolbar { padding: 10px 15px; }
  .desktop-toolbar > span { font-size: .42rem; }
  .ambience-toggle { font-size: .49rem; }
  .desktop-taskbar { gap: 10px; padding: 10px; }
  .desktop-start { font-size: 8px; padding: 6px 8px; }
  .exploration-status { font-size: 8px; }
  .desktop-clock { padding: 6px; }
  .desktop-clock time { font-size: 8px; }
}
@media (max-width: 400px) {
  .desktop-heart { display: none; }
  .desktop-intro { padding-inline: 20px; }
  .desktop-intro h2 { font-size: 1.6rem; }
  .desktop-taskbar { column-gap: 7px; }
  .desktop-start { padding-inline: 6px; }
  .desktop-clock { gap: 4px; padding-inline: 5px; }
  .exploration-status { font-size: 7px; }
}
html[dir=rtl] .desktop-intro h2 { letter-spacing: 0; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .desktop-heart > span { animation: none; }
  .desktop-shortcut, .shortcut-image > img { transition: none; }
  .desktop-shortcut:hover .shortcut-image > img { transform: none; }
}

/* The original developer card, with real entry and pointer motion. */
.hero-art .tech-chip { display: block; border-color: #d991bb5c; color: #eac0dd; background: #221329eF; border-radius: 7px; font-size: .6rem; animation: tech-drift 6s ease-in-out infinite; }
.hero-art .chip-react { animation-delay: -.7s; }
.hero-art .chip-vue { animation-delay: -2s; }
.hero-art .chip-csharp { animation-delay: -3.7s; }
.hero-art .chip-sql { animation-delay: -4.8s; }
.hero-art .code-card { transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) rotate(-2deg); background: linear-gradient(145deg, #211629f5, #111421f5); transition: transform .18s ease-out; }
.hero-art:hover .code-card { transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) rotate(-2deg); }
.hero-art .syntax-string { color: #aedbd1; }
.hero-art .syntax-keyword { color: #d5a4f4; }
.hero-art .code-card-body { line-height: 1.95; }
.code-is-typing code::after { content: '▌'; color: #e9a9d2; animation: terminal-blink .65s steps(1) infinite; }
body[data-page=projects] .page-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
body[data-page=projects] .page-hero .hero-art { min-height: 420px; width: 100%; }
.cyber-stars { animation: star-drift 55s linear infinite alternate; }
.cyber-landscape { animation: landscape-drift 20s ease-in-out infinite alternate; }
.hero::after { animation: horizon-drift 18s ease-in-out infinite alternate; }
.ambient-paused .cyber-stars, .ambient-paused .cyber-landscape, .ambient-paused .hero::after,
.ambient-paused .hero-art .tech-chip, .ambient-paused .hero-art .gradient-orb,
.ambient-paused .hero-art .orbital-ring { animation-play-state: paused; }
.ambient-paused .hero-art .code-card, .ambient-paused .hero-art:hover .code-card { transform: rotate(-2deg); }
@keyframes tech-drift { 50% { translate: 0 -9px; } }
@keyframes star-drift { to { background-position: 57px 83px, 113px 160px; } }
@keyframes landscape-drift { to { transform: translateY(-22px) scale(1.025); } }
@keyframes horizon-drift { to { transform: translateX(12px) translateY(-12px); } }
@keyframes terminal-blink { 50% { opacity: 0; } }
@media (max-width: 1050px) { body[data-page=projects] .page-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
  .hero-art .tech-chip { font-size: .52rem; padding: 7px 10px; }
  .hero-art .chip-csharp { inset-inline-end: 1%; }
  body[data-page=projects] .page-hero .hero-art { max-width: 470px; margin-inline: auto; min-height: 370px; }
}
@media (max-width: 400px) { .hero-art .tech-chip { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cyber-stars, .cyber-landscape, .hero::after, .hero-art .tech-chip, .code-is-typing code::after { animation: none; }
  .hero-art .code-card, .hero-art:hover .code-card { transform: none; transition: none; }
}

/* Retro windows can be expanded and moved without leaving the application. */
.mini-window-actions { display: flex; align-items: center; gap: 7px; margin-inline-start: 15px; }
.mini-expand, .mini-centre { width: 34px; height: 34px; border: 1px solid var(--mini-line); border-radius: 6px; background: var(--mini-soft); color: var(--mini-muted); cursor: pointer; font-size: 19px; line-height: 1; }
.mini-expand:hover, .mini-centre:hover { color: var(--mini-accent); border-color: var(--mini-accent); }
.mini-dialog.is-positioned { position: fixed; margin: 0; inset: var(--window-top) auto auto var(--window-left); animation: none; }
.mini-dialog.is-dragging, .mini-dialog.is-dragging * { user-select: none; }
.mini-dialog.is-maximized { width: min(1080px, calc(100% - 35px)); height: calc(100dvh - 35px); max-height: calc(100dvh - 35px); }
.mini-dialog.is-maximized .mini-shell { display: flex; flex-direction: column; height: 100%; }
.mini-dialog.is-maximized .mini-header, .mini-dialog.is-maximized .mini-footer, .mini-dialog.is-maximized .mini-disclaimer { flex-shrink: 0; }
.mini-dialog.is-maximized .mini-body { flex: 1; min-height: 0; overflow: auto; width: min(100%, 800px); margin-inline: auto; }
@media (pointer: fine) and (min-width: 780px) { .mini-dialog:not(.is-maximized) .mini-header { cursor: grab; touch-action: none; }.mini-dialog.is-dragging .mini-header { cursor: grabbing; } }
@media (max-width: 780px) { .mini-dialog.is-maximized { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }.mini-window-actions { gap: 5px; }.mini-expand, .mini-centre { width: 31px; height: 31px; }.mini-dialog .mini-close { width: 33px; height: 33px; } }
body, .nav-shell, .desktop-titlebar, .desktop-taskbar, .project-window-bar, .collection-content, .language-select select, .theme-toggle { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
@media (prefers-reduced-motion: reduce) { body, .nav-shell, .desktop-titlebar, .desktop-taskbar, .project-window-bar, .collection-content, .language-select select, .theme-toggle { transition: none; } }

/* Keep the page still while scrolling; movement belongs to the desktop apps. */
body { position: relative; }
.site-header { position: relative; inset: auto; top: 0; }
.hero { padding-top: 65px; }
.page-hero { padding-top: 75px; }
.detail-hero { padding-top: 65px; }
.cyber-backdrop { position: absolute; }
.cyber-stars, .cyber-landscape, .hero::after { animation: none; }
.cyber-landscape { display: none; }
.desktop-taskbar { position: relative; }
.desktop-start { cursor: pointer; color: #745473; }
.desktop-start:hover, .desktop-start[aria-expanded=true] { background: #f3d3e3; border-color: #8e5c85; }
.desktop-start[aria-expanded=true] { box-shadow: inset 1px 1px #98739955; }
.desktop-start-menu { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 12px; z-index: 10; width: 235px; padding: 7px; background: #ead0e1; border: 1px solid #a9799f; border-radius: 6px; box-shadow: 4px 7px 0 #81587d22, 0 12px 30px #5f325030; }
.start-menu-heading { display: flex; align-items: center; gap: 10px; padding: 12px 10px 15px; margin-bottom: 6px; border-bottom: 1px solid #ae80a73b; color: #8c5c81; }
.start-menu-heading > span { font-size: 20px; }.start-menu-heading > strong { font-size: .74rem; font-weight: 500; }
.desktop-start-menu > a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid transparent; border-radius: 4px; color: #8d6284; text-decoration: none; font-family: var(--font-body); font-size: .77rem; }
.desktop-start-menu > a > span:first-child { width: 20px; color: #a06d97; font-size: 18px; text-align: center; }
.desktop-start-menu > a:hover, .desktop-start-menu > a:focus-visible { background: #f9e6ef; border-color: #d0a5c2; outline-color: #a37299; }
.start-menu-footer { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 11px; border-top: 1px solid #ae80a73b; color: #ac85a0; font-size: .55rem; }
@media (max-width: 780px) { .hero, .page-hero, .detail-hero { padding-top: 45px; }.desktop-start-menu { width: 210px; inset-inline-start: 8px; } }

/* A clean transition from the introduction into the desktop. */
html[data-theme=dark] .hero::after { display: block; height: 170px; inset: auto 0 0; background: url('images/neon-landscape.svg') center 38% / 100% auto no-repeat; opacity: .22; mask-image: linear-gradient(transparent, #000 40%, transparent); animation: none; transform: none; }
.hero .pixel-divider { margin: 14px 0 0; gap: 20px; font-size: 16px; opacity: .75; }
.hero .pixel-divider span:nth-child(2) { font-size: 20px; }
.hero .hero-rail { margin-top: 18px; padding-block: 16px; }
.desktop-section { padding-top: 20px; }

.project-file-browser { min-width: 0; align-self: center; border: 1px solid #d790b64d; border-radius: 8px; background: #211422; box-shadow: 0 15px 40px #0003, 0 0 0 4px #ed9bc008; overflow: hidden; }
.file-browser-title { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-bottom: 1px solid #d790b637; background: linear-gradient(90deg, #49243d, #301b2e); font: 10px var(--font-mono); color: #deaecb; }
.file-browser-title > span:last-child { margin-inline-start: auto; color: #a87597; }
.file-browser-main { display: grid; grid-template-columns: 155px minmax(0, 1fr); min-height: 340px; }
.project-file-list { display: flex; flex-direction: column; padding: 14px 8px; border-inline-end: 1px solid #d790b62b; background: #180f1c60; gap: 4px; }
.project-file-list button { display: flex; align-items: center; gap: 7px; padding: 10px 8px; min-width: 0; background: transparent; border: 1px solid transparent; color: #b48fa8; text-align: start; border-radius: 4px; cursor: pointer; font-size: .65rem; }
.project-file-list button img { width: 22px; height: 22px; flex-shrink: 0; image-rendering: pixelated; }
.project-file-list button[aria-selected=true] { background: #bc72952b; border-color: #d992b444; color: #f0c6df; }
.project-file-list button:hover { background: #bc729519; }
.file-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px 16px; text-align: center; background: radial-gradient(ellipse at 50% 20%, #aa608820, transparent 70%); }
.file-preview-icon { width: 78px; height: 78px; image-rendering: pixelated; filter: drop-shadow(0 8px 10px #0002); margin-bottom: 15px; }
.file-preview-kind { font: 9px var(--font-mono); color: #ac7899; margin-bottom: 12px; }
.file-preview h2 { font-size: 1.7rem; color: #edbbd7; letter-spacing: -.035em; }
.file-preview-description { font-size: .7rem; color: #b78da6; line-height: 1.8; margin: 14px 0 20px; max-width: 23ch; }
.file-demo { padding: 10px 15px; font-size: .6rem; }
.file-detail-link { display: inline-block; color: #c59bb6; text-decoration: none; font-size: .65rem; margin-top: 17px; }
.file-browser-status { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid #d790b62b; color: #9f728f; font: 8px var(--font-mono); background: #2b172524; }
@media (max-width: 1050px) { .project-file-browser { width: 100%; max-width: 580px; margin-inline: auto; } }
@media (max-width: 400px) { .file-browser-main { grid-template-columns: 118px minmax(0, 1fr); }.project-file-list { padding-inline: 5px; }.project-file-list button { font-size: .55rem; padding-inline: 4px; gap: 4px; }.project-file-list button img { width: 19px; }.file-preview { padding-inline: 10px; }.file-preview h2 { font-size: 1.4rem; }.file-demo { padding-inline: 10px; font-size: .53rem; }.file-browser-status { font-size: 7px; } }

/* More life in the foreground; the landscape stays anchored and stationary. */
.sparkle-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 120; }
.pointer-sparkle { position: absolute; font-size: var(--spark-size, 11px); line-height: 1; color: #f8b8dc; text-shadow: 0 0 8px #f2a0d077; animation: pointer-twinkle .65s ease-out both; will-change: transform, opacity; }
.sparkle-burst { color: #ffd3ec; animation-name: launch-sparkle; }
.hero h1 .gradient-text { background-size: 200% 200%; animation: heading-sheen 7s ease-in-out infinite; }
.hero .cyber-welcome > span { animation: welcome-star 3.8s ease-in-out infinite; }
.hero .cyber-welcome > span:last-child { animation-delay: -1.9s; }
.desktop-shortcut .shortcut-image { transition: transform .4s cubic-bezier(.2,1.5,.5,1); }
.desktop-shortcut:hover .shortcut-image, .desktop-shortcut:focus-visible .shortcut-image { transform: translateY(-7px) rotate(-5deg); }
.desktop-shortcut:hover .shortcut-image > img { transform: none; }
.desktop-shortcut:nth-child(even):hover .shortcut-image { transform: translateY(-7px) rotate(5deg); }
.desktop-shortcut:active .shortcut-image { transform: translateY(-2px) scale(.92); }
.desktop-shortcut.has-explored .shortcut-seen { animation: explored-stamp .4s cubic-bezier(.2,1.5,.5,1) both; }
.project-file-list button:hover img { animation: file-wiggle .4s ease both; }
.file-preview-icon { animation: preview-float 5s ease-in-out infinite; }
.launch-mini { position: relative; overflow: hidden; }
.launch-mini::after { content: ''; position: absolute; inset: -70% auto -70% -45%; width: 25%; background: linear-gradient(90deg, transparent, #ffd8ed14, transparent); transform: rotate(22deg) translateX(-150%); pointer-events: none; }
.launch-mini:hover::after { animation: launch-sheen .65s ease both; }
.mini-dialog[open] { animation: window-power-on .32s cubic-bezier(.2,.8,.3,1) both; }
.mini-dialog.is-positioned[open] { animation: none; }
.mini-dialog.is-maximized .mini-body { animation: expanded-content .22s ease both; }
.hero-rail a > span:last-child { animation: discover-bob 2.8s ease-in-out infinite; }
.ambient-paused .hero h1 .gradient-text, .ambient-paused .cyber-welcome > span,
.ambient-paused .file-preview-icon, .ambient-paused .hero-rail a > span:last-child,
.ambient-paused .shortcut-seen { animation-play-state: paused; }
.ambient-paused .sparkle-layer { display: none; }
.ambient-paused .desktop-shortcut .shortcut-image, .ambient-paused .mini-dialog[open],
.ambient-paused .mini-body { animation: none; transition: none; }
.ambient-paused .desktop-shortcut:hover .shortcut-image, .ambient-paused .desktop-shortcut:focus-visible .shortcut-image { transform: none; }
@keyframes pointer-twinkle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0); } 20% { opacity: .8; } 100% { opacity: 0; transform: translate(calc(-50% + var(--spark-dx)), -24px) scale(.1) rotate(70deg); } }
@keyframes launch-sparkle { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--spark-dx)), -42px) scale(.9) rotate(100deg); } }
@keyframes heading-sheen { 0%, 100% { background-position: 0 30%; } 50% { background-position: 100% 70%; } }
@keyframes welcome-star { 50% { opacity: .45; transform: rotate(45deg) scale(.8); } }
@keyframes explored-stamp { from { opacity: 0; transform: scale(.3) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes file-wiggle { 30% { transform: rotate(-10deg); } 70% { transform: rotate(6deg); } }
@keyframes preview-float { 50% { transform: translateY(-6px); } }
@keyframes launch-sheen { to { transform: rotate(22deg) translateX(750%); } }
@keyframes window-power-on { from { opacity: .25; transform: translateY(12px) scale(.96); } 75% { opacity: 1; transform: translateY(-2px) scale(1.005); } to { opacity: 1; transform: none; } }
@keyframes expanded-content { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes discover-bob { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .sparkle-layer { display: none; }
  .hero h1 .gradient-text, .cyber-welcome > span, .file-preview-icon, .mini-dialog[open],
  .mini-body, .shortcut-seen, .hero-rail a > span:last-child, .project-file-list button:hover img,
  .launch-mini:hover::after { animation: none; }
  .desktop-shortcut .shortcut-image { transition: none; }
  .desktop-shortcut:hover .shortcut-image, .desktop-shortcut:focus-visible .shortcut-image,
  .desktop-shortcut:nth-child(even):hover .shortcut-image { transform: none; }
}
