/* Custom styles for ProLimp — Tucson Home & Repair */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1326;
}
::-webkit-scrollbar-thumb {
    background: #212e58;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d5296;
}

/* Selection color */
::selection {
    background: rgba(52, 176, 122, 0.3);
    color: #f0f3f9;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Scroll reveal animations — progressive enhancement, only applied via JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal[data-reveal="up"] {
    transform: translateY(30px);
}

.scroll-reveal[data-reveal="left"] {
    transform: translateX(-30px);
}

.scroll-reveal[data-reveal="right"] {
    transform: translateX(30px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Service card staggered animation */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(7, 11, 22, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(33, 46, 88, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for hero badge */
@keyframes soft-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.animate-pulse-custom {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Ensure all links are readable */
a {
    text-decoration: none;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Counter animation target */
.counter {
    display: inline-block;
}

/* Print styles */
@media print {
    header, #contact-form, .scroll-indicator {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
