/* Custom styles for Muffly - Huff VFW Post 8206 */

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

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

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

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

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

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.circle {
    border-radius: 50%;
}

.triangle {
    width: 0 !important;
    height: 0 !important;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid;
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

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

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

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

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

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

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

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

/* Tablet and desktop optimizations */
@media (min-width: 768px) {
    .hover-lift:hover {
        transform: translateY(-10px);
    }
}

/* Ensure text readability on all backgrounds */
.bg-charcoal-900,
.bg-charcoal-800,
.bg-charcoal-700 {
    color-scheme: dark;
}

/* Custom selection color */
::selection {
    background: #FF6B6B;
    color: #121212;
}

::-moz-selection {
    background: #FF6B6B;
    color: #121212;
}
