/* Custom styles for Bob's Grotto and Pool */

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

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7a1f19, #dc5c3c);
    transition: width 0.3s ease;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 242, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(122, 31, 25, 0.1);
}

.nav-scrolled .nav-link {
    color: #7a1f19;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7a1f19, #dc5c3c);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #661a15;
}

/* Selection color */
::selection {
    background: #f9d0d0;
    color: #3a0e0b;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #fceee8 0%, #f9d0d0 50%, #fceee8 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #f9d0d0;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Decorative pattern overlay */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
