/* Custom styles for Lake Jacksonville Park */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8f548f;
}

/* Selection color */
::selection {
    background-color: #e0cde0;
    color: #462546;
}

/* Animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #ab75c7 0%, #fcb319 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(143, 84, 143, 0.15);
}

/* Pulse animation for CTAs */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(252, 179, 25, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(252, 179, 25, 0);
    }
}

.pulse-cta {
    animation: pulse-soft 2s infinite;
}

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

.img-zoom img {
    transition: transform 0.5s ease;
}

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

/* Custom focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .animate-float {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    button,
    a {
        border: 2px solid currentColor;
    }
}

/* Landscape mode optimization */
@media (orientation: landscape) and (max-height: 500px) {
    .min-h-screen {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Dark mode preference (optional enhancement) */
@media (prefers-color-scheme: dark) {
    /* Additional dark mode styles can be added here if needed */
}

/* Accessibility: Focus visible */
:focus-visible {
    outline: 3px solid #fcb319;
    outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .group:hover .group-hover\\:scale-110 {
        transform: none;
    }
    
    .group:hover .group-hover\\:translate-x-1 {
        transform: none;
    }
}
