/* YessFish Ocean Animation - Complete Underwater Experience */
/* Add this to every page for swimming fish, bubbles, and wave effects */

.ocean-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(14, 165, 233, 0.1) 0%,    /* Ocean surface */
        rgba(6, 182, 212, 0.15) 30%,   /* Shallow water */
        rgba(8, 145, 178, 0.2) 70%,    /* Deeper water */
        rgba(12, 74, 110, 0.25) 100%   /* Deep ocean */
    );
    pointer-events: none;
    z-index: -10;
    overflow: hidden;
}

/* Swimming Fish Animations */
.fish {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.4;
    pointer-events: none;
    z-index: -9;
}

.fish-1 {
    content: '🐟';
    animation: swim1 20s linear infinite;
    top: 15%;
    color: var(--ocean-400);
}

.fish-2 {
    content: '🐠';
    animation: swim2 25s linear infinite;
    top: 40%;
    color: var(--deep-500);
    animation-delay: -5s;
}

.fish-3 {
    content: '🐡'; 
    animation: swim3 30s linear infinite;
    top: 65%;
    color: var(--coral-400);
    animation-delay: -10s;
}

.fish-4 {
    content: '🐟';
    animation: swim4 22s linear infinite;
    top: 80%;
    color: var(--ocean-600);
    animation-delay: -15s;
    transform: scaleX(-1); /* Swimming in opposite direction */
}

.fish-5 {
    content: '🦈';
    animation: swim5 35s linear infinite;
    top: 25%;
    color: var(--deep-700);
    animation-delay: -20s;
    font-size: 2rem;
}

/* Swimming animations */
@keyframes swim1 {
    0% {
        left: -50px;
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    50% {
        transform: translateY(5px) rotate(2deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
    100% {
        left: calc(100% + 50px);
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes swim2 {
    0% {
        left: -60px;
        transform: translateY(0px) rotate(0deg) scaleX(-1);
    }
    30% {
        transform: translateY(15px) rotate(3deg) scaleX(-1);
    }
    60% {
        transform: translateY(-8px) rotate(-4deg) scaleX(-1);
    }
    100% {
        left: calc(100% + 60px);
        transform: translateY(0px) rotate(0deg) scaleX(-1);
    }
}

@keyframes swim3 {
    0% {
        left: -40px;
        transform: translateY(0px) rotate(0deg);
    }
    20% {
        transform: translateY(-12px) rotate(-3deg);
    }
    40% {
        transform: translateY(8px) rotate(4deg);
    }
    60% {
        transform: translateY(-6px) rotate(-2deg);
    }
    80% {
        transform: translateY(10px) rotate(3deg);
    }
    100% {
        left: calc(100% + 40px);
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes swim4 {
    0% {
        left: calc(100% + 50px);
        transform: translateY(0px) rotate(0deg) scaleX(-1);
    }
    25% {
        transform: translateY(8px) rotate(2deg) scaleX(-1);
    }
    50% {
        transform: translateY(-12px) rotate(-3deg) scaleX(-1);
    }
    75% {
        transform: translateY(6px) rotate(2deg) scaleX(-1);
    }
    100% {
        left: -50px;
        transform: translateY(0px) rotate(0deg) scaleX(-1);
    }
}

@keyframes swim5 {
    0% {
        left: -80px;
        transform: translateY(0px) rotate(0deg);
    }
    20% {
        transform: translateY(-20px) rotate(-2deg);
    }
    40% {
        transform: translateY(15px) rotate(3deg);
    }
    60% {
        transform: translateY(-10px) rotate(-1deg);
    }
    80% {
        transform: translateY(18px) rotate(2deg);
    }
    100% {
        left: calc(100% + 80px);
        transform: translateY(0px) rotate(0deg);
    }
}

/* Enhanced Bubble Effects */
.ocean-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -8;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.8), 
        rgba(14, 165, 233, 0.3));
    animation: bubbleFloat linear infinite;
    opacity: 0;
}

.bubble:nth-child(1) {
    width: 8px;
    height: 8px;
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 12px;
    height: 12px;
    left: 25%;
    animation-duration: 10s;
    animation-delay: -2s;
}

.bubble:nth-child(3) {
    width: 6px;
    height: 6px;
    left: 40%;
    animation-duration: 6s;
    animation-delay: -4s;
}

.bubble:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 60%;
    animation-duration: 9s;
    animation-delay: -1s;
}

.bubble:nth-child(5) {
    width: 14px;
    height: 14px;
    left: 75%;
    animation-duration: 11s;
    animation-delay: -3s;
}

.bubble:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 85%;
    animation-duration: 7s;
    animation-delay: -5s;
}

@keyframes bubbleFloat {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateX(0px) scale(0.5);
    }
    10% {
        opacity: 0.8;
        transform: translateX(-10px) scale(0.8);
    }
    20% {
        transform: translateX(10px) scale(1);
    }
    30% {
        transform: translateX(-5px) scale(0.9);
    }
    40% {
        transform: translateX(15px) scale(1.1);
    }
    50% {
        transform: translateX(-8px) scale(1);
        opacity: 0.6;
    }
    60% {
        transform: translateX(12px) scale(0.8);
    }
    70% {
        transform: translateX(-6px) scale(1.2);
    }
    80% {
        transform: translateX(8px) scale(0.9);
        opacity: 0.4;
    }
    90% {
        transform: translateX(-4px) scale(0.7);
        opacity: 0.2;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(0px) scale(0.3);
    }
}

/* Wave effect overlay */
.wave-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, transparent 60%, rgba(14, 165, 233, 0.05) 100%),
        linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.03) 100%);
    pointer-events: none;
    z-index: -7;
    animation: waveShimmer 8s ease-in-out infinite;
}

@keyframes waveShimmer {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Seaweed animation (optional decorative element) */
.seaweed {
    position: fixed;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to top, var(--ocean-700), transparent);
    pointer-events: none;
    z-index: -6;
    transform-origin: bottom;
    animation: seaweedSway 4s ease-in-out infinite;
}

.seaweed:nth-child(1) {
    left: 5%;
    height: 15vh;
    animation-delay: 0s;
}

.seaweed:nth-child(2) {
    left: 20%;
    height: 12vh;
    animation-delay: -1s;
}

.seaweed:nth-child(3) {
    left: 80%;
    height: 18vh;
    animation-delay: -2s;
}

.seaweed:nth-child(4) {
    left: 95%;
    height: 10vh;
    animation-delay: -3s;
}

@keyframes seaweedSway {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .fish {
        font-size: 1.2rem;
    }
    
    .fish-5 {
        font-size: 1.5rem;
    }
    
    .bubble {
        transform: scale(0.8);
    }
    
    .seaweed {
        display: none; /* Hide seaweed on mobile for performance */
    }
}