body, html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: sans-serif;
  }
  
  .zone {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
  }
  
  .content {
    max-width: 500px;
  }
  
  .content img {
    max-width: 200px;
    margin-top: 20px;
    filter: drop-shadow(0 0 10px black);
  }
  
  /* Backgrounds */
  .surface { background: #58cced; }
  .twilight { background: #136a8a; }
  .midnight { background: #03045e; }
  .abyss { background: #000814; }
  
  /* Responsive fix */
  @media (max-width: 600px) {
    .content img {
      max-width: 150px;
    }
  
    .content h1 {
      font-size: 1.5em;
    }
  }
  #depth-meter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #00ffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-family: monospace;
    z-index: 999;
    backdrop-filter: blur(5px);
  }
  .bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
  
  .bubble {
    position: absolute;
    bottom: -20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rise linear infinite;
    transform: translateX(var(--drift));
  }
  
  /* Bubble animation */
  @keyframes rise {
    0% {
      transform: translateY(0) translateX(var(--drift));
      opacity: 1;
    }
    100% {
      transform: translateY(-120vh) translateX(var(--drift));
      opacity: 0;
    }
  }
  .glow-creatures {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
  }
  /* Make sure the midnight section can hold absolute elements */
.midnight {
    position: relative;
  }
  
  /* Container for glowing dots */
  .glow-creatures {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  
  /* The glowing dots */
  .glow-dot {
    position: absolute;
    background: rgba(173, 216, 230, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 6px 3px rgba(173, 216, 230, 0.6);
    animation: flicker 2s infinite ease-in-out;
  }
  
  /* Flickering animation */
  @keyframes flicker {
    0%, 100% {
      opacity: 0.2;
      transform: scale(1);
    }
    50% {
      opacity: 1;
      transform: scale(1.4);
    }
  }
  body {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    margin: 0;
  }
  
  .zone {
    scroll-snap-align: start;
    height: 100vh;
    transition: background 1s ease-in-out;
  }
  .surface {
    background: linear-gradient(to bottom, #5ec6f0, #3a90c4);
    color: #fff;
  }
  
  .twilight {
    background: linear-gradient(to bottom, #3a90c4, #1f3d7a);
    color: #dcecff;
  }
  
  .midnight {
    background: linear-gradient(to bottom, #1f3d7a, #0b0c2a);
    color: #d8e4f0;
  }
  
  .abyss {
    background: linear-gradient(to bottom, #0b0c2a, #000000);
    color: #ccc;
  }
  .trench {
    background: linear-gradient(to bottom, #000000, #0a0a23);
    color: #ddd;
  }
  
  .hadal {
    background: linear-gradient(to bottom, #0a0a23, #010101);
    color: #aaa;
  }
  
  .content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
  }
  
  .zone.visible .content {
    opacity: 1;
    transform: translateY(0);
  }
  .content img {
    transition: transform 0.3s ease-in-out;
  }
  
  .content img:hover {
    animation: wiggle 1s infinite ease-in-out;
  }
  
  @keyframes wiggle {
    0%, 100% {
      transform: translateY(0px) rotate(0deg);
    }
    25% {
      transform: translateY(-5px) rotate(-2deg);
    }
    50% {
      transform: translateY(5px) rotate(2deg);
    }
    75% {
      transform: translateY(-3px) rotate(-1deg);
    }
  }
  
  .floating-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(6px);
  }
  
  .floating-nav a {
    color: #00ffff;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }
  
  .floating-nav a:hover {
    color: #fff;
  }
  .info {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    font-size: 0.95em;
    line-height: 1.6;
  }
  
  .info li::before {
    content: "🫧 ";
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .modal-content {
    background: white;
    color: black;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 10px #000;
    font-family: sans-serif;
  }
  
  .close {
    float: right;
    font-size: 1.5em;
    cursor: pointer;
  }

  .zone:not(.visible) {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .zone.visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Remove fade from entire zone */
.zone {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Fade content only */
  .content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .zone.visible .content {
    opacity: 1;
    transform: translateY(0);
  }
  .zone:not(.visible) {
    opacity: 0.5; /* Instead of 0 */
  }
  .content {
    will-change: opacity, transform;
  }

  