/* Ocean and Wave Effects for Yacht Charter Website */

/* Advanced Wave Animation */
.ocean-waves {
    position: relative;
    overflow: hidden;
}

.ocean-waves::before,
.ocean-waves::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100'%3E%3Cpath d='M0,50 Q250,0 500,50 T1000,50 L1000,100 L0,100 Z' fill='%23bae6fd' opacity='0.6'/%3E%3C/svg%3E") repeat-x;
    animation: wave-movement 15s infinite linear;
}

.ocean-waves::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100'%3E%3Cpath d='M0,60 Q250,20 500,60 T1000,60 L1000,100 L0,100 Z' fill='%230ea5e9' opacity='0.4'/%3E%3C/svg%3E") repeat-x;
    animation: wave-movement 20s infinite linear reverse;
    height: 80px;
}

@keyframes wave-movement {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating Boat Animation */
.floating-boat {
    animation: boat-float 8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes boat-float {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-20px) rotate(1deg); }
}

/* Water Splash Effect */
.water-splash {
    position: relative;
    overflow: hidden;
}

.water-splash::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: splash-expand 2s ease-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes splash-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Seagull Flight Animation */
.seagull-flight {
    position: absolute;
    animation: fly-across 25s linear infinite;
    opacity: 0.7;
}

@keyframes fly-across {
    0% {
        transform: translateX(-100px) translateY(50px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(20px);
        opacity: 0;
    }
}

/* Underwater Bubble Trail */
.bubble-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bubble-trail .bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: bubble-rise 12s infinite ease-in;
}

.bubble-trail .bubble:nth-child(1) { left: 10%; animation-delay: 0s; width: 15px; height: 15px; }
.bubble-trail .bubble:nth-child(2) { left: 20%; animation-delay: 2s; width: 20px; height: 20px; }
.bubble-trail .bubble:nth-child(3) { left: 35%; animation-delay: 4s; width: 12px; height: 12px; }
.bubble-trail .bubble:nth-child(4) { left: 50%; animation-delay: 6s; width: 18px; height: 18px; }
.bubble-trail .bubble:nth-child(5) { left: 65%; animation-delay: 8s; width: 16px; height: 16px; }
.bubble-trail .bubble:nth-child(6) { left: 80%; animation-delay: 10s; width: 14px; height: 14px; }

@keyframes bubble-rise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.2);
        opacity: 0;
    }
}

/* Ocean Ripple on Hover */
.ocean-ripple-hover {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ocean-ripple-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.ocean-ripple-hover:hover::after {
    width: 300px;
    height: 300px;
}

/* Ship Wake Effect */
.ship-wake {
    position: relative;
}

.ship-wake::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.6), transparent);
    transform: translateY(-50%);
    animation: wake-expand 3s ease-out infinite;
}

@keyframes wake-expand {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

/* Lighthouse Beam Effect */
.lighthouse-beam {
    position: relative;
    overflow: hidden;
}

.lighthouse-beam::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: lighthouse-sweep 8s ease-in-out infinite;
    transform: skewX(-20deg);
}

@keyframes lighthouse-sweep {
    0%, 20% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Tidal Animation */
.tidal-effect {
    animation: tidal-motion 6s ease-in-out infinite;
}

@keyframes tidal-motion {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.02) translateY(-5px);
    }
}

/* Compass Rotation */
.compass-spin {
    animation: compass-rotate 20s linear infinite;
}

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

/* Ocean Foam Effect */
.ocean-foam {
    position: relative;
}

.ocean-foam::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Ccircle cx='10' cy='10' r='3' fill='white' opacity='0.7'/%3E%3Ccircle cx='25' cy='15' r='2' fill='white' opacity='0.5'/%3E%3Ccircle cx='40' cy='8' r='4' fill='white' opacity='0.6'/%3E%3Ccircle cx='60' cy='12' r='2.5' fill='white' opacity='0.8'/%3E%3Ccircle cx='80' cy='6' r='3.5' fill='white' opacity='0.4'/%3E%3Ccircle cx='90' cy='16' r='2' fill='white' opacity='0.7'/%3E%3C/svg%3E") repeat-x;
    animation: foam-slide 4s linear infinite;
    opacity: 0.8;
}

@keyframes foam-slide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 0;
    }
}

/* Fish Swimming Animation */
.swimming-fish {
    position: absolute;
    animation: fish-swim 30s linear infinite;
    opacity: 0.3;
}

@keyframes fish-swim {
    0% {
        transform: translateX(-100px) scaleX(1);
    }
    45% {
        transform: translateX(50vw) scaleX(1);
    }
    50% {
        transform: translateX(50vw) scaleX(-1);
    }
    100% {
        transform: translateX(-100px) scaleX(-1);
    }
}

/* Anchor Drop Animation */
.anchor-drop {
    animation: drop-anchor 4s ease-in-out infinite;
}

@keyframes drop-anchor {
    0%, 50% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(20px) rotate(10deg);
    }
    75% {
        transform: translateY(10px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Ocean Depth Gradient */
.ocean-depth {
    background: linear-gradient(
        180deg,
        #0ea5e9 0%,
        #0284c7 25%,
        #0369a1 50%,
        #075985 75%,
        #0c4a6e 100%
    );
    animation: depth-shift 10s ease-in-out infinite alternate;
}

@keyframes depth-shift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

/* Responsive Ocean Effects */
@media (max-width: 768px) {
    .ocean-waves::before,
    .ocean-waves::after {
        height: 60px;
    }
    
    .bubble-trail .bubble {
        width: 10px !important;
        height: 10px !important;
    }
    
    .seagull-flight {
        animation-duration: 15s;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    .floating-boat,
    .bubble-trail .bubble,
    .seagull-flight,
    .swimming-fish,
    .anchor-drop,
    .ocean-waves::before,
    .ocean-waves::after {
        animation: none;
    }
} 