body {
  margin: 0;
  padding: 0;
  background: #0037c1;
  font-family: 'VT323', monospace;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.taskbar {
  position: fixed;
  left: 0;
  width: 100vw;
  height: 36px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #808080;
  display: flex;
  align-items: center;
  z-index: 1000;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  box-shadow: 0 2px 0 #808080;
}

.taskbar.top {
  top: 0;
  border-top: none;
  border-bottom: 2px solid #808080;
  box-shadow: 0 2px 0 #808080;
}

.desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #0037c1;
  padding-top: 120px;
  box-sizing: border-box;
}

.icon {
  width: 140px !important;
  position: absolute;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.icon-img {
  width: 84px !important;
  height: 84px !important;
  image-rendering: pixelated;
  margin-bottom: 7px;
  background: #0037c1;
  border-radius: 14px;
  box-shadow: 2px 2px 0 #0008;
}

.icon-label {
  color: #fff;
  font-size: 1.925rem !important;
  text-shadow: 2px 2px #000, 3.5px 3.5px #000;
  margin-top: 3.5px;
}

.centered-title {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7rem;
  color: #fff;
  text-shadow: 2px 2px #000, 4px 4px #000;
  text-align: center;
  letter-spacing: 2px;
  width: auto;
  word-break: normal;
  z-index: 1;
}

/* Retro Window Styles */
.retro-window {
  position: absolute;
  right: 40px;
  top: 120px;
  left: auto;
  transform: none;
  width: 340px;
  background: #ececec;
  border: 2px solid #808080;
  box-shadow: 4px 4px 0 #0008;
  border-radius: 4px;
  z-index: 10;
  font-family: 'VT323', monospace;
}

.window-titlebar {
  background: #c0c0c0;
  color: #222;
  padding: 8px 12px;
  border-bottom: 2px solid #808080;
  border-radius: 2px 2px 0 0;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: move;
  user-select: none;
  box-shadow: 0 2px 0 #fff8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-min-btn {
  background: #ececec;
  border: 2px outset #fff;
  color: #222;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 1px 1px #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.window-min-btn:hover {
  background: #d0d0d0;
}

.window-content {
  padding: 18px 18px 18px 18px;
  background: #fff;
  border-radius: 0 0 2px 2px;
}

.window-photo {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border: 2px solid #222;
  background: #e0e0e0;
  box-shadow: 2px 2px 0 #808080;
  border-radius: 2px;
}

.retro-window-minimized {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 48px;
  height: 48px;
  background: #ececec;
  border: 2px solid #808080;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #0008;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s;
}
.retro-window-minimized:hover {
  background: #d0d0d0;
}
.minimized-photo-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.bobbing-text {
  display: inline-block;
  animation: bobbing-retro 1.5s steps(2, end) infinite;
  position: relative;
}

@keyframes bobbing-retro {
  0% { transform: translateY(-12px); }
  50% { transform: translateY(12px); }
  100% { transform: translateY(-12px); }
}

.sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: transparent;
  z-index: 2;
}

/* Retro pixel-art sparkle using box-shadow for a cross and emanating squares */
.sparkle::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: #fff700;
  position: absolute;
  left: 6px;
  top: 6px;
  animation: sparkle-emanate 1.5s linear infinite;
}

@keyframes sparkle-emanate {
  0%, 100% {
    box-shadow:
      0 0 #fff700,
      -4px 0 #fff,
      4px 0 #fff,
      0 -4px #fff,
      0 4px #fff,
      -4px -4px #fff700,
      4px 4px #fff700,
      4px -4px #fff700,
      -4px 4px #fff700;
  }
  20% {
    box-shadow:
      0 0 #fff700,
      -4px 0 #fff,
      4px 0 #fff,
      0 -4px #fff,
      0 4px #fff,
      -4px -4px #fff700,
      4px 4px #fff700,
      4px -4px #fff700,
      -4px 4px #fff700,
      -8px -8px #fff,
      8px -8px #fff,
      -8px 8px #fff,
      8px 8px #fff;
  }
  50% {
    box-shadow:
      0 0 #fff700,
      -4px 0 #fff,
      4px 0 #fff,
      0 -4px #fff,
      0 4px #fff,
      -4px -4px #fff700,
      4px 4px #fff700,
      4px -4px #fff700,
      -4px 4px #fff700,
      -8px -8px #fff700,
      8px -8px #fff700,
      -8px 8px #fff700,
      8px 8px #fff700;
  }
  80% {
    box-shadow:
      0 0 #fff700,
      -4px 0 #fff,
      4px 0 #fff,
      0 -4px #fff,
      0 4px #fff,
      -4px -4px #fff700,
      4px 4px #fff700,
      4px -4px #fff700,
      -4px 4px #fff700,
      -8px -8px #fff,
      8px -8px #fff,
      -8px 8px #fff,
      8px 8px #fff;
  }
}

/* Sparkles hug the text corners */
.sparkle-tl {
  left: -28px;
  top: -18px;
  animation: sparkle-move-tl 1.5s steps(2, end) infinite;
}

.sparkle-br {
  right: -28px;
  bottom: -18px;
  animation: sparkle-move-br 1.5s steps(2, end) infinite;
  /* Out of sync sparkle animation */
  /* Delay the emanate animation by half a cycle */
}
.sparkle-br::before {
  animation-delay: 0.75s !important;
}

@keyframes sparkle-move-tl {
  0% { left: -28px; top: -18px; }
  50% { left: -36px; top: -26px; }
  100% { left: -28px; top: -18px; }
}

@keyframes sparkle-move-br {
  0% { right: -28px; bottom: -18px; }
  50% { right: -36px; bottom: -26px; }
  100% { right: -28px; bottom: -18px; }
}

.centered-title .subtitle {
  font-size: 3rem;
  margin-top: 40px;
  color: #fff;
  text-shadow: 1px 1px #000;
}

.centered-title .majors {
  font-size: 2.2rem;
  margin-top: 20px;
  color: #fff;
  text-shadow: 1px 1px #000;
}

.start-btn {
  background: #c0c0c0;
  border: 2px outset #fff;
  color: #000;
  padding: 0 18px;
  height: 28px;
  margin-left: 8px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 1px 1px #808080;
  cursor: pointer;
}

.taskbar-center {
  flex: 1;
  text-align: center;
  color: #222;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.taskbar-clock {
  color: #222;
  background: #c0c0c0;
  border: 1px inset #808080;
  padding: 0 12px;
  height: 28px;
  display: flex;
  align-items: center;
  margin-right: 12px;
  font-size: 1.1rem;
  min-width: 60px;
  justify-content: center;
}

.retro-window-large {
  width: 680px !important;
  min-height: 600px;
}
.retro-window-large .window-content {
  min-height: 500px;
}
.window-exit-btn {
  background: #e57373;
  border: 2px outset #fff;
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 1px 1px #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.window-exit-btn:hover {
  background: #c62828;
}

.resize-handle {
  position: absolute;
  width: 24px;
  height: 24px;
  right: 2px;
  bottom: 2px;
  cursor: nwse-resize;
  z-index: 20;
  background: transparent;
}
.resize-handle::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, #808080 0 2px, transparent 2px 6px);
  opacity: 0.7;
  border-radius: 3px;
}

@media (max-width: 700px) {
  #retroWindow {
    display: none !important;
  }
  body {
    overflow-y: auto !important;
    height: 100vh !important;
  }
  .desktop {
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: unset !important;
  }
  .retro-window,
  .retro-window-large {
    width: 98vw !important;
    min-width: 0 !important;
    left: 1vw !important;
    right: 1vw !important;
    top: 60px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 80vh !important;
    font-size: 1.1rem !important;
  }
  .window-content {
    padding: 10px 5px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
  }
  .window-titlebar {
    font-size: 1.1rem !important;
    padding: 6px 8px !important;
  }
  .icon {
    width: 60px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    position: static !important;
    margin: 10px auto !important;
    display: inline-block !important;
  }
  .icon-img {
    width: 32px !important;
    height: 32px !important;
  }
  .icon-label {
    font-size: 1rem !important;
  }
  .centered-title {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin-top: 120px !important;
    z-index: 1001 !important;
    font-size: 2.2rem !important;
    width: 95vw !important;
    word-break: break-word !important;
  }
  .centered-title .subtitle,
  .centered-title .majors {
    display: none !important;
  }
  .icon {
    position: static !important;
    margin: 30px 0 0 0 !important;
    left: unset !important;
    right: unset !important;
    top: unset !important;
    bottom: unset !important;
    width: max-content !important;
    display: block !important;
    text-align: center !important;
    transform: none !important;
  }
  #iconContact, #iconProjects {
    margin-left: 80px !important;
  }
  #iconProjects {
    position: static !important;
    margin-top: 60px !important;
    margin-left: 0 !important;
    left: 0 !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    display: block !important;
  }
  #iconContact {
    position: static !important;
    margin-top: 20px !important;
    margin-left: 0 !important;
    left: 0 !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    display: block !important;
  }
  .window-photo,
  .window-content img,
  .window-content video {
    max-width: 95vw !important;
    height: auto !important;
  }
  .desktop {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
} 