body {
  margin: 0;
  font-family: Ubuntu, sans-serif;
  min-height: 100vh;
  background-image: url("../assets/images/focal-fossa.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-color: #0D0D0D;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  overscroll-behavior: none;
}
::-webkit-scrollbar {
  width: 0px;
}

.loader {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #0D0D0D;
  opacity: 1;
}

.loader .ubuntu-logo {
  margin: auto;
  position: relative;
  display: block;
  max-width: 100%;
  margin-top: 10vh;
}

.loader .ubuntu-loading {
  margin: auto;
  position: relative;
  display: block;
  animation: rotation 2s infinite linear;
}

@keyframes rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(359deg); }
}

p,
strong {
  font-family: Ubuntu;
  font-weight: 700;
}

td {
  color: #e0e8f0;
  vertical-align: top;
}

html, body {
  height: 100%;
  overflow: hidden;
}

.desktop {
  position: relative;
  width: 100%;
  height: 100%;
}

.dock {
  position: fixed;
  left: 16px;
  top: 80px;
  bottom: 80px;
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  z-index: 10000;
}

.dock-item {
  background: transparent;
  border: none;
  color: #e0e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 12px;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
  transform-origin: center;
  transform: scale(var(--dock-scale, 1));
}

.dock-item i {
  font-size: 18px;
}

.dock-item.active,
.dock-item:hover {
  background: rgba(44, 109, 178, 0.25);
  color: #fff;
}


.window {
  position: absolute;
  width: 680px;
  height: 420px;
  min-width: 320px;
  min-height: 240px;
  border-radius: 12px;
  background: #0D0D0D;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.window.hidden {
  display: none;
}

.window.minimizing {
  pointer-events: none;
}

.window-header {
  height: 36px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: move;
  user-select: none;
}

.window-title {
  font-size: 12px;
  color: #f1f1f1;
}

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

.win-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #2c2c2c;
  color: #ddd;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  padding: 0;
}

.win-btn.minimize {
  background: #f1c40f;
  color: #1b1b1b;
}

.win-btn.maximize {
  background: #2ecc71;
  color: #0d0d0d;
}

.win-btn.close {
  background: #e74c3c;
  color: #0d0d0d;
}

.resize-handle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0.35) 55%, transparent 55%),
              linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.25) 60%, rgba(255, 255, 255, 0.25) 70%, transparent 70%),
              linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%, rgba(255, 255, 255, 0.18) 85%, transparent 85%);
  opacity: 0.7;
  z-index: 3;
}

.window.fullscreen {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 11000 !important;
  border-radius: 0 !important;
}

.window.minimized .resize-handle {
  display: none;
}

.alert-window {
  width: 420px;
  height: 240px;
  background: #151515;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}

.alert-window .window-header {
  cursor: default;
}

.alert-body {
  padding: 20px 24px 24px;
  color: #e9eef4;
  font-family: Ubuntu, sans-serif;
}

.alert-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.alert-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: #c7d0db;
}

.terminal-window {
  text-align: left;
}

.terminal-window #terminal {
  color: white;
  font-family: "Ubuntu Mono", Menlo, Monaco, "Consolas", "Courier New", "Courier";
  font-size: 11pt;
  background: #300a24;
  padding: 10px;
  box-sizing: border-box;
  position: absolute;
  width: 100%;
  top: 36px;
  bottom: 0;
  overflow: auto;
  cursor: text;
  transition: opacity 0.12s ease;
  z-index: 1;
}

.terminal-window #terminal * {
  font-family: "Ubuntu Mono", Menlo, Monaco, "Consolas", "Courier New", "Courier";
}

.terminal-window #terminal.clearing {
  opacity: 0;
}

body.theme-amber .terminal-window #terminal {
  background: #2b1905;
  color: #f7e7b3;
}

body.theme-amber .terminal-window .white,
body.theme-amber .terminal-window .title-link {
  color: #f7e7b3;
}

body.theme-amber .terminal-window .li-blue,
body.theme-amber .terminal-window .dir {
  color: #f2b36d;
}

body.theme-amber .terminal-window .home,
body.theme-amber .terminal-window .green {
  color: #f6d28b;
}

body.theme-green .terminal-window #terminal {
  background: #07190d;
  color: #d7fbd5;
}

body.theme-green .terminal-window .white,
body.theme-green .terminal-window .title-link {
  color: #d7fbd5;
}

body.theme-green .terminal-window .li-blue,
body.theme-green .terminal-window .dir {
  color: #7bd88f;
}

body.theme-green .terminal-window .home,
body.theme-green .terminal-window .green {
  color: #9ef0a9;
}

body.theme-mono .terminal-window #terminal {
  background: #111111;
  color: #e5e5e5;
}

body.theme-mono .terminal-window .white,
body.theme-mono .terminal-window .title-link,
body.theme-mono .terminal-window .li-blue,
body.theme-mono .terminal-window .dir,
body.theme-mono .terminal-window .home,
body.theme-mono .terminal-window .green {
  color: #e5e5e5;
}

.terminal-window #terminal p,
.terminal-window #terminal li {
  font-weight: 400;
}

.terminal-window #terminal .sudo {
  max-width: 100%;
  width: 300px;
  height: auto;
}

.terminal-window .contact {
  list-style: none;
  margin-left: -30px;
}

.terminal-window h4 {
  text-align: center;
}

.terminal-window a {
  display: block;
}

.terminal-window .input {
  outline: none;
  border: none;
  display: inline-flex;
  resize: none;
  font-family: "Ubuntu Mono", Menlo, Monaco, "Consolas", "Courier New", "Courier";
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.terminal-window .input:focus {
  outline: none;
  box-shadow: none;
}

.terminal-window .input[contenteditable]:empty:before {
  content: "\00a0";
}

.terminal-window .home {
  color: #95F584;
}

.terminal-window .insta {
  color: #F77737;
}

.terminal-window .gold {
  color: gold;
}

.terminal-window .blue {
  color: #2C6DB2;
}

.terminal-window .li-blue {
  color: #2C6DB2;
}

.terminal-window .white {
  color: #e0e8f0;
}

.terminal-window .gray {
  color: gray;
}

.terminal-window .dir {
  color: #2C6DB2;
}

.terminal-window .green {
  color: #3bb662;
}

.terminal-window .title-link {
  padding-bottom: 2px;
  color: #2C6DB2;
  text-decoration: none;
}

.terminal-window button.title-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.resume-body {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f0f0f;
}

.resume-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #0f0f0f;
}

.resume-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  color: #e0e8f0;
}

.resume-fallback a {
  color: #2C6DB2;
}

.notepad-body {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
}

.notepad-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notepad-btn {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.notepad-btn:hover {
  background: #333333;
}

.notepad-status {
  margin-left: auto;
  color: #98a4b3;
  font-size: 11px;
}

.notepad-wordcount {
  color: #98a4b3;
  font-size: 11px;
}

.notepad-editor {
  flex: 1;
  background: #111111;
  color: #e0e8f0;
  border: none;
  padding: 14px;
  font-family: "Ubuntu Mono", Menlo, Monaco, "Consolas", "Courier New", "Courier";
  font-size: 12.5pt;
  resize: none;
  outline: none;
}

.notepad-editor-wrap {
  position: relative;
  display: flex;
  flex: 1;
  overflow: hidden;
}

.notepad-lines {
  width: 32px;
  margin: 0;
  padding: 14px 8px 14px 12px;
  background: #141414;
  color: #7f8a97;
  font-family: "Ubuntu Mono", Menlo, Monaco, "Consolas", "Courier New", "Courier";
  font-size: 12.5pt;
  line-height: 1.5;
  text-align: right;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  overflow: hidden;
}

.notepad-editor {
  padding: 14px 16px;
  line-height: 1.5;
}

.command_input {
  border: none;
  background: #000634;
  color: white;
}

@media only screen and (max-width: 680px) {
  body {
    background-attachment: scroll;
    min-height: 100vh;
  }

  html, body {
    overflow: hidden;
  }

}

@media only screen and (max-width: 900px) {
  body {
    background-attachment: scroll;
    min-height: 100dvh;
  }

  .dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    height: 56px;
    width: auto;
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
    border-radius: 18px;
    align-items: center;
    padding: 8px 12px;
  }

  .dock-item {
    font-size: 9px;
    padding: 6px 8px;
    justify-content: center;
    transform: scale(1);
    width: 64px;
    height: 48px;
  }

  .dock-item i {
    font-size: 15px;
  }

  .dock-item.active,
  .dock-item:hover {
    background: rgba(44, 109, 178, 0.25);
    color: #fff;
    transform: scale(1);
  }

  .window {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 76px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
  }

  .window .settings-window,
  .window .main-content,
  .window .content-body {
    height: 100%;
  }

  .alert-window {
    width: 88% !important;
    height: auto !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    border-radius: 16px !important;
    transform: translate(-50%, -50%);
  }

  .window-header {
    height: 48px;
    cursor: default;
  }

  .window-controls {
    gap: 10px;
  }

  .win-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
    line-height: 28px;
  }

  .terminal-window #terminal {
    font-size: 12.5pt;
    top: 48px;
  }

  .resize-handle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
