/* Matrix digital rain canvas background layer */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
}

/* Foreground interactive paw print canvas layer */
#paw-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 60; /* Sits above standard content and modals for maximum brightness */
    pointer-events: none;
}

/* Swimming plushies container overlay */
.otter-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

/* Floating swimming animation keyframes */
@keyframes swim1 {
    0% { transform: translate(-10%, 15vh) rotate(5deg); }
    30% { transform: translate(30vw, 25vh) rotate(-6deg); }
    60% { transform: translate(65vw, 12vh) rotate(10deg); }
    85% { transform: translate(85vw, 30vh) rotate(-4deg); }
    100% { transform: translate(110vw, 50vh) rotate(6deg); }
}

@keyframes swim2 {
    0% { transform: translate(110vw, 65vh) rotate(-8deg) scaleX(-1); }
    35% { transform: translate(75vw, 80vh) rotate(6deg) scaleX(-1); }
    100% { transform: translate(-10vw, 40vh) rotate(-5deg) scaleX(-1); }
}

@keyframes swim3 {
    0% { transform: translate(50vw, 110vh) rotate(-12deg); }
    50% { transform: translate(20vw, 40vh) rotate(5deg); }
    100% { transform: translate(90vw, -10vh) rotate(-8deg); }
}

@keyframes swim4 {
    0% { transform: translate(-10vw, 75vh) rotate(8deg); }
    40% { transform: translate(45vw, 60vh) rotate(-5deg); }
    80% { transform: translate(80vw, 85vh) rotate(6deg); }
    100% { transform: translate(110vw, 70vh) rotate(-3deg); }
}

/* Keyframe for Pop float up */
@keyframes popFloatUp {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    20% { opacity: 1; transform: translateY(-30vh) scale(1); }
    80% { opacity: 1; transform: translateY(-70vh) scale(1); }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.popping-otter {
    position: fixed;
    z-index: 40;
    pointer-events: auto;
    cursor: pointer;
    animation: popFloatUp 6s linear forwards;
}

.anim-otter-1 { animation: swim1 30s infinite linear; }
.anim-otter-2 { animation: swim2 36s infinite linear; }
.anim-otter-3 { animation: swim3 24s infinite linear 6s; }
.anim-otter-4 { animation: swim4 32s infinite linear 3s; }

.bubble {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(0, 243, 255, 0.8), rgba(255, 0, 160, 0.3));
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 102, 0.6);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    animation: floatBubble 3.5s ease-out infinite;
    pointer-events: none;
}

@keyframes floatBubble {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    50% { opacity: 0.9; }
    100% { transform: translateY(-80px) scale(1.2); opacity: 0; }
}

/* Glassmorphism styling */
.glass-panel {
    background: rgba(10, 25, 18, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 102, 0.25);
}

.glass-panel:hover {
    border-color: rgba(0, 255, 102, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.15);
}

.glass-header {
    background: rgba(6, 16, 12, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 255, 102, 0.25);
}

/* Glowing text effects */
.glow-text-green { text-shadow: 0 0 8px rgba(0, 255, 102, 0.8), 0 0 18px rgba(0, 255, 102, 0.4); }
.glow-text-pink { text-shadow: 0 0 8px rgba(255, 0, 160, 0.8), 0 0 18px rgba(255, 0, 160, 0.4); }
.glow-text-cyan { text-shadow: 0 0 8px rgba(0, 243, 255, 0.8), 0 0 18px rgba(0, 243, 255, 0.4); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #050a08; }
::-webkit-scrollbar-thumb { background: #00ff66; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00f3ff; }

html { scroll-behavior: smooth; }

#lightbox-modal {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightbox-content {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}