/* Custom styles for Hermit Island Campground */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #d95a35;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c94724;
}

/* Selection color */
::selection {
    background: #f5c4b0;
    color: #6f271a;
}

/* Hero parallax-like effect on scroll */
#top {
    scroll-snap-align: start;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
    color: #1c1917 !important;
}

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

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

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d95a35;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Image hover zoom container */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-snap-type: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .group img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar, #back-to-top, .group {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
