/* ============================================
   Grassy Lake Lodge — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #15803d;
    color: #f0fdf4;
}

/* Stat cards animation */
.stat-card {
    animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) {
    animation-delay: -1.5s;
}
.stat-card:nth-child(3) {
    animation-delay: -3s;
}
.stat-card:nth-child(4) {
    animation-delay: -4.5s;
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-blur: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile menu link hover */
.mobile-link:hover {
    padding-left: 0.5rem;
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}
img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
