 /* Main underwater container */
 .underwater {
    position: relative; /* Set relative positioning so pseudo-elements are positioned inside this div */
    width: 100%;
    background: linear-gradient(135deg, #006994, #003f5c); /* Water gradient */
    box-shadow: inset 0 20px 50px rgba(0, 0, 0, 0.5); /* Depth effect */
    overflow: hidden; /* Prevent overflow from animations */
}

/* Ripple effect */
.underwater::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    animation: ripple 6s infinite linear;
    opacity: 0.5;
    z-index: 1; /* Move it behind the content */
}

/* Bubble effect (optional) */
.bubble {
    position: absolute;
    bottom: -50px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubbles 8s infinite;
    z-index: 3; /* Ensure bubbles are behind the content */
}

/* Randomize bubbles */
.bubble:nth-child(2) {
    left: 20%;
    width: 10px;
    height: 10px;
    animation-duration: 5s;
}
.bubble:nth-child(3) {
    left: 50%;
    width: 15px;
    height: 15px;
    animation-duration: 7s;
}
.bubble:nth-child(4) {
    left: 80%;
    width: 25px;
    height: 25px;
    animation-duration: 10s;
}

/* Animations */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
}

@keyframes bubbles {
    0% {
        bottom: -50px;
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

        /* Pulse effect */
        .initial-red {
            animation: pulse 5s infinite; /* Infinite pulsing */
        }
        
        .pulse-red {
            animation: pulse 1s infinite; /* Infinite pulsing */
        }
        .rapid-red {
            animation: pulse 0.5s infinite; /* Infinite pulsing */
        }

        .full-red {
            background-color: red !important;
        }

        @keyframes pulse {
            0% {
                background-color: #080a0a; /* Default background */
            }
            50% {
                background-color: red; /* Pulse to red */
            }
            100% {
                background-color: #080a0a; /* Back to default */
            }
        }