/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --y2k-yellow: #ffff00;
  --y2k-cyan: #00ffff;
  --y2k-magenta: #ff00ff;
  --y2k-lime: #00ff00;
  --y2k-pink: #ff69b4;
  --y2k-blue: #3366ff;
  --y2k-orange: #ff6600;
  --win-gray: #c0c0c0;
  --win-dark: #808080;
  --win-highlight: #ffffff;
  --win-shadow: #404040;
  --text: #ffffff;
  --text-dark: #000000;
  --font-main: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive;
  --font-system: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
}

html {
  font-size: 16px;
  /* cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="20" font-size="20">✦</text></svg>') 12 12, crosshair; */
}

a, .link-btn, .ctrl-btn, .tool-tag {
  /* cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="20" font-size="20">👆</text></svg>') 12 0, pointer; */
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: #000033;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== SHADER CANVAS ===== */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* ===== SCANLINE OVERLAY ===== */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 6px
  );
}

/* ===== PAGE LAYOUT ===== */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  min-height: 100vh;
  padding: 40px 30px;
}

.panel-left {
  flex: 0 0 380px;
  max-width: 380px;
}

.panel-right {
  flex: 0 0 480px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== WINDOWS 98 STYLE WINDOW ===== */
.window {
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-highlight) var(--win-shadow) var(--win-shadow) var(--win-highlight);
  box-shadow: 1px 1px 0 var(--text-dark);
}

.title-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.title-bar-text {
  font-family: var(--font-system);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 14px;
  font-family: var(--font-system);
  font-size: 0.55rem;
  font-weight: 700;
  background: var(--win-gray);
  border: 1px solid;
  border-color: var(--win-highlight) var(--win-shadow) var(--win-shadow) var(--win-highlight);
  color: var(--text-dark);
  cursor: default;
}

.window-body {
  padding: 16px 20px;
  color: var(--text-dark);
}

/* ===== HEADER ===== */
.header {
  text-align: left;
  padding: 2px 0 8px;
}

.name {
  font-family: var(--font-system);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.tagline {
  font-family: var(--font-system);
  font-size: 0.85rem;
  color: var(--win-dark);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ===== HR DIVIDER ===== */
.y2k-hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    var(--y2k-magenta),
    var(--y2k-cyan),
    var(--y2k-yellow),
    var(--y2k-magenta),
    transparent
  );
  margin: 14px 0;
}

/* ===== SECTIONS ===== */
.section-title {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000080;
  margin-bottom: 8px;
  text-align: left;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.bio {
  font-family: var(--font-system);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-dark);
}

/* ===== SOCIAL LINK BUTTONS ===== */
.socials {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-btn {
  display: block;
  padding: 3px 8px;
  font-family: var(--font-system);
  font-size: 0.88rem;
  font-weight: 400;
  color: #000080;
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.link-btn:hover {
  color: #ffffff;
  background: #000080;
  text-decoration: underline;
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter {
  margin-top: 18px;
  padding: 6px 10px;
  text-align: left;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text-dark);
  background: #ffffff;
  border: 2px inset var(--win-gray);
}

.counter-num {
  font-weight: 700;
  color: #000080;
}

/* ===== PROJECT CARDS ===== */
.projects {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  display: block;
  padding: 10px 14px;
  background: #ffffff;
  border: 2px inset var(--win-gray);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  background: #ffffcc;
}

.project-name {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--y2k-blue);
}

.project-name::before {
  content: '\2605 ';
  color: var(--y2k-orange);
}

.project-desc {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--win-dark);
  line-height: 1.4;
  margin-top: 2px;
}

/* ===== YOBA CARD ===== */
.project-card-yoba {
  background: url('yoba_background.png') center / cover no-repeat, #000;
  min-height: 110px;
  position: relative;
  text-align: center;
  padding: 18px 14px;
}

.project-card-yoba:hover {
  background: url('yoba_background.png') center / cover no-repeat, #000;
  filter: brightness(1.1) saturate(1.2);
}

.project-card-yoba .project-name,
.project-card-yoba .project-desc {
  font-family: 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #000000;
  font-weight: 400;
}

.project-card-yoba .project-name {
  font-size: 1.8rem;
  letter-spacing: 0.06em;
}

.project-card-yoba .project-name::before {
  content: '';
}

.project-card-yoba .project-desc {
  font-size: 1rem;
  margin-top: 6px;
  line-height: 1.2;
}

/* ===== OPENTALKIT CARD ===== */
.project-card-opentalkit {
  background: url('opentalkit.png') center / cover no-repeat, #2a1a4a;
  min-height: 110px;
  text-align: center;
  padding: 18px 14px;
  position: relative;
}

.project-card-opentalkit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.project-card-opentalkit:hover {
  background: url('opentalkit.png') center / cover no-repeat, #2a1a4a;
  filter: brightness(1.1);
}

.project-card-opentalkit .project-name,
.project-card-opentalkit .project-desc {
  position: relative;
  font-family: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  font-weight: 700;
  color: #ffffff;
  text-shadow:
    1px 1px 0 #000,
    -1px 1px 0 #000,
    1px -1px 0 #000,
    -1px -1px 0 #000,
    0 0 6px rgba(0, 0, 0, 0.9);
}

.project-card-opentalkit .project-name {
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.project-card-opentalkit .project-name::before {
  content: '';
}

.project-card-opentalkit .project-desc {
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.35;
}

/* ===== ONSCREEN KEYBOARD CARD ===== */
.project-card-keyboard {
  padding: 0;
  background: #2b2b2b url('keyboard.png') right center / auto 100% no-repeat;
  border: 2px solid;
  border-color: #5a5a5a #1a1a1a #1a1a1a #5a5a5a;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.25),
    0 14px 24px rgba(0, 0, 0, 0.55),
    0 28px 40px rgba(0, 0, 0, 0.35);
  animation: kb-float 4.5s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

.project-card-keyboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.75) 45%, rgba(20,20,20,0.15) 100%);
  pointer-events: none;
}

.project-card-keyboard:hover {
  background: #2b2b2b url('keyboard.png') right center / auto 100% no-repeat;
  animation-play-state: paused;
  filter: brightness(1.1);
}

@keyframes kb-float {
  0%   { transform: translateY(0)    rotate(-0.6deg); }
  50%  { transform: translateY(-6px) rotate(0.6deg); }
  100% { transform: translateY(0)    rotate(-0.6deg); }
}

.kb-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px;
  background: linear-gradient(90deg, #1a1a1a, #3a3a3a);
  border-bottom: 1px solid #000;
}

.kb-title-text {
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

.kb-controls {
  display: flex;
  gap: 2px;
}

.kb-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 14px;
  font-family: var(--font-system);
  font-size: 0.55rem;
  font-weight: 700;
  background: #3a3a3a;
  border: 1px solid;
  border-color: #6a6a6a #111 #111 #6a6a6a;
  color: #e0e0e0;
}

.kb-ctrl-close {
  background: #8a1a1a;
  border-color: #c04a4a #2a0000 #2a0000 #c04a4a;
  color: #fff;
}

.kb-body {
  position: relative;
  padding: 14px 16px 16px;
  min-height: 96px;
}

.project-card-keyboard .project-name {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.45);
}

.project-card-keyboard .project-name::before {
  content: '\2328  ';
  color: #ff66cc;
  text-shadow: none;
}

.project-card-keyboard .project-desc {
  font-family: var(--font-system);
  font-size: 0.85rem;
  color: #d8d8d8;
  margin-top: 4px;
  line-height: 1.4;
  max-width: 60%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* ===== EXCEL CARD ===== */
.project-card-excel {
  padding: 0;
  background: #ffffff;
  border: 1px solid #1f6e43;
  overflow: hidden;
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
}

.project-card-excel:hover {
  background: #ffffff;
  filter: brightness(1.02);
}

.excel-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #217346;
  padding: 4px 10px;
  color: #ffffff;
  font-family: 'Segoe UI', 'Calibri', Arial, sans-serif;
  font-size: 0.78rem;
}

.excel-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #ffffff;
  color: #217346;
  font-weight: 900;
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 2px;
}

.excel-tab-text {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.excel-body {
  padding: 10px 14px 12px;
  background:
    linear-gradient(#d4d4d4, #d4d4d4) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(0deg, #ffffff, #ffffff 22px, #f3f7f3 22px, #f3f7f3 23px),
    #ffffff;
}

.project-card-excel .project-name {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f6e43;
}

.project-card-excel .project-name::before {
  content: 'fx ';
  font-family: 'Cambria Math', 'Times New Roman', serif;
  font-style: italic;
  color: #555555;
  font-weight: 400;
  margin-right: 4px;
}

.project-card-excel .project-desc {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  font-size: 0.85rem;
  color: #222222;
  margin-top: 4px;
}

/* ===== STICKY NOTE + ARROW ===== */
.excel-wrap {
  position: relative;
}

.sticky-note {
  position: absolute;
  top: 50%;
  left: calc(100% + 70px);
  transform: translateY(-50%) rotate(6deg);
  width: 110px;
  min-height: 110px;
  padding: 14px 10px;
  background: #fff066;
  background-image: linear-gradient(180deg, #ffe44d 0%, #fff066 12%, #fff066 100%);
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.25),
    4px 6px 12px rgba(0, 0, 0, 0.35);
  font-family: 'Comic Sans MS', 'Marker Felt', cursive;
  text-align: center;
  text-decoration: none;
  color: #0000ee;
  z-index: 5;
  transition: transform 0.15s ease;
}

.sticky-note:hover {
  transform: translateY(-50%) rotate(2deg) scale(1.05);
}

.sticky-text {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.sticky-arrow {
  position: absolute;
  top: 50%;
  right: calc(100% + 4px);
  transform: translateY(-50%) rotate(-4deg);
  width: 80px;
  height: 50px;
  pointer-events: none;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.3));
}

@media (max-width: 900px) {
  .excel-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .sticky-note {
    position: relative;
    top: auto;
    left: auto;
    width: 70%;
    max-width: 220px;
    min-height: 0;
    padding: 12px 10px;
    margin: 22px auto 6px;
    transform: rotate(-3deg);
    align-self: center;
  }
  .sticky-note:hover {
    transform: rotate(0deg) scale(1.03);
  }
  .sticky-arrow {
    top: -28px;
    right: auto;
    left: 50%;
    width: 60px;
    height: 40px;
    transform: translateX(-50%) rotate(70deg);
  }
  .sticky-text {
    font-size: 0.95rem;
  }
}

/* ===== TOOL TAGS ===== */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tag {
  font-family: var(--font-system);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--win-highlight);
  border: 2px outset var(--win-gray);
  color: var(--text-dark);
  cursor: default;
}

.tool-tag:hover {
  background: var(--y2k-cyan);
  border-style: inset;
}

/* ===== FOOTER MARQUEE ===== */
.footer-bar {
  padding: 8px 12px;
  background: var(--win-gray);
  border: 2px solid;
  border-color: var(--win-highlight) var(--win-shadow) var(--win-shadow) var(--win-highlight);
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--y2k-blue);
}

/* ===== RESPONSIVE: stack vertically on mobile ===== */
@media (max-width: 900px) {
  .page {
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    gap: 16px;
  }

  .panel-left,
  .panel-right {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .name {
    font-size: 2rem;
  }
}
