/* ========================================
   Advanced Animations & Effects
   استكشاف البحار - Marine Exploration
   ======================================== */

/* ===== AUV Icon SVG ===== */

.auv-icon-svg {
    filter: drop-shadow(0 0 20px rgba(144, 224, 239, 0.4));
    animation: auvFloat 4s ease-in-out infinite;
}

@keyframes auvFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-4px) translateX(2px); }
    50% { transform: translateY(0) translateX(4px); }
    75% { transform: translateY(4px) translateX(2px); }
}

/* Propeller spin */
.turbine-blades {
    transform-origin: 0px 0px;
    animation: spinTurbine 1.5s linear infinite;
}

@keyframes spinTurbine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Light beam pulse */
.auv-light-beam {
    animation: lightPulse 2.5s ease-in-out infinite;
}

@keyframes lightPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}

/* Bubbles floating up */
.turbine-bubble {
    animation: turbineBubbleFloat 3s ease-in-out infinite;
}
.turbine-bubble.tb-1 { animation-delay: 0s; }
.turbine-bubble.tb-2 { animation-delay: 1s; }
.turbine-bubble.tb-3 { animation-delay: 2s; }

@keyframes turbineBubbleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-15px) scale(1.3); opacity: 0.25; }
    100% { transform: translateY(-30px) scale(0.6); opacity: 0; }
}

/* ===== Keyframe Animations ===== */

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Wave Animations */
@keyframes waveAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes oceanWave {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(10px) translateY(-10px);
    }
    50% {
        transform: translateX(0) translateY(-20px);
    }
    75% {
        transform: translateX(-10px) translateY(-10px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(3deg);
    }
}

/* Rotate Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* Shine Effect */
@keyframes shine {
    0% {
        background-position: -200%;
    }
    100% {
        background-position: 200%;
    }
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Blur Animation */
@keyframes blurIn {
    from {
        filter: blur(10px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Slide Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Text Animations */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Underwater Bubble Animation */
@keyframes bubble {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1.2);
        opacity: 0;
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== Animation Classes ===== */

/* Fade Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease-out;
}

/* Delays */
.delay-1 { animation-delay: 0.1s !important; animation-fill-mode: backwards; }
.delay-2 { animation-delay: 0.2s !important; animation-fill-mode: backwards; }
.delay-3 { animation-delay: 0.3s !important; animation-fill-mode: backwards; }
.delay-4 { animation-delay: 0.4s !important; animation-fill-mode: backwards; }
.delay-5 { animation-delay: 0.5s !important; animation-fill-mode: backwards; }
.delay-6 { animation-delay: 0.6s !important; animation-fill-mode: backwards; }
.delay-7 { animation-delay: 0.7s !important; animation-fill-mode: backwards; }
.delay-8 { animation-delay: 0.8s !important; animation-fill-mode: backwards; }

/* Scale Animation */
.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
}

/* Pulse */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Float */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 4s ease-in-out infinite;
}

/* Rotate */
.animate-rotate {
    animation: rotate 20s linear infinite;
}

.animate-rotate-reverse {
    animation: rotateReverse 15s linear infinite;
}

/* Wave */
.animate-wave {
    animation: waveAnimation 3s ease-in-out infinite;
}

.animate-ocean-wave {
    animation: oceanWave 4s ease-in-out infinite;
}

/* Blur In */
.animate-blur-in {
    animation: blurIn 1.5s ease-out;
}

/* ===== Video Background Styles ===== */

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 119, 182, 0.7) 0%,
        rgba(0, 119, 182, 0.5) 50%,
        rgba(0, 119, 182, 0.8) 100%
    );
    z-index: 1;
}

/* Video Overlay Patterns */
.video-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    z-index: 2;
    pointer-events: none;
}

/* ===== Underwater Effects ===== */

.underwater-effect {
    position: relative;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    animation: bubble linear infinite;
    pointer-events: none;
}

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

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

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

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

.bubble:nth-child(5) {
    left: 75%;
    width: 35px;
    height: 35px;
    animation-duration: 8.5s;
    animation-delay: 1.5s;
}

.bubble:nth-child(6) {
    left: 90%;
    width: 20px;
    height: 20px;
    animation-duration: 7.5s;
    animation-delay: 2.5s;
}

/* ===== Hover Effects ===== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 119, 182, 0.3);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.6);
    transform: scale(1.02);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.hover-shine:hover::before {
    left: 100%;
}

/* ===== Loading Animation ===== */

.loading-wave {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.loading-wave:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid var(--accent-teal);
    border-color: var(--accent-teal) transparent var(--accent-teal) transparent;
    animation: rotate 1.2s linear infinite;
}

/* ===== Particle Effect ===== */

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

/* ===== Scroll Reveal Animations ===== */

.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.85);
}

.reveal.active.reveal-left,
.reveal.active.reveal-right {
    transform: translateX(0);
}

.reveal.active.reveal-scale {
    transform: scale(1);
}

/* ===== Text Effects ===== */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-animated-gradient {
    background: linear-gradient(
        90deg,
        var(--accent-teal),
        var(--light-blue),
        var(--accent-teal)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.text-shadow-glow {
    text-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

/* ===== Button Ripple Effect ===== */

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ===== Performance Optimization ===== */

.will-animate {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Fish Swimming Animations ===== */

@keyframes swim {
    0%, 100% {
        transform: translateX(0) translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateX(30px) translateY(-15px) rotateY(10deg);
    }
    50% {
        transform: translateX(60px) translateY(0) rotateY(0deg);
    }
    75% {
        transform: translateX(30px) translateY(15px) rotateY(-10deg);
    }
}

@keyframes swimAcross {
    0% {
        left: -10%;
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        left: 110%;
        opacity: 0;
    }
}

@keyframes swimVertical {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-40px) translateX(20px);
    }
}

.fish {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.5));
    z-index: 5;
}

.fish:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: swim 12s ease-in-out infinite, swimAcross 25s linear infinite;
}

.fish:nth-child(2) {
    top: 40%;
    left: -10%;
    font-size: 1.5rem;
    animation: swim 15s ease-in-out infinite 2s, swimAcross 30s linear infinite;
}

.fish:nth-child(3) {
    top: 60%;
    left: -15%;
    font-size: 2.5rem;
    animation: swim 10s ease-in-out infinite 4s, swimAcross 35s linear infinite;
}

.fish:nth-child(4) {
    top: 80%;
    left: 50%;
    font-size: 1.8rem;
    animation: swimVertical 8s ease-in-out infinite;
}

/* ===== Depth Particles ===== */

@keyframes depthParticle {
    0% {
        transform: translateY(-100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(50px) scale(1);
        opacity: 0;
    }
}

.depth-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.depth-particle:nth-child(odd) {
    animation: depthParticle linear infinite;
}

.depth-particle:nth-child(even) {
    animation: depthParticle linear infinite reverse;
}

/* Specific particle variations */
.depth-particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.depth-particle:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 2s; }
.depth-particle:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: 4s; }
.depth-particle:nth-child(4) { left: 40%; animation-duration: 20s; animation-delay: 1s; }
.depth-particle:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: 3s; }
.depth-particle:nth-child(6) { left: 60%; animation-duration: 14s; animation-delay: 5s; }
.depth-particle:nth-child(7) { left: 70%; animation-duration: 19s; animation-delay: 2.5s; }
.depth-particle:nth-child(8) { left: 80%; animation-duration: 13s; animation-delay: 4.5s; }
.depth-particle:nth-child(9) { left: 90%; animation-duration: 17s; animation-delay: 1.5s; }
.depth-particle:nth-child(10) { left: 95%; animation-duration: 15s; animation-delay: 3.5s; }

/* ===== Ocean Rays ===== */

@keyframes oceanRay {
    0%, 100% {
        opacity: 0.1;
        transform: translateY(0) scaleY(1);
    }
    50% {
        opacity: 0.3;
        transform: translateY(20px) scaleY(1.1);
    }
}

.ocean-ray {
    position: absolute;
    top: -50px;
    width: 100px;
    height: 120%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%);
    opacity: 0.2;
    pointer-events: none;
    z-index: 2;
    filter: blur(20px);
}

.ocean-ray:nth-child(1) {
    left: 10%;
    animation: oceanRay 8s ease-in-out infinite;
}

.ocean-ray:nth-child(2) {
    left: 30%;
    animation: oceanRay 10s ease-in-out infinite 2s;
}

.ocean-ray:nth-child(3) {
    left: 50%;
    animation: oceanRay 12s ease-in-out infinite 4s;
}

.ocean-ray:nth-child(4) {
    left: 70%;
    animation: oceanRay 9s ease-in-out infinite 1s;
}

.ocean-ray:nth-child(5) {
    left: 90%;
    animation: oceanRay 11s ease-in-out infinite 3s;
}

/* ===== Parallax Effect ===== */

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.parallax-slow {
    transform: translateZ(-1px) scale(2);
}

.parallax-medium {
    transform: translateZ(-2px) scale(3);
}

.parallax-fast {
    transform: translateZ(-3px) scale(4);
}

/* ===== Enhanced Video Overlay ===== */

.video-depth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(72, 202, 228, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 119, 182, 0.2) 0%, transparent 50%);
    z-index: 4;
    pointer-events: none;
    animation: depthShift 20s ease-in-out infinite;
}

@keyframes depthShift {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ===== Advanced Diving Experience Effects ===== */

/* Water Caustics Effect */
@keyframes caustics {
    0%, 100% {
        background-position: 0% 0%, 50% 50%, 100% 100%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 50% 50%;
    }
}

.water-caustics {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.15;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(72, 202, 228, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 70%, rgba(0, 180, 216, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 180, 216, 0.2) 0%, transparent 50%);
    background-size: 200% 200%, 300% 300%, 250% 250%;
    animation: caustics 20s ease-in-out infinite;
    filter: blur(40px);
}

/* Underwater Distortion Effect */
@keyframes underwaterWave {
    0%, 100% {
        transform: translateX(0) translateY(0);
        filter: blur(0px);
    }
    25% {
        transform: translateX(2px) translateY(-2px);
        filter: blur(0.5px);
    }
    50% {
        transform: translateX(-2px) translateY(2px);
        filter: blur(0.3px);
    }
    75% {
        transform: translateX(2px) translateY(2px);
        filter: blur(0.5px);
    }
}

.underwater-distortion {
    animation: underwaterWave 8s ease-in-out infinite;
}

/* Scroll-based Diving Depth */
@keyframes divingDeeper {
    0% {
        filter: brightness(1) contrast(1);
    }
    100% {
        filter: brightness(0.7) contrast(1.2) hue-rotate(10deg);
    }
}

/* Advanced Bubble Trail */
.bubble-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: bubbleTrail 3s ease-out forwards;
}

@keyframes bubbleTrail {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) translateX(20px) scale(0.3);
        opacity: 0;
    }
}

/* Floating Plankton Particles */
@keyframes planktonFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(10px, -20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-5px, -40px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(15px, -60px) rotate(270deg);
        opacity: 0.5;
    }
}

.plankton {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 180, 216, 0.6);
    pointer-events: none;
}

.plankton:nth-child(odd) {
    animation: planktonFloat 15s ease-in-out infinite;
}

.plankton:nth-child(even) {
    animation: planktonFloat 20s ease-in-out infinite reverse;
}

/* Bioluminescent Glow Effect */
@keyframes bioluminescence {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 180, 216, 0.3),
                    0 0 20px rgba(72, 202, 228, 0.2),
                    0 0 30px rgba(0, 180, 216, 0.1);
        opacity: 0.6;
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 180, 216, 0.5),
                    0 0 40px rgba(72, 202, 228, 0.4),
                    0 0 60px rgba(0, 180, 216, 0.3);
        opacity: 1;
    }
}

.bioluminescent {
    animation: bioluminescence 4s ease-in-out infinite;
}

/* Kelp/Seaweed Swaying */
@keyframes kelpSway {
    0%, 100% {
        transform: rotate(-3deg) translateX(0);
    }
    50% {
        transform: rotate(3deg) translateX(10px);
    }
}

.kelp {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 200px;
    background: linear-gradient(to top,
        rgba(14, 124, 123, 0.6) 0%,
        rgba(14, 124, 123, 0.4) 50%,
        transparent 100%);
    transform-origin: bottom center;
    animation: kelpSway 8s ease-in-out infinite;
    pointer-events: none;
    filter: blur(1px);
}

.kelp:nth-child(1) { left: 10%; animation-delay: 0s; }
.kelp:nth-child(2) { left: 25%; animation-delay: 1s; height: 250px; }
.kelp:nth-child(3) { left: 40%; animation-delay: 2s; height: 180px; }
.kelp:nth-child(4) { left: 60%; animation-delay: 1.5s; height: 220px; }
.kelp:nth-child(5) { left: 75%; animation-delay: 0.5s; }
.kelp:nth-child(6) { left: 90%; animation-delay: 2.5s; height: 190px; }

/* Pressure Vignette (deeper you go) */
.pressure-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 20, 40, 0.3) 70%,
        rgba(0, 10, 30, 0.6) 100%);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 2s ease;
}

.pressure-vignette.active {
    opacity: 1;
}

/* Air Bubbles from Diving */
.diving-bubbles {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    animation: divingBubbleRise linear infinite;
    pointer-events: none;
}

@keyframes divingBubbleRise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) translateX(30px) scale(1.5);
        opacity: 0;
    }
}

.diving-bubbles:nth-child(1) { left: 20%; width: 15px; height: 15px; animation-duration: 8s; }
.diving-bubbles:nth-child(2) { left: 40%; width: 10px; height: 10px; animation-duration: 10s; animation-delay: 2s; }
.diving-bubbles:nth-child(3) { left: 60%; width: 12px; height: 12px; animation-duration: 9s; animation-delay: 4s; }
.diving-bubbles:nth-child(4) { left: 80%; width: 8px; height: 8px; animation-duration: 11s; animation-delay: 1s; }

/* Intro Screen Fade Animation */
@keyframes introFade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ===== Responsive Adjustments ===== */

@media (max-width: 768px) {
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation-name: fadeInUp;
    }

    .bubble {
        width: 20px !important;
        height: 20px !important;
    }

    .fish {
        font-size: 1.5rem !important;
    }

    .ocean-ray {
        width: 60px;
    }

    .depth-particle {
        display: none;
    }

    .kelp {
        display: none;
    }

    .water-caustics {
        opacity: 0.08;
    }
}

/* ===== Ocean Illustration SVG Animations ===== */

/* Vision Card - Lighthouse Animations */
.lighthouse-pulse {
    animation: lighthousePulse 3s ease-in-out infinite;
}

@keyframes lighthousePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.light-ray {
    transform-origin: center;
    animation: rayFlash 4s ease-in-out infinite;
}

.light-ray.ray-1 { animation-delay: 0s; }
.light-ray.ray-2 { animation-delay: 0.5s; }
.light-ray.ray-3 { animation-delay: 1s; }

@keyframes rayFlash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.bird {
    animation: birdFly 8s ease-in-out infinite;
}

.bird-1 { animation-delay: 0s; }
.bird-2 { animation-delay: 2s; }

@keyframes birdFly {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(20px) translateY(-10px); }
}

/* Vision Card - Wave Animations */
.wave1, .wave2, .wave3 {
    animation: waveFloat 6s ease-in-out infinite;
}

.wave1 { animation-delay: 0s; }
.wave2 { animation-delay: 0.7s; }
.wave3 { animation-delay: 1.4s; }

@keyframes waveFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Mission Card - Submarine Animations */
.submarine {
    animation: submarineMove 8s ease-in-out infinite;
}

@keyframes submarineMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(10px) translateY(-8px); }
}

.float-bubble {
    animation: bubbleFloat 6s ease-in-out infinite;
}

.b1 { animation-delay: 0s; }
.b2 { animation-delay: 1s; }
.b3 { animation-delay: 2s; }
.b4 { animation-delay: 3s; }

@keyframes bubbleFloat {
    0% { transform: translateY(0); opacity: 0.6; }
    100% { transform: translateY(-150px); opacity: 0; }
}

.swimming-fish {
    animation: fishSwim 10s ease-in-out infinite;
}

.fish-1 { animation-delay: 0s; }
.fish-2 { animation-delay: 2s; }

@keyframes fishSwim {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(5px); }
    50% { transform: translateX(0) translateY(-5px); }
    75% { transform: translateX(20px) translateY(5px); }
}

/* Values Card - Coral Reef Animations */
.coral-reef path {
    animation: coralSway 8s ease-in-out infinite;
}

.coral-reef path:nth-child(1) { animation-delay: 0s; }
.coral-reef path:nth-child(3) { animation-delay: 1s; }
.coral-reef path:nth-child(5) { animation-delay: 2s; }

@keyframes coralSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

.starfish {
    animation: starfishRotate 20s linear infinite;
}

@keyframes starfishRotate {
    0% { transform: translate(150px, 150px) rotate(0deg); }
    100% { transform: translate(150px, 150px) rotate(360deg); }
}

.seaweed {
    animation: seaweedSway 6s ease-in-out infinite;
}

.sw-1 { animation-delay: 0s; }
.sw-2 { animation-delay: 1s; }

@keyframes seaweedSway {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(5deg); }
}

.school-fish {
    animation: schoolSwim 15s ease-in-out infinite;
}

.sf-1 { animation-delay: 0s; }
.sf-2 { animation-delay: 0.5s; }
.sf-3 { animation-delay: 1s; }
.sf-4 { animation-delay: 1.5s; }

@keyframes schoolSwim {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(0, -40px); }
    75% { transform: translate(-30px, -20px); }
}

/* Stats Illustrations Animations */

/* Ship Stats Animation */
.wave-anim {
    animation: waveMove 4s ease-in-out infinite;
}

.wave-anim-2 {
    animation: waveMove 4s ease-in-out infinite 0.5s;
}

@keyframes waveMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.flag-wave {
    animation: flagFlutter 2s ease-in-out infinite;
}

@keyframes flagFlutter {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* Anchor Stats Animation */
.anchor-rope {
    transform-origin: top;
    animation: ropeSwing 4s ease-in-out infinite;
}

@keyframes ropeSwing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

.water-ripple {
    animation: rippleGrow 3s ease-out infinite;
}

.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 1s; }
.ripple-3 { animation-delay: 2s; }

@keyframes rippleGrow {
    0% { r: 10; opacity: 0.6; }
    100% { r: 50; opacity: 0; }
}

/* Trophy Stats Animation */
.trophy-star {
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Compass Stats Animation */
.compass-needle {
    transform-origin: center;
    animation: needleSpin 8s linear infinite;
}

@keyframes needleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.compass-bubble {
    animation: compassBubbleFloat 5s ease-in-out infinite;
}

.cb-1 { animation-delay: 0s; }
.cb-2 { animation-delay: 1s; }
.cb-3 { animation-delay: 2s; }

@keyframes compassBubbleFloat {
    0% { transform: translateY(0); opacity: 0.5; }
    100% { transform: translateY(-80px); opacity: 0; }
}

/* ===== New Ocean Drawings Animations ===== */

/* Light Pulse Animation */
.light-pulse {
    animation: lightPulse 2s ease-in-out infinite;
}

@keyframes lightPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Wave Decoration */
.wave-dec {
    animation: waveDec 4s ease-in-out infinite;
}

@keyframes waveDec {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Float Bubble (for cards) */
.float-bubble {
    animation: floatBubble 8s ease-in-out infinite;
}

@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(0, -20px); opacity: 0.2; }
}
