/* Custom styles for ElitePro Appliance Repairs */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #b82828;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #961c1c;
}

/* Selection color */
::selection {
    background: #fce7e7;
    color: #7a1a1a;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
    padding-bottom: 0.5rem;
}

/* Service card stagger animation */
.service-card {
    opacity: 1;
}

/* Testimonial card hover */
.testimonial-card {
    opacity: 1;
}

/* Floating cards animation in hero */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes float-rotate {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

.floating-card-1 { animation: float-slow 6s ease-in-out infinite; }
.floating-card-2 { animation: float-medium 5s ease-in-out infinite; }
.floating-card-3 { animation: float-fast 4.5s ease-in-out infinite; }
.floating-card-4 { animation: float-rotate 5.5s ease-in-out infinite; }

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(122, 26, 26, 0.08);
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: 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;
    }
}

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

/* Back to top button animation */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
