/* Custom styles for Dubay County Campground website */

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

/* Geometric pattern background */
.geometric-pattern {
    background-image: 
        linear-gradient(45deg, rgba(140, 48, 69, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(140, 48, 69, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(140, 48, 69, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(140, 48, 69, 0.1) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Float animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

/* Geometric shapes */
.geometric-shape {
    position: absolute;
    z-index: -1;
}

.shape-circle {
    border-radius: 50%;
}

.shape-triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-diamond {
    transform: rotate(45deg);
}

/* Reveal animation for scroll effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stat card styling */
.stat-card {
    background: linear-gradient(135deg, #8c3045 0%, #a83d56 100%);
    border: 3px solid #ffd545;
    box-shadow: 0 10px 30px rgba(140, 48, 69, 0.3);
}

/* CTA button styling */
.cta-button {
    background: linear-gradient(135deg, #ff9f0a 0%, #f08600 100%);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 159, 10, 0.4);
}

/* Navigation link styling */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffd545;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service card hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(140, 48, 69, 0.2);
}

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

img:hover {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
    border-color: #8c3045;
    box-shadow: 0 0 0 3px rgba(140, 48, 69, 0.2);
}

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

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

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geometric-shape {
        display: none;
    }
    
    .stat-card {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        margin-bottom: 1rem;
    }
    
    .float-animation,
    .float-animation-delayed {
        animation: none;
    }
}
