@import url("https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --win-blue: #000080;
  --win-gray: #c0c0c0;
  --win-dark: #808080;
  --win-white: #ffffff;
  --win-black: #000000;
}
body {
  background: #D9D9D9;
  min-height: 100vh;
  font-family: "Share Tech Mono", monospace;
  overflow-x: hidden;
  cursor: default;
}
a {
  text-decoration: none;
}
.desktop {
  padding: 20px;
  min-height: calc(100vh - 40px);
  position: relative;
}
.desktop-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  left: 20px;
  top: 20px;
}
.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 80px;
  text-align: center;
}
.icon:hover .icon-img {
  background: rgba(0, 0, 128, 0.3);
  outline: 1px dotted white;
}
.icon-img {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  padding: 4px;
}
.icon span {
  color: black;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgb(255, 255, 255);
  line-height: 1.2;
}
.window {
  position: absolute;
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-white) var(--win-dark) var(--win-dark)
    var(--win-white);
  min-width: 600px;
  box-shadow: 2px 2px 0 var(--win-black);
  display: none;
  z-index: 10;
}
.window.active {
  display: block;
  z-index: 100;
}
.titlebar {
  background: linear-gradient(to right, #000080, #1084d0);
  color: white;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: bold;
  -webkit-user-select: none;
  user-select: none;
  cursor: move;
}
.titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.win-buttons {
  display: flex;
  gap: 2px;
}
.win-btn {
  width: 16px;
  height: 14px;
  background: var(--win-gray);
  border: 1px solid;
  border-color: var(--win-white) var(--win-dark) var(--win-dark)
    var(--win-white);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.win-btn:active {
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
}
.menubar {
  background: var(--win-gray);
  border-bottom: 1px solid var(--win-dark);
  padding: 2px 4px;
  font-size: 13px;
  display: flex;
  gap: 12px;
}
.menubar span {
  padding: 1px 6px;
  cursor: pointer;
}
.menubar span:hover {
  background: var(--win-blue);
  color: white;
}
.win-content {
  padding: 12px;
  font-size: 18px;
  color: var(--win-black);
  max-height: 70vh;
  overflow-y: auto;
}
#win-about {
  top: 60px;
  left: 120px;
  width: 480px;
}
#win-projects {
  top: 80px;
  left: 160px;
  width: 520px;
}
#win-skills {
  top: 100px;
  left: 200px;
  width: 460px;
}
#win-es {
  top: 120px;
  left: 240px;
  width: 460px;
}
#win-contact {
  top: 140px;
  left: 280px;
  width: 380px;
}
.profile-section {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.profile-text h2 {
  font-family: "VT323", monospace;
  font-size: 28px;
  color: var(--win-blue);
  margin-bottom: 4px;
}
.profile-text .role {
  font-size: 13px;
  color: var(--win-dark);
  margin-bottom: 8px;
}
.profile-text p {
  font-size: 15px;
  line-height: 1.6;
}
.info-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 15px;
  align-items: center;
}
.info-label {
  color: var(--win-blue);
  min-width: 80px;
  font-weight: bold;
}
.divider {
  border: none;
  border-top: 1px solid var(--win-dark);
  border-bottom: 1px solid var(--win-white);
  margin: 10px 0;
}
.project-card {
  background: var(--win-white);
  border: 2px solid;
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
  padding: 10px;
  margin-bottom: 10px;
}
.project-card h3 {
  font-family: "VT323", monospace;
  font-size: 24px;
  color: var(--win-blue);
  margin-bottom: 4px;
}
.project-card p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 6px;
}
.tag {
  display: inline-block;
  background: var(--win-blue);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  margin-right: 4px;
  margin-bottom: 2px;
}
.badge {
  display: inline-block;
  background: #008000;
  color: white;
  font-size: 10px;
  padding: 1px 6px;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.skill-group {
  background: var(--win-white);
  border: 2px solid;
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
  padding: 8px;
}
.skill-group h4 {
  color: var(--win-blue);
  font-size: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--win-dark);
  padding-bottom: 4px;
}
.skill-item {
  font-size: 11px;
  padding: 2px 0;
}
.skill-item::before {
  content: "> ";
  color: var(--win-blue);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 6px;
  background: var(--win-white);
  border: 2px solid;
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  color: var(--win-black);
}
.contact-item:hover {
  background: var(--win-blue);
  color: white;
}
.contact-icon {
  font-size: 18px;
}
.es-header {
  background: var(--win-black);
  color: #00ff00;
  padding: 12px;
  font-family: "VT323", monospace;
  font-size: 22px;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 4px;
}
.es-card {
  background: var(--win-white);
  border: 2px solid;
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.es-card h4 {
  color: var(--win-blue);
  margin-bottom: 6px;
  font-size: 13px;
}
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: var(--win-gray);
  border-top: 2px solid;
  border-color: var(--win-white) var(--win-dark) var(--win-dark)
    var(--win-white);
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 4px;
  z-index: 1000;
}
.start-btn {
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-white) var(--win-dark) var(--win-dark)
    var(--win-white);
  padding: 2px 8px;
  font-family: "Share Tech Mono", monospace;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  height: 36px;
}
.taskbar-sep {
  width: 1px;
  height: 24px;
  background: var(--win-dark);
  margin: 0 4px;
  border-right: 1px solid var(--win-white);
}
.taskbar-btn {
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
  padding: 2px 10px;
  font-family: "Share Tech Mono", monospace;
  font-size: 16px;
  cursor: pointer;
  height: 36px;
  min-width: 90px;
  text-align: left;
}
.lang-btn {
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-white) var(--win-dark) var(--win-dark)
    var(--win-white);
  padding: 2px 12px;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  height: 28px;
  color: var(--win-blue);
}
.lang-btn:active {
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
}
.clock {
  margin-left: auto;
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
  padding: 2px 8px;
  font-size: 16px;
  height: 28px;
  display: flex;
  align-items: center;
}
.progress-wrap {
  background: var(--win-white);
  border: 2px solid;
  border-color: var(--win-dark) var(--win-white) var(--win-white)
    var(--win-dark);
  height: 16px;
  margin-top: 4px;
}
.progress-fill {
  height: 100%;
  background: var(--win-blue);
}
.skill-row {
  margin-bottom: 6px;
}
.skill-row .skill-name {
  font-size: 11px;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
}
::-webkit-scrollbar {
  width: 16px;
}
::-webkit-scrollbar-track {
  background: var(--win-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-white) var(--win-dark) var(--win-dark)
    var(--win-white);
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .desktop {
    padding: 16px 12px 96px;
    min-height: 100vh;
  }

  .desktop-icons {
    position: static;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 12px;
    margin-bottom: 18px;
  }

  .icon {
    width: 72px;
    gap: 8px;
  }

  .icon-img {
    width: 44px;
    height: 44px;
    padding: 2px;
  }

  .icon span {
    font-size: 13px;
  }

  .window {
    position: fixed;
    inset: 12px 12px 84px;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
    overflow: hidden;
  }

  #win-about,
  #win-projects,
  #win-skills,
  #win-es,
  #win-contact {
    left: 12px;
    top: 12px;
  }

  .titlebar {
    padding: 6px 8px;
    font-size: 12px;
    cursor: default;
  }

  .menubar {
    gap: 8px;
    padding: 4px 6px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .win-content {
    padding: 10px;
    font-size: 15px;
    max-height: calc(100vh - 170px);
    -webkit-overflow-scrolling: touch;
  }

  .profile-section {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-section img,
  .profile-pic {
    width: 100%;
    height: auto;
    max-width: 240px;
    align-self: center;
  }

  .profile-text h2 {
    font-size: 24px;
  }

  .profile-text p,
  .info-row,
  .project-card p,
  .es-card {
    font-size: 14px;
  }

  .info-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .info-label {
    min-width: 0;
  }

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

  .skill-group h4,
  .skill-item,
  .skill-row .skill-name {
    font-size: 12px;
  }

  .es-header {
    padding: 10px;
    font-size: 18px;
    letter-spacing: 2px;
  }

  .taskbar {
    height: 72px;
    padding: 6px 8px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .taskbar::-webkit-scrollbar {
    height: 8px;
  }

  .start-btn,
  .taskbar-btn,
  .lang-btn,
  .clock {
    flex: 0 0 auto;
  }

  .taskbar-btn {
    min-width: 74px;
    padding: 4px 8px;
    font-size: 13px;
  }

  .start-btn {
    font-size: 15px;
    height: 34px;
  }

  .lang-btn,
  .clock {
    height: 30px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .desktop {
    padding: 12px 10px 88px;
  }

  .desktop-icons {
    gap: 12px 10px;
  }

  .icon {
    width: 64px;
  }

  .icon span {
    font-size: 12px;
  }

  .window {
    inset: 8px 8px 78px;
  }

  .win-content {
    padding: 8px;
    font-size: 14px;
    max-height: calc(100vh - 160px);
  }

  .taskbar {
    height: 68px;
    padding: 5px 6px;
  }

  .taskbar-btn {
    min-width: 68px;
    font-size: 12px;
  }

  .taskbar-btn img,
  .contact-icon {
    width: 20px;
    height: 20px;
  }

  .es-header {
    font-size: 16px;
  }
}
