/* Global Styles */

:root {
  --scale-factor: 0.75;
}

* {
  cursor: auto !important;
}

.user-select-none {
  user-select: none;
}

body:has(.monitor) {
  overflow: hidden;  /* disables scrolling on main page */
}

body {
  margin: 0;
  background-color: #0e0e1e;
  font-family: "Source Code Pro", monospace;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  color: #fceaff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('Images/black.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color-scheme: only light;
  image-rendering: auto;
}

h1, h2, h3, h4, h5, h6 {
  text-align: center;
}

/* Inside monitor: hide system cursor */
.monitor * {
  cursor: none !important;
}

.monitor-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120%;
  max-width: 1000px;
  aspect-ratio: 4 / 3;
  overflow: visible;
}

.monitor {
  margin-top: -10%;
  position: relative;
  background-color: #1a1a2e;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.monitor-inner {
  position: relative;
  padding: 30px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  z-index: 1;
}

.corner-icons {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 8%;
  height: auto;
  z-index: 20;
  pointer-events: none; 
}

.monitor > *:not(.wallpaper) {
  position: relative;
  z-index: 1;
}

.wallpaper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.monitor-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45.8%);
  width: 300%;
  height: 300%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.notepad-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45.8%);
  width: 300%;
  height: 300%;
  background: url('Images/notepad.png') no-repeat center center;
  background-size: contain;
  z-index: 5;
  pointer-events: none; /* let mouse pass through background */
}

.notepad-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10%;
  height: auto;
  transform: translate(-250%, 0%); 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  z-index: 20;
  pointer-events: auto;
}

.notepad-menu button {
  width: 200px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  margin: 10px 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
  cursor: pointer !important;
}

/* Default button Images */
.btn-about {
  background-image: url('Images/button-about.png');
}
.btn-projects {
  background-image: url('Images/button-projects.png');
}
.btn-archive {
  background-image: url('Images/button-archive.png');
}
.btn-extras {
  background-image: url('Images/button-buttons.png');
}

/* Hover states */
.btn-about:hover,
.btn-about.active {
  animation: aboutHoverAnim 0.6s steps(2) infinite;
}
.btn-projects:hover,
.btn-projects.active {
  animation: projectsHoverAnim 0.6s steps(2) infinite;
}
.btn-archive:hover, 
.btn-archive.active {
  animation: archiveHoverAnim 0.6s steps(2) infinite;
}
.btn-extras:hover, 
.btn-extras.active {
  animation: extrasHoverAnim 0.6s steps(2) infinite;
}

/* Keyframe animations for each button */
@keyframes aboutHoverAnim {
  0%, 49% {
    background-image: url('Images/button-about-hover.png');
  }
  50%, 100% {
    background-image: url('Images/button-about-hover2.png');
  }
}

@keyframes projectsHoverAnim {
  0%, 49% {
    background-image: url('Images/button-projects-hover.png');
  }
  50%, 100% {
    background-image: url('Images/button-projects-hover2.png');
  }
}

@keyframes archiveHoverAnim {
  0%, 49% {
    background-image: url('Images/button-archive-hover.png');
  }
  50%, 100% {
    background-image: url('Images/button-archive-hover2.png');
  }
}

@keyframes extrasHoverAnim {
  0%, 49% {
    background-image: url('Images/button-buttons-hover.png');
  }
  50%, 100% {
    background-image: url('Images/button-buttons-hover2.png');
  }
}

.flame-overlay {
  position: absolute;
  top: -19%;
  left: 128.5%;
  transform: translate(-50%, -45.7%);
  width: 15%;
  height: 15%;
  object-fit: cover;
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
  
  /* Fix for PiP button and controls */
  -webkit-playsinline: true;

}

.cursor-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 10000;
}

#custom-cursor {
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  z-index: 1000;
  transition: none; /* Remove transition to prevent animation lag */
  opacity: 1;
  will-change: transform; /* Hint for browser to optimize */
}

.subtabs {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  border-bottom: 2px solid #fcb1ff;
}

.subtab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

.subtab.active {
  background-color: #1a1a2e;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  transform: translateZ(0); /* Force GPU acceleration */
  will-change: transform; /* Hint for browser to optimize */
}

.subtab-content {
  display: none;
  animation: fadeIn 0.4s;
}

.subtab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Extras page: 2x2 grid of equal-sized cards, styled like .project-card */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(120px, 190px);
  gap: 30px;
  padding: 36px;
  flex: 1;
  min-height: 0;
  align-content: center;
  box-sizing: border-box;
}

.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 15px;
  background-color: #1a1a2e;
  border: 2px solid #ffbbec;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  color: #fceaff;
  font-family: "Source Code Pro", monospace;
  font-weight: 800;
  font-size: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  transform: translateZ(0); /* Force GPU acceleration */
  will-change: transform;
}

/* clicks always register on the button itself, not the icon/label inside it */
.tab-button > * {
  pointer-events: none;
}

.tab-button img {
  height: 50px;
  width: auto;
  image-rendering: pixelated;
}

.tab-button:hover {
  transform: scale(1.09) rotate(2deg);
  box-shadow: 0 0 15px #ffd6ff, 0 0 30px #ff8ee0;
  z-index: 2;
}

.tab-button:active {
  transform: scale(1.03) rotate(2deg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.floating-image {
  position: absolute; /* Or use fixed if you want it to stay in place while scrolling */
  top: 90px; /* Adjust the vertical position */
  right: 80px; /* Adjust the horizontal position */
  z-index: 10; /* Ensure it appears above other elements */
}

@media (max-width: 768px) {
  .floating-image {
    display: none; /* Hide the floating image on mobile devices */
  }

  .tab-button {
    font-size: 1rem;
    gap: 6px;
  }

  .tab-button img {
    height: 36px;
  }

  .extras-grid {
    gap: 15px;
    padding: 15px;
  }
}

.floating-image img {
  height: 130px;
  image-rendering: pixelated;
}

.section {
  background-color: #2a2a4f;
  border-radius: 10px;
  margin: 10px 0;
  padding: 20px;
  border: 2px solid #ffbbec;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.grid-section {
  background-color: #2a2a4f;
  border-radius: 10px;
  margin: 10px 0;
  padding: 10px;
  border: 2px solid #ffbbec;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: calc(100% - 40px); /* Subtract margin to fit within monitor */
  box-sizing: border-box;
  /* Positioning context for .tag-filter-panel (see below): keeping this element
     (rather than .tag-filter itself) as the nearest positioned ancestor means the
     panel's percentage max-height resolves against a real, sizeable box instead of
     the slim toggle bar, and it can never lay itself out beyond this container. */
  position: relative;
}


.section h2 {
  color: #ffaaff;
  font-size: 1.6em;
}

.section p {
  color: #d5c0ff;
  font-size: 1em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px 30px;
  padding: 36px;
  padding-top: 53px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #fcb1ff #1a1a2e;
  margin-bottom: 10px;
  max-height: 100%; /* Prevents unnecessary stretching */
  min-height: auto; /* Ensures it adjusts to content */
  box-sizing: border-box; /* Ensures padding doesn't affect size */
}

.projects-grid::-webkit-scrollbar {
  width: 8px;
}

.projects-grid::-webkit-scrollbar-track {
  background: #1a1a2e;
  border-radius: 10px;
}

.projects-grid::-webkit-scrollbar-thumb {
  background-color: #fcb1ff;
  border-radius: 10px;
  border: 2px solid #1a1a2e;
}

.project-card {
  display: flex;
  background-color: #1a1a2e;
  border: 2px solid #ffbbec; /* solid, not dashed: dashes shimmer while the page zooms */
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  transform: translateZ(0); /* Force GPU acceleration */
  will-change: transform; /* Hint for browser to optimize */
}

.project-card:hover {
  transform: scale(1.09) rotate(2deg);
  box-shadow: 0 0 15px #ffd6ff, 0 0 30px var(--card-color);
  z-index: 2;
}

.project-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: -25px;
  object-fit: cover;
  aspect-ratio: 1/1; /* Make thumbnails square */
  max-width: 100%;
}

.project-card p {
  margin: 0.5em 0 0 0;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex-grow: 1;
  font-size: 1.2em;
}

.links-box h2 {
  color: #ffaaff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6em;
}

.links-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.links-icons img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}

.links-icons img:hover {
  transform: scale(1.2);
}

.footer {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9em;
  color: #bbb;
}

.cat-wrapper {
  position: absolute;
  bottom: -33px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.footer img {
  width: 100px;
  height: auto;
  image-rendering: pixelated;
}

a {
  color: #eabfff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffd6ff;
  text-decoration: underline;
}

a:visited {
  color: #c3b3ff;
}

a:active {
  color: #ffaad4;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  cursor: pointer;
  z-index: 10;
}

.left {
  left: -15px;
  background-image: url('Images/ArrowLeft.png');
}

.right {
  right: -15px;
  background-image: url('Images/ArrowRight.png');
}

#physical-mouse {
  position: absolute;
  width: 300%;
  height: 300%;
  pointer-events: none;
  z-index: 10000;
  transition: opacity 0.1s, transform 0.1s;
  image-rendering: pixelated;
  transform: translate(0%, 4%) translateZ(0); 
  will-change: transform;
}

body:has(.monitor) {
  margin: 0;
  padding: 0;
  background-color: #0e0e1e;

  /* Zoom level */
  transform: scale(var(--scale-factor));
  transform-origin: top center;

  /* These fix the shift and ensure correct centering */
  width: 100vw;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 7%;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the buttons */
  gap: 15px;
  margin: 20px 0;
}

.button-container a img {
  height: 60px; /* Slightly bigger than the usual 31px */
  width: auto;
  image-rendering: pixelated;
}

.button-container a img:hover {
  transform: scale(1.09); /*  zoom on hover */
}

.button-deco {
  height: 60px;
  vertical-align: middle;
  margin: 0 5px;
}

.button-deco.arrow {
  transform: rotate(-90deg);
  height: 40px;
}

.my-button-section {
  border: 3px dashed #ffaaff;
  padding: 20px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}



/* Desk clickable areas - relative to monitor-bg */
.desk-clickable-areas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Above background but below other elements */
  pointer-events: none; /* Let events pass through by default */
}

.desk-click-box {
  position: absolute;
  display: block;
  cursor: pointer !important;
  pointer-events: auto; /* Capture events on these elements */
  background-color: transparent;
  /*border: 2px dashed #ff0000;  /* for visibility during development */
}

/* Example positioning for three areas - adjust as needed */
#desk-area1 {
  top: 13%;
  left: -80%;
  width: 50%;
  height: 80%;
}

#desk-area2 {
  top: 85%;
  right: -17%;
  width: 10%;
  height: 20%;
}

#desk-area3 {
  bottom: -5%;
  left: 163%;
  transform: translateX(-50%);
  width: 50%;
  height: 80%;
}

#desk-area4 {
  top: 108%;
  right: -7%;
  width: 10%;
  height: 18%;
}

#desk-area5 {
  top: 108%;
  right: 7%;
  width: 10%;
  height: 15%;
}

#desk-area6 {
  top: -65%;
  right: 55%;
  width: 54%;
  height: 40%;
}

#key-up {
  top: 148%;
  left: 65%;
  width: 7%;
  height: 7%;
}

#key-down {
  top: 156%;
  left: 65.5%;
  width: 7%;
  height: 7%;
}

#key-left {
  top: 156%;
  left: 58%;
  width: 7%;
  height: 7%;
}

#key-right {
  top: 156%;
  left: 73%;
  width: 7%;
  height: 7%;
}

#key-b {
  top: 148%;
  left: -10%;
  width: 7%;
  height: 7%;
}

#key-a {
  top: 140%;
  left: -43%;
  width: 7%;
  height: 7%;
}

/* Project category colors
   NOTE: these must stay in sync with the "color" values in the TAG_TAXONOMY
   "type" group at the top of Script.js — that's the single source of truth for
   which tag gets which colour, this is just where it's actually painted. */
.project-card { --card-color: #ffbbec; } /* default when there's no category */

.project-card[data-category="realtime"] { --card-color: #66ff99; }
.project-card[data-category="vfx"]      { --card-color: #ff9966; }
.project-card[data-category="fullcg"]   { --card-color: #6699ff; }
.project-card[data-category="tech-art"] { --card-color: #b012ee; }
.project-card[data-category="tooling"]  { --card-color: #06d6a0; }
.project-card[data-category="game"]     { --card-color: #ef476f; }
.project-card[data-category="film"]     { --card-color: #f4a261; }
.project-card[data-category="study"]    { --card-color: #8ecae6; }
.project-card[data-category="drawn"]    { --card-color: #0ce9cb; }

.project-card { border-color: var(--card-color) !important; }

/* Hide project cards that don't match the active tag filter (Script.js) */
.project-card.tag-hidden {
  display: none !important;
}

.project-card.stacked-project-card {
  --stack-total: 24px;
  --stack-line: var(--card-color);
  --stack-dim: color-mix(in srgb, var(--card-color) 50%, #1a1a2e); /* darker for the back card */
  --stack-fill: #14142a;
  --stack-shadows:
    12px -12px 0 -2px var(--stack-fill),
    12px -12px 0 0 var(--stack-line),
    24px -24px 0 -2px var(--stack-fill),
    24px -24px 0 0 var(--stack-dim);
  box-shadow: var(--stack-shadows);
  margin: var(--stack-total) var(--stack-total) 0 0;
}

.project-card.stacked-project-card:hover {
  box-shadow: var(--stack-shadows), 0 0 15px #ffd6ff, 0 0 30px var(--card-color);
}

/* Shown inside a .projects-grid when the current filter matches nothing there */
.no-matches-message {
  grid-column: 1 / -1;
  text-align: center;
  color: #d5c0ff;
  padding: 30px 10px;
  font-size: 1em;
  opacity: 0.85;
}

.no-matches-message[hidden] {
  display: none;
}

/* Dim (never hide) a subtab whose grid has zero matches under the current filter */
.subtab.subtab-dimmed {
  opacity: 0.45;
}

/* ==========================================================================
   Tag filter widget (replaces the old static .color-key legend)
   Structure per grid section:
     .tag-filter               <- mount point, stays position:static so the
       .tag-filter-bar            panel's containing block is .grid-section
         .tag-filter-toggle
         .tag-filter-clear
         .tag-filter-copy
       .tag-filter-panel        <- absolutely positioned, opens upward
         .tag-filter-group (xN)
           .tag-filter-group-label
           .tag-filter-chips
             .tag-chip (xN)
         .tag-filter-results   <- aria-live results count
   ========================================================================== */

.tag-filter {
  width: 100%;
  font-family: "Source Code Pro", monospace;
}

.tag-filter-bar {
  position: relative;
  min-height: 42px;
}

.tag-filter-toggle,
.tag-filter-clear,
.tag-filter-copy {
  font-family: inherit;
  font-weight: 800;
  color: #fceaff;
  background-color: rgba(26, 26, 46, 0.9);
  border: 2px solid #ffbbec;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9em;
}

.tag-filter-toggle {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-filter-clear {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(calc(100% + 10px));
}

.tag-filter-badge {
  background-color: #fcb1ff;
  color: #1a1a2e;
  border-radius: 999px;
  min-width: 1.4em;
  padding: 0 6px;
  font-size: 0.85em;
  line-height: 1.4em;
  text-align: center;
}

.tag-filter-caret {
  display: inline-block;
  transition: transform 0.2s ease;
}

.tag-filter-toggle[aria-expanded="true"] .tag-filter-caret {
  transform: rotate(180deg);
}

.tag-filter-clear:disabled {
  opacity: 0;
}

.tag-filter-clear:not(:disabled):hover,
.tag-filter-copy:hover {
  background-color: rgba(252, 177, 255, 0.15);
}

.tag-filter-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0; /* offset upward at runtime by Script.js to clear the toggle bar */
  /* Primary clipping mechanism: a cap relative to .grid-section's own box
     (see position:relative on .grid-section above). .monitor's overflow:hidden
     is only the fallback if this is ever somehow exceeded. */
  max-height: min(320px, 45%, 60vh);
  overflow-y: auto;
  background-color: rgba(26, 26, 46, 0.96);
  border: 2px solid #ffbbec;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
  z-index: 5;
  scrollbar-width: thin;
  scrollbar-color: #fcb1ff #1a1a2e;
}

.tag-filter-panel[hidden] {
  display: none;
}

.tag-filter-group {
  margin-bottom: 12px;
}

.tag-filter-group:last-of-type {
  margin-bottom: 0;
}

.tag-filter-group-label {
  color: #ffaaff;
  font-size: 0.95em;
  margin: 0 0 6px 0;
}

.tag-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  color: #d5c0ff;
  background-color: #1a1a2e;
  border: 2px dashed var(--chip-color, #ffbbec);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85em;
}

.tag-chip[aria-pressed="true"] {
  color: #1a1a2e;
  background-color: var(--chip-color, #ffbbec);
  border-style: solid;
}

.tag-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: var(--chip-color, #ffbbec);
  flex-shrink: 0;
}

.tag-chip-count {
  opacity: 0.75;
  font-size: 0.9em;
}

.tag-filter-results {
  margin: 10px 0 0 0;
  font-size: 0.8em;
  color: #d5c0ff;
  opacity: 0.8;
  text-align: center;
}

/* Password protection section */
#password-protect {
  background-color: #2a2a4f;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  border: 2px solid #ffbbec;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#password-protect label {
  color: #fceaff;
  font-size: 1.2em;
  display: block;
  margin-bottom: 10px;
}

#password-protect input {
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 1.1em;
  width: 100%;
  max-width: 300px;
  background-color: #1a1a2e;
  color: #fceaff;
}

#password-protect button {
  padding: 10px 20px;
  background-color: #ffbbec;
  color: #1a1a2e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  font-size: 1.1em;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

#password-protect button:hover {
  background-color: #fcb1ff;
}

#password-protect p {
  color: red;
  font-size: 1em;
  margin-top: 10px;
}

/* Secret content section */
#secret-content {
  background-color: #2a2a4f;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  border: 2px solid #ffbbec;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#secret-content p {
  color: #fceaff;
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Secret link button */
#secret-link-btn {
  padding: 15px 30px;
  background-color: #ffbbec;
  color: #1a1a2e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 500%;
  max-width: 500px;
  font-size: 1.5em;
  font-weight: bold;
  transition: background-color 0.2s ease;
  margin-top: 10px;
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, 0%);
}

#secret-link-btn:hover {
  background-color: #ff8eb0;
}

/* Software logos, top-left of each project card (built in Script.js) */
.project-card { position: relative; }

.card-software-logos {
  position: relative;
  bottom: 0px;   /* card padding (15px) + a small inset on the thumbnail */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 4px;
  z-index: 1;
  min-height: 40px;
}

.software-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border-radius: 6px;
  background: rgba(26, 26, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  color: #fff;
  font: bold 11px/1 sans-serif;
  letter-spacing: -0.02em;
}

/* higher specificity than ".project-card img" so the thumbnail rules don't leak in */
.project-card .software-logo img {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: contain;
  filter: sepia(100%) saturate(10000%) brightness(65%) hue-rotate(190deg);
}