/* Custom styles for St Laurent Brothers Candy & Nut Shop */

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

/* Floating candy decorations */
.candy-bg {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.candy-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #fbbf24, #f59e0b);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.candy-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fde68a, #fcd34d);
    top: 60%;
    right: -3%;
    animation-delay: -5s;
}

.candy-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #fbbf24, #f59e0b);
    bottom: 10%;
    left: 15%;
    animation-delay: -10s;
}

.candy-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #fde68a, #fcd34d);
    top: 20%;
    right: 10%;
    animation-delay: -7s;
}

.candy-5 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #fbbf24, #f59e0b);
    bottom: 30%;
    left: 40%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg) scale(0.95);
    }
    75% {
        transform: translateY(-40px) rotate(3deg) scale(1.02);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .candy-bg {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(253, 244, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(92, 33, 53, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #c04d71;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #fbbf24;
    color: #330e1c;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover effects */
a, button {
    transition: all 0.2s ease;
}
