/* ===== Custom Styles for Puggz Bakery ===== */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4f4f48;
}

/* Selection color */
::selection {
    background: rgba(240, 82, 82, 0.3);
    color: #f7f7f6;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(12, 12, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

/* Gold shimmer on gradient text */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1c1c19 0%, #2a2a26 100%);
}

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

/* Subtle glow effects */
.glow-coral {
    box-shadow: 0 0 40px rgba(240, 82, 82, 0.15);
}

.glow-gold {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

/* Hero gradient animation */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Custom underline animation for links */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.underline-hover:hover::after {
    width: 100%;
}
