/* Custom styles for Lu Lu's Backyard */

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

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(15, 26, 40, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #0f1a28;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2bb87a, #1c9460);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Mobile nav links */
.mobile-nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f4f8;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.grid > .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.grid > .scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.grid > .scroll-reveal:nth-child(3) { transition-delay: 0.25s; }
.grid > .scroll-reveal:nth-child(4) { transition-delay: 0.35s; }

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

/* Selection color */
::selection {
    background: #bdf0d8;
    color: #0f1a28;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7f9ec0;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e0f8ee 0%, #d1dce8 100%);
}
