body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f5f5f5;
  padding: 40px 0;
}

/* Custom cursor removed - using default cursor */

.navigation {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 30px;
  font-size: 14px;
  z-index: 1000;
}

.navigation a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navigation a:hover {
  color: #555;
}

.navigation a.active {
  color: #000;
  font-weight: bold;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  gap: 20px;
}

.text-left {
  text-align: right;
  margin: 0;
  margin-left: auto;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding-right: 10px;
  width: fit-content;
  width: -moz-fit-content;
}

.text-right {
  text-align: left;
  margin: 0;
  margin-right: auto;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding-left: 10px;
  width: fit-content;
  width: -moz-fit-content;
}

.text-left:hover,
.text-right:hover {
  color: #555;
}

.spacer {
  /* Empty spacer to maintain grid layout */
}

.image-container {
  position: relative;
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
  overflow: visible;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 1s ease;
}

.fisheye-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 2;
  filter: grayscale(100%);
  transition: filter 1s ease;
}

.fisheye-canvas.active {
  display: block;
}

.image-container.webgl-active img {
  display: none;
}

.image-container.webgl-active .fisheye-canvas {
  display: block;
}

/* Hover effects */
.image-container.highlight {
  transform: scale(2.5);
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.7s ease-in, box-shadow 0.7s ease-in;
}

.image-container.highlight .fisheye-canvas {
  filter: grayscale(0%);
}

.image-container.highlight img {
  filter: grayscale(0%);
}

/* Project transition overlay with glass pane effect */
.project-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  backdrop-filter: blur(0px);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0px,
      transparent 1px,
      transparent 2px,
      rgba(255, 255, 255, 0.08) 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0px,
      transparent 1px,
      transparent 2px,
      rgba(255, 255, 255, 0.08) 3px
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.25) 100%
    );
  box-shadow:
    inset 0 0 100px rgba(255, 255, 255, 0.1),
    0 0 50px rgba(255, 255, 255, 0.2);
}

.project-transition-overlay.active {
  opacity: 1;
  backdrop-filter: blur(30px) saturate(120%);
  pointer-events: all;
}

/* Keep clicked image above the overlay */
.image-container.transitioning {
  z-index: 9999 !important;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .row {
    gap: 20px;
    margin-bottom: 8px;
  }

  .text-left,
  .text-right {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .image-container {
    width: 80px;
    height: 80px;
  }

  .image-container.highlight {
    transform: scale(2.5);
  }
}
