:root {
  --font-sans: 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'JetBrains Mono', monospace;

  /* Windows 11 Acrylic & Mica Dark Palette */
  --win-taskbar-bg: rgba(32, 32, 32, 0.85);
  --win-taskbar-border: rgba(255, 255, 255, 0.08);
  
  --win-card-bg: rgba(255, 255, 255, 0.05);
  --win-card-border: rgba(255, 255, 255, 0.09);
  --win-window-bg: rgba(32, 34, 42, 0.92);
  --win-window-header: rgba(26, 28, 35, 0.95);
  --win-window-border: rgba(255, 255, 255, 0.12);
  --win-window-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --win-accent: #0078d4;
  --win-accent-light: #60a5fa;
  --win-close-hover: #e81123;
  --win-hover-bg: rgba(255, 255, 255, 0.08);
  --win-active-bg: rgba(255, 255, 255, 0.14);

  --text-main: #ffffff;
  --text-muted: #cccccc;
  --text-dim: #8a8a8a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background-color: #0c1017;
  background-image: url('images/rick_and_morty_wallpaper.jpg'), 
                    radial-gradient(circle at 50% 40%, #10b981 0%, #030712 70%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-main);
}

/* =========================================
   WINDOWS DESKTOP AREA & ICONS
   ========================================= */
.desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 48px; /* taskbar height */
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px 14px;
  z-index: 1;
}

.desktop-icon {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.desktop-icon:active, .desktop-icon.selected {
  background: rgba(0, 120, 212, 0.25);
  border-color: rgba(0, 120, 212, 0.6);
}

.icon-graphic {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.icon-graphic svg {
  width: 40px;
  height: 40px;
}

.icon-label {
  font-size: 11.5px;
  font-weight: 400;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.85);
  line-height: 1.25;
  word-break: break-word;
}

/* =========================================
   WINDOWS 11 TASKBAR (BOTTOM)
   ========================================= */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--win-taskbar-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--win-taskbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 10000;
}

.taskbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.taskbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, transform 0.1s;
  color: #fff;
}

.taskbar-btn:hover {
  background: var(--win-hover-bg);
}

.taskbar-btn:active {
  background: var(--win-active-bg);
  transform: scale(0.94);
}

.taskbar-btn svg {
  width: 22px;
  height: 22px;
}

/* Start button logo */
.win-start-btn {
  color: #0078d4;
}
.win-start-btn svg {
  width: 20px;
  height: 20px;
}

/* Taskbar running indicator line */
.taskbar-indicator {
  position: absolute;
  bottom: 2px;
  width: 6px;
  height: 3px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.2s;
  display: none;
}

.taskbar-btn.running .taskbar-indicator {
  display: block;
}

.taskbar-btn.active .taskbar-indicator {
  display: block;
  width: 16px;
  background: var(--win-accent-light);
}

/* Taskbar System Tray (Right) */
.taskbar-tray {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.tray-item {
  height: 36px;
  padding: 0 8px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s;
}

.tray-item:hover {
  background: var(--win-hover-bg);
  color: #fff;
}

.tray-clock {
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  line-height: 1.15;
  padding: 0 10px;
  text-align: right;
  font-size: 11.5px;
}

.tray-time {
  font-weight: 500;
  color: #fff;
}

.tray-date {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Far right desktop peek */
.peek-desktop {
  width: 8px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.15s;
}

.peek-desktop:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Status Pill in Tray */
.tray-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* =========================================
   WINDOWS 11 START MENU
   ========================================= */
.start-menu {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 580px;
  height: 560px;
  background: rgba(32, 34, 42, 0.95);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid var(--win-window-border);
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 24px 28px 16px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
}

.start-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.start-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid var(--win-accent);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
}

.start-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  width: 100%;
  font-family: var(--font-sans);
}

.start-search-bar svg {
  color: var(--text-dim);
  width: 16px;
  height: 16px;
}

.start-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.start-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.start-section-badge {
  font-size: 11px;
  color: var(--win-accent-light);
  background: rgba(0, 120, 212, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.start-pinned-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.start-pinned-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.start-pinned-item:hover {
  background: var(--win-hover-bg);
  transform: translateY(-2px);
}

.start-pinned-item:active {
  transform: scale(0.96);
}

.start-pinned-item span {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

/* Start Footer (User Profile & Power) */
.start-footer {
  margin-top: auto;
  border-top: 1px solid var(--win-card-border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.start-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.start-user:hover {
  background: var(--win-hover-bg);
}

.start-user img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.start-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.start-user-role {
  font-size: 11px;
  color: var(--text-dim);
}

.start-power-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.start-power-btn:hover {
  background: var(--win-hover-bg);
  color: #fff;
}

/* =========================================
   WINDOWS WINDOW CHROME (DRAGGABLE WINDOWS)
   ========================================= */
.os-window {
  position: absolute;
  background: var(--win-window-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--win-window-border);
  border-radius: 8px; /* Windows 11 rounded corners */
  box-shadow: var(--win-window-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 320px;
  min-height: 220px;
  z-index: 100;
}

.os-window.hidden {
  display: none !important;
}

.os-window.minimized {
  opacity: 0;
  transform: scale(0.7) translateY(240px);
  pointer-events: none;
}

.os-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - 48px) !important;
  border-radius: 0;
}

.window-header {
  height: 36px;
  background: var(--win-window-header);
  border-bottom: 1px solid var(--win-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  cursor: grab;
}

.window-header:active {
  cursor: grabbing;
}

.window-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.window-title svg {
  width: 15px;
  height: 15px;
}

/* Windows Top-Right Controls */
.win-controls {
  display: flex;
  align-items: center;
  height: 100%;
}

.win-btn {
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}

.win-btn:hover {
  background: var(--win-hover-bg);
  color: #fff;
}

.win-close:hover {
  background: var(--win-close-hover) !important;
  color: #fff !important;
}

.win-btn svg {
  width: 10px;
  height: 10px;
}

.window-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  user-select: text;
  -webkit-user-select: text;
}

/* Custom Scrollbars Windows Style */
.window-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.window-body::-webkit-scrollbar-track {
  background: transparent;
}
.window-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
.window-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* =========================================
   WINDOWS POWERSHELL THEME
   ========================================= */
.powershell-body {
  background: #012456 !important; /* Classic Windows PowerShell blue */
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 16px !important;
}

.powershell-output {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-line {
  word-break: break-word;
}

.ps-prompt {
  color: #eeedf0;
  font-weight: 600;
}

.ps-cmd {
  color: #ffb900;
}

.ps-highlight {
  color: #60a5fa;
  font-weight: 600;
}

.powershell-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.powershell-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  flex: 1;
}

/* =========================================
   APP-SPECIFIC CONTENT (WINDOWS CARDS)
   ========================================= */
.about-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.about-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--win-accent);
  box-shadow: 0 4px 16px rgba(0, 120, 212, 0.4);
}

.about-name {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.about-role {
  color: var(--win-accent-light);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.about-socials {
  display: flex;
  gap: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  background: var(--win-card-bg);
  border: 1px solid var(--win-card-border);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.15s;
}

.social-pill:hover {
  background: rgba(0, 120, 212, 0.2);
  border-color: var(--win-accent);
  color: #fff;
}

.bio-card {
  background: var(--win-card-bg);
  border: 1px solid var(--win-card-border);
  border-radius: 8px;
  padding: 16px;
  line-height: 1.6;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.bio-card p + p {
  margin-top: 10px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--win-card-bg);
  border: 1px solid var(--win-card-border);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.cta-row {
  display: flex;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0078d4;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #1084d8;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--win-card-bg);
  border: 1px solid var(--win-card-border);
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: var(--win-hover-bg);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Projects Explorer */
.projects-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  background: var(--win-card-bg);
  border: 1px solid var(--win-card-border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(0, 120, 212, 0.2);
  border-color: var(--win-accent);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--win-card-bg);
  border: 1px solid var(--win-card-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.5);
}

.project-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 145px;
  overflow: hidden;
  background: #111;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.project-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  background: rgba(0, 120, 212, 0.15);
  color: var(--win-accent-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.project-btn {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.project-btn-primary {
  background: #0078d4;
  color: #fff;
}
.project-btn-primary:hover {
  background: #1084d8;
}

.project-btn-outline {
  background: transparent;
  border: 1px solid var(--win-card-border);
  color: var(--text-main);
}
.project-btn-outline:hover {
  background: var(--win-hover-bg);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.skill-category {
  background: var(--win-card-bg);
  border: 1px solid var(--win-card-border);
  border-radius: 8px;
  padding: 16px;
}

.skill-cat-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--win-accent-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-main);
}

.skill-badge:hover {
  background: rgba(0, 120, 212, 0.2);
  border-color: var(--win-accent);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 12px;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid var(--win-accent);
  border-radius: 5px 5px 0 0;
  padding: 9px 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  display: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.iframe-container {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE / TABLET)
   ========================================= */
@media (max-width: 768px) {
  .start-menu {
    width: 94%;
    left: 3%;
    transform: translateY(20px);
    bottom: 56px;
    height: 480px;
    padding: 16px;
  }
  
  .start-menu.open {
    transform: translateY(0);
  }

  .start-pinned-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .os-window {
    top: 8px !important;
    left: 6px !important;
    right: 6px !important;
    bottom: 56px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
  }

  .taskbar-center {
    position: static;
    transform: none;
    flex: 1;
  }

  .tray-item:not(.tray-clock) {
    display: none;
  }

  .desktop-dev-widget {
    display: none;
  }
}

/* =========================================
   WINDOWS 11 CONTEXT MENU (RIGHT CLICK)
   ========================================= */
.win-context-menu {
  position: fixed;
  display: none;
  background: rgba(36, 38, 48, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 100000;
  animation: contextFadeIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contextFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-main);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.context-menu-item:hover {
  background: rgba(0, 120, 212, 0.25);
  color: #fff;
}

.context-menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--win-accent-light);
}

.context-menu-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 6px;
}

/* =========================================
   DESKTOP DEV / SYSTEM TELEMETRY WIDGET
   ========================================= */
.desktop-dev-widget {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 280px;
  background: rgba(24, 27, 36, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: transform 0.2s, border-color 0.2s;
}

.desktop-dev-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

.widget-status {
  font-size: 12px;
  line-height: 1.4;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.widget-dimension {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.widget-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
}

.widget-btn {
  width: 100%;
  padding: 7px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.widget-btn:hover {
  filter: brightness(1.15);
}

/* =========================================
   PORTAL GUN TRANSITION ANIMATION
   ========================================= */
.portal-swirl-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portal-swirl-overlay.active {
  opacity: 1;
}

.portal-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid #39ff14;
  box-shadow: 0 0 50px #39ff14, 0 0 100px #39ff14, inset 0 0 50px #39ff14;
  animation: portalExpand 0.8s ease-in-out forwards;
}

@keyframes portalExpand {
  0% { transform: scale(0.2) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.6) rotate(180deg); opacity: 1; filter: blur(2px); }
  100% { transform: scale(3.5) rotate(360deg); opacity: 0; filter: blur(10px); }
}

/* =========================================
   WINDOWS 11 TOAST NOTIFICATION
   ========================================= */
.win-toast {
  position: fixed;
  bottom: 60px;
  right: 18px;
  background: rgba(32, 34, 44, 0.94);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12.5px;
  z-index: 100002;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.win-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-title {
  font-weight: 600;
  font-size: 12px;
  color: #38bdf8;
  margin-bottom: 2px;
}

/* Glow highlight for matched projects */
.project-card.glow-pulse {
  border-color: #39ff14 !important;
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.45) !important;
  transform: translateY(-4px) scale(1.02);
}

/* =========================================
   BLOG APP (BLOG.EXE / DEV NOTES)
   ========================================= */
.blog-layout {
  display: flex;
  height: 100%;
  width: 100%;
  background: rgba(18, 20, 28, 0.9);
}

.blog-sidebar {
  width: 290px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-item-card {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.15s;
}

.blog-item-card:hover {
  background: rgba(0, 120, 212, 0.18);
  border-color: rgba(0, 120, 212, 0.4);
}

.blog-item-card.active {
  background: rgba(0, 120, 212, 0.28);
  border-color: var(--win-accent-light);
}

.blog-item-date {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.blog-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.blog-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.blog-item-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  color: #cbd5e1;
}

.blog-reader-pane {
  flex: 1;
  overflow-y: auto;
  padding: 28px 34px;
  line-height: 1.7;
  color: #e2e8f0;
}

.blog-post-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.blog-post-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.blog-reader-pane h3 {
  font-size: 17px;
  font-weight: 600;
  color: #38bdf8;
  margin-top: 24px;
  margin-bottom: 10px;
}

.blog-reader-pane p {
  margin-bottom: 14px;
  font-size: 13.5px;
}

.blog-reader-pane ul {
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.blog-reader-pane li {
  margin-bottom: 6px;
}

.blog-reader-pane blockquote {
  border-left: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  margin: 18px 0;
}

.blog-reader-pane pre {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 16px 0;
  color: #38bdf8;
}

/* =========================================
   IN-OS CASE STUDY READER (READER.EXE)
   ========================================= */
.reader-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reader-title-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.reader-project-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.reader-arch-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}

.arch-node {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

.arch-node-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.arch-node-desc {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 3px;
}

.arch-arrow {
  color: #38bdf8;
  font-weight: 700;
  font-size: 14px;
}

.reader-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.reader-metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.reader-metric-val {
  font-size: 20px;
  font-weight: 700;
  color: #38bdf8;
}

.reader-metric-lbl {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
}

/* =========================================
   ADOBE ACROBAT READER DC SIMULATION
   ========================================= */
.acrobat-window {
  display: flex;
  flex-direction: column;
  background: #323639;
  height: 100%;
  width: 100%;
  color: #d1d5db;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

/* Acrobat Menu Bar */
.acrobat-menubar {
  height: 28px;
  background: #202224;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 14px;
  font-size: 11.5px;
  color: #cccccc;
  border-bottom: 1px solid #18191a;
  user-select: none;
}

.acrobat-menu-item {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background 0.12s;
}

.acrobat-menu-item:hover {
  background: #3e4246;
  color: #fff;
}

/* Acrobat Tab Strip */
.acrobat-tabs {
  height: 34px;
  background: #282a2d;
  display: flex;
  align-items: flex-end;
  padding: 0 8px;
  gap: 4px;
  border-bottom: 1px solid #1a1c1e;
  overflow-x: auto;
}

.acrobat-tab {
  height: 30px;
  background: #1e2022;
  border-radius: 6px 6px 0 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.acrobat-tab.active {
  background: #323639;
  color: #ffffff;
  font-weight: 500;
  border-top: 2px solid #ed1c24;
}

.acrobat-tab:hover:not(.active) {
  background: #2d3033;
  color: #e5e7eb;
}

.acrobat-tab svg {
  width: 14px;
  height: 14px;
  color: #ed1c24;
}

/* Acrobat Action Toolbar */
.acrobat-toolbar {
  height: 40px;
  background: #2b2e31;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #1a1c1e;
  font-size: 12px;
}

.acrobat-tool-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.acrobat-tool-btn {
  height: 28px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #cccccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  transition: all 0.12s;
}

.acrobat-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.acrobat-tool-btn.active {
  background: #ed1c24;
  color: #fff;
}

.acrobat-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

.acrobat-page-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #cccccc;
}

.acrobat-page-input {
  width: 32px;
  height: 24px;
  background: #1e2022;
  border: 1px solid #4a4e52;
  border-radius: 3px;
  color: #fff;
  text-align: center;
  font-size: 11.5px;
  font-family: var(--font-mono);
}

/* Acrobat Main Workspace (Sidebar + Canvas) */
.acrobat-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.acrobat-sidebar-strip {
  width: 44px;
  background: #202224;
  border-right: 1px solid #18191a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  gap: 8px;
}

.acrobat-side-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}

.acrobat-side-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.acrobat-side-icon.active {
  background: #323639;
  color: #ed1c24;
}

/* Left Thumbnail Flyout Pane */
.acrobat-thumb-pane {
  width: 140px;
  background: #282a2d;
  border-right: 1px solid #1e2022;
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  gap: 12px;
  overflow-y: auto;
}

.thumb-preview-box {
  width: 100%;
  height: 150px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s;
}

.thumb-preview-box.active {
  border-color: #ed1c24;
}

.thumb-line {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
}

.thumb-page-num {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

/* Document Canvas View */
.acrobat-canvas {
  flex: 1;
  background: #525659; /* Official Adobe canvas grey */
  overflow-y: auto;
  overflow-x: auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* The White PDF Sheet */
.pdf-page-sheet {
  width: 680px;
  min-height: 940px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.1);
  padding: 48px 54px;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  border-radius: 2px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: text;
  -webkit-user-select: text;
}

/* PDF Document Header */
.pdf-doc-header {
  border-bottom: 2px solid #ed1c24;
  padding-bottom: 14px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pdf-doc-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
}

.pdf-doc-subtitle {
  font-size: 13.5px;
  color: #ed1c24;
  font-weight: 600;
  margin-top: 2px;
}

.pdf-doc-contact {
  font-size: 11px;
  color: #4b5563;
  text-align: right;
  line-height: 1.4;
}

.pdf-section-title {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.pdf-exp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
}

.pdf-exp-role {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.pdf-exp-company {
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}

.pdf-exp-date {
  font-size: 11px;
  color: #6b7280;
  font-family: var(--font-mono);
}

.pdf-exp-desc {
  font-size: 12px;
  color: #374151;
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1.55;
}

.pdf-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pdf-chip {
  font-size: 10.5px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 2px 7px;
  border-radius: 4px;
  color: #1f2937;
  font-weight: 500;
}

/* Yellow Highlighter simulation */
.pdf-page-sheet.highlighter-mode {
  cursor: crosshair;
}

.pdf-page-sheet ::selection {
  background: #ffeb3b;
  color: #000;
}



