/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Fade In Delayed */
.fade-in-delay-1 {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 20s linear infinite;
}

/* Underwater Wave Animation */
@keyframes wave {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url(../images/wave.svg) repeat-x;
    animation: wave 10s linear infinite;
    z-index: -1;
}

/* Bubble Animation */
@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) scale(1.2);
        opacity: 0;
    }
}

.bubble {
    position: absolute;
    bottom: -50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: bubble-rise linear infinite;
}

/* Jellyfish Animation */
@keyframes jellyfish-swim {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

.jellyfish {
    position: absolute;
    animation: jellyfish-swim 8s ease-in-out infinite;
    z-index: -1;
}

/* Fish Animation */
@keyframes fish-swim {
    0% {
        transform: translateX(-100px) scaleX(1);
    }
    49% {
        transform: translateX(calc(100vw + 100px)) scaleX(1);
    }
    50% {
        transform: translateX(calc(100vw + 100px)) scaleX(-1);
    }
    99% {
        transform: translateX(-100px) scaleX(-1);
    }
    100% {
        transform: translateX(-100px) scaleX(1);
    }
}

.fish {
    position: absolute;
    top: 20%;
    animation: fish-swim 20s linear infinite;
    z-index: -1;
}

/* Seaweed Animation */
@keyframes seaweed-sway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

.seaweed {
    position: absolute;
    bottom: 0;
    transform-origin: bottom center;
    animation: seaweed-sway 4s ease-in-out infinite;
    z-index: -1;
}