/* Custom styles for South 208 RV Park */

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

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

::-webkit-scrollbar-track {
    background: #0a0f0d;
}

::-webkit-scrollbar-thumb {
    background: #14a06e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d6b4a;
}

/* Selection color */
::selection {
    background: rgba(20, 160, 110, 0.3);
    color: #f5f0e8;
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

.reveal-left {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Apply animations only when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up.animated {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-left.animated {
        opacity: 0;
        transform: translateX(-30px);
    }

    .reveal-right.animated {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-up.animated.scrolled {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-left.animated.scrolled {
        opacity: 1;
        transform: translateX(0);
    }

    .reveal-right.animated.scrolled {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Gold shimmer text effect */
.text-gold-shimmer {
    background: linear-gradient(90deg, #c9a84c, #dfc06a, #c9a84c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Glass morphism card */
.glass-card {
    background: rgba(17, 26, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 240, 232, 0.05);
}

/* Navbar scrolled state */
.nav-scrolled {
    background: rgba(10, 15, 13, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(245, 240, 232, 0.05);
}

/* Image hover zoom container */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: #111a16;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), transparent, rgba(20, 160, 110, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
