/* Marquee */
.marquee-container {
    background: var(--accent-yellow);
    color: #000;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 3px solid #000;
    font-family: 'Stopbuck', sans-serif;
    font-size: 1.2rem;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Adjust Hero for Marquee */
.hero-section {
    margin-top: 45px; /* Height of marquee */
}

/* Shake Animation */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake-on-hover:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

/* Glitch Effect for Title */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    20% { clip: rect(80px, 9999px, 90px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(40px, 9999px, 20px, 0); }
    80% { clip: rect(70px, 9999px, 60px, 0); }
    100% { clip: rect(20px, 9999px, 80px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(60px, 9999px, 10px, 0); }
    40% { clip: rect(30px, 9999px, 50px, 0); }
    60% { clip: rect(90px, 9999px, 20px, 0); }
    80% { clip: rect(10px, 9999px, 40px, 0); }
    100% { clip: rect(50px, 9999px, 30px, 0); }
}

/* Water Ripple Effect */
.water-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(0, 168, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-anim 1s linear forwards;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

@keyframes ripple-anim {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Floating Animation for Cards */
@keyframes float-card {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.card-item img {
    animation: float-card 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.card-item:nth-child(odd) img {
    animation-duration: 5s;
}

.card-item:nth-child(even) img {
    animation-duration: 7s;
    animation-delay: 1s;
}

.card-item img:hover {
    transform: scale(1.05) translateY(-5px);
    animation-play-state: paused;
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.4);
}

/* Bubbles Container */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 10s infinite ease-in;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(50px);
    }
    100% {
        bottom: 120vh;
        transform: translateX(-50px);
    }
}
