/* Updated CSS for Work Page */
body {
  background: black;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  color: #00ff00;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  z-index: 1000;
  transition: top 0.3s;
}

.home-button, .year-ticker {
  position: fixed;
  top: 20px;
  font-size: 20px;
  color: #00ff00;
  text-decoration: none;
  z-index: 1000;
}

.year-ticker { right: 20px; }
.home-button { left: 20px; }

.art-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  margin-top: 60px; /* To account for the fixed header */
}

.art-item {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
}

.art-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  display: none;
}

.carousel-item.active {
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #00ff00;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
  z-index: 100;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  background: black;
  padding: 20px;
  color: #00ff00;
  text-align: center;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-content p {
  margin-top: 10px;
  font-size: 16px;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #00ff00;
}

#modal-prev, #modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #00ff00;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
  z-index: 100;
}

#modal-prev { left: 10px; }
#modal-next { right: 10px; }
/* Additional Loading Screen Styles for Work Page */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  color: #00ff00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.loading-bar {
  width: 60%;
  height: 10px;
  background: rgba(0, 255, 0, 0.2);
  position: relative;
  border: 1px solid #00ff00;
  margin-top: 10px;
  overflow: hidden;
}

.loading-bar::after {
  content: "";
  display: block;
  width: 0%;
  height: 100%;
  background: #00ff00;
  animation: pixel-glitch 2.5s linear forwards;
}

@keyframes pixel-glitch {
  0% { width: 5%; }
  20% { width: 30%; }
  40% { width: 15%; }
  60% { width: 50%; }
  80% { width: 75%; }
  100% { width: 100%; }
}

.home-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: monospace;
  font-size: 24px;
}

.home-loading-bar {
  width: 50%;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.home-bar-fill {
  width: 100%;
  height: 100%;
  background: white;
  position: relative;
  overflow: hidden;
}

@keyframes scan-line {
  0% { left: -10%; }
  100% { left: 100%; }
}

.home-bar-fill::before {
  content: "";
  position: absolute;
  width: 20%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  animation: scan-line 2s infinite linear;
}

.glitch {
  animation: glitch 0.3s steps(2) 3;
}

@keyframes glitch {
  0% { transform: scale(1.01); filter: contrast(120%) brightness(110%) hue-rotate(10deg); }
  25% { transform: translateX(-2px) skewX(3deg); filter: hue-rotate(-10deg); }
  50% { transform: translateX(2px) skewX(-3deg); filter: contrast(130%) brightness(120%) hue-rotate(20deg); }
  75% { transform: translateX(-1px) skewX(2deg); filter: hue-rotate(-5deg); }
  100% { transform: scale(1); filter: none; }
}

.power-down {
  animation: powerDown 0.5s forwards;
}

@keyframes powerDown {
  0% { background: white; }
  100% { background: black; }
}
