/* Custom styles for Big Guns Power Washing */

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

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

::-webkit-scrollbar-track {
    background: #3b0419;
}

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

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

/* Selection color */
::selection {
    background: #ffcc40;
    color: #3b0419;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial state for scroll reveal (progressive enhancement) */
.scroll-reveal {
    transform: translateY(30px);
    opacity: 0;
}

.scroll-reveal.revealed {
    transform: translateY(0);
    opacity: 1;
}

/* Navbar glass effect */
nav.scrolled {
    background: rgba(59, 4, 25, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero text gradient */
.hero-gradient {
    background: linear-gradient(135deg, #ffcc40 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

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

/* Pulse animation for badge */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 204, 64, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 204, 64, 0); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Ensure all interactive elements have cursor pointer */
a, button {
    cursor: pointer;
}

/* Fix for image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, .scroll-reveal, #mobileMenu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
