/* Custom styles for B&B Rv Park */

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

/* Hero gradient animation */
.hero-gradient {
    background: linear-gradient(135deg, #400717 0%, #721431 25%, #a6153c 50%, #c71f4d 75%, #e03666 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating circles animation */
.hero-circle {
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    animation-delay: 0s;
}

.circle-2 {
    animation-delay: 2s;
}

.circle-3 {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

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

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(64, 7, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #871335;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(166, 21, 60, 0.1);
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-gradient {
        animation: none;
        background: linear-gradient(135deg, #400717 0%, #721431 50%, #e03666 100%);
    }
    
    .hero-circle {
        animation: none;
    }
}

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

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

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(166, 21, 60, 0.4);
}

/* Gallery grid responsive */
@media (max-width: 768px) {
    .grid-cols-2 img {
        min-height: 150px;
    }
}

/* Print styles */
@media print {
    .hero-gradient {
        background: #721431 !important;
    }
    
    nav, #back-to-top, button {
        display: none !important;
    }
}
