/* Custom styles for Z&M Modern Renovations */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #87162e;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a71832;
}

/* Selection color */
::selection {
    background-color: #fce7eb;
    color: #72172d;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

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

/* Geometric accent shapes */
.geo-shape-1 {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 116, 102, 0.2);
    border-radius: 20px;
    transform: rotate(45deg);
}
.geo-shape-2 {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(135, 22, 46, 0.15);
    border-radius: 50%;
}

/* Image hover zoom with overflow hidden */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #a71832;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #f5f5f5 100%);
}
