/* ===== Custom Styles for Molly Donuts ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #faf5fb;
}
::-webkit-scrollbar-thumb {
    background: #d9a0e5;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a847b8;
}

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

.card-top-left {
    animation-delay: 0s;
}

.card-bottom-right {
    animation-delay: 1.3s;
}

.card-bottom-left {
    animation-delay: 2.6s;
}

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

/* Menu card hover effects */
.menu-card {
    transform: translateY(0);
}

.menu-card:hover {
    transform: translateY(-8px);
}

/* Review card hover */
.review-card {
    transform: translateY(0);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(250, 245, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(123, 45, 142, 0.1);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5C518;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile link styles */
.mobile-link {
    position: relative;
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:not(.visible) {
    transform: translateY(20px);
}

#back-to-top.visible {
    transform: translateY(0);
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Decorative donut pattern */
.donut-pattern {
    background-image: radial-gradient(circle, rgba(123, 45, 142, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
}

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

/* Print styles */
@media print {
    nav, #back-to-top, .floating-card {
        display: none !important;
    }
}
