/* Custom styles for Miami Beach Appliance Repair */

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

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 128, 82, 0.1);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .text-stone-800 {
    color: #1c1917;
}

#navbar.scrolled .text-stone-500 {
    color: #78716c;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
}

#mobileMenu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

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

/* Selection color */
::selection {
    background: rgba(217, 111, 56, 0.2);
    color: #1c1917;
}

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

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
    background: #E9B99A;
    border-radius: 4px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
    
    #backToTop {
        transition: none;
    }
}

/* Print styles */
@media print {
    #navbar, #backToTop, #mobileMenu {
        display: none !important;
    }
}
