/* Custom styles for Little Cabin Crafts */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFCF8;
}
::-webkit-scrollbar-thumb {
    background: #b8d1bb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb892;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Reveal animations - progressive enhancement only */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(45, 90, 61, 0.08);
}

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

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background-color: #dce8df;
}

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

/* Selection color */
::selection {
    background-color: #b8d1bb;
    color: #1c3a26;
}

/* Ensure mobile menu links have proper spacing */
.mobile-nav-link {
    padding-left: 0.5rem;
}

/* Gallery hover overlay */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Custom underline animation for links */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #6a9a6e;
    transition: width 0.3s ease;
}

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

/* Smooth image transitions */
img {
    transition: filter 0.3s ease;
}

/* Print styles */
@media print {
    #navbar, .animate-float, .animate-float-delayed {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
