@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: linear-gradient(to bottom, #003d4d 0%, #005a6e 30%, #007a8a 60%, #00a0aa 100%);
  font-family: 'Quicksand', sans-serif;
  overflow: hidden;
  min-height: 100vh;
  position: relative;
}

.caustic {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60px 30px at 20% 30%, rgba(0,220,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80px 40px at 60% 15%, rgba(0,200,240,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50px 25px at 80% 50%, rgba(0,230,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 70px 35px at 35% 70%, rgba(0,210,250,0.07) 0%, transparent 70%);
  animation: caustic 6s ease-in-out infinite alternate;
}

@keyframes caustic {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.05); }
}

.bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.3);
  animation: rise linear infinite;
  bottom: -60px;
  z-index: 2;
}

@keyframes rise {
  0%   { transform: translateX(0) translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateX(var(--sway)) translateY(-110vh) scale(0.8); opacity: 0; }
}

.gloss {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(180,240,255,0.1));
  border: 1.5px solid rgba(255,255,255,0.4);
  z-index: 2;
  animation: float-blob ease-in-out infinite alternate;
}

@keyframes float-blob {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(var(--dx), var(--dy)) scale(var(--ds)); }
}

.site-title {
  position: fixed;
  top: 8%;
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 20px rgba(0,220,255,0.8), 0 0 40px rgba(0,200,240,0.4);
  z-index: 10;
}

.subtitle {
  position: fixed;
  top: 16%;
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(180,240,255,0.6);
  z-index: 10;
}

.planet {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 10;
  animation: float 5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.zoomable:hover { transform: scale(1.15) !important; }

.zoomable {
  z-index: 20;
}
.planet img { display: block; }

.planet-label {
  color: rgba(180,240,255,0.8);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  margin-top: 8px;
  opacity: 0.7;
  text-align: center;
}

.zoomable:hover .planet-label {
  opacity: 1;
  color: #fff;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-15px); }
}

.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-center 5s ease-in-out infinite;
}

@keyframes float-center {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-15px); }
}


.water-sim {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  gap: 8px;
}

.sim-label {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(180,240,255,0.5);
  font-family: 'Quicksand', sans-serif;
}

.water-sim canvas {
  border-radius: 50%;
  overflow: hidden;
}

.mirrored img { transform: scaleX(-1); }