/* ==========================================================
   CERIZE 95 — Windows 95 styled site
   ========================================================== */

* { box-sizing: border-box; }

:root {
  --w95-bg: #008080;
  --w95-gray: #c0c0c0;
  --w95-gray-light: #dfdfdf;
  --w95-gray-dark: #808080;
  --w95-black: #000000;
  --w95-white: #ffffff;
  --w95-blue: #000080;
  --w95-blue-light: #1084d0;
  --w95-text: #000000;
  --w95-cerize: #cc0000;
  --w95-cerize-dark: #880000;
  --w95-yellow: #ffff80;

  --w95-font: "MS Sans Serif", "Pixelated MS Sans Serif", Tahoma, Geneva, sans-serif;
  --w95-mono: "Courier New", Courier, monospace;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--w95-bg);
  font-family: var(--w95-font);
  font-size: 12px;
  color: var(--w95-text);
  user-select: none;
  -webkit-font-smoothing: none;
}

button {
  font-family: var(--w95-font);
  font-size: 12px;
}

/* ==========================================================
   BOOT SCREEN
   ========================================================== */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.4s ease;
}
#boot-screen.fade-out { opacity: 0; pointer-events: none; }

.boot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.boot-logo img {
  width: 120px;
  height: 120px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 #cc0000);
}
.boot-text { text-align: center; }
.boot-title {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 2px;
}
.boot-subtitle {
  font-size: 13px;
  color: #aaa;
  margin-top: 6px;
}
.boot-progress { width: 320px; }
.boot-progress-bar {
  height: 18px;
  border: 2px inset #444;
  background: #222;
  padding: 2px;
  display: flex;
  gap: 2px;
}
.boot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #cc0000 0%, #ff4444 100%);
  display: flex;
  gap: 2px;
  transition: width 0.2s linear;
  background-image:
    repeating-linear-gradient(90deg, #cc0000 0 14px, transparent 14px 16px),
    linear-gradient(#cc0000, #cc0000);
}
.boot-status {
  text-align: center;
  margin-top: 12px;
  font-family: var(--w95-mono);
  color: #ccc;
  font-size: 11px;
}

/* ==========================================================
   DESKTOP
   ========================================================== */
#desktop {
  position: fixed;
  inset: 0;
  background: var(--w95-bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0 1px, transparent 1px 3px);
  display: flex;
  flex-direction: column;
}

/* Desktop icons */
.desktop-icons {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: 80px;
  gap: 8px;
  z-index: 1;
}
.desktop-icon {
  width: 80px;
  padding: 4px 2px;
  text-align: center;
  cursor: pointer;
  color: #fff;
  border: 1px dotted transparent;
}
.desktop-icon:hover .icon-img {
  filter: brightness(1.1);
}
.desktop-icon.selected {
  border: 1px dotted #fff;
  background: rgba(0, 0, 128, 0.4);
}
.desktop-icon .icon-img {
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
}
.desktop-icon .icon-label {
  font-size: 12px;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.2;
  word-wrap: break-word;
}

/* Pixel-art icons (CSS-only) */
.icon-computer {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'><rect x='4' y='4' width='24' height='18' fill='%23c0c0c0' stroke='%23000'/><rect x='6' y='6' width='20' height='14' fill='%23008080'/><rect x='8' y='8' width='4' height='2' fill='%23fff'/><rect x='8' y='12' width='10' height='1' fill='%23fff'/><rect x='8' y='15' width='8' height='1' fill='%23fff'/><rect x='10' y='22' width='12' height='2' fill='%23808080'/><rect x='6' y='24' width='20' height='3' fill='%23c0c0c0' stroke='%23000'/></svg>");
}
.icon-folder {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'><path d='M3 8h10l3 3h13v17H3z' fill='%23ffcc00' stroke='%23000'/><path d='M3 11h26v17H3z' fill='%23ffd84d' stroke='%23000'/></svg>");
}
.icon-mail {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'><rect x='3' y='7' width='26' height='18' fill='%23fff' stroke='%23000'/><path d='M3 7l13 10L29 7' fill='none' stroke='%23000'/><rect x='20' y='3' width='8' height='8' fill='%23cc0000' stroke='%23000'/><text x='24' y='9' font-family='monospace' font-size='6' fill='%23fff' text-anchor='middle'>@</text></svg>");
}
.icon-calendar {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'><rect x='4' y='6' width='24' height='22' fill='%23fff' stroke='%23000'/><rect x='4' y='6' width='24' height='6' fill='%23cc0000' stroke='%23000'/><rect x='9' y='3' width='2' height='6' fill='%23000'/><rect x='21' y='3' width='2' height='6' fill='%23000'/><text x='16' y='23' font-family='sans-serif' font-size='10' font-weight='bold' fill='%23000' text-anchor='middle'>06</text></svg>");
}
.icon-paint {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'><rect x='4' y='6' width='24' height='20' fill='%23fff' stroke='%23000'/><rect x='6' y='8' width='4' height='4' fill='%23cc0000'/><rect x='12' y='8' width='4' height='4' fill='%23ffcc00'/><rect x='18' y='8' width='4' height='4' fill='%2300aa00'/><rect x='24' y='8' width='2' height='4' fill='%230066cc'/><path d='M8 16l6 6 4-4 6 6' stroke='%23cc0000' fill='none' stroke-width='2'/></svg>");
}
.icon-portfolio {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'><rect x='3' y='8' width='26' height='20' fill='%23884400' stroke='%23000'/><rect x='12' y='5' width='8' height='4' fill='%23884400' stroke='%23000'/><rect x='3' y='14' width='26' height='2' fill='%23000'/></svg>");
}
.icon-text {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'><path d='M6 3h14l6 6v20H6z' fill='%23fff' stroke='%23000'/><path d='M20 3v6h6' fill='none' stroke='%23000'/><rect x='9' y='14' width='14' height='1' fill='%23000'/><rect x='9' y='17' width='14' height='1' fill='%23000'/><rect x='9' y='20' width='10' height='1' fill='%23000'/><rect x='9' y='23' width='14' height='1' fill='%23000'/></svg>");
}
.icon-recycle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'><rect x='6' y='8' width='20' height='3' fill='%23808080' stroke='%23000'/><path d='M8 11h16l-2 18H10z' fill='%23c0c0c0' stroke='%23000'/><rect x='12' y='14' width='1' height='12' fill='%23000'/><rect x='16' y='14' width='1' height='12' fill='%23000'/><rect x='20' y='14' width='1' height='12' fill='%23000'/></svg>");
}

/* ==========================================================
   WINDOWS
   ========================================================== */
#windows-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.win {
  position: absolute;
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
  box-shadow:
    inset -1px -1px 0 var(--w95-gray-dark),
    inset 1px 1px 0 var(--w95-gray-light),
    2px 2px 0 rgba(0,0,0,0.3);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  min-height: 120px;
  animation: win-open 0.18s ease-out;
}
@keyframes win-open {
  from { transform: scale(0.8); opacity: 0.4; }
  to   { transform: scale(1); opacity: 1; }
}
.win.closing {
  animation: win-close 0.16s ease-in forwards;
}
@keyframes win-close {
  to { transform: scale(0.6) translateY(60vh); opacity: 0; }
}
.win.minimizing {
  animation: win-min 0.18s ease-in forwards;
}
@keyframes win-min {
  to { transform: scale(0.1) translateY(80vh); opacity: 0; }
}

.win-title {
  background: linear-gradient(90deg, var(--w95-blue) 0%, var(--w95-blue-light) 100%);
  color: var(--w95-white);
  padding: 3px 4px 3px 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: move;
  user-select: none;
  height: 22px;
}
.win.inactive .win-title {
  background: linear-gradient(90deg, var(--w95-gray-dark) 0%, #b5b5b5 100%);
}
.win-title-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.win-title-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.win-controls {
  display: flex;
  gap: 2px;
}
.win-ctrl {
  width: 18px;
  height: 16px;
  background: var(--w95-gray);
  border-top: 1px solid var(--w95-white);
  border-left: 1px solid var(--w95-white);
  border-right: 1px solid var(--w95-black);
  border-bottom: 1px solid var(--w95-black);
  box-shadow: inset -1px -1px 0 var(--w95-gray-dark);
  color: #000;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: "Marlett", var(--w95-font);
  line-height: 1;
}
.win-ctrl:active {
  border-color: var(--w95-black) var(--w95-white) var(--w95-white) var(--w95-black);
  box-shadow: inset 1px 1px 0 var(--w95-gray-dark);
}

.win-menubar {
  background: var(--w95-gray);
  display: flex;
  gap: 2px;
  padding: 2px 4px;
  border-bottom: 1px solid var(--w95-gray-dark);
  font-size: 12px;
}
.win-menubar > span {
  padding: 2px 8px;
  cursor: pointer;
}
.win-menubar > span:hover {
  background: var(--w95-blue);
  color: #fff;
}

.win-body-wrap {
  flex: 1;
  overflow: auto;
  background: var(--w95-gray);
}

.window-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.window-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--w95-gray-dark);
  border-top-style: groove;
}

/* ==========================================================
   WIN95 BUTTONS
   ========================================================== */
.win95-btn {
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
  box-shadow:
    inset -1px -1px 0 var(--w95-gray-dark),
    inset 1px 1px 0 var(--w95-gray-light);
  padding: 4px 14px;
  font-size: 12px;
  cursor: pointer;
  min-width: 76px;
  color: #000;
  outline: 1px solid transparent;
}
.win95-btn:focus { outline: 1px dotted #000; outline-offset: -4px; }
.win95-btn:active,
.win95-btn.pressed {
  border-top: 2px solid var(--w95-black);
  border-left: 2px solid var(--w95-black);
  border-right: 2px solid var(--w95-white);
  border-bottom: 2px solid var(--w95-white);
  box-shadow: inset 1px 1px 0 var(--w95-gray-dark);
  padding: 5px 13px 3px 15px;
}
.win95-btn.primary { font-weight: bold; }
.win95-btn.small { min-width: 0; padding: 2px 8px; }

/* ==========================================================
   FORMS
   ========================================================== */
fieldset {
  border: 1px solid var(--w95-white);
  border-top-color: var(--w95-gray-dark);
  border-left-color: var(--w95-gray-dark);
  padding: 10px 12px 12px;
  margin: 0;
  position: relative;
}
fieldset legend {
  padding: 0 6px;
  font-size: 12px;
}
fieldset p { margin: 0; }
fieldset > * + * { margin-top: 8px; }

.form-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
}
.form-row.align-top { align-items: start; }
.form-row label { font-size: 12px; }

input[type="text"],
input[type="email"],
textarea {
  font-family: var(--w95-font);
  font-size: 12px;
  padding: 3px 4px;
  background: #fff;
  border-top: 2px solid var(--w95-gray-dark);
  border-left: 2px solid var(--w95-gray-dark);
  border-right: 2px solid var(--w95-white);
  border-bottom: 2px solid var(--w95-white);
  box-shadow: inset 1px 1px 0 #000;
  outline: none;
  color: #000;
  width: 100%;
}
textarea { resize: vertical; min-height: 80px; }

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  background: #fff;
  border-top: 1px solid var(--w95-gray-dark);
  border-left: 1px solid var(--w95-gray-dark);
  border-right: 1px solid var(--w95-white);
  border-bottom: 1px solid var(--w95-white);
  box-shadow: inset 1px 1px 0 #000;
  margin: 0 4px 0 0;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked::after {
  content: "✔";
  position: absolute;
  top: -2px;
  left: 1px;
  font-size: 11px;
  color: #000;
  font-weight: bold;
}
input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #000;
  border-radius: 50%;
}

.checkbox-grid, .radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
}
.cb, .rb {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
}
.about-logo-cell {
  background: #000;
  border: 2px inset var(--w95-gray);
  padding: 8px;
  text-align: center;
}
.about-logo-cell img {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
}
.about-info h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.about-info .version {
  margin: 0 0 8px;
  color: var(--w95-gray-dark);
  font-size: 11px;
}
.info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  font-size: 12px;
  padding: 2px 0;
}
.info-row span { color: var(--w95-gray-dark); }

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  padding: 2px 0;
  font-size: 12px;
}

/* ==========================================================
   SERVICES (Explorer-style)
   ========================================================== */
.services-body { padding: 0; gap: 0; }
.explorer-toolbar {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--w95-gray);
  border-bottom: 1px solid var(--w95-gray-dark);
  align-items: center;
}
.explorer-spacer { flex: 1; }

.explorer-address {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--w95-gray);
  border-bottom: 1px solid var(--w95-gray-dark);
  font-size: 12px;
}
.address-input {
  flex: 1;
  background: #fff;
  padding: 2px 6px;
  border-top: 2px solid var(--w95-gray-dark);
  border-left: 2px solid var(--w95-gray-dark);
  border-right: 2px solid var(--w95-white);
  border-bottom: 2px solid var(--w95-white);
  font-family: var(--w95-mono);
  font-size: 11px;
}

.services-list {
  background: #fff;
  border-top: 2px solid var(--w95-gray-dark);
  border-left: 2px solid var(--w95-gray-dark);
  border-right: 2px solid var(--w95-white);
  border-bottom: 2px solid var(--w95-white);
  margin: 4px;
  flex: 1;
  overflow: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px;
  cursor: pointer;
  border: 1px dotted transparent;
}
.service-card:hover {
  background: var(--w95-blue);
  color: #fff;
}
.service-card:hover .service-tag,
.service-card:hover .service-desc { color: #d8e2ff; }

.service-icon {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
}
.icon-web      { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><circle cx='16' cy='16' r='12' fill='%23fff' stroke='%23000'/><ellipse cx='16' cy='16' rx='12' ry='5' fill='none' stroke='%23000'/><ellipse cx='16' cy='16' rx='5' ry='12' fill='none' stroke='%23000'/><line x1='4' y1='16' x2='28' y2='16' stroke='%23000'/></svg>"); }
.icon-webapp   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect x='3' y='5' width='26' height='20' fill='%23fff' stroke='%23000'/><rect x='3' y='5' width='26' height='4' fill='%23cc0000'/><rect x='6' y='12' width='6' height='3' fill='%23000080'/><rect x='14' y='12' width='12' height='3' fill='%23808080'/><rect x='6' y='17' width='20' height='2' fill='%23808080'/><rect x='6' y='21' width='14' height='2' fill='%23808080'/><rect x='10' y='25' width='12' height='2' fill='%23808080'/></svg>"); }
.icon-mobile   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect x='9' y='3' width='14' height='26' rx='2' fill='%23000' stroke='%23000'/><rect x='10' y='6' width='12' height='17' fill='%23008080'/><circle cx='16' cy='26' r='1.5' fill='%23fff'/><rect x='12' y='9' width='8' height='1' fill='%23fff'/><rect x='12' y='12' width='5' height='1' fill='%23fff'/></svg>"); }
.icon-ia       { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect x='6' y='8' width='20' height='16' fill='%23c0c0c0' stroke='%23000'/><circle cx='12' cy='15' r='2' fill='%23cc0000'/><circle cx='20' cy='15' r='2' fill='%23cc0000'/><rect x='12' y='19' width='8' height='1' fill='%23000'/><rect x='15' y='4' width='2' height='4' fill='%23000'/><circle cx='16' cy='3' r='1.5' fill='%23ffcc00'/></svg>"); }
.icon-marketing{ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M5 12l8-4v16l-8-4z' fill='%23cc0000' stroke='%23000'/><path d='M13 8l14-4v24l-14-4z' fill='%23ff8800' stroke='%23000'/><rect x='6' y='20' width='4' height='8' fill='%23808080' stroke='%23000'/></svg>"); }

.service-info { font-size: 12px; }
.service-name { font-weight: bold; }
.service-desc { font-size: 11px; color: var(--w95-gray-dark); margin-top: 2px; }
.service-tag {
  font-size: 11px;
  color: var(--w95-gray-dark);
  font-style: italic;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 3px 8px;
  background: var(--w95-gray);
  border-top: 1px solid var(--w95-gray-dark);
  font-size: 11px;
}
.status-bar span {
  border: 1px inset var(--w95-gray);
  padding: 1px 8px;
  background: var(--w95-gray);
}

/* Service detail */
.svc-detail-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--w95-gray-dark);
}
.svc-detail-icon {
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
}
.svc-detail-title { margin: 0; font-size: 16px; }
.svc-detail-sub { font-size: 11px; color: var(--w95-gray-dark); }
.svc-detail-process { padding-left: 20px; margin: 0; }
.svc-detail-process li { margin: 4px 0; }

/* ==========================================================
   PORTFOLIO
   ========================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.portfolio-item {
  background: var(--w95-gray);
  padding: 4px;
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.portfolio-item:hover { transform: translate(-1px, -1px); }
.portfolio-thumb {
  height: 100px;
  border: 2px inset var(--w95-gray);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-label {
  font-family: var(--w95-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  text-shadow: 1px 1px 0 #000;
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
}
.thumb-1 { background: repeating-linear-gradient(45deg, #cc0000 0 8px, #880000 8px 16px); }
.thumb-2 { background: repeating-linear-gradient(45deg, #1084d0 0 8px, #000080 8px 16px); }
.thumb-3 { background: repeating-linear-gradient(45deg, #008080 0 8px, #004444 8px 16px); }
.thumb-4 { background: repeating-linear-gradient(45deg, #ff8800 0 8px, #cc4400 8px 16px); }
.thumb-5 { background: repeating-linear-gradient(45deg, #008800 0 8px, #004400 8px 16px); }
.thumb-6 { background: repeating-linear-gradient(45deg, #555 0 8px, #333 8px 16px); }

.portfolio-meta {
  padding: 4px 2px 2px;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}
.portfolio-meta b { font-size: 12px; }
.portfolio-meta span { color: var(--w95-gray-dark); }

/* ==========================================================
   RDV / CALENDLY
   ========================================================== */
.rdv-info {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--w95-blue);
  color: #fff;
  padding: 10px 12px;
  margin: -12px -12px 0;
}
.rdv-info h2 { margin: 0; font-size: 14px; }
.rdv-info p { margin: 2px 0 0; font-size: 11px; }
.rdv-icon { font-size: 32px; }

.calendly-frame {
  border: 2px inset var(--w95-gray);
  background: #fff;
  padding: 16px;
  min-height: 320px;
}
.calendly-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cp-title {
  font-size: 14px;
  font-weight: bold;
  color: #000;
}
.cp-sub {
  font-size: 11px;
  color: var(--w95-gray-dark);
}
.cp-mock {
  background: var(--w95-gray);
  padding: 8px;
  border: 2px inset var(--w95-gray);
  width: 280px;
}
.cp-month { text-align: center; font-weight: bold; padding: 4px; background: var(--w95-blue); color: #fff; font-size: 11px; }
.cp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-top: 4px;
  font-size: 10px;
  text-align: center;
}
.cp-grid > span { padding: 4px 2px; background: #fff; }
.cp-grid > span:nth-child(-n+7) { background: var(--w95-gray-dark); color: #fff; font-weight: bold; }
.cp-d { cursor: pointer; }
.cp-d:hover { background: var(--w95-yellow) !important; }
.cp-d.dim { color: var(--w95-gray-dark); }
.cp-d.off { color: var(--w95-gray-dark); cursor: not-allowed; background: #e0e0e0 !important; }
.cp-d.active { background: var(--w95-cerize) !important; color: #fff; font-weight: bold; }
.cp-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.cp-slot {
  background: #fff;
  border-top: 1px solid var(--w95-white);
  border-left: 1px solid var(--w95-white);
  border-right: 1px solid var(--w95-black);
  border-bottom: 1px solid var(--w95-black);
  text-align: center;
  padding: 3px;
  font-size: 10px;
  cursor: pointer;
}
.cp-slot:hover { background: var(--w95-yellow); }
.cp-slot.selected { background: var(--w95-cerize); color: #fff; font-weight: bold; }

/* ==========================================================
   PAINT
   ========================================================== */
.paint-body { padding: 0; gap: 0; }
.paint-toolbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 4px;
  background: var(--w95-gray);
  width: 56px;
  position: absolute;
  top: 24px;
  bottom: 30px;
  left: 0;
  border-right: 1px solid var(--w95-gray-dark);
}
.paint-tool {
  width: 24px;
  height: 24px;
  background: var(--w95-gray);
  border-top: 1px solid var(--w95-white);
  border-left: 1px solid var(--w95-white);
  border-right: 1px solid var(--w95-black);
  border-bottom: 1px solid var(--w95-black);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.paint-tool.active {
  border-color: var(--w95-black) var(--w95-white) var(--w95-white) var(--w95-black);
  background: #fff;
}
.paint-stage {
  margin-left: 56px;
  background: var(--w95-gray);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#paint-canvas {
  background: #fff;
  border: 2px inset var(--w95-gray);
  cursor: crosshair;
  image-rendering: pixelated;
}
.paint-palette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--w95-gray);
  border-top: 1px solid var(--w95-gray-dark);
  display: flex;
  gap: 4px;
  padding: 5px 8px;
  align-items: center;
}
.paint-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid var(--w95-gray-dark);
  cursor: pointer;
}
.paint-swatch.active { outline: 2px solid #000; outline-offset: 1px; }

/* ==========================================================
   CALCULATOR
   ========================================================== */
.calc-body { padding: 8px; gap: 6px; }
.calc-display {
  background: #fff;
  border-top: 2px solid var(--w95-gray-dark);
  border-left: 2px solid var(--w95-gray-dark);
  border-right: 2px solid var(--w95-white);
  border-bottom: 2px solid var(--w95-white);
  padding: 4px 8px;
  text-align: right;
  font-family: var(--w95-mono);
  font-size: 18px;
  min-height: 28px;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.calc-btn {
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
  padding: 6px 0;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--w95-font);
  font-size: 12px;
}
.calc-btn:active {
  border-color: var(--w95-black) var(--w95-white) var(--w95-white) var(--w95-black);
}
.calc-btn.op { color: var(--w95-cerize); }
.calc-btn.eq { background: var(--w95-cerize); color: #fff; }
.calc-btn.double { grid-column: span 2; }

/* ==========================================================
   NOTEPAD / RECYCLE
   ========================================================== */
.notepad-body {
  padding: 0;
  background: #fff;
}
.notepad-text {
  margin: 0;
  padding: 8px 12px;
  font-family: var(--w95-mono);
  font-size: 12px;
  color: #000;
  white-space: pre-wrap;
  background: #fff;
  user-select: text;
}

.recycle-list {
  background: #fff;
  border: 2px inset var(--w95-gray);
  padding: 4px;
  min-height: 200px;
}
.recycle-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  padding: 4px 6px;
  align-items: center;
  cursor: default;
}
.recycle-item:hover { background: var(--w95-blue); color: #fff; }
.recycle-item:hover span { color: #ccd; }
.recycle-icon { font-size: 22px; text-align: center; }
.recycle-item span { display: block; font-size: 11px; color: var(--w95-gray-dark); }

/* ==========================================================
   FORM SUCCESS
   ========================================================== */
.form-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--w95-yellow);
  border: 2px outset var(--w95-gray);
}
.form-success[hidden] { display: none; }
.success-icon {
  width: 36px;
  height: 36px;
  background: #008000;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================
   TASKBAR
   ========================================================== */
#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  box-shadow: inset 0 1px 0 var(--w95-gray-light);
  display: flex;
  align-items: center;
  padding: 2px 2px 2px 2px;
  gap: 4px;
  z-index: 999;
}

#start-button {
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
  padding: 2px 6px 2px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  cursor: pointer;
  height: 24px;
  font-size: 12px;
}
#start-button:active,
#start-button.active {
  border-color: var(--w95-black) var(--w95-white) var(--w95-white) var(--w95-black);
}
#start-button .start-logo {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

#taskbar-divider {
  width: 0;
  height: 22px;
  border-left: 1px solid var(--w95-gray-dark);
  border-right: 1px solid var(--w95-white);
}

#taskbar-windows {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}
.taskbar-win {
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
  padding: 2px 8px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  min-width: 140px;
  max-width: 180px;
  overflow: hidden;
}
.taskbar-win.active {
  border-color: var(--w95-black) var(--w95-white) var(--w95-white) var(--w95-black);
  background-image: linear-gradient(135deg, var(--w95-gray-light) 25%, transparent 25%, transparent 50%, var(--w95-gray-light) 50%, var(--w95-gray-light) 75%, transparent 75%);
  background-size: 4px 4px;
}
.taskbar-win-icon {
  width: 16px;
  height: 16px;
  background-size: contain;
  flex-shrink: 0;
}
.taskbar-win-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#taskbar-tray {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  height: 24px;
  border-top: 1px solid var(--w95-gray-dark);
  border-left: 1px solid var(--w95-gray-dark);
  border-right: 1px solid var(--w95-white);
  border-bottom: 1px solid var(--w95-white);
}
.tray-icon { font-size: 12px; }
#clock {
  font-size: 12px;
  padding-left: 4px;
}

/* ==========================================================
   START MENU
   ========================================================== */
#start-menu {
  position: absolute;
  bottom: 30px;
  left: 2px;
  width: 220px;
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
  display: none;
  z-index: 1000;
  animation: menu-rise 0.16s ease-out;
}
#start-menu.open { display: flex; }
@keyframes menu-rise {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.start-sidebar {
  width: 28px;
  background: linear-gradient(180deg, #000080 0%, #1084d0 50%, #000080 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  position: relative;
}
.start-sidebar-text {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  letter-spacing: 1px;
}
.start-sidebar-text span { color: var(--w95-cerize); }

.start-items {
  flex: 1;
  padding: 2px;
}
.start-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  cursor: pointer;
  font-size: 13px;
  position: relative;
}
.start-item:hover {
  background: var(--w95-blue);
  color: #fff;
}
.start-item.has-arrow::after {
  content: "▶";
  margin-left: auto;
  font-size: 8px;
}
.start-item-icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.start-divider {
  height: 0;
  margin: 4px 2px;
  border-top: 1px solid var(--w95-gray-dark);
  border-bottom: 1px solid var(--w95-white);
}
.icon-computer-sm    { background-image: var(--icon-computer, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='2' y='3' width='20' height='14' fill='%23c0c0c0' stroke='%23000'/><rect x='4' y='5' width='16' height='10' fill='%23008080'/><rect x='8' y='17' width='8' height='2' fill='%23808080'/><rect x='4' y='19' width='16' height='2' fill='%23c0c0c0' stroke='%23000'/></svg>")); }
.icon-folder-sm      { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 6h8l2 2h10v12H2z' fill='%23ffcc00' stroke='%23000'/></svg>"); }
.icon-portfolio-sm   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='2' y='6' width='20' height='14' fill='%23884400' stroke='%23000'/><rect x='9' y='4' width='6' height='3' fill='%23884400' stroke='%23000'/></svg>"); }
.icon-mail-sm        { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='2' y='5' width='20' height='14' fill='%23fff' stroke='%23000'/><path d='M2 5l10 8 10-8' stroke='%23000' fill='none'/></svg>"); }
.icon-calendar-sm    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='4' width='18' height='17' fill='%23fff' stroke='%23000'/><rect x='3' y='4' width='18' height='5' fill='%23cc0000' stroke='%23000'/></svg>"); }
.icon-paint-sm       { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='2' y='4' width='20' height='16' fill='%23fff' stroke='%23000'/><rect x='4' y='6' width='3' height='3' fill='%23cc0000'/><rect x='9' y='6' width='3' height='3' fill='%23ffcc00'/><rect x='14' y='6' width='3' height='3' fill='%2300aa00'/></svg>"); }
.icon-text-sm        { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 2h12l4 4v16H4z' fill='%23fff' stroke='%23000'/></svg>"); }
.icon-calc-sm        { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='4' y='2' width='16' height='20' fill='%23c0c0c0' stroke='%23000'/><rect x='6' y='4' width='12' height='4' fill='%23000'/><circle cx='8' cy='12' r='1' fill='%23000'/><circle cx='12' cy='12' r='1' fill='%23000'/><circle cx='16' cy='12' r='1' fill='%23cc0000'/><circle cx='8' cy='16' r='1' fill='%23000'/><circle cx='12' cy='16' r='1' fill='%23000'/><circle cx='16' cy='16' r='1' fill='%23cc0000'/></svg>"); }
.icon-shutdown-sm    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='13' r='8' fill='none' stroke='%23000' stroke-width='2'/><rect x='11' y='2' width='2' height='9' fill='%23000'/></svg>"); }

.submenu {
  position: absolute;
  left: 100%;
  top: -2px;
  width: 200px;
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
  display: none;
  padding: 2px;
}
.has-arrow:hover .submenu { display: block; }

/* ==========================================================
   SHUTDOWN OVERLAY
   ========================================================== */
#shutdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}
#shutdown-overlay.open { display: flex; }
.shutdown-dialog {
  width: 420px;
  background: var(--w95-gray);
  border-top: 2px solid var(--w95-white);
  border-left: 2px solid var(--w95-white);
  border-right: 2px solid var(--w95-black);
  border-bottom: 2px solid var(--w95-black);
}
.shutdown-title {
  background: linear-gradient(90deg, var(--w95-blue) 0%, var(--w95-blue-light) 100%);
  color: #fff;
  font-weight: bold;
  padding: 4px 6px;
}
.shutdown-body {
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: center;
}
.shutdown-icon {
  font-size: 36px;
  color: #cc0000;
  width: 48px;
  text-align: center;
}
.shutdown-text small { color: var(--w95-gray-dark); }
.shutdown-buttons {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 0 12px 12px;
}

/* ==========================================================
   BSOD
   ========================================================== */
#bsod {
  position: fixed;
  inset: 0;
  background: #0000aa;
  color: #fff;
  font-family: var(--w95-mono);
  display: none;
  z-index: 9999;
  padding: 60px 80px;
  font-size: 16px;
  line-height: 1.6;
}
#bsod.open { display: block; }
.bsod-header {
  background: #c0c0c0;
  color: #0000aa;
  padding: 0 12px;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 24px;
}
.bsod-blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 720px) {
  .desktop-icons { grid-template-columns: 70px; gap: 4px; }
  .desktop-icon { width: 70px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .checkbox-grid, .radio-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
}
