/* === Base (shared with style.css) === */
* { cursor: default; }
a { cursor: pointer; }

::selection {
  background: #9fef00;
  color: #0a0a0a;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #333 #0a0a0a;
}

body {
  background: #0a0a0a;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(159,239,0,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* === Project page specific === */
.tag {
  border: 1px solid #333;
  transition: all 0.3s;
}
.tag:hover {
  border-color: #9fef00;
  color: #9fef00;
}

.screenshot {
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.screenshot:hover {
  border-color: #9fef00;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.feature-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: #141414;
  padding: 1.5rem;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(159, 239, 0, 0.3);
}

/* === Lightbox === */
.lightbox {
  cursor: zoom-in;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #b0b0b0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.8);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lightbox-close:hover {
  color: #9fef00;
  border-color: #9fef00;
}

.back-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.back-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #9fef00;
  transition: width 0.3s;
}
.back-link:hover::after {
  width: 100%;
}
