@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* HSL Color System */
  --bg-dark: 240 10% 3.9%;
  --accent-cyan: 180 100% 50%;
  --accent-purple: 270 95% 60%;
  --accent-orange: 24 100% 50%;
  --accent-green: 142 70% 50%;

  --glass-bg: rgba(15, 15, 20, 0.65);
  --glass-bg-hover: rgba(25, 25, 35, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(255, 255, 255, 0.2);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px 0 rgba(0, 0, 0, 0.5);

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: hsl(var(--bg-dark));
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
  -webkit-user-select: none;
}

/* --- BOOT SCREEN ANIMATION --- */
#boot-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050508;
  color: #a6e22e;
  font-family: var(--font-mono);
  padding: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
  transition: opacity 0.8s ease-in-out;
}

.boot-line {
  line-height: 1.5;
  font-size: 0.9rem;
  white-space: pre-wrap;
  margin-bottom: 4px;
}

.boot-line .ok {
  color: #66d9ef;
  font-weight: bold;
}

.boot-line .warn {
  color: #fd971f;
  font-weight: bold;
}

.boot-line .system {
  color: #ae81ff;
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #a6e22e;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* --- DESKTOP ENVIRONMENT --- */
#desktop-env {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url('assets/wallpaper.png') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* --- MENU BAR --- */
#menu-bar {
  height: 30px;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  font-size: 0.8rem;
  z-index: 10000;
  font-weight: 500;
}

.menu-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-item {
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-item.logo-item {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.menu-status-pill {
  background: rgba(0, 255, 255, 0.15);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #387eff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-status-pill .indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #387eff;
  /* Kali prompt blue */
  box-shadow: 0 0 8px hsl(var(--accent-cyan));
}

.menu-status-pill.sec-pill {
  background: rgba(142, 255, 142, 0.1);
  border: 1px solid rgba(142, 255, 142, 0.25);
  color: hsl(var(--accent-green));
}

.menu-status-pill.sec-pill .indicator-dot {
  background-color: hsl(var(--accent-green));
  box-shadow: 0 0 8px hsl(var(--accent-green));
}

/* Dropdown Menu System */
.menu-item-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 28px;
  left: 0;
  width: 200px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 10001;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-item.danger:hover {
  background: rgba(255, 50, 50, 0.2);
}

.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 4px 0;
}

/* --- DESKTOP GRID --- */
#desktop-grid {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 85px;
  /* Leave space for dock */
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 135px));
  grid-auto-rows: 130px;
  gap: 15px;
  grid-flow: column;
  justify-content: flex-start;
  align-content: flex-start;
  z-index: 10;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  width: 115px;
  height: 115px;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.desktop-icon:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
}

.icon-wrapper {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  margin-bottom: 8px;
}

.icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.icon-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.2;
}

/* --- WINDOW FRAME --- */
.window-frame {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 760px;
  height: 520px;
  min-width: 350px;
  min-height: 250px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.window-frame.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.window-frame.active-window {
  border-color: var(--glass-border-focus);
  box-shadow: 0 16px 64px 0 rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 500;
}

.window-frame.maximized {
  top: 30px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 30px) !important;
  border-radius: 0;
}

.window-frame.minimized {
  opacity: 0;
  transform: scale(0.6) translateY(200px);
  pointer-events: none;
}

/* Title Bar / Header */
.window-header {
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  cursor: move;
  flex-shrink: 0;
}

.window-controls {
  display: flex;
  gap: 4px;
}

.window-btn {
  width: 28px;
  height: 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

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

.window-btn.close:hover {
  background: #e94b3c;
  color: #fff;
}

.window-btn.close::before {
  content: "×";
  font-size: 1.1rem;
  line-height: 1;
}

.window-btn.minimize::before {
  content: "";
  width: 9px;
  height: 1.5px;
  background-color: currentColor;
}

.window-btn.maximize::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}



.window-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.window-info {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Window Content Container */
.window-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Firefox standard scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) rgba(0, 0, 0, 0.15);
}

/* --- BOTTOM DOCK --- */
#dock-container {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dock {
  background: rgba(10, 10, 15, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  box-shadow: var(--shadow-md);
  height: 64px;
}

.dock-item-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dock-item {
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: width 0.2s, height 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: bottom center;
}

.dock-item svg {
  width: 100%;
  height: 100%;
}

.dock-item:hover {
  width: 54px;
  height: 54px;
  transform: translateY(-8px);
}

.dock-divider {
  width: 1px;
  height: 38px;
  background-color: var(--glass-border);
  align-self: center;
}

/* Tooltips */
.dock-tooltip {
  position: absolute;
  bottom: 74px;
  background: rgba(15, 15, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(5px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}

.dock-item-wrapper:hover .dock-tooltip {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Running Indicator Dot */
.dock-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: transparent;
  margin-top: 2px;
  transition: background 0.3s;
}

.dock-item-wrapper.running .dock-indicator {
  background-color: #387eff;
  /* Kali prompt blue */
  box-shadow: 0 0 6px hsl(var(--accent-cyan));
}

/* --- APP LAYOUT TEMPLATES --- */

/* Tab Sidebar Layout */
.app-sidebar-layout {
  display: flex;
  flex-grow: 1;
  margin: -20px;
  /* Counter-act window padding */
  height: calc(100% + 40px);
}

.app-sidebar {
  width: 180px;
  background: rgba(0, 0, 0, 0.15);
  border-right: 1px solid var(--glass-border);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.sidebar-tab {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-tab svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.sidebar-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sidebar-tab.active-tab {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.sidebar-tab.active-tab svg {
  opacity: 1;
}

.app-main-content {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active-pane {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography & Layout elements */
h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #387eff;
  /* Kali prompt blue */
  display: flex;
  align-items: center;
  gap: 8px;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: -8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

/* Badge list */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.badge.cyan-badge {
  background: rgba(0, 255, 255, 0.06);
  border-color: rgba(0, 255, 255, 0.15);
  color: #387eff;
  /* Kali prompt blue */
}

.badge.purple-badge {
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.15);
  color: hsl(var(--accent-purple));
}

.badge.orange-badge {
  background: rgba(249, 115, 22, 0.06);
  border-color: rgba(249, 115, 22, 0.15);
  color: hsl(var(--accent-orange));
}

/* Specifications Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 24px;
}

.spec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 15px;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.spec-val {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Boundaries & Firewall Cards */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-card {
  border-left: 3px solid hsl(var(--accent-orange));
  background: rgba(249, 115, 22, 0.02);
  border-radius: 0 6px 6px 0;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rule-card.warning-card {
  border-left-color: hsl(var(--accent-orange));
  background: rgba(249, 115, 22, 0.02);
}

.rule-card.zero-trust-card {
  border-left-color: hsl(var(--accent-purple));
  background: rgba(168, 85, 247, 0.02);
}

.rule-card.performance-card {
  border-left-color: #387eff;
  /* Kali prompt blue */
  background: rgba(0, 255, 255, 0.02);
}

.rule-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rule-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Projects Showcase */
.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}

.project-card:hover {
  border-color: var(--glass-border-focus);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-title-group {
  display: flex;
  flex-direction: column;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.project-tag {
  font-size: 0.7rem;
  color: #387eff;
  /* Kali prompt blue */
  font-family: var(--font-mono);
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.project-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.project-features {
  margin-top: 15px;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-feature-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  list-style-type: square;
}

/* --- NEOVIM APP --- */
.neovim-container {
  display: flex;
  flex-grow: 1;
  background-color: #0b0c10;
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.neovim-tree {
  width: 160px;
  background-color: #0d0e15;
  border-right: 1px solid #1c1d27;
  padding: 10px;
  font-size: 0.75rem;
  color: #8f93a2;
}

.neovim-tree-header {
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.neovim-tree-item {
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
}

.neovim-tree-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.neovim-tree-item.active-file {
  background: rgba(255, 255, 255, 0.1);
  color: #387eff;
  /* Kali prompt blue */
  font-weight: 500;
}

.neovim-editor {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.neovim-tabs {
  height: 30px;
  background-color: #0d0e15;
  display: flex;
  border-bottom: 1px solid #1c1d27;
}

.neovim-tab {
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #8f93a2;
  border-right: 1px solid #1c1d27;
  cursor: pointer;
}

.neovim-tab.active-tab {
  background-color: #0b0c10;
  color: #fff;
  border-top: 2px solid hsl(var(--accent-cyan));
}

.neovim-tab .close-tab {
  font-size: 0.7rem;
  cursor: pointer;
}

.neovim-code-area {
  flex-grow: 1;
  padding: 15px;
  display: flex;
  overflow-y: auto;
  line-height: 1.5;
  color: #8f93a2;
}

.neovim-line-numbers {
  width: 30px;
  text-align: right;
  padding-right: 10px;
  color: #3b4054;
  user-select: none;
}

.neovim-code {
  flex-grow: 1;
  white-space: pre;
  color: #c5c9db;
}

.neovim-code .comment {
  color: #515973;
  font-style: italic;
}

.neovim-code .keyword {
  color: #f07178;
}

.neovim-code .string {
  color: #c3e88d;
}

.neovim-code .function {
  color: #82aaff;
}

.neovim-code .variable {
  color: #f78c6c;
}

.neovim-code .type {
  color: #decb6b;
}

.neovim-statusline {
  height: 22px;
  background-color: #82aaff;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.neovim-status-mode {
  background-color: #000;
  color: #82aaff;
  padding: 0 8px;
  font-weight: bold;
}

/* --- TERMINAL APP --- */
.terminal-window {
  background-color: #0c0d12;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.terminal-body {
  flex-grow: 1;
  padding: 15px 15px 5px 15px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 8px;
  line-height: 1.4;
}

.terminal-prompt {
  color: #387eff;
  /* Kali prompt blue */
  font-weight: 500;
}

.terminal-input-container {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px 15px 15px;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex-grow: 1;
}

/* ASCII NEOfetch style rendering */
.neofetch-output {
  display: flex;
  gap: 24px;
  margin: 10px 0;
}

.neofetch-ascii {
  color: #387eff;
  /* Kali prompt blue */
  font-weight: 500;
  white-space: pre;
}

.neofetch-info {
  display: flex;
  flex-direction: column;
}

.neofetch-field {
  color: #387eff;
  /* Kali prompt blue */
  font-weight: bold;
}

.neofetch-value {
  color: #fff;
}

/* --- RESPONSIVENESS (MOBILE) --- */
@media (max-width: 809.98px) {
  #desktop-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 100px));
    grid-auto-rows: 105px;
    padding: 15px;
    bottom: 80px;
  }

  .desktop-icon {
    width: 90px;
    height: 90px;
    padding: 5px;
  }

  .icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .icon-label {
    font-size: 0.7rem;
  }

  .dock {
    height: 54px;
    padding: 6px 10px;
    gap: 8px;
  }

  .dock-item {
    width: 36px;
    height: 36px;
  }

  .dock-item:hover {
    width: 42px;
    height: 42px;
    transform: translateY(-4px);
  }

  /* Make windows take full screen on mobile */
  .window-frame {
    top: 30px !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 30px) !important;
    border-radius: 0;
    border: none;
  }

  .app-sidebar-layout {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    height: auto;
  }

  .sidebar-tab {
    white-space: nowrap;
    padding: 6px 12px;
  }

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

  .neofetch-output {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- HERO SECTION STYLES --- */
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0;
  max-width: 600px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--accent-orange));
  background: rgba(249, 115, 22, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.hero-subheadline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  width: 100%;
}

.hero-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--glass-border);
}

.hero-btn.primary {
  background-color: #387eff;
  /* Kali prompt blue */
  color: #000;
  border-color: #387eff;
  /* Kali prompt blue */
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.hero-btn.primary:hover {
  background-color: #00cccc;
  border-color: #00cccc;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-focus);
  transform: translateY(-2px);
}

/* --- CAPABILITIES DATA TABLE --- */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.cap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.cap-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  font-family: var(--font-mono);
  color: #387eff;
  /* Kali prompt blue */
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cap-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  line-height: 1.5;
  color: var(--text-secondary);
}

.cap-table tr:last-child td {
  border-bottom: none;
}

.cap-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.subsystem-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  width: 200px;
}

/* --- BACKGROUND DAEMONS MONITOR --- */
.sys-monitor {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 15px;
  max-width: 450px;
}

.sys-bar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sys-bar-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.sys-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.sys-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--accent-cyan)) 0%, hsl(var(--accent-purple)) 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px hsl(var(--accent-cyan));
}