/* ==========================================================================
   RETRO 90s / Y2K VIRTUAL DESKTOP OS & CRT SHADER STYLESHEET
   Inspired by Henry Heffernan & Classic Windows 95/98 / Mac OS Classic
   ========================================================================== */

:root {
  --win-bg: #c0c0c0;
  --win-dark: #808080;
  --win-darkest: #000000;
  --win-light: #ffffff;
  --win-blue-start: #000080;
  --win-blue-end: #1084d0;
  --win-desktop-teal: #008080;
  --win-text: #000000;

  --crt-amber: #ffb000;
  --crt-green: #33ff33;
  --crt-blue: #00f0ff;

  --font-system: 'Share Tech Mono', 'VT323', monospace;
  --font-retro-mono: 'VT323', 'Share Tech Mono', monospace;
  --font-pixel: 'Press Start 2P', 'Silkscreen', monospace;
  --font-vt: 'VT323', monospace;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

button, input, textarea, select {
  font-family: inherit;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0d0f12;
  font-family: var(--font-system);
  color: var(--win-text);
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   3D VIEWPORT CONTAINER & CANVAS
   ========================================================================== */
#webgl-viewport-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: radial-gradient(circle at 50% 40%, #1a1614 0%, #0a0807 100%);
  touch-action: none;
}

#desk-three-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ==========================================================================
   HUD & FLOATING NAVIGATION CONTROLS
   ========================================================================== */
.top-hud-bar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.hud-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hud-lamp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffb703;
  box-shadow: 0 0 10px #ffb703;
  animation: pulseLamp 2.5s infinite;
}

@keyframes pulseLamp {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px #ffb703; }
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.hud-btn.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.hud-btn.primary:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   VIRTUAL CRT MONITOR SCREEN FRAME (INSIDE SCREEN)
   ========================================================================== */
#virtual-crt-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  background: radial-gradient(circle at 50% 50%, #15181f 0%, #090a0d 70%, #030405 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}

#virtual-crt-container.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

/* Physical CRT Bezel Enclosure - Authentic 4:3 Boxy Vintage Monitor */
.crt-physical-housing {
  position: relative;
  /* Format Kotak / 4:3 Asli CRT Jadul (Bukan Widescreen 16:9) */
  width: min(92vw, calc(88vh * (4 / 3.22)));
  height: min(88vh, calc(92vw * (3.22 / 4)));
  max-width: 980px;
  max-height: 790px;
  aspect-ratio: 4 / 3.22;
  background: #d6d0bc; /* Putih Gading / Vintage Beige Plastic */
  border-radius: 22px;
  padding: 16px 20px 48px 20px;
  box-shadow:
    0 25px 65px rgba(0, 0, 0, 0.92),
    0 0 50px rgba(0, 0, 0, 0.6),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8),
    inset -3px -3px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Ventilasi Udara CRT Jadul di Bagian Atas */
.crt-physical-housing::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #7d7866 0px,
    #7d7866 3px,
    transparent 3px,
    transparent 7px
  );
  opacity: 0.7;
}

/* Mode Layar Penuh Bebas Bezel (Jika User Memilih Tampilan Borderless) */
.crt-physical-housing.clean-screen-mode {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  padding: 0;
  background: #008080;
  box-shadow: none;
}

.crt-physical-housing.clean-screen-mode::before {
  display: none;
}

.crt-physical-housing.clean-screen-mode .crt-bottom-chassis {
  display: none;
}

.crt-physical-housing.clean-screen-mode .crt-glass-frame {
  border-radius: 0;
  box-shadow: none;
  border: none;
  outline: none;
}

/* CRT Brand Emblem & Power Switch */
.crt-bottom-chassis {
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 60;
}

.crt-logo-badge {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #555144;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}

.crt-dials-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crt-dial {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a39e88;
  border: 1px solid #6b6756;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.crt-mode-btn {
  background: #b5b099;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #4a473d;
  border-bottom: 2px solid #4a473d;
  padding: 2px 7px;
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  font-weight: bold;
  color: #2b2820;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.crt-mode-btn:active {
  border-top: 2px solid #4a473d;
  border-left: 2px solid #4a473d;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.crt-power-led-unit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crt-power-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.crt-power-switch {
  background: #b5b099;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #4a473d;
  border-bottom: 2px solid #4a473d;
  padding: 2px 8px;
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  font-weight: 800;
  color: #3b3930;
  cursor: pointer;
  border-radius: 3px;
}

.crt-power-switch:active {
  border-top: 2px solid #4a473d;
  border-left: 2px solid #4a473d;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* CRT Inner Glass Screen with Curve & Shadow */
.crt-glass-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #008080;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #b6b09c;
  outline: 2px solid #8c8674;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.88),
    inset 0 0 90px rgba(0, 0, 0, 0.55),
    0 0 6px rgba(0, 0, 0, 0.7);
}

/* CRT Scanlines and Vignette Overlay */
.crt-scanlines-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 4px 100%;
  opacity: 0.65;
}

.crt-screen-curvature {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 101;
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.7),
    inset 0 0 100px rgba(0, 0, 0, 0.5);
  border-radius: 14px;
}

/* ==========================================================================
   RETRO VIRTUAL OS WORKSPACE (WINDOWS 95/98 STYLING)
   ========================================================================== */
.retro-desktop-space {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--win-desktop-teal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Desktop Icons Container */
.desktop-icons-area {
  flex: 1 1 0;
  min-height: 0;
  height: calc(100% - 32px);
  max-height: calc(100% - 32px);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 16px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  pointer-events: none;
}

.desktop-icon-item {
  width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 4px 3px;
  border-radius: 2px;
  border: 1px dotted transparent;
  transition: background 0.12s ease;
  user-select: none;
  pointer-events: auto;
  flex-shrink: 0;
}

.desktop-icon-item:hover {
  background: rgba(0, 0, 128, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.desktop-icon-item.selected {
  background: rgba(0, 0, 128, 0.65);
  border-color: #ffffff;
}

.desktop-icon-item.selected .icon-caption {
  background: #000080;
  color: #ffffff;
  outline: 1px dotted #ffff80;
}

.icon-graphic-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.5));
  margin-bottom: 2px;
  transition: transform 0.1s ease;
}

.desktop-icon-item:hover .icon-graphic-box {
  transform: scale(1.08);
}

.icon-caption {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  font-weight: normal;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000000;
  line-height: 1.25;
  padding: 2px 4px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

.icon-basename {
  display: block;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.icon-ext {
  display: block;
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

/* ==========================================================================
   CLASSIC WINDOW CHROME (BEVEL 3D EDGES)
   ========================================================================== */
.retro-window-frame {
  position: absolute;
  background-color: var(--win-bg);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darkest);
  border-bottom: 2px solid var(--win-darkest);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 220px;
  z-index: 20;
}

.retro-window-frame.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - 32px) !important;
}

.retro-window-titlebar {
  background: linear-gradient(90deg, var(--win-blue-start) 0%, var(--win-blue-end) 100%);
  padding: 3px 4px 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
}

.retro-window-titlebar.inactive {
  background: linear-gradient(90deg, #808080 0%, #b0b0b0 100%);
}

.titlebar-text-group {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-family: var(--font-pixel);
  font-weight: bold;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.titlebar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.win-control-btn {
  width: 18px;
  height: 16px;
  background-color: var(--win-bg);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-darkest);
  border-bottom: 1px solid var(--win-darkest);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
}

.win-control-btn:active {
  border-top: 1px solid var(--win-darkest);
  border-left: 1px solid var(--win-darkest);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding-top: 1px;
  padding-left: 1px;
}

/* Window Menu Bar (File, Edit, View, Help) */
.win-menubar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 6px;
  border-bottom: 1px solid var(--win-dark);
  font-family: var(--font-system);
  font-size: 0.88rem;
}

.win-menu-item {
  cursor: pointer;
}

.win-menu-item:hover {
  background-color: #000080;
  color: #fff;
}

/* Window Interior Content Box */
.win-content-pane {
  flex-grow: 1;
  background-color: #ffffff;
  border-top: 2px solid var(--win-darkest);
  border-left: 2px solid var(--win-darkest);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  margin: 3px;
  overflow-y: auto;
  font-family: var(--font-system);
  font-size: 0.95rem;
  color: #000000;
}

/* ==========================================================================
   RETRO NOTEPAD (About_Me.txt)
   ========================================================================== */
.notepad-view {
  padding: 14px;
  font-family: var(--font-vt);
  font-size: 1.25rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: #111;
  background-color: #fff;
}

/* ==========================================================================
   RETRO CLI TERMINAL (Terminal.com)
   ========================================================================== */
.terminal-view {
  background-color: #0c100c;
  color: #33ff33;
  font-family: var(--font-vt);
  font-size: 1.28rem;
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.6);
}

.terminal-history {
  flex-grow: 1;
  line-height: 1.45;
  margin-bottom: 8px;
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #33ff33;
  font-family: var(--font-vt);
  font-size: 1.28rem;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.6);
}

/* ==========================================================================
   PROJECTS EXPLORER (Projects.exe)
   ========================================================================== */
.projects-explorer-view {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  background-color: #eaeaea;
  font-family: var(--font-system);
}

.retro-project-item {
  background: #ffffff;
  border: 2px solid var(--win-dark);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 2px 2px 0 #fff;
}

.retro-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.retro-project-title {
  font-family: var(--font-pixel);
  font-weight: bold;
  font-size: 0.74rem;
  line-height: 1.3;
}

.retro-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.retro-tag {
  background: #000080;
  color: #fff;
  font-size: 0.58rem;
  padding: 2px 6px;
  font-family: var(--font-pixel);
}

.retro-btn-links {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.win98-btn {
  background-color: var(--win-bg);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darkest);
  border-bottom: 2px solid var(--win-darkest);
  padding: 4px 10px;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.win98-btn:active {
  border-top: 2px solid var(--win-darkest);
  border-left: 2px solid var(--win-darkest);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  padding: 5px 9px 3px 11px;
}

/* ==========================================================================
   ARTICLES READER (Articles.doc)
   ========================================================================== */
.articles-reader-view {
  padding: 14px;
  background-color: #f7f7f7;
  font-family: var(--font-system);
}

.articles-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--win-dark);
}

.article-row-item {
  background: #ffffff;
  border: 1px solid #c0c0c0;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.article-row-item:hover {
  background: #eef2ff;
  border-color: #000080;
}

.article-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 4px;
}

.article-row-title {
  font-family: var(--font-pixel);
  font-weight: bold;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #000080;
  margin-bottom: 4px;
}

.article-row-excerpt {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.45;
}

/* ==========================================================================
   RETRO AUDIO PLAYER (Soundtrack.mp3 / Winamp Style)
   ========================================================================== */
.winamp-player-view {
  background: #292929;
  color: #00e600;
  font-family: var(--font-system);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.winamp-screen {
  background: #000;
  border: 2px solid #555;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.winamp-track-title {
  font-family: var(--font-pixel);
  color: #00ff00;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winamp-bars-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.eq-bar {
  width: 6px;
  background: #00ff00;
  border-radius: 1px;
  transition: height 0.15s ease;
}

.winamp-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   RETRO TASKBAR & START MENU
   ========================================================================== */
.retro-taskbar {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--win-bg);
  border-top: 2px solid var(--win-light);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  z-index: 50;
  position: relative;
}

.start-button {
  background-color: var(--win-bg);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darkest);
  border-bottom: 2px solid var(--win-darkest);
  font-family: var(--font-pixel);
  font-weight: 800;
  font-size: 0.68rem;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-right: 6px;
  flex-shrink: 0;
}

.start-button.active {
  border-top: 2px solid var(--win-darkest);
  border-left: 2px solid var(--win-darkest);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background-color: #dcdcdc;
}

.start-icon-square {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ff0000 0%, #00ff00 50%, #0000ff 100%);
  border-radius: 1px;
}

.taskbar-tabs-area {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  min-width: 0;
}

.taskbar-window-tab {
  background-color: var(--win-bg);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darkest);
  border-bottom: 2px solid var(--win-darkest);
  padding: 2px 8px;
  font-family: var(--font-pixel);
  font-size: 0.60rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.taskbar-window-tab.active {
  border-top: 2px solid var(--win-darkest);
  border-left: 2px solid var(--win-darkest);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  background-color: #d8d8d8;
  font-weight: bold;
}

.taskbar-system-tray {
  border-top: 1px solid var(--win-dark);
  border-left: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.60rem;
  margin-left: auto;
  flex-shrink: 0;
}

.taskbar-tray-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.12s ease;
}

.taskbar-tray-btn:hover {
  transform: scale(1.2);
}

.btn-exit-to-room {
  background: #a82020;
  color: #fff;
  border-top: 2px solid #ff7070;
  border-left: 2px solid #ff7070;
  border-right: 2px solid #400000;
  border-bottom: 2px solid #400000;
  padding: 2px 8px;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 6px;
}

/* Start Menu Pop-out */
.retro-start-menu {
  position: absolute;
  bottom: 32px;
  left: 2px;
  width: 220px;
  background-color: var(--win-bg);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darkest);
  border-bottom: 2px solid var(--win-darkest);
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
}

.start-menu-sidebar {
  width: 28px;
  background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 8px;
  color: #fff;
}

.start-menu-banner-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-pixel);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.start-menu-items {
  flex-grow: 1;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.start-menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--font-system);
  font-size: 0.88rem;
  cursor: pointer;
}

.start-menu-row:hover {
  background-color: #000080;
  color: #fff;
}

.start-menu-divider {
  height: 1px;
  background: var(--win-dark);
  border-bottom: 1px solid var(--win-light);
  margin: 4px 2px;
}

/* ==========================================================================
   BOOT UP VINTAGE ANIMATION
   ========================================================================== */
.crt-boot-curtain {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #22c55e;
  font-family: var(--font-vt);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.crt-boot-curtain.booting {
  opacity: 1;
  pointer-events: auto;
}

.boot-text-stream {
  max-width: 600px;
  font-family: var(--font-vt);
  font-size: 1.25rem;
  line-height: 1.45;
  white-space: pre-line;
}

/* ==========================================================================
   DESKTOP HERO WATERMARK & DIRECT NAVIGATION (INSIDE CRT SCREEN)
   ========================================================================== */
.desktop-hero-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  pointer-events: auto;
  background: rgba(0, 128, 128, 0.55);
  padding: 22px 34px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.desktop-hero-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #ffea00;
  background: #000080;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.desktop-hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 240, 255, 0.5);
  line-height: 1.35;
  margin-bottom: 8px;
}

.desktop-hero-subtitle {
  font-family: var(--font-vt);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffd166;
  text-shadow: 1px 1px 2px #000, 0 0 10px rgba(255, 209, 102, 0.6);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.desktop-hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.desktop-chip-btn {
  background-color: var(--win-bg);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darkest);
  border-bottom: 2px solid var(--win-darkest);
  padding: 5px 12px;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s;
}

.desktop-chip-btn:hover {
  background-color: #dcdcdc;
  transform: translateY(-1px);
}

.desktop-chip-btn:active {
  border-top: 2px solid var(--win-darkest);
  border-left: 2px solid var(--win-darkest);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  padding: 6px 11px 4px 13px;
}

/* ==========================================================================
   3D ROOM INTERACTIVE TOOLTIP & GESTURE HINT
   ========================================================================== */
.retro-3d-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100;
  background: rgba(12, 16, 12, 0.94);
  color: #33ff33;
  border: 1px solid rgba(51, 255, 51, 0.7);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 10px rgba(51, 255, 51, 0.4);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  padding: 6px 12px;
  border-radius: 4px;
  transform: translate(-50%, -150%);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.retro-3d-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -160%);
}

.retro-room-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 9999px;
  font-family: var(--font-vt);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.retro-room-hint.fade-out {
  opacity: 0;
  transform: translate(-50%, 15px);
}

.hint-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffb703;
  box-shadow: 0 0 10px #ffb703;
  animation: pulseHintDot 2s infinite;
}

@keyframes pulseHintDot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 14px #ffb703; }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR COMPACT & MOBILE SCREENS
   ========================================================================== */
@media (max-width: 768px), (max-height: 640px) {
  .crt-physical-housing {
    width: 96vw;
    height: auto;
    aspect-ratio: 4 / 3.35;
    padding: 10px 12px 38px 12px;
    border-radius: 16px;
  }

  .crt-bottom-chassis {
    bottom: 6px;
    left: 12px;
    right: 12px;
    height: 24px;
  }

  .crt-logo-badge {
    font-size: 0.50rem;
  }

  .crt-dial {
    display: none;
  }

  .desktop-icons-area {
    padding: 6px 10px;
    gap: 3px 10px;
  }

  .desktop-icon-item {
    width: 76px;
    padding: 2px 1px;
  }

  .icon-graphic-box {
    width: 30px;
    height: 30px;
    font-size: 22px;
    margin-bottom: 1px;
  }

  .icon-caption {
    font-size: 0.56rem;
    padding: 1px 2px;
  }

  .icon-ext {
    font-size: 0.48rem;
  }

  .desktop-hero-watermark {
    padding: 10px 16px;
  }

  .desktop-hero-title {
    font-size: 1.05rem;
    margin-bottom: 3px;
  }

  .desktop-hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .desktop-chip-btn {
    padding: 3px 8px;
    font-size: 0.54rem;
  }

  .win-control-btn {
    min-width: 32px;
    min-height: 28px;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   VINTAGE BIOS BOOT LOADER (INITIAL LOADING SCREEN)
   ========================================================================== */
.retro-initial-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #08090b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: auto;
}

.retro-initial-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-terminal-frame {
  width: min(92vw, 560px);
  background: #0d1117;
  border: 2px solid #22c55e;
  border-radius: 6px;
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  font-family: var(--font-vt);
}

.loader-top-bar {
  background: #22c55e;
  color: #000;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.loader-badge {
  background: #000;
  color: #22c55e;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 0.50rem;
}

.loader-content {
  padding: 18px 22px;
  color: #22c55e;
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.loader-line {
  margin-bottom: 6px;
  opacity: 0.88;
}

.loader-line.highlight {
  color: #ffea00;
  opacity: 1;
  font-weight: bold;
}

.loader-bar-track {
  width: 100%;
  height: 16px;
  background: #1f2937;
  border: 1px solid #22c55e;
  border-radius: 2px;
  margin: 14px 0 10px 0;
  padding: 2px;
  box-sizing: border-box;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
  border-radius: 1px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.loader-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.54rem;
  color: #a7f3d0;
}

/* ==========================================================================
   QUICK ACCESS NAVIGATION HUD (RECRUITER & FAST ACCESS)
   ========================================================================== */
.quick-access-hud {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 45;
  display: flex;
  align-items: center;
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#virtual-crt-container.active ~ .quick-access-hud,
body.os-zoomed .quick-access-hud {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.hud-pill-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 16, 22, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 8px;
  border-radius: 9999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hud-label {
  font-family: var(--font-pixel);
  font-size: 0.50rem;
  letter-spacing: 0.08em;
  color: #ffd166;
  margin-right: 4px;
  padding-left: 6px;
}

.hud-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f3f4f6;
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  padding: 5px 11px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.hud-pill-btn:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: #00f0ff;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.4);
}

.hud-pill-btn.accent {
  background: #000080;
  border-color: #ffd166;
  color: #ffd166;
}

.hud-pill-btn.accent:hover {
  background: #1084d0;
  color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .quick-access-hud {
    top: 10px;
    right: 50%;
    transform: translateX(50%);
    width: max-content;
  }
  .hud-label {
    display: none;
  }
  .hud-pill-btn {
    padding: 4px 8px;
    font-size: 0.50rem;
  }
}

/* ==========================================================================
   PROJECT DETAIL MODAL (TOUCH-FRIENDLY & DESKTOP RETRO MODAL)
   ========================================================================== */
.retro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.retro-modal-box {
  width: min(94%, 520px);
  max-height: 90%;
  background: var(--win-bg);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darkest);
  border-bottom: 2px solid var(--win-darkest);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.retro-modal-body {
  padding: 16px;
  overflow-y: auto;
  font-family: var(--font-system);
}

.modal-category-badge {
  display: inline-block;
  background: #000080;
  color: #ffea00;
  font-family: var(--font-pixel);
  font-size: 0.54rem;
  padding: 3px 6px;
  border-radius: 2px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.modal-project-title {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: #000080;
  margin-bottom: 10px;
  line-height: 1.3;
}

.modal-project-desc {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.5;
  margin-bottom: 12px;
}

.modal-section-title {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  color: #555;
  margin-bottom: 6px;
  font-weight: bold;
}

.modal-metric-box {
  background: #fff8e1;
  border: 1px dashed #f59e0b;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: #b45309;
}

.modal-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.modal-action-buttons .win98-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.65rem;
}

.modal-thumb-close-btn {
  width: 100%;
  min-height: 44px;
  background-color: var(--win-bg);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-darkest);
  border-bottom: 2px solid var(--win-darkest);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  font-weight: bold;
  color: #b91c1c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.1s;
}

.modal-thumb-close-btn:hover {
  background-color: #fca5a5;
  color: #7f1d1d;
}

.modal-thumb-close-btn:active {
  border-top: 2px solid var(--win-darkest);
  border-left: 2px solid var(--win-darkest);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
}

/* ==========================================================================
   RESUME WORDPAD VIEW
   ========================================================================== */
.resume-wordpad-view {
  background: #ffffff;
  color: #000000;
  padding: 20px 24px;
  font-family: var(--font-system);
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

.resume-header {
  border-bottom: 2px solid #000080;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.resume-name {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: #000080;
  margin-bottom: 6px;
}

.resume-role {
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  color: #4b5563;
  margin-bottom: 4px;
}

.resume-contact {
  font-size: 0.82rem;
  color: #6b7280;
}

.resume-section {
  margin-bottom: 16px;
}

.resume-section-title {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: #000080;
  background: #e5e7eb;
  padding: 4px 8px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.resume-text {
  font-size: 0.90rem;
  line-height: 1.5;
  color: #1f2937;
}

.resume-job {
  margin-bottom: 10px;
}

.job-title-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.90rem;
  margin-bottom: 2px;
}

.job-desc {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.45;
}

.resume-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #ccc;
  flex-wrap: wrap;
}

.highlight-btn {
  background-color: #000080 !important;
  color: #ffffff !important;
  font-weight: bold;
}
