/* Custom Styles for Ric Rac Bric a Brac */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-16px) rotate(3deg); }
}

@keyframes float-alt {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

.floating-card:nth-child(2) {
    animation: float-alt 5s ease-in-out infinite;
    animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
    animation: float-slow 6s ease-in-out infinite;
    animation-delay: -3s;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(250, 244, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(83, 34, 45, 0.08);
}

.nav-scrolled .nav-link {
    color: #53222d !important;
}

.nav-scrolled .nav-link:hover {
    color: #b45309 !important;
}

.nav-scrolled .mobile-link {
    color: #53222d !important;
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal base - always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal for below-fold */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #fde68a;
    color: #53222d;
}
