/* Custom styles for Strozer's Campground */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection color */
::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: #fff;
}

/* Reveal animations - progressive enhancement via JS */
.reveal-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When JS is enabled, these get animated */
.reveal-up.animated {
    opacity: 0;
    transform: translateY(40px);
}
.reveal-left.animated {
    opacity: 0;
    transform: translateX(-40px);
}
.reveal-right.animated {
    opacity: 0;
    transform: translateX(40px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(8, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding: 1rem 0;
}

/* Hero parallax-like subtle effect */
@supports (background-attachment: fixed) {
    .hero-bg-fixed {
        background-attachment: fixed;
    }
}

/* Print styles */
@media print {
    nav, #mobileMenu, .reveal-up, .reveal-left, .reveal-right {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
