/* Custom styles for Lakeside Cottages */

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

/* Navbar scroll effect */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
    color: #374151;
}

#navbar.scrolled .logo-text {
    color: #14532d;
}

/* Mobile menu transitions */
.mobile-link {
    transition: all 0.2s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2d7a2d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1c4f1c;
}

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

/* Animation for scroll reveals */
@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);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Button hover effects */
button, .btn {
    transition: all 0.2s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Form input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 122, 45, 0.2);
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all text is readable */
@media (prefers-reduced-motion: no-preference) {
    .animate-bounce {
        animation: bounce 2s infinite;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%) translateX(-50%) translateZ(0) rotate(180deg);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-50%) translateX(-50%) translateZ(0) rotate(360deg);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
