/* ==================== BASE / DESKTOP ==================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
}

body {
  background: #008080;
  background-image:
    radial-gradient(ellipse at 30% 60%, rgba(0,0,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

a {
  color: #0000ee;
}

/* ==================== DESKTOP ICONS ==================== */
.desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40px;
  overflow: hidden;
}

.desktop-icons {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  max-height: calc(100vh - 60px);
  align-content: flex-start;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  text-align: center;
  user-select: none;
}

.desktop-icon:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.desktop-icon:active {
  background: rgba(0,0,0,0.1);
}

.desktop-icon .icon-img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  image-rendering: auto;
}

.desktop-icon span {
  color: white;
  font-size: 11px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  line-height: 1.2;
  word-break: break-word;
}

/* ==================== WINDOWS ==================== */
.window {
  position: absolute;
  min-width: 320px;
  max-width: 90vw;
  max-height: calc(100vh - 60px);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.4);
  z-index: 10;
}

.window .window-body {
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  padding: 12px;
}

.window .title-bar {
  cursor: move;
  user-select: none;
}

.titlebar-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Window positioning */
.main-window {
  top: 40px;
  left: 120px;
  width: 680px;
}

.services-window {
  top: 30px;
  left: 150px;
  width: 750px;
}

.subscriptions-window {
  top: 25px;
  left: 130px;
  width: 760px;
}

.vendors-window {
  top: 50px;
  left: 200px;
  width: 650px;
}

.contact-window {
  top: 60px;
  left: 180px;
  width: 550px;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  max-height: calc(100vh - 40px) !important;
  height: calc(100vh - 40px) !important;
}

.window.maximized .window-body {
  max-height: calc(100vh - 80px);
}

.window.focused {
  z-index: 100;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  text-align: center;
  margin-bottom: 16px;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-logo-icon {
  width: 64px;
  height: 64px;
}

.hero-logo-text {
  height: 48px;
  width: auto;
}

.hero-tagline {
  padding: 8px 16px;
  margin-bottom: 12px;
}

.hero-tagline h2 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}

.hero-description {
  text-align: left;
  margin-bottom: 12px;
  padding: 0 8px;
}

.hero-description p {
  margin: 0;
  line-height: 1.5;
  font-size: 12px;
}

.hero-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ==================== SERVICES ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.service-card {
  margin: 0;
}

.service-card p {
  margin: 4px 0 0 0;
  font-size: 12px;
  line-height: 1.5;
}

/* ==================== PRICING ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.pricing-card {
  margin: 0;
}

.pricing-amount {
  background: #000080;
  color: white;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
  text-align: center;
}

.pricing-card p {
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0;
}

.pricing-note {
  font-style: italic;
  color: #666;
}

.special-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.special-projects fieldset p {
  font-size: 12px;
  line-height: 1.5;
}

/* ==================== VENDORS ==================== */
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px;
}

.vendor-link {
  text-decoration: none;
}

.vendor-card {
  background: white;
  border: 2px solid #dfdfdf;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: border-color 0.15s;
}

.vendor-card:hover {
  border-color: #0058e6;
}

.vendor-card img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* ==================== QUICK LINKS ==================== */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==================== CONTACT FORM ==================== */
#contact-form input,
#contact-form textarea {
  width: 100%;
}

/* ==================== TASKBAR ==================== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, #245edb 0%, #3a6df0 3%, #2554c7 6%, #1941a5 50%, #1941a5 94%, #0f2f80 100%);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  z-index: 1000;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.3);
}

.start-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-weight: bold;
  font-size: 12px;
  height: 32px;
  background: linear-gradient(180deg, #3c8e3c 0%, #3c9a3c 3%, #2d8e2d 6%, #237e23 50%, #237e23 94%, #1a6b1a 100%);
  color: white;
  border: 1px solid #1a5c1a;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.start-button:hover {
  background: linear-gradient(180deg, #4ca34c 0%, #4caa4c 3%, #3d9e3d 6%, #2d8e2d 50%, #2d8e2d 94%, #1a7b1a 100%);
}

.start-button:active {
  background: linear-gradient(180deg, #1a6b1a 0%, #237e23 50%, #3c9a3c 100%);
}

.start-icon {
  width: 20px;
  height: 20px;
}

.taskbar-items {
  display: flex;
  flex: 1;
  gap: 2px;
  padding: 0 4px;
  overflow-x: auto;
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 12px;
  height: 28px;
  background: linear-gradient(180deg, #3a6df0 0%, #245edb 50%, #1e3fa0 100%);
  color: white;
  border: 1px solid #1a3a8a;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.taskbar-item:hover {
  background: linear-gradient(180deg, #5580f5 0%, #3a6df0 50%, #2850c0 100%);
}

.taskbar-item.active {
  background: linear-gradient(180deg, #1e3fa0 0%, #2554c7 50%, #3a6df0 100%);
  border-color: #0f2060;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.taskbar-clock {
  background: rgba(0,0,0,0.15);
  color: white;
  padding: 4px 12px;
  font-size: 11px;
  border: 1px inset rgba(255,255,255,0.1);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==================== START MENU ==================== */
.start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 280px;
  z-index: 1001;
  padding: 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.start-menu-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(180deg, #245edb 0%, #1941a5 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.start-menu-sidebar-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.start-menu-content {
  margin-left: 28px;
  padding: 8px 0;
  background: #fff;
}

.start-menu-content hr {
  margin: 4px 8px;
  border: none;
  border-top: 1px solid #ccc;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.start-menu-item:hover {
  background: #245edb;
  color: white;
}

.start-menu-icon {
  width: 24px;
  height: 24px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

img.start-menu-icon {
  object-fit: contain;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .desktop-icons {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    justify-content: center;
    padding: 8px;
  }

  .desktop-icon {
    width: 70px;
  }

  .window {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: calc(100vh - 40px) !important;
    height: calc(100vh - 40px) !important;
    border-radius: 0;
  }

  .window .window-body {
    max-height: calc(100vh - 80px);
  }

  .services-grid,
  .pricing-grid,
  .special-projects {
    grid-template-columns: 1fr;
  }

  .vendors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-logo-text {
    height: 32px;
  }
}

/* ==================== SCROLLBAR XP STYLE ==================== */
.window-body::-webkit-scrollbar {
  width: 16px;
}

.window-body::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-left: 1px solid #dfdfdf;
}

.window-body::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ece9d8 0%, #d6d2c2 100%);
  border: 1px solid #aaa;
}

.window-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #d6d2c2 0%, #c0bca8 100%);
}

/* ==================== COPYRIGHT ==================== */
.copyright-bar {
  text-align: center;
  font-size: 10px;
  color: #666;
  padding: 8px;
  border-top: 1px solid #dfdfdf;
  margin-top: 12px;
}
