/* Custom styles for Husky Well & Pump Service */

:root {
    --gold-400: #d4a853;
    --burgundy-700: #a83232;
    --burgundy-900: #742424;
    --dark-950: #080505;
}

* {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-950);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--burgundy-700), var(--burgundy-900));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #fff;
}

/* Service card shimmer effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.03), transparent);
    transition: left 0.7s ease;
    border-radius: inherit;
    pointer-events: none;
}

.service-card:hover::before {
    left: 100%;
}

/* Gold gradient text animation */
@keyframes goldShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Pulse animation for hero badge */
@keyframes softPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 5, 5, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

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

/* Mobile nav link hover */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.3s ease;
}

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

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Input focus animations */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.2);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Fade-in animation for scroll reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .fade-in-up:nth-child(2) { transition-delay: 0.1s; }
    .fade-in-up:nth-child(3) { transition-delay: 0.2s; }
    .fade-in-up:nth-child(4) { transition-delay: 0.3s; }
    .fade-in-up:nth-child(5) { transition-delay: 0.4s; }
    .fade-in-up:nth-child(6) { transition-delay: 0.5s; }
}

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