/* ===== SCENE WRAPPER ===== */
.water-scene {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #00132b;
    z-index: -1;
    pointer-events: none;
}

/* ===== BUBBLE LAYER ===== */
.bubble-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Base bubble */
.bubble {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    border: 2px solid rgba(0,200,255,0.5);
    opacity: 0; /* start invisible */
    animation: bubbleFloat linear infinite;
    will-change: transform, opacity;
}

/* Depth sizing */
.bubble.far  { width: 6px;  height: 6px;  animation-duration: 14s; }
.bubble.mid  { width: 10px; height: 10px; animation-duration: 11s; }
.bubble.near { width: 14px; height: 14px; animation-duration: 8s; }

/* Smooth fade + float */
@keyframes bubbleFloat {

    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 0;
    }

    20% {
        opacity: 0.7;
    }

    85% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-130vh);
        opacity: 0;
    }
}



/* ===== SUN RAYS ===== */
.sun-rays {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Base ray style */
.ray {
    position: absolute;
    top: -20%;
    height: 160%;
    filter: blur(40px);
    opacity: 0.6;
}

/* Main beam */
.ray.main {
    left: 35%;
    width: 280px;
    background: linear-gradient(
        to bottom,
        rgba(0,255,255,0.6),
        rgba(0,255,255,0.3) 40%,
        rgba(0,255,255,0.1) 70%,
        transparent 90%
    );
    transform: rotate(6deg);
    animation: driftMain 20s ease-in-out infinite alternate;
}

/* Softer side beams */
.ray.side {
    width: 140px;
    background: linear-gradient(
        to bottom,
        rgba(0,255,255,0.4),
        rgba(0,255,255,0.15) 50%,
        transparent 85%
    );
}

.ray.r1 {
    left: 65%;
    transform: rotate(10deg);
    opacity: 0.4;
    animation: driftSide 16s ease-in-out infinite alternate;
}

.ray.r2 {
    left: 78%;
    transform: rotate(14deg);
    opacity: 0.35;
    animation: driftSide 18s ease-in-out infinite alternate;
}

/* Gentle organic drift */
@keyframes driftMain {
    0%   { transform: rotate(6deg) translateX(0); }
    100% { transform: rotate(6deg) translateX(15px); }
}

@keyframes driftSide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(20px); }
}