/* Custom styles for MAC Campground */

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 14, 26, 0.92) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Geometric decoration animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

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

.hero-deco-1 {
    animation: float-slow 6s ease-in-out infinite;
}

.hero-deco-2 {
    animation: float-medium 4s ease-in-out infinite;
}

/* Scroll reveal animations (below-fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Success message */
.success-message {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card hover glow */
.amenity-card:hover {
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.08);
}

/* Map contrast fix */
iframe[title*="Google Maps"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(1.1);
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .font-display {
        word-spacing: -0.02em;
    }
}
