* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000814;
}

.ocean-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    180deg,
    #4a90e2 0%,
    #2c5f8d 30%,
    #1a3d5c 60%,
    #0d1f2d 100%
  );
  overflow: hidden;
  cursor: crosshair;
}

/* ========== SUN RAYS ========== */
.sun-rays {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  pointer-events: none;
  z-index: 1;
}

.ray {
  position: absolute;
  top: -10%;
  width: 100px;
  height: 120%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform-origin: top center;
  opacity: 0.6;
  animation: rayMovement 20s ease-in-out infinite;
  filter: blur(2px);
}

.ray1 {
  left: 10%;
  animation-delay: 0s;
}

.ray2 {
  left: 30%;
  animation-delay: -5s;
}

.ray3 {
  left: 50%;
  animation-delay: -10s;
}

.ray4 {
  left: 70%;
  animation-delay: -15s;
}

.ray5 {
  left: 85%;
  animation-delay: -3s;
}

@keyframes rayMovement {
  0%, 100% {
    transform: rotate(-2deg);
    opacity: 0.4;
  }
  50% {
    transform: rotate(2deg);
    opacity: 0.7;
  }
}

/* ========== WATER SURFACE ========== */
.water-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    180deg,
    rgba(135, 206, 235, 0.4) 0%,
    rgba(100, 149, 237, 0.2) 100%
  );
  z-index: 2;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,50 Q300,0 600,50 T1200,50 L1200,100 L0,100 Z'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  animation: waveMovement 15s linear infinite;
}

@keyframes waveMovement {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* ========== LAYERS (PARALLAX) ========== */
.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  pointer-events: none;
}

.background-layer {
  z-index: 3;
  opacity: 0.5;
  filter: blur(2px);
}

.middle-layer {
  z-index: 5;
  opacity: 0.8;
}

.foreground-layer {
  z-index: 10;
  filter: blur(1px);
}

/* ========== CORAL ========== */
.coral {
  position: absolute;
  bottom: 0;
}

.coral1 {
  left: 15%;
  width: 80px;
  height: 120px;
  background: linear-gradient(
    45deg,
    #ff6b9d 0%,
    #c44569 100%
  );
  border-radius: 50% 50% 0 0;
  opacity: 0.7;
}

.coral1::before,
.coral1::after {
  content: '';
  position: absolute;
  bottom: 0;
  background: linear-gradient(
    45deg,
    #ff6b9d 0%,
    #c44569 100%
  );
  border-radius: 50% 50% 0 0;
}

.coral1::before {
  left: -30px;
  width: 50px;
  height: 90px;
}

.coral1::after {
  right: -25px;
  width: 40px;
  height: 100px;
}

.coral2 {
  right: 20%;
  width: 60px;
  height: 100px;
  background: linear-gradient(
    45deg,
    #ffa07a 0%,
    #ff6347 100%
  );
  border-radius: 50% 50% 0 0;
  opacity: 0.6;
}

.coral2::before {
  content: '';
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 35px;
  height: 70px;
  background: linear-gradient(
    45deg,
    #ffa07a 0%,
    #ff6347 100%
  );
  border-radius: 50% 50% 0 0;
}

/* ========== SEAWEED ========== */
.seaweed {
  position: absolute;
  bottom: 0;
}

.seaweed1 {
  left: 25%;
}

.seaweed2 {
  left: 65%;
}

.seaweed3 {
  left: 10%;
}

.blade {
  width: 15px;
  height: 150px;
  background: linear-gradient(
    90deg,
    #2d5016 0%,
    #4a7c2c 50%,
    #2d5016 100%
  );
  border-radius: 50% 50% 0 0;
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  animation: seaweedSway 4s ease-in-out infinite;
}

.seaweed3 .blade {
  height: 200px;
  width: 18px;
}

.blade:nth-child(1) {
  left: 0;
  animation-delay: 0s;
}

.blade:nth-child(2) {
  left: 15px;
  height: 130px;
  animation-delay: -1s;
}

.blade:nth-child(3) {
  left: 30px;
  height: 140px;
  animation-delay: -2s;
}

.blade:nth-child(4) {
  left: 45px;
  height: 180px;
  animation-delay: -3s;
}

@keyframes seaweedSway {
  0%, 100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

/* ========== ROCKS ========== */
.rock {
  position: absolute;
  bottom: 0;
  background: linear-gradient(
    135deg,
    #5a5a5a 0%,
    #3a3a3a 100%
  );
  border-radius: 50% 50% 0 0;
}

.rock1 {
  left: 40%;
  width: 100px;
  height: 60px;
}

.rock2 {
  left: 75%;
  width: 80px;
  height: 50px;
}

.rock3 {
  left: 5%;
  width: 120px;
  height: 70px;
  opacity: 0.9;
}

/* ========== FISH ========== */
.fish-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 7;
}

.fish {
  position: absolute;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease-out;
}

.fish-body {
  position: relative;
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
  border-radius: 50% 20% 20% 50%;
  border: 3px solid #d94a1a;
  z-index: 2;
}

.fish2 .fish-body {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-color: #0288d1;
}

.fish3 .fish-body {
  background: linear-gradient(135deg, #ffd93d 0%, #ffb800 100%);
  border-color: #f57f17;
}

.eye {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  top: 12px;
  left: 12px;
  border: 2px solid #000;
}

.eye::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: #000;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fin {
  position: absolute;
  width: 20px;
  height: 15px;
  background: linear-gradient(135deg, rgba(255, 154, 86, 0.7) 0%, rgba(255, 107, 53, 0.7) 100%);
  border-radius: 50%;
  border: 2px solid #d94a1a;
}

.fish2 .fin {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.7) 0%, rgba(0, 242, 254, 0.7) 100%);
  border-color: #0288d1;
}

.fish3 .fin {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.7) 0%, rgba(255, 184, 0, 0.7) 100%);
  border-color: #f57f17;
}

.top-fin {
  top: -8px;
  right: 15px;
  animation: finWave 1.5s ease-in-out infinite;
}

.bottom-fin {
  bottom: -8px;
  right: 20px;
  animation: finWave 1.5s ease-in-out infinite;
  animation-delay: -0.75s;
}

@keyframes finWave {
  0%, 100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

.tail {
  position: relative;
  margin-left: -5px;
  z-index: 1;
}

.tail-fin {
  width: 0;
  height: 0;
  border-left: 25px solid #ff6b35;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  animation: tailWag 0.8s ease-in-out infinite;
}

.fish2 .tail-fin {
  border-left-color: #00f2fe;
}

.fish3 .tail-fin {
  border-left-color: #ffb800;
}

@keyframes tailWag {
  0%, 100% {
    transform: skewY(-5deg);
  }
  50% {
    transform: skewY(5deg);
  }
}

/* Fish positions and sizes */
.fish1 {
  top: 30%;
  left: 20%;
  transform: scale(1);
}

.fish2 {
  top: 50%;
  left: 60%;
  transform: scale(0.8);
}

.fish3 {
  top: 65%;
  left: 40%;
  transform: scale(1.1);
}

/* ========== BUBBLES ========== */
.bubbles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5),
              0 0 10px rgba(255, 255, 255, 0.3);
  animation: bubbleRise linear forwards;
  opacity: 0;
}

@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0);
  }
  10% {
    opacity: 1;
    transform: translateY(-50px) translateX(5px) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(var(--drift)) scale(0.5);
  }
}

/* ========== INFO TEXT ========== */
.info-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 25px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  animation: infoFade 3s ease-in-out infinite;
}

.info-text p {
  margin: 5px 0;
}

@keyframes infoFade {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .fish-body {
    width: 45px;
    height: 30px;
  }
  
  .info-text {
    font-size: 12px;
    padding: 10px 15px;
  }
  
  .seaweed3 .blade {
    height: 150px;
  }
}