/* === Custom Styles for R & H Repair LLC === */

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

/* Body */
body {
    overflow-x: hidden;
}

/* === Blob Animations === */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 50px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 7s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* === Navbar Scroll State === */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(126, 34, 206, 0.1);
}

/* === Mobile Menu === */
.mobile-link {
    display: block;
}

/* === Form Focus States === */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* === Selection Color === */
::selection {
    background: rgba(147, 51, 234, 0.2);
    color: #581c87;
}

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

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

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

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

/* === Service Cards Stagger Animation === */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Contact Info Cards === */
#contact a,
#contact > div > div:first-child > div > div {
    opacity: 0;
    transform: translateX(-20px);
}

#contact a.revealed,
#contact > div > div:first-child > div > div.revealed {
    opacity: 1;
    transform: translateX(0);
}
