/* Custom styles for Lake Murray Cleaning Service */

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

/* Prevent FOUC on page load */
body {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #8fb88f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7c4a;
}

/* Selection color */
::selection {
    background: #dce8dc;
    color: #1d302f;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(31, 64, 47, 0.08);
}

/* Intersection observer animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* Hover transitions for service cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

/* Image loading placeholder */
img {
    background-color: #ebe8de;
}

/* Mobile menu open state */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    width: 5px;
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Decorative circle pulse */
@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
}
.pulse-circle {
    animation: pulse-soft 4s ease-in-out infinite;
}
