/* Retro base styles with enhanced vintage effects */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: black; /* Black for deep retro feel */
  color: white;
  font-family: 'MS Sans Serif', 'Press Start 2P', cursive;
  font-size: 11px;
  overflow: hidden;
  position: relative;
  height: 100vh;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><circle cx="5" cy="5" r="5" fill="#000080"/></svg>'), auto; /* Blue custom cursor */
  filter: contrast(1.1) brightness(0.9); /* Faux CRT glow */
}
/* Stronger scanline and matrix rain for retro monitor effect */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0,0,128,0.1) 0, transparent 2px); /* Blue-tinted scanlines */
  pointer-events: none;
  z-index: -1;
  animation: matrix-rain 15s linear infinite; /* Slower for retro pacing */
}
@keyframes matrix-rain {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* Chunkier window frames with grey/blue retro colors */
.window {
  position: absolute;
  background: #c0c0c0; /* Light grey */
  border: 4px outset #808080; /* Darker grey borders for chunkiness */
  box-shadow: 0 0 10px #000080, 0 0 20px #000; /* Navy blue shadow */
  min-width: 300px;
  min-height: 200px;
  resize: both;
  overflow: auto;
  transition: box-shadow 0.3s;
}
.window:hover {
  box-shadow: 0 0 20px #000080, 0 0 40px #000;
}
.window-titlebar {
  background: linear-gradient(to right, #000080, #1084d0); /* Navy to steel blue */
  color: white;
  padding: 4px 6px; /* Thicker for retro */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}
.window-titlebar button {
  background: #c0c0c0;
  border: 2px outset #808080;
  width: 20px;
  height: 18px;
  font-size: 12px;
  padding: 0;
  margin-left: 4px;
}
.window-content {
  padding: 12px; /* More padding for clunky feel */
  background: #e0e0e0; /* Lighter grey */
  color: black;
}

/* Taskbar with grey/blue accents */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px; /* Thicker for retro */
  background: #c0c0c0;
  border-top: 4px outset #808080;
  display: flex;
  align-items: center;
  padding: 0 6px;
  z-index: 10;
  transition: box-shadow 0.3s;
}
.taskbar:hover {
  box-shadow: 0 -5px 10px #000080;
}
.start-button {
  background: #c0c0c0;
  border: 2px outset #808080;
  padding: 4px 8px;
  font-weight: bold;
  cursor: pointer;
}
.start-menu {
  position: absolute;
  bottom: 34px;
  left: 0;
  background: #c0c0c0;
  border: 4px outset #808080;
  display: none;
  padding: 6px;
  box-shadow: 0 0 10px #000080;
}
.start-menu a {
  display: block;
  color: black;
  text-decoration: none;
  padding: 6px;
}
.start-menu a:hover {
  background: #000080;
  color: white;
}
.clock {
  margin-left: auto;
  padding: 4px 8px;
  border: 2px inset #808080;
  background: #c0c0c0;
}

/* Desktop icons with retro blue/grey */
.desktop-icon {
  position: absolute;
  text-align: center;
  width: 80px;
  cursor: pointer;
  transition: transform 0.2s;
}
.desktop-icon:hover {
  transform: scale(1.1);
  text-shadow: 0 0 5px #000080;
}
.desktop-icon i {
  font-size: 32px;
  color: #000080; /* Navy blue */
}
.desktop-icon span {
  display: block;
  color: white;
  text-shadow: 2px 2px 0 black; /* Stronger shadow for pixel feel */
}

/* Annoying virus pop-ups in grey/blue tones */
.virus-popup {
  position: absolute;
  width: 250px;
  background: #c0c0c0;
  border: 4px outset #808080;
  box-shadow: 0 0 10px #000080;
  z-index: 20;
  display: none;
  animation: annoying-blink 0.5s infinite, jitter 0.2s infinite;
}
.virus-titlebar {
  background: #000080; /* Navy blue */
  color: white;
  padding: 4px 6px;
}
.virus-content {
  padding: 12px;
  text-align: center;
  background: #e0e0e0;
  color: black;
}
.virus-content button {
  margin: 6px;
  background: #000080;
  color: white;
  border: 2px outset #808080;
}

/* More annoying ads in retro colors */
.ad {
  background: #e0e0e0;
  color: black;
  border: 4px solid #000080;
  padding: 12px;
  margin: 12px 0;
  text-align: center;
  animation: annoying-blink 0.3s infinite, jitter 0.2s infinite;
  cursor: pointer;
}
@keyframes annoying-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.03); } /* Subtler blink */
}

/* Social icons in blue/grey */
.social-icons a {
  color: #000080;
  font-size: 20px;
  margin: 0 10px;
  text-decoration: none;
}
.social-icons a:hover {
  color: white;
  text-shadow: 0 0 5px #000080;
}

/* Blog and guestbook styles */
.blog-post, .guestbook-entry {
  background: #e0e0e0;
  border: 2px solid #808080;
  padding: 12px;
  margin: 12px 0;
}
form {
  display: flex;
  flex-direction: column;
}
input, textarea, button {
  margin: 6px 0;
  padding: 6px;
  font-family: inherit;
  border: 2px inset #808080;
  background: white;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .window {
    position: static;
    width: 100%;
    height: auto;
    resize: none;
  }
  .taskbar {
    height: 40px;
    font-size: 14px;
  }
  .desktop-icon {
    width: 60px;
    font-size: 24px;
  }
  body {
    overflow: auto;
  }
  .virus-popup {
    width: 90%;
    position: fixed;
    top: 20%;
    left: 5%;
  }
}

/* Subtler jitter animation for readability */
@keyframes jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1px, 1px); }
  50% { transform: translate(0, 0); }
  75% { transform: translate(-1px, -1px); }
}
.jitter {
  animation: jitter 0.2s infinite;
}
