/* Custom styles for The Nerdy Otter Collectibles & More */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(-12deg); }
    50% { transform: translateY(-10px) rotate(-12deg); }
}

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

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 245, 242, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(154, 43, 43, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf5f2;
}

::-webkit-scrollbar-thumb {
    background: #d4b8a4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b83939;
}

/* Selection color */
::selection {
    background: #f9cfcf;
    color: #6c2020;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #f5ece6 0%, #e8d5c8 100%);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #9a2b2b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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