/* Custom styles for Shady Creek Campground */

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

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

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

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

/* Selection color */
::selection {
    background: #ff6b6b;
    color: white;
}

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

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(45deg);
    }
    50% {
        transform: translateY(20px) rotate(40deg);
    }
}

/* Apply animations to decorative elements */
.absolute.top-20.right-1\/4 {
    animation: float 6s ease-in-out infinite;
}

.absolute.bottom-20.left-1\/4 {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Hover effects for cards */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Menu line animation */
.menu-line {
    transition: all 0.3s ease-in-out;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Navbar background on scroll */
#navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* 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;
    }
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #232342 0%, #2d2d52 50%, #232342 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

img.loaded {
    animation: none;
    background: none;
}

/* Geometric accent shapes */
.geometric-accent {
    position: absolute;
    pointer-events: none;
}

.geometric-accent.circle {
    border-radius: 50%;
}

.geometric-accent.square {
    transform: rotate(45deg);
}

/* Text gradient effect */
.text-gradient {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow effect */
.glow {
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}
